/* Aktive Momente (ui/moments.js lootCard): the loot of a golden chest / a golden metin as a card over the action bar
   (Nutzer 02.11.2026: in the system chat alone nobody saw it). Yang as a chip, items as slots with the game's tooltip,
   a thin gold line runs out until the card goes; held while the mouse (finger) is on it. The box spans the width and
   lets clicks through to the world, only the cards take them. */
#ui > #mo-loot { position: absolute; left: 0; right: 0; bottom: 92px; z-index: 7; display: flex; flex-direction: column; align-items: center;
  gap: 3px; pointer-events: none; transform-origin: 50% 100%; }
html:not(.touch) #ui:not(.compact) > #autopill:not(.hidden) ~ #mo-loot { bottom: 104px; }
html:not(.touch) #ui.compact > #mo-loot { bottom: 102px; }   /* over the wallet, which stands higher there (wallet.css) */
#ui #mo-loot .mo-card { pointer-events: auto; min-width: 140px; max-width: 220px; margin: 0;
  box-shadow: inset 0 0 0 1px #8a6a2e, 0 0 6px rgba(242, 196, 90, .3), 0 2px 6px rgba(0, 0, 0, .65);
  animation: mo-card-in .35s cubic-bezier(.3, 1.5, .5, 1) backwards; transition: opacity .3s, translate .3s; }
#ui #mo-loot .mo-card.out { opacity: 0; translate: 0 4px; pointer-events: none; }
#ui #mo-loot .mo-h { padding-right: 18px; background: linear-gradient(90deg, #4a3816, #1c160d 75%); color: #ffd86a; }
#ui #mo-loot .mo-h > img { width: 11px; height: 11px; }
#ui #mo-loot .mo-h > .win-close { top: 1px; right: 2px; width: 11px; height: 11px; background-size: 11px; }
#ui #mo-loot .mo-b { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 5px 5px; }
#ui #mo-loot .mo-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; }
#ui #mo-loot .mo-chip { display: inline-flex; align-items: center; gap: 2px; height: 12px; padding: 0 4px 0 1px; font-size: 8px; line-height: 12px;
  color: #ffd86a; text-shadow: var(--ol); background: rgba(0, 0, 0, .3); box-shadow: inset 0 0 0 1px #3a3424; }
#ui #mo-loot .mo-chip img { width: 10px; height: 10px; object-fit: contain; }
#ui #mo-loot .mo-its { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; max-width: 208px; }
#ui #mo-loot .mo-it { --slot: 22px; animation: mo-it-in .35s cubic-bezier(.3, 1.6, .5, 1) backwards; animation-delay: calc(var(--i) * 70ms + .2s); }
#ui #mo-loot .mo-it img.ic { left: 2px; top: 2px; width: 18px; height: 18px; }
#ui #mo-loot .mo-it .rar-shine { left: 2px; top: 2px; width: 18px; height: 18px !important; }
#ui #mo-loot .mo-time { position: absolute; left: 1px; bottom: 1px; height: 1px; width: calc((100% - 2px) * var(--left, 1)); background: #c9a24a;
  opacity: .7; transition: width .25s linear; pointer-events: none; }
#ui #mo-loot .mo-card.held .mo-time { opacity: .25; }
@keyframes mo-card-in { from { opacity: 0; translate: 0 6px; scale: .92; } }
@keyframes mo-it-in { from { opacity: 0; transform: translateY(-4px) scale(.6); } }

/* phone / tablet: low and flat in the band between the hero's feet and the slim bar (grown like the windows it covered
   the hero): Yang and the items in one row, a finger-wide X */
html.touch #ui > #mo-loot { bottom: calc(34px + 22px * var(--tz)); }
html.touch #ui #mo-loot .mo-card { max-width: max(220px, calc(100% - 300px / var(--px))); }
html.touch #ui #mo-loot .mo-h { height: 16px; line-height: 16px; padding-right: calc(44px / var(--px)); }
html.touch #ui #mo-loot .mo-h > .win-close { top: 0; right: 0; width: calc(44px / var(--px)); height: 16px; background-size: 11px; }
html.touch #ui #mo-loot .mo-b { flex-direction: row; flex-wrap: wrap; justify-content: center; padding: 3px 4px 4px; }
html.touch #ui #mo-loot .mo-its { max-width: none; }
html.touch #ui #mo-loot .mo-it { --slot: calc(40px / var(--px)); }   /* a finger: the first tap shows the tooltip (ui/touch.js) */
html.touch #ui #mo-loot .mo-it img.ic, html.touch #ui #mo-loot .mo-it .rar-shine { left: 50%; top: 50%; translate: -50% -50%;
  width: calc(30px / var(--px)); height: calc(30px / var(--px)) !important; }
html.touch #ui #mo-loot .mo-chip { height: calc(40px / var(--px)); }
