:root {
  --bg: #0a0a1f;
  --bg2: #13102e;
  --panel: #15123a;
  --panel2: #1c1850;
  --green: #42ffb0;
  --gold: #ffd24d;
  --purple: #c06bff;
  --cyan: #3ef2ff;
  --pink: #ff4ddb;
  --red: #ff5470;
  --text: #eef0ff;
  --muted: #9aa0c8;
  --line: #2a2860;
  --glass: rgba(255, 255, 255, .06);
  --glass-brd: rgba(255, 255, 255, .12);
  --shadow: 0 20px 60px rgba(0, 0, 0, .55);
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  background: #05050f;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  display: grid;
  place-items: center;
  overflow: hidden;
  user-select: none;
  position: fixed;
  inset: 0;
  overscroll-behavior: none;
  touch-action: manipulation;
}

.phone {
  position: relative;
  width: min(440px, 100vw);
  height: min(940px, 100dvh);
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% -10%, #241a52 0%, transparent 55%),
    radial-gradient(120% 80% at 50% 110%, #2a0f44 0%, transparent 55%),
    linear-gradient(160deg, var(--bg), var(--bg2));
  display: flex;
  flex-direction: column;
}
@media (min-width: 480px) {
  .phone {
    border-radius: 44px;
    height: min(920px, 96dvh);
    box-shadow: var(--shadow), 0 0 0 10px #0d0d1c, 0 0 0 12px #1c1c33;
  }
}

.aurora, .stars { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.aurora {
  background:
    radial-gradient(40% 30% at 20% 20%, rgba(62, 242, 255, .12), transparent 70%),
    radial-gradient(40% 30% at 85% 30%, rgba(255, 77, 219, .14), transparent 70%),
    radial-gradient(50% 40% at 50% 100%, rgba(192, 107, 255, .12), transparent 70%);
  animation: drift 16s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: translateY(-2%) scale(1.05); } to { transform: translateY(2%) scale(1); } }
.stars::before, .stars::after {
  content: ""; position: absolute; inset: -50%;
  background-image:
    radial-gradient(1.5px 1.5px at 20px 30px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 120px 80px, rgba(255, 255, 255, .7), transparent),
    radial-gradient(1px 1px at 200px 160px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 300px 50px, rgba(190, 220, 255, .8), transparent),
    radial-gradient(1px 1px at 80px 220px, #fff, transparent);
  background-size: 340px 300px; opacity: .5; animation: twinkle 6s linear infinite;
}
.stars::after { background-size: 240px 220px; opacity: .25; animation-duration: 9s; }
@keyframes twinkle { from { transform: translateY(0); } to { transform: translateY(-300px); } }
.phone[data-quality="lo"] .aurora { animation: none; }
.phone[data-quality="lo"] .stars::before, .phone[data-quality="lo"] .stars::after { animation: none; }
.phone[data-quality="lo"] .agent-svg { animation: none !important; }
#fx { position: absolute; inset: 0; pointer-events: none; z-index: 60; }

#dashfoot {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; gap: 10px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(10, 10, 31, 0), rgba(8, 7, 22, .82) 38%);
  backdrop-filter: blur(4px);
}
#dashfoot[hidden] { display: none; }

#city {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  width: 100%; height: 100%;
  opacity: 0; transition: opacity .6s ease; display: block;
}
#city.active { opacity: 1; }

#app {
  position: relative; z-index: 2;
  flex: 1; min-height: 0;
  display: flex; flex-direction: column;
  overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 24px;
}
#app::-webkit-scrollbar { width: 0; }
.boot { text-align: center; margin: auto; color: var(--muted); letter-spacing: .2em; text-transform: uppercase; }

.topbar {
  display: flex; align-items: center; gap: 10px; padding: 16px 16px 10px;
  position: sticky; top: 0; z-index: 20;
  background: linear-gradient(180deg, rgba(10, 10, 31, .92), rgba(10, 10, 31, .55));
  backdrop-filter: blur(10px);
}
.brand { font-weight: 800; letter-spacing: .06em; font-size: 17px;
  background: linear-gradient(90deg, var(--cyan), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand small { color: var(--muted); -webkit-text-fill-color: var(--muted); font-weight: 600; font-size: 9px; display: block; letter-spacing: .18em; }
.brandrow { display: flex; align-items: center; gap: 9px; }
.brand-mark { width: 34px; height: 34px; flex: none; display: block; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .45)); }
.brand-mark.big { width: 88px; height: 88px; margin: 0 auto 8px; }
.spacer { flex: 1; }
.sndtoggle { background: var(--glass); border: 1px solid var(--glass-brd); border-radius: 999px; padding: 6px 9px; font-size: 14px; box-shadow: none; margin-right: 8px; }

.balances { display: flex; gap: 7px; }
.bal { background: var(--glass); border: 1px solid var(--glass-brd); border-radius: 999px; padding: 6px 11px; text-align: center; backdrop-filter: blur(8px); }
.bal .v { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 13px; line-height: 1; }
.bal .k { font-size: 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; margin-top: 2px; }
.bal.entries .v { color: var(--gold); }
.bal.power .v { color: var(--green); }
.bal.cores .v { color: var(--cyan); }

.wrap { padding: 16px; }
h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .18em; color: var(--muted); margin: 18px 2px 12px; }

.panel { background: var(--glass); border: 1px solid var(--glass-brd); border-radius: 22px; padding: 16px; backdrop-filter: blur(14px); box-shadow: var(--shadow); }
.glow { box-shadow: var(--shadow), 0 0 40px -16px rgba(62, 242, 255, .5); }

button {
  position: relative; font: inherit; cursor: pointer; border: none; border-radius: 16px;
  padding: 14px 18px; font-weight: 800; letter-spacing: .3px; color: #08081a; overflow: hidden;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  box-shadow: 0 10px 30px rgba(255, 77, 219, .3);
  transition: transform .1s ease, filter .15s ease;
}
button:active { transform: scale(.96); }
button:disabled { filter: grayscale(.5) brightness(.7); cursor: not-allowed; }
button.ghost { background: var(--glass); color: var(--text); border: 1px solid var(--glass-brd); box-shadow: none; backdrop-filter: blur(8px); }
button.gold { background: linear-gradient(90deg, var(--gold), #ff9d3d); color: #08081a; box-shadow: 0 10px 28px rgba(255, 157, 61, .38); }
button.green { background: linear-gradient(90deg, var(--green), #2bd6ff); box-shadow: 0 10px 28px rgba(66, 255, 176, .32); }
button.purple { background: linear-gradient(90deg, var(--purple), var(--pink)); color: #fff; }
button.solid { background: #181440; color: var(--text); border: 1px solid var(--glass-brd); box-shadow: none; }
button.wide { width: 100%; }
.btn-ripple { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .5); transform: translate(-50%, -50%); pointer-events: none; animation: ripple .6s ease-out forwards; }
@keyframes ripple { from { width: 0; height: 0; opacity: .6; } to { width: 420px; height: 420px; opacity: 0; } }
.row { display: flex; gap: 10px; align-items: center; }

input { font: inherit; width: 100%; padding: 13px 15px; border-radius: 14px; border: 1px solid var(--glass-brd); background: rgba(0, 0, 0, .25); color: var(--text); }
label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; display: block; margin: 12px 0 6px; }

.login { padding: 28px 22px; margin: auto 0; }
.hero-agent { display: flex; justify-content: center; margin: 8px 0 18px; }
.hero-agent .agent-svg { animation: floaty 3.4s ease-in-out infinite; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .5)); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.center { text-align: center; }
.muted { color: var(--muted); font-size: 12px; line-height: 1.55; }

.agentcard { display: flex; gap: 16px; align-items: center; position: relative; margin-top: 30px; }
.agentcard .avatar { position: relative; }
.agentcard .avatar .agent-svg { animation: floaty 3.4s ease-in-out infinite; }
.bubble {
  position: absolute; top: 0; left: 18px;
  max-width: 200px; background: var(--panel2); border: 1px solid var(--glass-brd); backdrop-filter: blur(10px);
  border-radius: 14px; padding: 9px 12px; font-size: 11px; line-height: 1.35; color: var(--text);
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .35s ease, transform .35s ease; z-index: 6;
  transform: translateY(-8px) scale(.92);
}
.bubble.show { opacity: 1; transform: translateY(-100%) scale(1); }
.bubble::after { content: ""; position: absolute; bottom: -7px; left: 26px; width: 12px; height: 12px;
  background: var(--panel2); border-right: 1px solid var(--glass-brd); border-bottom: 1px solid var(--glass-brd); transform: rotate(45deg); }
.agentcard .meta { flex: 1; }
.agentcard h3 { font-size: 22px; }
.rarity { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; margin-top: 5px; }
.rarity.common { background: #3a3a5a; color: #cfd2ee; }
.rarity.uncommon { background: #1e5a3a; color: var(--green); }
.rarity.rare { background: #1e3a6a; color: var(--cyan); }
.rarity.epic { background: #4a1e6a; color: var(--purple); box-shadow: 0 0 16px rgba(192, 107, 255, .5); }
.rarity.legendary { background: linear-gradient(90deg, var(--gold), var(--pink)); color: #2a0a1a; box-shadow: 0 0 18px rgba(255, 210, 77, .6); }
.xpbar { height: 9px; background: rgba(0, 0, 0, .35); border-radius: 999px; overflow: hidden; margin-top: 10px; border: 1px solid var(--glass-brd); }
.xpbar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--cyan)); transition: width .6s cubic-bezier(.2, .9, .25, 1); }
.skills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.skill { font-size: 10px; background: rgba(0, 0, 0, .25); border: 1px solid var(--glass-brd); border-radius: 8px; padding: 4px 8px; color: var(--muted); }
.skill b { color: var(--green); }

/* Featured game: one full-width hero card above the grid of the rest. */
.gamefeature {
  position: relative; border-radius: 22px; overflow: hidden; cursor: pointer;
  border: 1px solid var(--glass-brd);
  background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
  display: flex; flex-direction: column; aspect-ratio: 1.9; margin-bottom: 18px;
  transition: transform .12s ease, border-color .2s;
}
.gamefeature:active { transform: scale(.985); }
.gamefeature .tglow { position: absolute; inset: 0; opacity: .65; pointer-events: none;
  background: radial-gradient(70% 70% at 75% 10%, var(--tg, var(--cyan)), transparent 70%); }
.gamefeature canvas { width: 100%; flex: 1 1 auto; min-height: 0; position: relative; }
.gamefeature .feat-meta { position: relative; padding: 0 18px 16px; }
.gamefeature .feat-tag { display: inline-block; font-size: 9px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: #2a0a1a; background: linear-gradient(90deg, var(--gold), var(--pink));
  padding: 3px 9px; border-radius: 999px; margin-bottom: 7px; }
.gamefeature .gname { font-weight: 800; font-size: 22px; }
.gamefeature .gtype { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; }
.gamefeature .jp { position: absolute; top: 12px; right: 12px; font-size: 9px; font-weight: 800; color: #2a0a1a;
  background: linear-gradient(90deg, var(--gold), var(--pink)); padding: 4px 9px; border-radius: 999px; letter-spacing: .1em; z-index: 2; }

.games-subhead { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .16em; margin: 0 0 10px; }
.games-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.gametile {
  position: relative; border-radius: 20px; padding: 16px 14px; overflow: hidden;
  border: 1px solid var(--glass-brd);
  background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
  aspect-ratio: 1.08; display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .12s ease, border-color .2s; cursor: pointer;
}
.gametile:active { transform: scale(.96); }
.gametile .tglow { position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background: radial-gradient(60% 50% at 80% 0%, var(--tg, var(--cyan)), transparent 70%); }
.gametile .gname { font-weight: 800; font-size: 16px; position: relative; }
.gametile .gtype { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; position: relative; }
.gametile .jp { position: absolute; top: 10px; right: 10px; font-size: 8px; font-weight: 800; color: #2a0a1a; background: linear-gradient(90deg, var(--gold), var(--pink)); padding: 3px 7px; border-radius: 999px; letter-spacing: .1em; z-index: 2; }
.gametile canvas { width: 100%; height: 60px; position: relative; }

.gamehost canvas { width: 100%; border-radius: 16px; background: #07061a; border: 1px solid rgba(255, 255, 255, .07); display: block; box-shadow: inset 0 6px 18px rgba(0, 0, 0, .6); touch-action: none; }
.jackpot-ticker { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 4px 0 12px; padding: 10px;
  border-radius: 14px; border: 1px solid rgba(255, 210, 77, .4);
  background: linear-gradient(90deg, rgba(255, 210, 77, .12), rgba(255, 77, 219, .12));
  box-shadow: 0 0 24px -8px rgba(255, 210, 77, .6); }
.jackpot-ticker .jl { font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--gold); }
.jackpot-ticker .jv { font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; color: var(--gold);
  text-shadow: 0 0 18px rgba(255, 210, 77, .6); }
.bet { display: flex; gap: 8px; align-items: center; margin: 14px 0; }
.bet .chip { padding: 9px 13px; border-radius: 12px; background: var(--glass); border: 1px solid var(--glass-brd); font-weight: 800; color: var(--text); transition: transform .1s; }
.bet .chip:active { transform: scale(.94); }
.bet .chip.active { background: linear-gradient(90deg, var(--green), var(--cyan)); color: #051018; border-color: transparent; }
/* Multiplier row: scales the chosen entry amount. Smaller chips + gold accent so
   it reads as a distinct control from the entry-amount chips above it. */
.bet.multrow { margin-top: 0; }
.bet.multrow .multlbl { font-weight: 900; color: var(--muted); font-size: 15px; }
.bet .chip.mult { padding: 6px 11px; font-size: 13px; }
.bet .chip.mult.active { background: linear-gradient(90deg, var(--gold), #ffb347); color: #1a1205; }
.result { text-align: center; font-size: 26px; font-weight: 900; min-height: 36px; margin: 10px 0; font-variant-numeric: tabular-nums; letter-spacing: .5px; opacity: 0; transition: opacity .25s; }
.result.show { opacity: 1; }
.result.win { color: var(--green); text-shadow: 0 0 24px rgba(66, 255, 176, .6); }
.result.lose { color: var(--muted); }
.result.jackpot { color: var(--gold); text-shadow: 0 0 30px rgba(255, 210, 77, .85); animation: jppulse .5s ease; }
@keyframes jppulse { 0% { transform: scale(.6); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
.backbtn { background: var(--glass); border: 1px solid var(--glass-brd); color: var(--text); padding: 9px 13px; font-weight: 700; font-size: 14px; box-shadow: none; border-radius: 12px; }

.toast { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--panel2); border: 1px solid var(--glass-brd); padding: 11px 16px; border-radius: 14px; font-size: 13px; z-index: 70; opacity: 0; transition: opacity .2s; max-width: 88%; text-align: center; backdrop-filter: blur(8px); }
.toast.show { opacity: 1; }

a { color: var(--cyan); }

.opp-carousel { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x mandatory; }
.opp-carousel::-webkit-scrollbar { height: 0; }
.opp-empty { width: 100%; text-align: center; padding: 24px 8px; border: 1px dashed var(--glass-brd); border-radius: 16px; }
.opp-card { position: relative; flex: 0 0 132px; scroll-snap-align: start; border-radius: 18px; padding: 12px 10px 12px;
  border: 1px solid var(--glass-brd); background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
  display: flex; flex-direction: column; align-items: center; gap: 6px; }
.opp-art { width: 88px; height: 88px; }
.opp-art .agent-svg { animation: floaty 3.4s ease-in-out infinite; }
.opp-rar { font-size: 9px; padding: 2px 7px; }
.opp-lvl { font-size: 11px; color: var(--muted); }
.opp-stake { font-weight: 900; color: var(--gold); font-size: 16px; font-variant-numeric: tabular-nums; text-shadow: 0 0 14px rgba(255, 210, 77, .5); }
.opp-fight { width: 100%; padding: 9px; font-size: 13px; border-radius: 12px; }

.cutscene { position: absolute; inset: 0; background: #04040f; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; padding: 28px; }
.cutscene p { max-width: 320px; color: var(--text); font-size: 18px; line-height: 1.6; }
.cutscene .hero-agent .agent-svg { animation: floaty 3s ease-in-out infinite, breathe 3s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { filter: drop-shadow(0 0 8px rgba(62, 242, 255, .3)); } 50% { filter: drop-shadow(0 0 26px rgba(62, 242, 255, .7)); } }
.skip { position: absolute; top: 18px; right: 18px; padding: 8px 14px; font-size: 13px; }

.sheet-back { position: absolute; inset: 0; background: rgba(4, 4, 15, .55); backdrop-filter: blur(4px); z-index: 90; display: flex; align-items: flex-end; animation: fadein .15s ease; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.sheet { width: 100%; background: linear-gradient(180deg, var(--panel2), #120f30); border-top: 1px solid var(--glass-brd); border-radius: 24px 24px 0 0; padding: 12px 18px 26px; box-shadow: 0 -20px 60px rgba(0, 0, 0, .6); animation: sheetup .25s cubic-bezier(.2, .9, .25, 1); }
@keyframes sheetup { from { transform: translateY(100%); } to { transform: translateY(0); } }
.sheet-grip { width: 42px; height: 4px; border-radius: 999px; background: var(--glass-brd); margin: 4px auto 10px; }
.set-row { display: flex; align-items: center; gap: 12px; }
.set-row > div:first-child { flex: 1; }
.set-label { font-weight: 700; font-size: 14px; }
.seg { display: flex; gap: 6px; margin-top: 10px; background: rgba(0, 0, 0, .25); padding: 4px; border-radius: 12px; border: 1px solid var(--glass-brd); }
.seg-item { flex: 1; padding: 9px 6px; font-size: 13px; font-weight: 700; border-radius: 9px; background: transparent; color: var(--muted); box-shadow: none; }
.seg-item.active { background: linear-gradient(90deg, var(--green), var(--cyan)); color: #051018; }
.switch { width: 50px; height: 28px; border-radius: 999px; background: rgba(0, 0, 0, .35); border: 1px solid var(--glass-brd); padding: 0; position: relative; box-shadow: none; flex: 0 0 auto; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--muted); transition: transform .18s ease, background .18s ease; }
.switch.on { background: linear-gradient(90deg, var(--green), var(--cyan)); border-color: transparent; }
.switch.on::after { transform: translateX(22px); background: #051018; }

.help-list { display: flex; flex-direction: column; gap: 12px; }
.help-step { padding: 14px; }
.help-head { display: flex; gap: 12px; align-items: center; }
.help-ic { font-size: 24px; flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center;
  background: rgba(0, 0, 0, .25); border: 1px solid var(--glass-brd); border-radius: 12px; }
.help-title { font-weight: 800; font-size: 15px; }
.help-step img { width: 100%; max-width: 220px; display: block; margin: 12px auto 0; border-radius: 14px; border: 1px solid var(--glass-brd); }

.egg-wrap { position: relative; width: 230px; height: 250px; display: grid; place-items: center; margin: 8px auto 2px; }
.egg-glow { position: absolute; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(62, 242, 255, .35), transparent 60%); filter: blur(10px); animation: eggbreathe 3s ease-in-out infinite; }
@keyframes eggbreathe { 0%, 100% { transform: scale(.9); opacity: .6; } 50% { transform: scale(1.08); opacity: 1; } }
.egg { position: relative; z-index: 2; width: 168px; height: 212px; cursor: pointer; animation: bob 3.2s ease-in-out infinite; }
.egg svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .5)); }
.crack { opacity: 0; transition: opacity .25s; }
.egg.cracked .crack { opacity: 1; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-12px) rotate(2deg); } }
.egg.shake { animation: eggshake .12s linear infinite; }
@keyframes eggshake { 0% { transform: translate(0, 0) rotate(0); } 25% { transform: translate(-5px, 2px) rotate(-3deg); } 50% { transform: translate(4px, -3px) rotate(2deg); } 75% { transform: translate(-3px, 1px) rotate(-1deg); } }
.tap-hint { margin-top: 12px; font-size: 13px; color: var(--muted); letter-spacing: .12em; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }

.shop-preview { display: flex; gap: 16px; align-items: center; margin-bottom: 6px; }
.shop-preview .avatar { flex: 0 0 auto; }
.shop-preview .avatar .agent-svg { animation: floaty 3.4s ease-in-out infinite; }
.shop-preview .pmeta { flex: 1; }
.shop-preview .pmeta h3 { font-size: 18px; }
.shop-preview .pmeta .muted { margin-top: 4px; }
.cos-cores { display: inline-flex; align-items: center; gap: 6px; font-weight: 900; color: var(--cyan); font-variant-numeric: tabular-nums; }

.slotseg { display: flex; gap: 6px; margin: 6px 0 14px; background: rgba(0, 0, 0, .25); padding: 4px; border-radius: 12px; border: 1px solid var(--glass-brd); }
.slotseg button { flex: 1; padding: 9px 6px; font-size: 12px; font-weight: 800; letter-spacing: .06em; border-radius: 9px; background: transparent; color: var(--muted); box-shadow: none; text-transform: uppercase; }
.slotseg button.active { background: linear-gradient(90deg, var(--purple), var(--pink)); color: #fff; }

.shop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cos-card {
  position: relative; border-radius: 18px; padding: 12px; overflow: hidden;
  border: 1px solid var(--glass-brd); background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025));
  display: flex; flex-direction: column; gap: 8px; transition: border-color .2s, transform .12s;
}
.cos-card.equipped { border-color: var(--cyan); box-shadow: 0 0 22px -8px var(--cyan); }
.cos-card .cos-art { height: 96px; display: grid; place-items: center; border-radius: 12px; background: radial-gradient(60% 60% at 50% 40%, rgba(192, 107, 255, .18), transparent 70%); }
.cos-card .cos-art svg { filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .5)); }
.cos-name { font-weight: 800; font-size: 13px; line-height: 1.2; }
.cos-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cos-card .rarity { margin: 0; }
.cos-buy { width: 100%; padding: 10px; font-size: 13px; border-radius: 12px; }
.cos-buy.owned { background: var(--glass); color: var(--text); border: 1px solid var(--glass-brd); box-shadow: none; }
.cos-buy.on { background: linear-gradient(90deg, var(--cyan), var(--green)); color: #051018; }
.cos-tag { position: absolute; top: 10px; right: 10px; font-size: 8px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; padding: 3px 7px; border-radius: 999px; background: var(--cyan); color: #051018; z-index: 2; }

.pu3d { position: absolute; inset: 0; z-index: 80; opacity: 0; transition: opacity .28s ease;
  background: radial-gradient(120% 90% at 50% 28%, #181034, #08060f 80%); }
.pu3d.show { opacity: var(--pu-fade, 1); }
.pu3d-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pu3d-cap { position: absolute; top: 7%; left: 0; right: 0; text-align: center; pointer-events: none; }
.pu3d-title { font-weight: 800; font-size: 15px; letter-spacing: .05em; text-transform: uppercase; color: #cdd6ff; text-shadow: 0 2px 12px rgba(0,0,0,.7); }
.pu3d-count { margin-top: 8px; font-weight: 900; font-size: 30px; color: var(--gold); font-variant-numeric: tabular-nums; text-shadow: 0 0 18px rgba(255,210,77,.5); }
.pu3d-skip { position: absolute; bottom: 18px; right: 16px; padding: 7px 15px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28); background: rgba(0,0,0,.4); color: #fff; font-weight: 700; font-size: 13px;
  box-shadow: none; backdrop-filter: blur(6px); }
.pu3d-skip:hover { background: rgba(0,0,0,.6); }

/* On-load player disclaimer gate (gold-framed, sweepstakes-style). */
.disclaimer { position: absolute; inset: 0; z-index: 200; display: flex; flex-direction: column;
  background: radial-gradient(120% 90% at 50% 0%, rgba(40,20,5,.96), rgba(6,6,15,.98)); padding: 16px;
  overflow-y: auto; -webkit-overflow-scrolling: touch; }
.disclaimer .disc-titlebar { align-self: center; margin: 4px 0 14px; padding: 8px 26px; border-radius: 12px;
  font-weight: 900; font-size: 15px; letter-spacing: .12em; color: #2a1400; text-align: center;
  background: linear-gradient(180deg, #ffe27a, var(--gold)); border: 1px solid #fff3c0;
  box-shadow: 0 4px 18px rgba(255,210,77,.35); text-transform: uppercase; }
.disclaimer .disc-panel { flex: 1; border: 1px solid rgba(255,210,77,.5); border-radius: 16px;
  background: rgba(0,0,0,.45); padding: 18px 16px; backdrop-filter: blur(4px); }
.disclaimer .disc-lead { text-align: center; font-weight: 800; font-size: 15px; margin: 0 0 14px; color: var(--text); }
.disclaimer .disc-lead b { color: var(--red); }
.disclaimer .disc-h { font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin: 0 0 8px; }
.disclaimer .disc-body { color: #cfd6f5; font-size: 13px; line-height: 1.55; }
.disclaimer .disc-body li { margin: 7px 0; }
.disclaimer .disc-body .hl { color: var(--gold); }
.disclaimer .disc-body a { color: var(--cyan); text-decoration: none; }
.disclaimer .disc-actions { display: flex; gap: 12px; padding: 14px 2px 6px; }
.disclaimer .disc-btn { flex: 1; padding: 15px 10px; border-radius: 14px; font-weight: 900; font-size: 17px;
  color: #2a1400; cursor: pointer; border: 1px solid #fff3c0;
  background: linear-gradient(180deg, #ffe27a, var(--gold)); box-shadow: 0 5px 16px rgba(255,210,77,.3); }
.disclaimer .disc-btn.ghost { color: #ffe9b0; background: rgba(255,210,77,.08); border-color: rgba(255,210,77,.45); box-shadow: none; }
.disclaimer .disc-btn:active { transform: scale(.97); }
.disclaimer .disc-blocked { margin: auto; text-align: center; color: var(--muted); font-size: 15px; line-height: 1.6; padding: 24px; }
