:root {
  --loot-bg: #070311;
  --loot-panel: rgba(20, 9, 37, .94);
  --loot-line: rgba(177, 96, 255, .3);
  --loot-purple: #a94cff;
  --loot-cyan: #62eddf;
  --loot-gold: #ffd45b;
  --loot-muted: #b7acc3;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding-top: 98px;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--loot-bg);
  color: #f8f5ff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

body > header {
  top: 10px;
  left: 50%;
  width: calc(100% - 32px);
  max-width: 1600px;
  margin: 0;
  z-index: 1000;
  transform: translateX(-50%);
  border-radius: 28px;
}
header .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-height: 72px;
  max-width: none;
  padding: 12px 22px;
}
.brand { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; color: #fff; font-size: 20px; font-weight: 850; text-decoration: none; }
.brand img { width: 42px; height: 42px; object-fit: cover; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; }
.desktop-nav { display: flex; min-width: 0; align-items: center; justify-content: center; gap: 5px; }
.desktop-nav a { padding: 8px 9px; color: #b7acc3; border-radius: 9px; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { color: #fff; background: rgba(169,76,255,.13); }
.nav-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 9px; }
.btn { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 0 17px; border-radius: 13px; font-size: 13px; font-weight: 800; text-decoration: none; }
.btn-primary { color: #fff; background: linear-gradient(135deg, #9d46f5, #6339df); }
.gradient { color: transparent; background: linear-gradient(100deg, #fff 6%, #d88cff 58%, #63eaf1); -webkit-background-clip: text; background-clip: text; }
.eyebrow { margin: 0; color: #da8bff; font-size: 11px; font-weight: 900; letter-spacing: .2em; }

.loot-main {
  min-height: calc(100vh - 150px);
  overflow: hidden;
  background: radial-gradient(circle at 18% 12%, rgba(119,42,255,.2), transparent 31%), radial-gradient(circle at 86% 24%, rgba(0,195,255,.12), transparent 28%), var(--loot-bg);
}
.loot-hero { position: relative; padding: 78px 0 48px; border-bottom: 1px solid rgba(170,109,255,.2); }
.loot-stars { position: absolute; inset: 0; opacity: .2; background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 37px 37px; -webkit-mask-image: linear-gradient(to bottom, #000, transparent); mask-image: linear-gradient(to bottom, #000, transparent); }
.loot-hero-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.loot-hero h1 { margin: 10px 0 20px; font-size: clamp(46px, 7vw, 90px); line-height: .98; letter-spacing: -.055em; }
.loot-hero p:not(.eyebrow) { max-width: 680px; margin: 0; color: #bdb3ca; font-size: 18px; line-height: 1.7; }
.loot-coin-art { width: min(25vw, 250px); aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 0 30px rgba(255,184,0,.4)); animation: lootFloat 4s ease-in-out infinite; }

.loot-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(290px, .75fr); gap: 24px; padding-top: 42px; padding-bottom: 80px; }
.loot-console, .loot-panel { position: relative; border: 1px solid var(--loot-line); border-radius: 24px; background: linear-gradient(145deg, rgba(29,13,49,.95), rgba(10,5,22,.97)); box-shadow: 0 24px 80px rgba(0,0,0,.35), inset 0 1px rgba(255,255,255,.04); }
.loot-console { padding: 26px; }
.loot-console::before { content: ""; position: absolute; inset: -1px; padding: 1px; pointer-events: none; border-radius: inherit; background: linear-gradient(130deg, #54dcff, transparent 28%, transparent 72%, #913aff); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.loot-console-head, .loot-panel-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.loot-console-head { padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.loot-console-head small, .loot-panel small { color: #b56eff; font-size: 11px; font-weight: 800; letter-spacing: .18em; }
.loot-console h2 { margin: 5px 0 0; font-size: clamp(22px, 3vw, 34px); }
.loot-online { display: flex; align-items: center; gap: 8px; color: #a699b5; font-size: 12px; font-weight: 700; }
.loot-online i { width: 9px; height: 9px; border-radius: 50%; background: #ffb300; box-shadow: 0 0 12px #ffb300; }
.loot-online.is-ready i { background: #4fffd1; box-shadow: 0 0 12px #4fffd1; }
.loot-online.is-offline i { background: #ff5d7a; box-shadow: 0 0 12px #ff5d7a; }

.loot-loading, .loot-login { margin-top: 24px; padding: 24px; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; background: rgba(255,255,255,.025); }
.loot-loading { display: flex; min-height: 240px; align-items: center; justify-content: center; gap: 20px; text-align: left; }
.loot-loading img { width: 150px; filter: drop-shadow(0 0 22px rgba(170,67,255,.35)); animation: lootLoading 1.5s ease-in-out infinite; }
.loot-loading h3, .loot-loading p { margin: 0; }
.loot-loading p { margin-top: 5px; color: var(--loot-muted); }
.loot-login { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; }
.loot-login[hidden], #lootGame[hidden], .loot-loading[hidden] { display: none; }
.loot-login-icon { font-size: 30px; }
.loot-login h3 { margin: 0 0 5px; }
.loot-login p { margin: 0; color: #aa9eb8; }
.loot-primary { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 0 20px; border-radius: 13px; color: #fff; background: linear-gradient(135deg, #8648ff, #5d20df); box-shadow: 0 10px 30px rgba(113,48,255,.28); font-weight: 800; text-decoration: none; }

.loot-hud { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 22px 0; }
.loot-hud div { padding: 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: rgba(7,3,17,.52); }
.loot-hud span { display: block; color: #978ba5; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.loot-hud strong { display: block; margin-top: 6px; color: #fff; font-size: 22px; }
.loot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.loot-tile { position: relative; display: grid; min-height: 150px; place-items: center; align-content: center; padding: 8px; overflow: hidden; border: 1px solid rgba(178,97,255,.32); border-radius: 17px; color: #fff; background: linear-gradient(145deg, rgba(56,22,91,.85), rgba(17,8,31,.96)); cursor: pointer; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.loot-tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 25%, rgba(255,255,255,.09), transparent 70%); transform: translateX(-110%); transition: transform .45s ease; }
.loot-tile:not(:disabled):hover { border-color: #b773ff; box-shadow: 0 12px 28px rgba(90,33,170,.28); transform: translateY(-4px); }
.loot-tile:not(:disabled):hover::before { transform: translateX(110%); }
.loot-tile:not(:disabled):hover .loot-chest-image { transform: translateY(-4px) scale(1.06); filter: drop-shadow(0 0 15px rgba(186,94,255,.48)) brightness(1.08); }
.loot-chest-stage { position: relative; z-index: 1; display: grid !important; width: 100%; height: 112px; place-items: center; font-size: inherit !important; }
.loot-chest-image { display: block; width: min(128px, 94%); height: 112px; object-fit: contain; filter: drop-shadow(0 7px 10px rgba(0,0,0,.45)); transition: transform .2s ease, filter .2s ease; }
.loot-chest-number { position: absolute; right: 8%; bottom: 5px; display: grid; min-width: 24px; height: 24px; place-items: center; padding: 0 5px; border: 1px solid rgba(255,220,115,.5); border-radius: 999px; color: #ffe88e; background: rgba(14,7,25,.86); box-shadow: 0 0 12px rgba(255,200,51,.18); font-size: 9px; }
.loot-reward-icon { position: absolute; right: 6%; top: 5px; z-index: 4; display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid rgba(255,255,255,.32); border-radius: 50%; background: rgba(18,8,31,.88); box-shadow: 0 0 20px rgba(255,211,82,.38); font-size: 18px; }
.loot-tile small { position: relative; z-index: 2; display: block; max-width: 100%; margin-top: -3px; overflow: hidden; color: #a99bb8; font-size: 10px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.loot-tile.is-opening { border-color: rgba(255,211,84,.65); box-shadow: 0 0 30px rgba(255,190,38,.2), inset 0 0 28px rgba(156,53,255,.16); }
.loot-tile.is-opening .loot-chest-image { animation: lootChestShake .52s ease-in-out infinite; }
.loot-tile.is-revealing { z-index: 5; overflow: visible; animation: lootTileReveal .9s ease both; }
.loot-tile.is-revealing .loot-chest-image { animation: lootChestOpen .9s cubic-bezier(.2,.8,.2,1) both; }
.loot-tile.is-revealing .loot-reward-icon { animation: lootRewardPop .8s .12s cubic-bezier(.2,.9,.2,1.25) both; }
.loot-burst { position: absolute; z-index: 0; width: 45px; height: 45px; border-radius: 50%; background: #fff8bf; box-shadow: 0 0 18px 8px #ffd13b, 0 0 45px 24px rgba(176,52,255,.82), 0 0 80px 45px rgba(57,219,255,.3); animation: lootBurst .85s ease-out both; }
.loot-tile.is-open { cursor: default; border-color: rgba(255,255,255,.15); animation: lootReveal .45s ease; }
.loot-tile.is-open .loot-chest-image { filter: drop-shadow(0 0 12px rgba(255,205,59,.28)); }
.loot-tile.is-open small { padding: 0 5px; color: #eee; }
.loot-tile.is-coin, .loot-tile.is-jackpot { border-color: rgba(255,194,38,.55); background: linear-gradient(145deg, rgba(116,72,0,.88), rgba(34,18,3,.98)); }
.loot-tile.is-xp { border-color: rgba(255,226,87,.45); }
.loot-tile.is-gem { border-color: rgba(70,229,255,.58); background: linear-gradient(145deg, rgba(4,98,127,.7), rgba(11,24,49,.98)); }
.loot-tile.is-box { border-color: rgba(255,87,214,.55); }
.loot-tile.is-album { border-color: rgba(255,106,220,.75); background: linear-gradient(145deg, rgba(115,25,112,.88), rgba(24,8,42,.98)); box-shadow: inset 0 0 28px rgba(255,82,217,.12); }
.loot-tile.is-bomb { opacity: .78; filter: saturate(.45); }

.loot-message { display: flex; min-height: 50px; align-items: center; justify-content: center; gap: 8px; margin-top: 15px; padding: 8px 14px; border-radius: 14px; color: #c9bdd5; background: rgba(255,255,255,.035); text-align: center; }
.loot-message b { color: #fff; }
.loot-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px 18px; margin-top: 15px; color: #968aa4; font-size: 12px; }
.loot-side { display: grid; align-content: start; gap: 20px; }
.loot-panel { padding: 22px; }
.loot-panel-title span { padding: 6px 9px; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; color: #7d6d8c; font-size: 10px; }
.loot-panel h3 { margin: 4px 0 0; font-size: 20px; }
.loot-leaderboard { display: grid; gap: 8px; margin: 19px 0 0; padding: 0; list-style: none; }
.loot-leaderboard li { display: grid; grid-template-columns: 27px 36px 1fr auto; align-items: center; gap: 9px; padding: 10px; border: 1px solid rgba(255,255,255,.06); border-radius: 12px; background: rgba(255,255,255,.035); }
.loot-leaderboard .loot-empty { display: block; padding: 24px; color: #978aa5; text-align: center; }
.loot-rank { color: #b66cff; text-align: center; }
.loot-leaderboard img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.loot-leaderboard strong, .loot-leaderboard small { display: block; max-width: 115px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loot-leaderboard small { color: #80748c; font-size: 10px; }
.loot-leaderboard em { color: var(--loot-gold); font-size: 12px; font-style: normal; font-weight: 800; }
.loot-guide p { color: #b1a5bd; line-height: 1.6; }
.loot-guide b { margin-right: 8px; color: #b66cff; }
.loot-guide .loot-reset { margin-top: 18px; padding: 13px; border-radius: 12px; color: #cbbbd9; background: rgba(83,33,139,.2); font-size: 12px; }

.loot-quest-list { display: grid; gap: 10px; margin-top: 18px; }
.loot-quest { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px; border: 1px solid rgba(188,104,255,.16); border-radius: 14px; background: linear-gradient(135deg, rgba(69,25,111,.2), rgba(8,4,17,.72)); }
.loot-quest.is-ready { border-color: rgba(255,210,82,.5); box-shadow: inset 0 0 20px rgba(255,202,62,.05); }
.loot-quest.is-claimed { border-color: rgba(80,229,181,.28); background: rgba(22,83,68,.13); }
.loot-quest-icon { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(205,133,255,.25); border-radius: 12px; background: rgba(142,59,220,.13); font-size: 18px; }
.loot-quest-copy { min-width: 0; }
.loot-quest-copy b, .loot-quest-copy span { display: block; }
.loot-quest-copy b { color: #fff; font-size: 12px; }
.loot-quest-copy span { margin-top: 3px; color: #9f92ac; font-size: 9px; line-height: 1.4; }
.loot-quest-progress { height: 4px; margin-top: 8px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.07); }
.loot-quest-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #b64cff, #ffcb50); transition: width .35s ease; }
.loot-quest button, .loot-quest a { display: inline-flex; min-width: 58px; min-height: 32px; align-items: center; justify-content: center; padding: 6px 9px; border: 1px solid rgba(201,128,255,.3); border-radius: 9px; color: #f5eaff; background: rgba(143,56,215,.16); font: inherit; font-size: 9px; font-weight: 850; text-decoration: none; cursor: pointer; }
.loot-quest button:hover:not(:disabled), .loot-quest a:hover { border-color: rgba(255,215,105,.55); color: #fff; background: rgba(197,99,255,.24); }
.loot-quest button:disabled, .loot-quest a.is-disabled { opacity: .46; cursor: default; pointer-events: none; }
.loot-quest.is-ready button { color: #2a1800; border-color: #ffd66e; background: linear-gradient(135deg, #ffe189, #ffbd39); }
.loot-quest-note { margin: 13px 0 0; color: #81758d; font-size: 9px; line-height: 1.5; }

.loot-inventory-panel { overflow: hidden; }
.loot-inventory-list { display: grid; gap: 11px; margin-top: 18px; }
.loot-card-collection { padding: 13px; border: 1px solid rgba(255,102,220,.2); border-radius: 16px; background: linear-gradient(145deg, rgba(75,23,101,.24), rgba(8,4,18,.72)); }
.loot-collection-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.loot-collection-head b, .loot-collection-head span { display: block; }
.loot-collection-head b { color: #fff; font-size: 13px; }
.loot-collection-head span { margin-top: 3px; color: #998ba6; font-size: 9px; }
.loot-collection-head strong { flex: 0 0 auto; color: #ffd76b; font-size: 12px; }
.loot-card-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.loot-photo-card { position: relative; aspect-ratio: 3 / 4.35; margin: 0; overflow: hidden; border: 1px solid rgba(202,125,255,.22); border-radius: 10px; background: #100719; box-shadow: 0 7px 18px rgba(0,0,0,.24); isolation: isolate; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.loot-photo-card::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), inset 0 -30px 26px rgba(5,1,12,.76); }
.loot-photo-card img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.loot-photo-card figcaption { position: absolute; inset: auto 5px 5px; z-index: 2; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 3px; color: #fff; font-size: 7px; line-height: 1; }
.loot-photo-card figcaption b { display: grid; width: 16px; height: 16px; place-items: center; border-radius: 50%; color: #18051f; background: #eeb8ff; font-size: 7px; }
.loot-photo-card figcaption span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loot-photo-card figcaption em { color: #ffe692; font-size: 8px; font-style: normal; font-weight: 900; }
.loot-photo-card.is-locked img { opacity: .22; filter: grayscale(1) blur(1px); }
.loot-photo-card.is-locked::before { content: "?"; position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; color: rgba(255,255,255,.62); font-size: 24px; font-weight: 900; text-shadow: 0 0 16px #a64cff; }
.loot-photo-card.is-owned { border-color: rgba(255,211,91,.65); box-shadow: 0 0 16px rgba(173,73,255,.24), 0 8px 22px rgba(0,0,0,.34); }
.loot-photo-card.is-owned { cursor: zoom-in; }
.loot-photo-card.is-owned:hover, .loot-photo-card.is-owned:focus-visible { transform: translateY(-4px) scale(1.035); border-color: rgba(255,229,141,.92); outline: none; box-shadow: 0 0 0 2px rgba(255,220,109,.17), 0 0 22px rgba(173,73,255,.38), 0 8px 22px rgba(0,0,0,.34); }
.loot-item { position: relative; display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: center; gap: 12px; min-width: 0; padding: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); border-radius: 15px; background: rgba(255,255,255,.03); }
.loot-item::after { content: ""; position: absolute; inset: auto -20% -55% 28%; height: 100px; pointer-events: none; background: radial-gradient(circle, rgba(175,72,255,.19), transparent 68%); }
.loot-item-art { position: relative; display: grid; width: 88px; height: 100px; place-items: center; overflow: hidden; border: 1px solid rgba(211,139,255,.2); border-radius: 12px; background: linear-gradient(145deg, rgba(87,34,133,.34), rgba(7,4,15,.75)); }
.loot-item-art img { width: 100%; height: 100%; object-fit: cover; }
.loot-pillow-item .loot-item-art img { object-fit: contain; filter: drop-shadow(0 0 12px rgba(180,68,255,.3)); }
.loot-item-art > i { position: absolute; right: 5px; top: 5px; display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; background: rgba(12,5,24,.88); box-shadow: 0 0 13px rgba(183,75,255,.3); font-size: 12px; font-style: normal; }
.loot-item-copy { position: relative; z-index: 1; min-width: 0; }
.loot-item-copy b, .loot-item-copy span, .loot-item-copy strong { display: block; }
.loot-item-copy b { overflow: hidden; color: #fff; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.loot-item-copy span { margin-top: 4px; color: #9589a1; font-size: 10px; line-height: 1.45; }
.loot-item-copy strong { margin-top: 8px; color: #ffd76b; font-size: 12px; }
.loot-item-progress { height: 6px; margin-top: 6px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.07); }
.loot-item-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #a64cff, #ff64c7, #ffe16a); box-shadow: 0 0 12px rgba(218,85,255,.42); transition: width .45s ease; }
.loot-pillow-item.is-locked .loot-item-art img, .loot-bonus-item.is-locked .loot-item-art img { opacity: .32; filter: grayscale(.8) blur(3px); }
.loot-pillow-item.is-locked, .loot-bonus-item.is-locked { opacity: .72; }
.loot-pillow-item.is-unlocked, .loot-bonus-item.is-unlocked { border-color: rgba(255,210,79,.4); background: linear-gradient(135deg, rgba(91,47,10,.22), rgba(82,24,112,.2)); box-shadow: inset 0 0 26px rgba(255,195,47,.06); }
.loot-pillow-item.is-unlocked .loot-item-art > i, .loot-bonus-item.is-unlocked .loot-item-art > i { color: #5ff0bd; border-color: rgba(95,240,189,.4); background: rgba(14,71,55,.8); }
.loot-bonus-item .loot-item-art { height: 116px; }
.loot-bonus-item.is-unlocked { cursor: zoom-in; }
.loot-bonus-item.is-unlocked:hover, .loot-bonus-item.is-unlocked:focus-visible { border-color: rgba(255,222,118,.68); outline: none; box-shadow: 0 0 0 2px rgba(255,220,109,.12), inset 0 0 26px rgba(255,195,47,.08); }
.loot-item-copy a { display: inline-flex; margin-top: 9px; padding: 7px 10px; border: 1px solid rgba(255,215,102,.3); border-radius: 9px; color: #ffe596; background: rgba(255,194,43,.08); font-size: 10px; font-weight: 850; text-decoration: none; }
.loot-item-copy a[hidden] { display: none; }
.loot-item-copy a:hover { color: #fff; border-color: rgba(255,225,134,.55); }

.loot-viewer-open { overflow: hidden; }
.loot-photo-viewer[hidden] { display: none; }
.loot-photo-viewer { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 22px; }
.loot-photo-viewer-backdrop { position: absolute; inset: 0; background: rgba(3,1,8,.88); backdrop-filter: blur(13px); animation: loot-viewer-fade .2s ease both; }
.loot-photo-viewer-panel { position: relative; z-index: 1; display: grid; width: min(94vw, 880px); max-height: 92vh; overflow: hidden; border: 1px solid rgba(213,137,255,.42); border-radius: 24px; background: linear-gradient(145deg, rgba(28,10,45,.98), rgba(7,3,15,.99)); box-shadow: 0 34px 100px rgba(0,0,0,.7), 0 0 44px rgba(154,52,255,.2); animation: loot-viewer-rise .28s cubic-bezier(.2,.8,.2,1) both; }
.loot-photo-viewer-close { position: absolute; right: 14px; top: 14px; z-index: 3; display: grid; width: 40px; height: 40px; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.17); border-radius: 50%; color: #fff; background: rgba(9,3,17,.82); font: 300 28px/1 Arial,sans-serif; cursor: pointer; backdrop-filter: blur(8px); }
.loot-photo-viewer-close:hover, .loot-photo-viewer-close:focus-visible { border-color: rgba(255,213,109,.7); outline: none; background: rgba(94,34,132,.9); }
.loot-photo-viewer-stage { display: grid; min-height: 0; max-height: calc(92vh - 112px); place-items: center; overflow: auto; background: radial-gradient(circle at 50% 25%, rgba(146,50,212,.2), transparent 48%), #06020d; }
.loot-photo-viewer-stage img { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(92vh - 112px); object-fit: contain; }
.loot-photo-viewer-actions { display: flex; min-height: 112px; align-items: center; justify-content: space-between; gap: 22px; padding: 18px 22px; border-top: 1px solid rgba(255,255,255,.08); }
.loot-photo-viewer-actions small { color: #c679ff; font-size: 8px; font-weight: 900; letter-spacing: .17em; }
.loot-photo-viewer-actions h2 { margin: 4px 0 0; color: #fff; font-size: clamp(17px,2vw,23px); }
.loot-photo-viewer-actions p { margin: 4px 0 0; color: #91849d; font-size: 10px; }
.loot-photo-download { display: inline-flex; min-height: 42px; flex: 0 0 auto; align-items: center; justify-content: center; padding: 10px 16px; border: 1px solid rgba(255,218,109,.48); border-radius: 12px; color: #1a0d00; background: linear-gradient(135deg,#ffe690,#ffbd3e); box-shadow: 0 10px 28px rgba(255,179,42,.17); font-size: 11px; font-weight: 950; text-decoration: none; }
.loot-photo-download:hover, .loot-photo-download:focus-visible { color: #120700; outline: none; filter: brightness(1.08); transform: translateY(-1px); }
@keyframes loot-viewer-fade { from { opacity: 0; } }
@keyframes loot-viewer-rise { from { opacity: 0; transform: translateY(18px) scale(.98); } }

footer { border-top: 1px solid rgba(170,109,255,.14); background: #070311; }
.footer-row { display: flex; min-height: 82px; align-items: center; justify-content: space-between; gap: 20px; color: #8f839c; font-size: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: #fff; }

@keyframes lootFloat { 50% { transform: translateY(-10px) rotate(3deg); } }
@keyframes lootLoading { 50% { filter: drop-shadow(0 0 32px rgba(255,190,37,.42)); transform: translateY(-7px) scale(1.025); } }
@keyframes lootReveal { from { opacity: .2; transform: scale(.82) rotateY(90deg); } to { opacity: 1; transform: scale(1) rotateY(0); } }
@keyframes lootChestShake { 0%,100% { transform: translateX(0) rotate(0); } 20% { transform: translateX(-5px) rotate(-2deg); } 40% { transform: translateX(5px) rotate(2deg); } 60% { transform: translateX(-3px) rotate(-1deg); } 80% { transform: translateX(3px) rotate(1deg); } }
@keyframes lootChestOpen { 0% { opacity: .45; transform: scale(.82) translateY(9px); filter: brightness(1); } 45% { opacity: 1; transform: scale(1.18) translateY(-7px); filter: brightness(1.8); } 100% { transform: scale(1) translateY(0); filter: drop-shadow(0 0 20px rgba(255,200,41,.58)); } }
@keyframes lootRewardPop { 0% { opacity: 0; transform: translateY(20px) scale(.2) rotate(-20deg); } 60% { opacity: 1; transform: translateY(-8px) scale(1.3) rotate(8deg); } 100% { opacity: 1; transform: none; } }
@keyframes lootBurst { 0% { opacity: 0; transform: scale(.1); } 35% { opacity: 1; } 100% { opacity: 0; transform: scale(3.5); } }
@keyframes lootTileReveal { 45% { transform: translateY(-5px) scale(1.04); } }

@media (max-width: 1250px) {
  body { padding-top: 148px; }
  header .nav { flex-wrap: wrap; gap: 7px 14px; }
  .desktop-nav { order: 3; width: 100%; justify-content: flex-start; overflow-x: auto; padding-bottom: 2px; }
}
@media (max-width: 900px) {
  .loot-layout { grid-template-columns: 1fr; }
  .loot-coin-art { width: 150px; }
  .loot-hero { padding: 55px 0 35px; }
}
@media (max-width: 650px) {
  body { padding-top: 139px; }
  body > header { top: 8px; width: calc(100% - 16px); border-radius: 20px; }
  header .nav { padding: 9px 11px; }
  .brand { font-size: 16px; }
  .brand img { width: 34px; height: 34px; }
  .nav-actions .btn { min-height: 38px; padding: 0 10px; font-size: 11px; }
  .desktop-nav { gap: 2px; }
  .desktop-nav a { padding: 6px 8px; font-size: 11px; }
  .container { width: min(calc(100% - 22px), var(--max)); }
  .loot-hero-inner { align-items: flex-start; }
  .loot-coin-art { width: 95px; }
  .loot-hero h1 { font-size: clamp(40px, 13vw, 62px); }
  .loot-hero p:not(.eyebrow) { font-size: 15px; }
  .loot-console { padding: 15px; border-radius: 18px; }
  .loot-console-head { align-items: flex-start; flex-direction: column; }
  .loot-loading { min-height: 190px; flex-direction: column; text-align: center; }
  .loot-loading img { width: 115px; }
  .loot-login { grid-template-columns: 1fr; text-align: center; }
  .loot-primary { width: 100%; }
  .loot-hud { grid-template-columns: repeat(2, 1fr); }
  .loot-grid { gap: 7px; }
  .loot-tile { min-height: 112px; border-radius: 13px; }
  .loot-chest-stage { height: 80px; }
  .loot-chest-image { width: min(92px, 100%); height: 80px; }
  .loot-chest-number { right: 1px; bottom: 0; }
  .loot-reward-icon { right: 0; top: 0; width: 26px; height: 26px; font-size: 14px; }
  .loot-message { align-items: center; flex-direction: column; gap: 1px; }
  .loot-card-grid { gap: 4px; }
  .loot-photo-card { border-radius: 8px; }
  .loot-photo-card figcaption span { display: none; }
  .loot-photo-viewer { padding: 10px; }
  .loot-photo-viewer-panel { width: 100%; max-height: 95vh; border-radius: 18px; }
  .loot-photo-viewer-stage { max-height: calc(95vh - 142px); }
  .loot-photo-viewer-stage img { max-height: calc(95vh - 142px); }
  .loot-photo-viewer-actions { min-height: 132px; align-items: stretch; flex-direction: column; gap: 12px; padding: 15px; }
  .loot-photo-download { width: 100%; }
  .footer-row { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .loot-coin-art, .loot-loading img, .loot-tile, .loot-tile::before, .loot-chest-image, .loot-reward-icon, .loot-burst, .loot-photo-viewer-backdrop, .loot-photo-viewer-panel { animation: none !important; transition: none !important; }
}
