/* Dolly CTRL v2 — "liquid glass". Clean, rounded, glowing; every colour comes from 5 variables each viewer can change:
   --c1 main neon · --c2 second neon · --c3 highlight · --bg background · --tx text.
   PERF: only transform / opacity animate; the background orbs are 3 layers on the compositor; blur is limited to the
   big glass surfaces; Calm mode drops the blur. NO ZOOM / NO DRIFT: html + body are fixed, only #view scrolls (vertically),
   nothing is wider than the screen, every input is ≥ 16 px. */
@font-face { font-family: 'Outfit'; src: url('/fonts/outfit-latin-wght-normal.woff2') format('woff2-variations'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Outfit'; src: url('/fonts/outfit-latin-ext-wght-normal.woff2') format('woff2-variations'); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Unbounded'; src: url('/fonts/unbounded-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Unbounded'; src: url('/fonts/unbounded-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Unbounded'; src: url('/fonts/unbounded-latin-800-normal.woff2') format('woff2'); font-weight: 800; font-display: swap; }

:root {
  --c1: #B44DFF; --c2: #FF3DA5; --c3: #3BE8FF; --bg: #0B0814; --tx: #F6F2FF;
  --ok: #3DDC97; --bad: #FF4D6D; --warn: #FFB547; --hot: #FF3D5E;
  --mut: color-mix(in srgb, var(--tx) 60%, transparent);
  --faint: color-mix(in srgb, var(--tx) 36%, transparent);
  --line: color-mix(in srgb, var(--tx) 10%, transparent);
  --line2: color-mix(in srgb, var(--tx) 18%, transparent);
  --c1a: color-mix(in srgb, var(--c1) 22%, transparent);
  --c2a: color-mix(in srgb, var(--c2) 22%, transparent);
  --c3a: color-mix(in srgb, var(--c3) 20%, transparent);
  --grad: linear-gradient(125deg, var(--c1), var(--c2));
  --grad3: linear-gradient(125deg, var(--c1), var(--c2) 55%, var(--c3));
  --f: 'Outfit', 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', system-ui, sans-serif;
  --fd: 'Unbounded', 'Outfit', 'Apple SD Gothic Neo', 'Noto Sans KR', system-ui, sans-serif;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px);
  --toph: 64px; --navh: 68px;
  --ease: cubic-bezier(.22, .9, .24, 1);
  --spring: cubic-bezier(.3, 1.45, .45, 1);
  --glass-bg: linear-gradient(150deg, color-mix(in srgb, var(--tx) 12%, transparent), color-mix(in srgb, var(--tx) 4%, transparent) 55%, color-mix(in srgb, var(--tx) 7%, transparent));
  --glass-edge: inset 0 1px 0 color-mix(in srgb, #fff 26%, transparent), inset 0 0 0 1px color-mix(in srgb, #fff 9%, transparent), inset 0 -1px 0 color-mix(in srgb, #fff 4%, transparent);
  --glass-blur: blur(22px) saturate(175%);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; width: 100%; overflow: hidden; position: fixed; inset: 0; overscroll-behavior: none; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; touch-action: manipulation; }
body { background: var(--bg); color: var(--tx); font: 400 15px/1.45 var(--f); -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
button, input, textarea, select { font: inherit; color: inherit; }
input, textarea { font-size: 16px; user-select: text; -webkit-user-select: text; }
button { cursor: pointer; border: 0; background: none; padding: 0; touch-action: manipulation; }
a { color: inherit; }
img { -webkit-user-drag: none; user-select: none; }
svg { fill: currentColor; }
.hide { display: none !important; }
.num { font-family: var(--fd); font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }

/* ───────── background: soft colour orbs drifting + a faint giant logo ───────── */
#bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: var(--bg); }
#bg .orb { position: absolute; width: 90vmax; height: 90vmax; border-radius: 50%; filter: blur(70px); opacity: .42; will-change: transform; }
#bg .o1 { background: radial-gradient(circle, var(--c1), transparent 62%); left: -45vmax; top: -40vmax; animation: drift1 26s ease-in-out infinite alternate; }
#bg .o2 { background: radial-gradient(circle, var(--c2), transparent 62%); right: -50vmax; top: 10vh; opacity: .3; animation: drift2 32s ease-in-out infinite alternate; }
#bg .o3 { background: radial-gradient(circle, var(--c3), transparent 62%); left: -20vmax; bottom: -60vmax; opacity: .18; animation: drift3 38s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate3d(18vmax, 14vmax, 0) scale(1.1); } }
@keyframes drift2 { to { transform: translate3d(-16vmax, 20vmax, 0) scale(.9); } }
@keyframes drift3 { to { transform: translate3d(22vmax, -14vmax, 0) scale(1.15); } }
#bg .wm { position: absolute; right: -18vw; bottom: 10vh; width: 85vw; max-width: 620px; opacity: .045; transform: rotate(-12deg); color: var(--tx); }
#bg .wm .dlogo .cat, #bg .wm .dlogo .txt { fill: currentColor; }
#bg .grain { position: absolute; inset: 0; opacity: .5; background: radial-gradient(120% 80% at 50% 0%, transparent 40%, color-mix(in srgb, var(--bg) 80%, #000) 100%); }

/* ───────── liquid glass ───────── */
.glass { position: relative; isolation: isolate; border-radius: var(--r, 24px); background: var(--glass-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-edge), 0 18px 40px -22px #000c; overflow: hidden; transform: translateZ(0); }
/* the sheen: a soft band of light that slides as you scroll (--sp is set on #view while scrolling) */
.glass::before { content: ''; position: absolute; inset: -60% -80%; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 40%, color-mix(in srgb, #fff 9%, transparent) 48%, color-mix(in srgb, #fff 3%, transparent) 52%, transparent 60%);
  transform: translate3d(calc(var(--sp, 0) * 22%), calc(var(--sp, 0) * -6%), 0); transition: transform .5s var(--ease); }
/* the touch light: follows the finger, fades out after */
.glass::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: var(--gl, 0); transition: opacity .55s ease;
  background: radial-gradient(180px circle at var(--gx, 50%) var(--gy, 50%), color-mix(in srgb, var(--c1) 30%, color-mix(in srgb, #fff 22%, transparent)), transparent 65%); }
.lq { transition: transform .45s var(--spring); }
.lq.press { transform: scale(.965); transition: transform .12s ease-out; --gl: 1; }
.glass.lq.press::after { transition: opacity .1s; }

/* ───────── frame ───────── */
#app { position: fixed; inset: 0; z-index: 1; padding: 0 var(--sar) 0 var(--sal); }
#top { position: absolute; z-index: 6; left: 0; right: 0; top: 0; height: calc(var(--toph) + var(--sat)); padding: var(--sat) 16px 0; display: flex; align-items: center; gap: 10px; transition: background .3s; }
#top::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 70%, transparent), color-mix(in srgb, var(--bg) 35%, transparent)); -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%);
  box-shadow: 0 1px 0 var(--line); }
#top.scrolled::before { opacity: 1; }
.brand { display: flex; align-items: center; gap: 8px; min-width: 0; flex: none; }
.brand .dlogo { width: 56px; height: auto; display: block; filter: drop-shadow(0 4px 14px var(--c1a)); }
.brand .ctrl { font: 700 10px/1 var(--fd); letter-spacing: .28em; color: var(--mut); padding-left: 2px; }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.pts-pill { --r: 99px; display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px 0 6px; font-size: 14px; }
.pts-pill .gem { width: 26px; height: 26px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; box-shadow: 0 0 14px var(--c1a); }
.pts-pill .gem svg { width: 14px; height: 14px; color: #fff; }
.icon-btn { --r: 50%; width: 40px; height: 40px; display: grid; place-items: center; flex: none; }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn.strike { color: #fff; background: linear-gradient(140deg, var(--hot), color-mix(in srgb, var(--hot) 40%, var(--c2))); box-shadow: inset 0 1px 0 #fff5, 0 8px 22px -6px color-mix(in srgb, var(--hot) 70%, transparent); }
.av { display: block; width: 40px; height: 40px; border-radius: 50%; background: color-mix(in srgb, var(--tx) 12%, transparent) center / cover no-repeat; flex: none; overflow: hidden; box-shadow: 0 0 0 2px color-mix(in srgb, var(--bg) 60%, transparent), 0 0 0 3.5px var(--c1); }
.av.lg { width: 64px; height: 64px; }
.av.sm { width: 30px; height: 30px; box-shadow: none; }
.av.ini { display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--grad); }

#view { position: absolute; inset: 0; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
#view::-webkit-scrollbar { width: 0; }
.screen { padding: calc(var(--toph) + var(--sat) + 8px) 16px calc(var(--navh) + var(--sab) + 40px); max-width: 640px; margin: 0 auto; width: 100%; }
.screen.enter { animation: screenIn .5s var(--ease) both; }
@keyframes screenIn { from { opacity: 0; transform: translate3d(0, 14px, 0); } }

/* ───────── the tab bar: a glass bar with a notch, the active tab rides in a bubble ───────── */
#nav { position: absolute; z-index: 7; left: calc(12px + var(--sal)); right: calc(12px + var(--sar)); bottom: calc(10px + var(--sab)); height: var(--navh); }
#nav .bar { position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, color-mix(in srgb, var(--bg) 80%, var(--tx)) 88%, transparent), color-mix(in srgb, var(--bg) 92%, transparent)); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); }
#nav .bar-edge { position: absolute; inset: 0; pointer-events: none; }
#nav .bar-edge path { fill: none; stroke: color-mix(in srgb, #fff 22%, transparent); stroke-width: 1.2; }
#nav { filter: drop-shadow(0 16px 30px #000a); }
#nav .bubble { position: absolute; top: -24px; left: 0; width: 56px; height: 56px; margin-left: -28px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; will-change: transform;
  box-shadow: inset 0 2px 0 #fff6, inset 0 -6px 14px #0003, 0 10px 26px -6px color-mix(in srgb, var(--c1) 80%, transparent), 0 0 0 6px color-mix(in srgb, var(--bg) 0%, transparent); }
#nav .bubble svg { width: 24px; height: 24px; stroke: currentColor; transition: transform .35s var(--spring), opacity .2s; }
#nav .bubble.pop svg { transform: scale(.4); opacity: 0; transition: none; }
#nav .tabs { position: absolute; inset: 0; display: flex; }
#nav .tabs button { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--faint); position: relative; }
#nav .tabs button svg { width: 23px; height: 23px; stroke: currentColor; transition: transform .45s var(--spring), opacity .3s; }
#nav .tabs button span { font: 600 10.5px/1 var(--f); letter-spacing: .02em; transition: transform .45s var(--spring), color .3s; }
#nav .tabs button.on svg { opacity: 0; transform: translateY(-18px) scale(.6); }
#nav .tabs button.on span { color: var(--tx); transform: translateY(12px); }
#nav .tabs button:not(.on):active svg { transform: scale(.85); }
.nav-ic { fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tab-badge { position: absolute; top: 12px; left: calc(50% + 7px); width: 8px; height: 8px; border-radius: 50%; background: var(--hot); box-shadow: 0 0 0 2px var(--bg), 0 0 10px var(--hot); display: none; }
.tab-badge.on { display: block; }

/* ───────── type + building blocks ───────── */
.hi { color: var(--mut); font-size: 15px; margin: 6px 2px 0; }
.hi b { color: var(--tx); font-weight: 700; }
.title { font: 700 26px/1.1 var(--fd); letter-spacing: -.02em; margin: 2px 2px 0; }
.sec { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 28px 2px 12px; }
.sec h3 { margin: 0; font: 700 18px/1.1 var(--f); letter-spacing: -.01em; }
.sec .link { font: 600 13.5px/1 var(--f); color: var(--c3); }
.sub { color: var(--mut); font-size: 13.5px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 99px; font: 700 12px/1 var(--f); background: color-mix(in srgb, var(--tx) 12%, transparent); color: var(--tx); }
.pill.live { background: color-mix(in srgb, var(--hot) 22%, transparent); color: #fff; }
.pill.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--hot); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--hot) 70%, transparent); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border-radius: 99px;
  font: 700 15px/1 var(--f); letter-spacing: .01em; white-space: nowrap; color: var(--tx); background: var(--glass-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-edge); transition: transform .45s var(--spring), opacity .2s, filter .2s; }
.btn::after { content: ''; position: absolute; inset: 0; z-index: -1; opacity: var(--gl, 0); transition: opacity .5s; background: radial-gradient(120px circle at var(--gx, 50%) var(--gy, 50%), #fff5, transparent 65%); }
.btn.press { transform: scale(.94); transition: transform .1s ease-out; --gl: 1; }
.btn:disabled { opacity: .38; pointer-events: none; }
.btn.pri { background: var(--grad); color: #fff; box-shadow: inset 0 1px 0 #fff6, inset 0 -8px 16px #0002, 0 12px 28px -10px color-mix(in srgb, var(--c1) 85%, transparent); }
.btn.hot { background: linear-gradient(135deg, var(--hot), color-mix(in srgb, var(--hot) 45%, var(--c2))); color: #fff; box-shadow: inset 0 1px 0 #fff5, 0 12px 28px -12px var(--hot); }
.btn.light { background: color-mix(in srgb, #fff 92%, var(--c1)); color: #12101a; box-shadow: 0 10px 24px -12px #000; }
.btn.cy { color: var(--c3); }
.btn.wide { width: 100%; }
.btn.big { min-height: 58px; font-size: 16.5px; }
.btn.sm { min-height: 38px; padding: 0 15px; font-size: 13.5px; }
.btn .spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.row { display: flex; gap: 10px; align-items: center; } .row > * { min-width: 0; } .grow { flex: 1; }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; overscroll-behavior-x: contain; }
.chips::-webkit-scrollbar { display: none; }
.chip { --r: 99px; flex: none; height: 36px; padding: 0 15px; font: 600 13.5px/1 var(--f); color: var(--mut); display: inline-flex; align-items: center; gap: 7px; }
.chip.on { background: var(--tx); color: var(--bg); box-shadow: 0 8px 20px -10px var(--tx); }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--rc, currentColor); box-shadow: 0 0 8px var(--rc, transparent); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span { font: 600 13px/1 var(--f); color: var(--mut); padding-left: 4px; }
.inp { width: 100%; min-height: 54px; padding: 0 18px; border-radius: 18px; border: 0; outline: none; background: color-mix(in srgb, var(--tx) 8%, transparent); box-shadow: var(--glass-edge); transition: box-shadow .2s; }
.inp:focus { box-shadow: inset 0 0 0 1.5px var(--c1), 0 0 0 4px var(--c1a); }
textarea.inp { padding: 15px 18px; min-height: 108px; resize: none; line-height: 1.45; }
.empty { text-align: center; color: var(--mut); padding: 26px 14px; font-size: 14px; }
.empty .dlogo { width: 84px; margin: 0 auto 10px; display: block; opacity: .55; }
.empty b { display: block; font-size: 30px; margin-bottom: 6px; }

/* ───────── home ───────── */
.hero { position: relative; margin-top: 16px; border-radius: 30px; padding: 22px 20px 20px; min-height: 206px; isolation: isolate; overflow: visible;
  background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, #fff 18%, transparent), transparent 55%), var(--grad); box-shadow: inset 0 1px 0 #fff6, 0 26px 50px -26px color-mix(in srgb, var(--c2) 85%, transparent); }
.hero::after { content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1; opacity: .35; background: repeating-linear-gradient(115deg, #fff1 0 2px, transparent 2px 14px); mask-image: linear-gradient(90deg, #000, transparent 70%); -webkit-mask-image: linear-gradient(90deg, #000, transparent 70%); }
.hero .art { position: absolute; right: -6px; bottom: 0; height: 128%; max-height: 290px; width: auto; z-index: -1; pointer-events: none; filter: drop-shadow(0 10px 24px #0007); -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent); mask-image: linear-gradient(180deg, #000 82%, transparent); }
.hero .lbl { font: 600 13px/1 var(--f); color: #fffc; margin-top: 16px; }
.hero .big { font: 800 44px/1 var(--fd); color: #fff; letter-spacing: -.03em; margin-top: 8px; text-shadow: 0 4px 20px #0003; }
.hero .meta { color: #fffd; font-size: 13.5px; margin-top: 8px; max-width: 58%; }
.hero .btn { margin-top: 16px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.tile { --r: 22px; padding: 14px 12px 13px; text-align: left; display: flex; flex-direction: column; gap: 4px; min-height: 112px; }
.tile small { font: 600 12px/1.2 var(--f); color: var(--mut); }
.tile .v { font: 700 24px/1 var(--fd); letter-spacing: -.02em; margin-top: auto; }
.tile .v em { font: 600 12px/1 var(--f); font-style: normal; color: var(--faint); letter-spacing: 0; }
.tile .ic { width: 32px; height: 32px; border-radius: 11px; display: grid; place-items: center; font-size: 16px; background: var(--c1a); }
.ring { width: 34px; height: 34px; }
.ring circle { fill: none; stroke-width: 4; }
.ring .bgc { stroke: var(--line2); } .ring .fg { stroke: url(#ringg); stroke-linecap: round; transition: stroke-dashoffset 1s var(--ease); }
.pips { display: flex; gap: 4px; margin-top: 8px; } .pips i { flex: 1; height: 5px; border-radius: 99px; background: var(--line2); } .pips i.on { background: var(--hot); box-shadow: 0 0 8px var(--hot); }
.hscroll { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 4px 16px 14px; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; flex: none; }
.hscroll .cd { width: 128px; }
.now { --r: 26px; display: flex; align-items: center; gap: 14px; padding: 14px; margin-top: 14px; }
.now .gi { width: 52px; height: 52px; flex: none; border-radius: 18px; display: grid; place-items: center; font-size: 26px; background: var(--grad); box-shadow: 0 10px 22px -10px var(--c1); }
.now b { display: block; font-size: 16px; } .now .sub { font-size: 13px; }
.list { --r: 24px; display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-align: left; width: 100%; min-height: 58px; position: relative; }
.li + .li::before { content: ''; position: absolute; left: 16px; right: 16px; top: 0; height: 1px; background: var(--line); }
.li .lic { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-size: 17px; background: color-mix(in srgb, var(--tx) 8%, transparent); flex: none; }
.li .lt { flex: 1; min-width: 0; } .li .lt small { display: block; color: var(--mut); font-size: 12.5px; }
.li .chev { color: var(--faint); font-size: 22px; }
.li time { color: var(--faint); font-size: 12px; flex: none; font-variant-numeric: tabular-nums; }

/* ───────── landing + login + loader ───────── */
#landing { position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; background: var(--bg); transition: opacity .6s var(--ease), transform .6s var(--ease); }
#landing.out { opacity: 0; transform: scale(1.06); pointer-events: none; }
#landing .bgx { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
#landing .bgx .orb { position: absolute; width: 120vmax; height: 120vmax; border-radius: 50%; filter: blur(60px); }
#landing .bgx .o1 { background: radial-gradient(circle, var(--c1), transparent 60%); left: -60vmax; top: -50vmax; opacity: .7; animation: drift1 18s ease-in-out infinite alternate; }
#landing .bgx .o2 { background: radial-gradient(circle, var(--c2), transparent 60%); right: -70vmax; top: 15vh; opacity: .55; animation: drift2 22s ease-in-out infinite alternate; }
#landing .bgx .o3 { background: radial-gradient(circle, var(--c3), transparent 60%); left: -30vmax; bottom: -80vmax; opacity: .3; animation: drift3 26s ease-in-out infinite alternate; }
#landing .bgx .lines { position: absolute; inset: 0; opacity: .25; background: repeating-linear-gradient(90deg, transparent 0 46px, color-mix(in srgb, #fff 6%, transparent) 46px 47px), repeating-linear-gradient(0deg, transparent 0 46px, color-mix(in srgb, #fff 6%, transparent) 46px 47px);
  mask-image: radial-gradient(80% 60% at 50% 40%, #000, transparent); -webkit-mask-image: radial-gradient(80% 60% at 50% 40%, #000, transparent); }
.land { position: relative; z-index: 1; flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; padding: calc(var(--sat) + 28px) 22px calc(var(--sab) + 22px); max-width: 520px; width: 100%; margin: 0 auto; }
.land .top { width: 100%; display: flex; justify-content: space-between; align-items: center; color: var(--mut); }
.land .top .nwxt { height: 15px; width: auto; color: var(--tx); opacity: .85; }
.land .top .lang { --r: 99px; height: 34px; padding: 0 13px; font: 600 13px/1 var(--f); }
.land .logo-wrap { position: relative; width: min(78vw, 360px, 46vh); width: min(78vw, 360px, 46dvh); margin-top: auto; animation: floaty 6s ease-in-out infinite; }
.land .logo-wrap .dlogo { width: 100%; height: auto; display: block; filter: drop-shadow(0 26px 50px color-mix(in srgb, var(--c1) 55%, transparent)); }
.land .logo-wrap .halo { position: absolute; inset: -10% -10% 0; z-index: -1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c1) 45%, transparent), transparent 62%); filter: blur(10px); }
.land .logo-wrap .spark { position: absolute; width: 22px; height: 22px; color: #fff; filter: drop-shadow(0 0 8px #fff); animation: twinkle 2.6s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-10px); } }
@keyframes twinkle { 0%, 100% { transform: scale(.4) rotate(0); opacity: 0; } 50% { transform: scale(1) rotate(45deg); opacity: 1; } }
.land .word { margin-top: 18px; text-align: center; }
.land .word b { display: block; font: 800 15px/1 var(--fd); letter-spacing: .5em; padding-left: .5em; color: var(--tx); }
.land .word p { margin: 14px auto 0; color: var(--mut); font-size: 15.5px; line-height: 1.5; max-width: 300px; }
.land .acts { width: 100%; display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 28px; }
.land .foot { margin-top: 18px; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--faint); font-size: 12px; }
.land .foot .nwxt { height: 11px; width: auto; color: var(--mut); }
.land .offline { --r: 18px; padding: 12px 14px; font-size: 13.5px; color: var(--mut); text-align: center; width: 100%; }
.steps { display: flex; justify-content: center; gap: 6px; margin-top: 18px; color: var(--mut); font-size: 12.5px; flex-wrap: wrap; }
.steps span { display: inline-flex; align-items: center; gap: 6px; } .steps i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 700 11px/1 var(--f); font-style: normal; background: color-mix(in srgb, var(--tx) 14%, transparent); color: var(--tx); }
.code-card { --r: 30px; width: 100%; padding: 22px 18px 18px; text-align: center; margin-top: auto; }
.code-card .k { font: 600 13px/1 var(--f); color: var(--mut); }
.code { display: flex; justify-content: center; gap: 7px; margin: 16px 0 16px; }
.code b { width: 44px; height: 58px; border-radius: 16px; display: grid; place-items: center; font: 700 28px/1 var(--fd); color: #fff; background: var(--grad); box-shadow: inset 0 1px 0 #fff6, 0 10px 22px -10px var(--c1);
  animation: digit .6s var(--spring) both; animation-delay: calc(var(--i) * 70ms); }
@keyframes digit { from { opacity: 0; transform: translateY(16px) scale(.7); } }
.cmdline { --r: 16px; display: inline-flex; align-items: center; gap: 10px; font: 600 18px/1 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; padding: 14px 18px; user-select: all; -webkit-user-select: all; color: var(--c3); }
.waiting { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--mut); font-size: 13.5px; margin-top: 16px; }
.dots { display: inline-flex; gap: 4px; } .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--c1); animation: dot 1.2s infinite; } .dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: scale(1.15); } }
.timer { height: 4px; border-radius: 99px; background: var(--line); margin-top: 16px; overflow: hidden; } .timer i { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; }

/* the loader (a holographic pill with a star; the dark fill grows) */
#loader { position: fixed; inset: 0; z-index: 35; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 34px; background: var(--bg); transition: opacity .5s var(--ease); }
#loader.out { opacity: 0; pointer-events: none; }
#loader .dlogo { width: min(52vw, 230px); filter: drop-shadow(0 20px 40px color-mix(in srgb, var(--c1) 50%, transparent)); animation: floaty 4s ease-in-out infinite; }
#loader .nwxt { height: 12px; color: var(--faint); position: absolute; bottom: calc(var(--sab) + 30px); }
.ldbar { position: relative; width: min(80vw, 340px); height: 54px; padding-left: 32px; }
.ldbar .pillx { position: absolute; left: 30px; right: 0; top: 4px; bottom: 4px; border-radius: 99px; padding: 5px; border: 3px solid #0d0b12;
  background: linear-gradient(100deg, color-mix(in srgb, var(--c3) 55%, #fff), color-mix(in srgb, var(--c1) 45%, #fff) 35%, color-mix(in srgb, var(--c2) 45%, #fff) 65%, color-mix(in srgb, var(--c3) 50%, #fff)); background-size: 200% 100%; animation: holo 4s linear infinite; }
@keyframes holo { to { background-position: -200% 0; } }
.ldbar .fill { position: relative; height: 100%; width: 14%; border-radius: 99px; background: #0d0b12; transition: width .45s var(--ease); min-width: 34px; }
.ldbar .fill::after { content: ''; position: absolute; right: 9px; top: 6px; bottom: 6px; width: 9px; border: 2.5px solid #fff; border-left: 0; border-radius: 0 99px 99px 0; opacity: .9; }
.ldbar .star { position: absolute; left: 0; top: 50%; width: 62px; height: 62px; margin-top: -31px; z-index: 2; filter: drop-shadow(0 6px 14px #0008); }
.ldbar .pct { position: absolute; right: 0; top: calc(100% + 12px); font: 600 12px/1 var(--f); color: var(--faint); letter-spacing: .08em; }
.ld-msg { color: var(--mut); font-size: 14px; min-height: 20px; text-align: center; }

/* ───────── cards ───────── */
.cd { --rc: #9DA3B8; position: relative; aspect-ratio: 3 / 4; border-radius: 20px; overflow: hidden; background: #110e18; isolation: isolate; transform: translateZ(0);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--rc) 60%, transparent), 0 14px 30px -16px color-mix(in srgb, var(--rc) 70%, #000); }
.cd img.art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; }
.cd img.art.in { opacity: 1; }
.cd .ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px; background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--rc) 40%, transparent), transparent 70%), #16121e; }
.cd .plate { position: absolute; left: 7px; right: 7px; bottom: 7px; z-index: 2; padding: 8px 10px 9px; border-radius: 14px; background: color-mix(in srgb, #0b0912 55%, transparent);
  -webkit-backdrop-filter: blur(10px) saturate(160%); backdrop-filter: blur(10px) saturate(160%); box-shadow: inset 0 1px 0 #ffffff26; }
.cd .plate b { display: block; font: 700 12.5px/1.15 var(--f); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; }
.cd .plate small { display: flex; align-items: center; gap: 5px; font: 600 10px/1 var(--f); color: color-mix(in srgb, var(--rc) 80%, #fff); margin-bottom: 4px; }
.cd .plate small::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--rc); box-shadow: 0 0 6px var(--rc); }
.cd .no { position: absolute; top: 8px; right: 8px; z-index: 2; font: 700 10px/1 var(--f); padding: 5px 7px; border-radius: 99px; background: #0009; color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cd .cnt { position: absolute; top: 8px; left: 8px; z-index: 2; font: 800 10.5px/1 var(--f); padding: 5px 8px; border-radius: 99px; background: var(--rc); color: #0b0910; }
.cd .holo { position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: color-dodge; opacity: .32;
  background: linear-gradient(115deg, transparent 22%, #ff50c880 36%, #50f0ff80 46%, #ffe65080 56%, transparent 70%) 0 0 / 300% 300%; animation: holoMove 6s linear infinite; }
.r-masterpiece .holo { background: linear-gradient(115deg, transparent 20%, #fff3b0b0 38%, #f2c230 46%, #fffbe8 52%, #d4a017 60%, transparent 74%) 0 0 / 300% 300%; opacity: .5; }
@keyframes holoMove { from { background-position: 100% 100%; } to { background-position: 0% 0%; } }
.cd.lock img.art { filter: grayscale(1) brightness(.25) blur(2px); transform: scale(1.06); }
.cd.lock { box-shadow: 0 0 0 1px var(--line2); }
.cd.lock .q { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; }
.cd.lock .q svg { width: 26px; height: 26px; color: color-mix(in srgb, #fff 45%, transparent); }
.cd.lock .plate b { color: var(--faint); }
.r-common { --rc: #A3A9BD; } .r-uncommon { --rc: #4CD964; } .r-rare { --rc: #3D8BFF; } .r-epic { --rc: #A45CFF; } .r-legendary { --rc: #FF9F1C; } .r-masterpiece { --rc: #F2C230; }
.r-masterpiece { box-shadow: 0 0 0 1.5px #F2C230, 0 0 22px -4px #F2C230aa, 0 14px 30px -16px #F2C230; }

/* the fan (cards page): a 3D carousel, the middle card is big */
.cflow { position: relative; height: 360px; margin: 8px -16px 0; perspective: 1100px; touch-action: pan-y; overflow: hidden; }
.cflow .cf { position: absolute; left: 50%; top: 18px; width: 210px; margin-left: -105px; will-change: transform, opacity; transform-origin: 50% 60%; }
.cflow .cf .cd { border-radius: 24px; }
.cflow .cf .cd .plate b { font-size: 15px; } .cflow .cf .cd .plate small { font-size: 11px; }
.cf-info { text-align: center; margin-top: -4px; min-height: 52px; }
.cf-info b { display: block; font: 700 19px/1.2 var(--f); }
.cf-info .sub { margin-top: 3px; }
.cf-dots { display: flex; justify-content: center; gap: 5px; margin-top: 10px; }
.cf-dots i { width: 6px; height: 6px; border-radius: 99px; background: var(--line2); transition: width .3s var(--ease), background .3s; }
.cf-dots i.on { width: 20px; background: var(--grad); }
.prog { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.prog i { display: block; height: 100%; width: 100%; background: var(--grad3); transform-origin: 0 50%; transition: transform 1s var(--ease); }
.coll-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.coll-head .count { font: 800 34px/1 var(--fd); letter-spacing: -.03em; } .coll-head .count small { font: 600 15px/1 var(--f); color: var(--mut); letter-spacing: 0; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.grid .cd { border-radius: 16px; content-visibility: auto; contain-intrinsic-size: 110px 147px; }
.grid .cd .plate { left: 5px; right: 5px; bottom: 5px; padding: 6px 8px 7px; border-radius: 11px; } .grid .cd .plate b { font-size: 11px; } .grid .cd .plate small { font-size: 9px; }
@media (min-width: 520px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* inspect: spin the card around */
.insp { position: absolute; inset: 0; pointer-events: auto; display: flex; flex-direction: column; align-items: center; overflow-y: auto; overflow-x: hidden; padding: calc(var(--sat) + 64px) 18px calc(var(--sab) + 26px);
  background: color-mix(in srgb, var(--bg) 70%, transparent); -webkit-backdrop-filter: blur(26px) saturate(150%); backdrop-filter: blur(26px) saturate(150%); opacity: 0; transition: opacity .35s var(--ease); }
.insp.in { opacity: 1; }
.insp .x { position: absolute; top: calc(var(--sat) + 14px); right: 16px; z-index: 3; }
.insp .glow { position: absolute; left: 50%; top: 34%; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--rc) 45%, transparent), transparent 62%); pointer-events: none; filter: blur(10px); }
.stage3d { position: relative; width: min(72vw, 300px, calc((100vh - 300px) * .75)); width: min(72vw, 300px, calc((100dvh - 300px) * .75)); min-width: 150px; aspect-ratio: 3 / 4; perspective: 1300px; touch-action: none; cursor: grab; flex: none; }
.stage3d:active { cursor: grabbing; }
.card3d { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.card3d .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 26px; }
.card3d .face .cd { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 26px; }
.card3d .face .cd .plate { left: 10px; right: 10px; bottom: 10px; padding: 12px 14px 13px; border-radius: 18px; } .card3d .face .cd .plate b { font-size: 19px; } .card3d .face .cd .plate small { font-size: 12px; }
.card3d .back { transform: rotateY(180deg); overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: radial-gradient(90% 70% at 30% 20%, color-mix(in srgb, var(--c1) 55%, transparent), transparent 60%), radial-gradient(90% 70% at 80% 90%, color-mix(in srgb, var(--c2) 55%, transparent), transparent 60%), #120e1a;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--rc) 70%, #fff3), inset 0 0 0 9px #0006, inset 0 0 0 10px color-mix(in srgb, #fff 14%, transparent); }
.card3d .back::before { content: ''; position: absolute; inset: 0; opacity: .14; background: repeating-linear-gradient(45deg, #fff 0 1px, transparent 1px 12px); }
.card3d .back .dlogo { width: 64%; position: relative; filter: drop-shadow(0 10px 20px #0008); }
.card3d .back .nwxt { width: 34%; color: #fffb; position: relative; }
.card3d .back .rar { position: absolute; bottom: 20px; font: 700 10px/1 var(--fd); letter-spacing: .3em; color: var(--rc); }
/* light that moves with the spin (--a = the angle) */
.card3d .shine { position: absolute; inset: 0; border-radius: 26px; z-index: 4; pointer-events: none; mix-blend-mode: soft-light;
  background: linear-gradient(105deg, transparent 30%, #fff9 calc(30% + var(--sh, 0%) ), transparent calc(50% + var(--sh, 0%))); background-size: 100% 100%; }
.card3d .foil { position: absolute; inset: 0; border-radius: 26px; z-index: 3; pointer-events: none; mix-blend-mode: color-dodge; opacity: .75;
  background: linear-gradient(var(--fa, 120deg), transparent 15%, #8a5a00 25%, #ffd76a 35%, #fff6d0 42%, #f2c230 50%, #b07a10 60%, #ffe9a0 70%, transparent 82%); background-size: 260% 260%; background-position: var(--fp, 50%) 50%; }
.card3d .sparks { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.card3d .sparks i { position: absolute; width: 10px; height: 10px; color: #fff6d0; filter: drop-shadow(0 0 6px #ffd76a); animation: twinkle 2.2s ease-in-out infinite; }
.spin-hint { margin-top: 18px; font: 500 12.5px/1 var(--f); color: var(--faint); display: flex; align-items: center; gap: 6px; }
.cinfo { --r: 26px; width: 100%; max-width: 420px; margin-top: 18px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.cinfo h2 { margin: 0; font: 700 22px/1.15 var(--f); }
.cinfo .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font: 600 12px/1 var(--f); padding: 7px 11px; border-radius: 99px; background: color-mix(in srgb, var(--tx) 10%, transparent); color: var(--mut); }
.tag.r { background: color-mix(in srgb, var(--rc) 22%, transparent); color: color-mix(in srgb, var(--rc) 75%, #fff); }
.flavor { color: var(--mut); font-size: 14.5px; line-height: 1.5; font-style: italic; }
.bars { display: flex; flex-direction: column; gap: 10px; }
.bar { display: grid; grid-template-columns: 70px 1fr 32px; gap: 10px; align-items: center; font: 600 12.5px/1 var(--f); color: var(--mut); }
.bar i { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar i b { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, color-mix(in srgb, var(--rc) 50%, transparent), var(--rc)); transform-origin: 0 50%; animation: barIn 1s var(--ease) both; }
@keyframes barIn { from { transform: scaleX(0); } }
.bar em { font-style: normal; color: var(--tx); text-align: right; font-weight: 700; }

/* ───────── cases: see-through plastic cases with a cartridge inside (CSS 3D) ───────── */
.c3 { --pc: #D8DCE4; --cc: #FF5FA8; --lbl: #fff; position: relative; width: 150px; height: 150px; perspective: 800px; flex: none; }
.c3 .rot { position: absolute; left: 50%; top: 56%; transform-style: preserve-3d; transform: rotateX(-24deg) rotateY(-34deg) scale3d(var(--s, .5), var(--s, .5), var(--s, .5)); transition: transform .8s var(--spring); }
.c3 .bx { position: absolute; left: 0; top: 0; transform-style: preserve-3d; }
.c3 .f { position: absolute; left: 0; top: 0; }
.c3 .pl .f { background: linear-gradient(160deg, color-mix(in srgb, var(--pc) 72%, transparent), color-mix(in srgb, var(--pc) 34%, transparent) 70%, color-mix(in srgb, var(--pc) 52%, transparent));
  box-shadow: inset 0 0 0 3px color-mix(in srgb, #fff 55%, var(--pc)), inset 0 0 44px color-mix(in srgb, #fff 18%, transparent); border-radius: 10px; }
.c3 .pl .f.bt { background: color-mix(in srgb, var(--pc) 60%, #000 20%); }
.c3 .lidbx { transform: rotateX(0deg); transition: transform .9s var(--spring); }
.c3 .lid .f { background: linear-gradient(160deg, color-mix(in srgb, var(--pc) 80%, #fff 10%), color-mix(in srgb, var(--pc) 45%, transparent)); box-shadow: inset 0 0 0 3px color-mix(in srgb, #fff 60%, var(--pc)), inset 0 0 52px color-mix(in srgb, #fff 22%, transparent); border-radius: 12px; }
.c3 .lid .f.tp::after { content: ''; position: absolute; inset: 14%; border-radius: 12px; box-shadow: inset 0 0 0 4px color-mix(in srgb, #fff 35%, transparent); }
.c3 .cart .f { background: var(--cc); box-shadow: inset 0 0 0 2px #0003; border-radius: 6px; }
.c3 .cart .f.sd { background: repeating-linear-gradient(0deg, color-mix(in srgb, var(--cc) 75%, #000) 0 6px, var(--cc) 6px 14px); }
.c3 .cart .f.tp { background: linear-gradient(160deg, color-mix(in srgb, var(--cc) 85%, #fff), var(--cc)); }
.c3 .cart .f.fr { display: flex; align-items: center; justify-content: center; }
.c3 .cart .lbl { width: 80%; height: 80%; border-radius: 8px; background: var(--lbl); box-shadow: inset 0 0 0 2px #0002; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; overflow: hidden; }
.c3 .cart .lbl .dlogo { height: 58%; width: auto; flex: none; display: block; } .c3 .cart .lbl .dlogo .txt { fill: #1a1424; }
.c3 .cart .lbl span { font: 800 14px/1 var(--fd); letter-spacing: .06em; color: #1a1424; text-transform: uppercase; white-space: nowrap; }
.c3 .shadow { position: absolute; left: 50%; top: 80%; width: 70%; height: 16%; margin-left: -35%; border-radius: 50%; background: radial-gradient(closest-side, #000a, transparent); filter: blur(4px); }
.c3 .shine3 { position: absolute; inset: 0; pointer-events: none; }
.c3.open .lidbx { transform: var(--lidOpen); }
.c3.float .rot { animation: caseFloat 4s ease-in-out infinite; }
@keyframes caseFloat { 50% { transform: rotateX(-22deg) rotateY(-26deg) translateY(-6px) scale3d(var(--s, .5), var(--s, .5), var(--s, .5)); } }
.c3.shake .rot { animation: caseShake .5s ease-in-out 2; }
@keyframes caseShake { 0%, 100% { transform: rotateX(-24deg) rotateY(-34deg) scale3d(var(--s, .5), var(--s, .5), var(--s, .5)); } 25% { transform: rotateX(-22deg) rotateY(-28deg) rotateZ(-5deg) scale3d(var(--s, .5), var(--s, .5), var(--s, .5)); } 50% { transform: rotateX(-26deg) rotateY(-40deg) rotateZ(4deg) scale3d(var(--s, .5), var(--s, .5), var(--s, .5)); } 75% { transform: rotateX(-22deg) rotateY(-30deg) rotateZ(-3deg) scale3d(var(--s, .5), var(--s, .5), var(--s, .5)); } }
.cases { display: flex; flex-direction: column; gap: 12px; }
.case { --r: 28px; display: flex; align-items: center; gap: 4px; padding: 10px 14px 4px 0; }
.case { overflow: visible; margin-top: 18px; }
.case::before { display: none; }
.case .c3 { --s: .43; width: 132px; height: 140px; margin-top: -26px; }
.case .ci { padding-left: 4px; }
.cases { gap: 6px; }
.case .c3 .rot { top: 64%; }
.case .glowc { position: absolute; left: -30px; top: 50%; width: 200px; height: 200px; margin-top: -100px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--pc) 35%, transparent), transparent 65%); z-index: -1; }
.case .ci { flex: 1; min-width: 0; }
.case .ci b { display: block; font: 700 17px/1.15 var(--f); }
.case .ci .price { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font: 700 15px/1 var(--fd); }
.case .ci .price .gem { width: 18px; height: 18px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; } .case .ci .price .gem svg { width: 10px; height: 10px; color: #fff; }
.case .have { font: 700 12px/1 var(--f); padding: 5px 9px; border-radius: 99px; background: var(--grad); color: #fff; display: inline-block; margin-top: 6px; }
.case .act { display: flex; flex-direction: column; gap: 7px; flex: none; }
.odds { display: flex; height: 5px; border-radius: 99px; overflow: hidden; margin-top: 10px; background: var(--line); gap: 1px; } .odds i { height: 100%; }
.odds-list { display: grid; grid-template-columns: 1fr auto; gap: 9px 14px; font-size: 14px; }
.odds-list span { display: flex; align-items: center; gap: 8px; } .odds-list span i { width: 10px; height: 10px; border-radius: 50%; background: var(--rc); box-shadow: 0 0 8px var(--rc); }
.odds-list em { font-style: normal; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.dancers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dn { --dc: var(--c1); --r: 26px; position: relative; aspect-ratio: 4 / 5; overflow: hidden; display: block; text-align: left;
  background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--dc) 50%, transparent), transparent 70%), var(--glass-bg); }
.dn img { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 94%; object-fit: cover; object-position: 50% 0; }
.dn .dl { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 9px 11px; border-radius: 16px; background: color-mix(in srgb, #0b0912 50%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font: 700 13px/1.15 var(--f); color: #fff; }
.dn .dl small { display: block; color: color-mix(in srgb, var(--dc) 70%, #fff); font-size: 10.5px; letter-spacing: .12em; margin-bottom: 2px; }
.dn.locked img { filter: grayscale(.85) brightness(.5); }
.dn .lk { position: absolute; top: 10px; right: 10px; font: 700 11px/1 var(--f); padding: 6px 9px; border-radius: 99px; background: #000a; color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dn.own .lk { background: var(--ok); color: #062014; }
.dn.sel { box-shadow: 0 0 0 2.5px var(--dc), 0 0 26px color-mix(in srgb, var(--dc) 60%, transparent); }

/* ───────── layer: sheets, the opening, inspect ───────── */
#layer { position: fixed; inset: 0; z-index: 20; pointer-events: none; }
.scrim { position: absolute; inset: 0; background: #05030a99; opacity: 0; transition: opacity .3s; pointer-events: auto; }
.scrim.in { opacity: 1; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: calc(100% - var(--sat) - 30px); display: flex; flex-direction: column; pointer-events: auto; max-width: 640px; margin: 0 auto;
  border-radius: 32px 32px 0 0; background: color-mix(in srgb, var(--bg) 72%, transparent); -webkit-backdrop-filter: blur(30px) saturate(170%); backdrop-filter: blur(30px) saturate(170%);
  box-shadow: inset 0 1px 0 #ffffff2a, 0 -20px 60px #000a; transform: translate3d(0, 104%, 0); transition: transform .5s var(--ease); }
.sheet.in { transform: translate3d(0, 0, 0); }
.sheet .grab { flex: none; height: 28px; display: grid; place-items: center; touch-action: none; }
.sheet .grab::before { content: ''; width: 42px; height: 5px; border-radius: 99px; background: var(--line2); }
.sheet .sh-body { overflow-y: auto; overflow-x: hidden; padding: 4px 18px calc(24px + var(--sab)); overscroll-behavior: contain; }
.sheet h2 { margin: 2px 0 6px; font: 700 24px/1.15 var(--f); }
.pick { display: flex; flex-direction: column; gap: 6px; max-height: 236px; overflow-y: auto; margin-top: 10px; }
.pick button { --r: 18px; display: flex; align-items: center; gap: 11px; padding: 9px 11px; text-align: left; }
.pick button.on { box-shadow: inset 0 0 0 1.5px var(--c1), 0 0 0 4px var(--c1a); }
.pick button span:not(.av) { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick button small { color: var(--mut); }
.host-pick { --r: 22px; display: flex; align-items: center; gap: 12px; padding: 13px 14px; width: 100%; text-align: left; background: linear-gradient(135deg, color-mix(in srgb, var(--hot) 22%, transparent), var(--glass-bg)); }
.host-pick.on { box-shadow: inset 0 0 0 1.5px var(--hot), 0 0 0 4px color-mix(in srgb, var(--hot) 25%, transparent); }
.req { display: flex; gap: 10px; align-items: center; padding: 11px 2px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.req .st { margin-left: auto; font: 700 11.5px/1 var(--f); padding: 6px 10px; border-radius: 99px; flex: none; }
.st.pending { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.st.approved { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.st.declined { background: var(--line); color: var(--faint); }
.count { text-align: right; font-size: 12px; color: var(--faint); }

.opening { position: absolute; inset: 0; pointer-events: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden;
  background: radial-gradient(70% 50% at 50% 45%, color-mix(in srgb, var(--pc, var(--c1)) 30%, var(--bg)), color-mix(in srgb, var(--bg) 92%, #000) 80%); opacity: 0; transition: opacity .35s; }
.opening.in { opacity: 1; }
.opening .c3 { --s: .95; width: 300px; height: 300px; }
.opening .c3 .rot { top: 54%; }
.op-title { margin-top: 10px; font: 700 18px/1 var(--f); text-align: center; } .op-title small { display: block; margin-top: 8px; font: 500 13px/1 var(--f); color: var(--mut); }
.op-beam { position: absolute; left: 50%; top: 38%; width: 340px; height: 520px; margin-left: -170px; margin-top: -380px; pointer-events: none; opacity: 0;
  background: radial-gradient(50% 100% at 50% 100%, color-mix(in srgb, var(--rc, #fff) 70%, #fff), transparent 70%); filter: blur(14px); transition: opacity .6s; }
.op-beam.on { opacity: .85; }
.strip-wrap { position: absolute; left: 0; right: 0; top: 50%; height: 200px; margin-top: -100px; overflow: hidden; opacity: 0; transition: opacity .35s;
  mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent); }
.strip-wrap.in { opacity: 1; }
.strip { position: absolute; top: 14px; left: 50%; display: flex; gap: 10px; will-change: transform; }
.strip .cd { width: 128px; flex: none; border-radius: 18px; }
.strip .cd .plate { left: 5px; right: 5px; bottom: 5px; padding: 6px 8px; border-radius: 11px; } .strip .cd .plate b { font-size: 11px; }
.marker { position: absolute; top: 4px; bottom: 4px; left: 50%; width: 4px; margin-left: -2px; border-radius: 99px; background: #fff; box-shadow: 0 0 16px var(--c1), 0 0 4px #fff; z-index: 3; }
.reveal { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: safe center; overflow-y: auto; overflow-x: hidden; gap: 16px; padding: calc(var(--sat) + 20px) 20px calc(var(--sab) + 22px); }
.burst { position: absolute; left: 50%; top: 42%; width: 800px; height: 800px; margin: -400px 0 0 -400px; pointer-events: none; opacity: 0;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--rc) 50%, transparent) 0 6deg, transparent 6deg 18deg);
  mask-image: radial-gradient(circle, #000 0%, transparent 60%); -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 60%); animation: burstIn 1.2s var(--ease) forwards, rot 30s linear infinite; }
@keyframes burstIn { from { opacity: 0; transform: scale(.3); } to { opacity: .85; transform: scale(1); } }
@keyframes rot { to { rotate: 360deg; } }
.reveal .stage3d { animation: cardIn .9s var(--spring) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(60px) scale(.5); } }
.rv-tag { font: 700 13px/1 var(--fd); letter-spacing: .3em; text-transform: uppercase; color: var(--rc); text-shadow: 0 0 18px var(--rc); position: relative; animation: fadeUp .5s .3s var(--ease) both; }
.rv-new { position: absolute; top: -14px; right: -10px; z-index: 9; font: 800 15px/1 var(--fd); padding: 9px 13px; border-radius: 99px; background: var(--grad); color: #fff; box-shadow: 0 10px 24px -8px var(--c1); transform: rotate(8deg); animation: stamp .5s .8s var(--spring) both; }
@keyframes stamp { from { opacity: 0; transform: rotate(8deg) scale(2.2); } }
.rv-btns { display: flex; gap: 10px; width: min(100%, 380px); position: relative; animation: fadeUp .5s .6s var(--ease) both; } .rv-btns .btn { flex: 1; }
.rv-note { font-size: 13px; color: var(--mut); position: relative; animation: fadeUp .5s .7s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }
.skip { position: absolute; top: calc(var(--sat) + 14px); right: 16px; z-index: 5; }

/* ───────── toasts ───────── */
#toasts { position: fixed; left: 0; right: 0; top: calc(var(--sat) + 10px); z-index: 40; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 14px; }
.toast { --r: 22px; max-width: 520px; width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px 16px; font-size: 14.5px; animation: tIn .5s var(--spring) both; pointer-events: auto;
  background: color-mix(in srgb, var(--bg) 60%, transparent); }
.toast.out { animation: tOut .3s var(--ease) forwards; }
.toast.bad { box-shadow: var(--glass-edge), inset 0 0 0 1px color-mix(in srgb, var(--bad) 55%, transparent), 0 18px 40px -20px #000; }
.toast.good { box-shadow: var(--glass-edge), inset 0 0 0 1px color-mix(in srgb, var(--ok) 50%, transparent), 0 18px 40px -20px #000; }
.toast .ti { font-size: 20px; flex: none; }
@keyframes tIn { from { opacity: 0; transform: translateY(-16px) scale(.94); } }
@keyframes tOut { to { opacity: 0; transform: translateY(-12px) scale(.96); } }

/* ───────── live ───────── */
.live-head { display: flex; align-items: flex-end; gap: 12px; }
.live-head .lh { flex: 1; min-width: 0; }
.tt-btn { --r: 99px; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; font: 700 14px/1 var(--f); text-decoration: none; flex: none; }
.tt-btn svg { width: 18px; height: 18px; }
.game { margin-top: 16px; }
.hud { --r: 26px; padding: 16px; }
.gstage { position: relative; border-radius: 26px; overflow: hidden; background: #0b0910; box-shadow: 0 0 0 1px var(--line2), 0 20px 40px -24px #000; }
.gstage canvas { display: block; }
.g-title { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.g-title .gi { width: 48px; height: 48px; flex: none; border-radius: 16px; display: grid; place-items: center; font-size: 24px; background: var(--grad); box-shadow: 0 10px 22px -10px var(--c1); }
.g-title > div { min-width: 0; flex: 1; }
.g-title b { display: block; font: 700 18px/1.15 var(--f); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-title small { display: block; color: var(--mut); font-size: 13px; margin-top: 3px; }
.g-timer { margin-left: auto; font: 700 18px/1 var(--fd); font-variant-numeric: tabular-nums; padding: 9px 12px; border-radius: 99px; background: color-mix(in srgb, var(--tx) 9%, transparent); }
.g-timer:empty { display: none; }
.g-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.g-actions .btn { padding: 0 8px; font-size: 14px; }
.g-actions .btn.span3 { grid-column: 1 / -1; }
.hg-pad { display: flex; gap: 14px; align-items: center; margin-top: 14px; }
.hg-pad .g-actions { flex: 1; margin-top: 0; grid-template-columns: 1fr; }
.hg-pad .g-actions .btn { min-height: 44px; }
.joy { position: relative; flex: none; width: 138px; height: 138px; border-radius: 50%; touch-action: none; background: var(--glass-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--glass-edge), 0 0 30px var(--c1a); }
.joy::before { content: ''; position: absolute; inset: 18%; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--tx) 18%, transparent); }
.joy i { position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px; border-radius: 50%; background: var(--grad); box-shadow: inset 0 2px 0 #fff7, inset 0 -8px 16px #0003, 0 10px 24px -6px var(--c1); will-change: transform; }
.joy.on i { box-shadow: inset 0 2px 0 #fff7, 0 0 30px var(--c1); }
.hg-me { position: absolute; left: 10px; top: 10px; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 7px 11px; border-radius: 99px; background: #000b; font: 700 12px/1 var(--f); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hg-me .hp { width: 56px; height: 6px; border-radius: 99px; background: #fff2; overflow: hidden; } .hg-me .hp i { display: block; height: 100%; background: var(--ok); transform-origin: 0 50%; transition: transform .3s; }
.hg-alive { position: absolute; right: 10px; bottom: 10px; z-index: 3; padding: 7px 11px; border-radius: 99px; background: #000b; font: 700 12px/1 var(--f); }
.vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.vs .side { text-align: center; min-width: 0; }
.vs .side .dn { width: 100%; max-width: 150px; margin: 0 auto 8px; }
.vs .side b { display: block; font: 700 14px/1.15 var(--f); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs .side em { font: 800 30px/1.1 var(--fd); font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vs .x { font: 800 20px/1 var(--fd); color: var(--hot); }
.tug { height: 12px; border-radius: 99px; overflow: hidden; display: flex; margin: 14px 0; background: var(--line); gap: 2px; }
.tug i { height: 100%; transition: flex-grow .5s var(--ease); border-radius: 99px; }
.word { text-align: center; padding: 20px 14px; }
.word .w { font: 800 clamp(28px, 10vw, 46px)/1.1 var(--fd); letter-spacing: -.02em; color: #fff; text-shadow: 0 0 26px var(--c1); word-break: break-word; }
.word .w.pop { animation: wpop .45s var(--spring); }
@keyframes wpop { from { transform: scale(1.5); opacity: 0; } }
.word .wt { height: 5px; margin: 14px auto 0; max-width: 260px; background: var(--line); overflow: hidden; border-radius: 99px; } .word .wt i { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; }
.type-row { display: flex; gap: 8px; margin-top: 12px; }
.type-row .inp { font-size: 20px; text-align: center; font-weight: 700; text-transform: lowercase; }
.type-row .btn { width: 58px; padding: 0; flex: none; }
.gangs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gang { --gc: #FF3D5E; --r: 24px; padding: 16px 12px; text-align: center; background: linear-gradient(170deg, color-mix(in srgb, var(--gc) 28%, transparent), var(--glass-bg)); }
.gang.y { --gc: #F2C230; }
.gang b { display: block; font: 700 15px/1.15 var(--f); }
.gang em { display: block; font: 800 28px/1.1 var(--fd); font-style: normal; color: var(--gc); margin-top: 8px; font-variant-numeric: tabular-nums; }
.gang small { color: var(--mut); font-size: 12.5px; }
.gang.mine { box-shadow: var(--glass-edge), inset 0 0 0 2px var(--gc), 0 0 26px color-mix(in srgb, var(--gc) 45%, transparent); }
.hpbar { height: 14px; border-radius: 99px; background: var(--line); overflow: hidden; position: relative; }
.hpbar i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--hot), var(--c1)); transform-origin: 0 50%; transition: transform .4s var(--ease); border-radius: 99px; }
.hpbar span { position: absolute; inset: 0; display: grid; place-items: center; font: 700 10px/1 var(--f); text-shadow: 0 1px 2px #000; }
.eyebrow { font: 700 11.5px/1 var(--f); letter-spacing: .14em; text-transform: uppercase; color: var(--mut); }
.feed { display: flex; flex-direction: column; gap: 8px; }
.mo { --r: 20px; display: flex; gap: 12px; align-items: center; padding: 11px 13px; font-size: 14px; animation: moIn .5s var(--spring) both; }
.mo .mi { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 13px; font-size: 18px; background: var(--c2a); }
.mo.strike .mi { background: color-mix(in srgb, var(--hot) 28%, transparent); } .mo.point .mi { background: var(--c1a); }
.mo span { min-width: 0; } .mo small { display: block; color: var(--mut); font-size: 12.5px; }
@keyframes moIn { from { opacity: 0; transform: translateX(-16px); } }
.idle-g { text-align: center; padding: 30px 18px; }
.idle-g .ig { font-size: 42px; margin-bottom: 10px; }
.idle-g .ig .dlogo { width: 120px; display: block; margin: 0 auto; }
.idle-g b { display: block; font: 700 20px/1.2 var(--f); margin-bottom: 6px; }
.joined { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.joined span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 4px; border-radius: 99px; background: color-mix(in srgb, var(--tx) 9%, transparent); font-size: 13px; max-width: 100%; }
.joined span.me { background: var(--c1a); box-shadow: inset 0 0 0 1px var(--c1); }
.offline-bar { --r: 18px; margin-bottom: 12px; padding: 12px 14px; font-size: 13.5px; display: flex; gap: 10px; align-items: center; }

/* ───────── more ───────── */
.prof { --r: 28px; display: flex; align-items: center; gap: 14px; padding: 16px; margin-top: 14px; }
.prof .nm { font: 700 19px/1.2 var(--f); } .prof .un { color: var(--mut); font-size: 13.5px; }
.seg { display: flex; padding: 4px; border-radius: 99px; background: color-mix(in srgb, var(--tx) 9%, transparent); }
.seg button { flex: 1; height: 34px; border-radius: 99px; font: 600 13px/1 var(--f); color: var(--mut); transition: background .3s, color .3s; padding: 0 12px; }
.seg button.on { background: var(--tx); color: var(--bg); }
.switch { position: relative; width: 52px; height: 32px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; z-index: 1; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--line2); transition: background .3s; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: transform .45s var(--spring); box-shadow: 0 2px 8px #0005; }
.switch input:checked + span { background: var(--grad); }
.switch input:checked + span::after { transform: translateX(20px); }
.themes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.th { --r: 20px; aspect-ratio: 1; display: flex; align-items: flex-end; padding: 8px; font: 700 10.5px/1.1 var(--f); text-align: left; overflow: hidden; }
.th.on { box-shadow: var(--glass-edge), 0 0 0 2px var(--tx); }
.th i { position: absolute; inset: 0; z-index: -1; }
.colors { --r: 24px; padding: 6px 16px; margin-top: 12px; }
.color-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.color-row + .color-row { border-top: 1px solid var(--line); }
.color-row span { flex: 1; font-size: 14.5px; }
.color-row input[type=color] { width: 44px; height: 44px; border: 0; padding: 0; border-radius: 50%; background: none; cursor: pointer; overflow: hidden; }
.color-row input[type=color]::-webkit-color-swatch-wrapper { padding: 0; } .color-row input[type=color]::-webkit-color-swatch { border: 2px solid #fff4; border-radius: 50%; }
.color-row input[type=color]::-moz-color-swatch { border: 2px solid #fff4; border-radius: 50%; }
.top-list .li .pos { width: 26px; font: 700 15px/1 var(--fd); color: var(--faint); text-align: center; flex: none; }
.top-list .li:nth-child(1) .pos { color: #F2C230; } .top-list .li:nth-child(2) .pos { color: #C9CDD6; } .top-list .li:nth-child(3) .pos { color: #E08A4A; }
.top-list .li.me { background: var(--c1a); }
.top-list .pts { font: 700 14px/1 var(--fd); font-variant-numeric: tabular-nums; }
.foot { text-align: center; color: var(--faint); font-size: 12px; margin-top: 30px; line-height: 1.6; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.foot .dlogo { width: 90px; opacity: .8; } .foot .nwxt { height: 12px; color: var(--mut); }

/* calm mode / reduced motion: no blur, no drifting */
html.calm { --glass-blur: none; }
html.calm #bg .orb, html.calm #landing .bgx .orb { animation: none; }
html.calm *, html.calm *::before, html.calm *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
@media (max-width: 360px) { .tiles { gap: 8px; } .tile { padding: 12px 10px; } .tile .v { font-size: 20px; } .hero .big { font-size: 36px; } .pts-pill { display: none; } }
.dancers.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.dancers.three .dn { --r: 20px; aspect-ratio: 3 / 4; }
.dancers.three .dn .dl { left: 5px; right: 5px; bottom: 5px; padding: 7px 8px; border-radius: 12px; font-size: 11.5px; }
.dancers.three .dn .lk { top: 6px; right: 6px; font-size: 9.5px; padding: 4px 6px; }
@media (max-width: 370px) { .case .c3 { --s: .37; width: 108px; height: 124px; } .case .ci b { font-size: 15px; } .case .btn.sm { padding: 0 12px; } }

/* short screens (small phones, landscape): everything still fits or scrolls — nothing needs zooming out */
@media (max-height: 680px) { .opening .c3 { --s: .7; width: 230px; height: 230px; } .hero { min-height: 180px; } .hero .big { font-size: 36px; } .land .word p { font-size: 14.5px; } }
@media (max-height: 520px) { .opening .c3 { --s: .5; width: 170px; height: 170px; } .land .logo-wrap { margin-top: 8px; } .land .acts { padding-top: 16px; } }
@media (orientation: landscape) and (max-height: 520px) { :root { --toph: 54px; --navh: 60px; } .screen { max-width: 720px; } .insp { padding-top: calc(var(--sat) + 56px); } }
