/* Kartopia — app styles (code by dagasan). "Midnight ice" design system: deep navy frosted glass,
   icy highlights, warm coral/gold action colours, Unbounded display + Nunito UI type.
   Rules: no layout shift (fixed-size async slots), no page overflow (screens are fixed 100% boxes,
   long content scrolls inside panels), wrapping grids instead of horizontal scroll strips. */
/* Fonts: self-hosted variable Unbounded + Nunito (SIL OFL 1.1, via Fontsource) — works offline, no third-party requests. */
@font-face { font-family: 'Unbounded'; font-style: normal; font-display: swap; font-weight: 200 900; src: url(/fonts/unbounded-latin.woff2) format('woff2'); 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: 'Unbounded'; font-style: normal; font-display: swap; font-weight: 200 900; src: url(/fonts/unbounded-latin-ext.woff2) format('woff2'); 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: 'Nunito'; font-style: normal; font-display: swap; font-weight: 200 1000; src: url(/fonts/nunito-latin.woff2) format('woff2'); 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: 'Nunito'; font-style: normal; font-display: swap; font-weight: 200 1000; src: url(/fonts/nunito-latin-ext.woff2) format('woff2'); 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; }
:root {
  /* type + text */
  --ink: #f3f8ff; --ink2: #bcd0ea; --muted: #8aa3c2; --dim: #5f7a9c;
  /* surfaces */
  --navy: #081a36; --deep: #050f22;
  --glass: linear-gradient(180deg, rgba(30, 58, 102, .74) 0%, rgba(14, 30, 58, .82) 100%);
  --glass-solid: linear-gradient(180deg, #1c3863 0%, #0f2346 100%);
  --glass-hi: linear-gradient(180deg, rgba(44, 82, 140, .8) 0%, rgba(20, 42, 80, .86) 100%);
  --line: rgba(170, 215, 255, .16); --line2: rgba(190, 228, 255, .3);
  --tile: rgba(255, 255, 255, .06); --tile2: rgba(255, 255, 255, .1);
  /* brand + accents */
  --coral: #ff7a1a; --frost: #6f7dff; --ice: #8fd8ff; --cyan: #4fd1ff; --gold: #ffc940; --mint: #3ee0b0; --violet: #a98bff; --rose: #ff5f7e;
  --ok: #34d399; --bad: #ff5d6c;
  --r: 22px; --r-sm: 14px; --r-lg: 28px;
  --fd: 'Unbounded', 'Nunito', ui-rounded, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fu: 'Nunito', ui-rounded, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --st: env(safe-area-inset-top, 0px); --sr: env(safe-area-inset-right, 0px); --sb: env(safe-area-inset-bottom, 0px); --sl: env(safe-area-inset-left, 0px);
  --pad: clamp(10px, 2.2vmin, 22px);
  --shadow: 0 18px 46px rgba(2, 8, 22, .45), 0 2px 0 rgba(255, 255, 255, .03);
  --edge: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 0 0 1px rgba(170, 215, 255, .12);
  --blur: blur(18px) saturate(1.35);
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow: hidden; overscroll-behavior: none; background: var(--deep); }
body {
  color: var(--ink); font-family: var(--fu); font-weight: 700; font-size: 16px; line-height: 1.35;
  -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  touch-action: manipulation; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
input, textarea { -webkit-user-select: text; user-select: text; font: inherit; }
button { font: inherit; color: inherit; }
img { -webkit-user-drag: none; }
#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; z-index: 0; }
#bgshade { position: fixed; inset: 0; z-index: 1; pointer-events: none; transition: opacity .5s;
  background: linear-gradient(180deg, rgba(4, 14, 32, .55) 0%, rgba(4, 14, 32, 0) 22%, rgba(4, 14, 32, 0) 60%, rgba(4, 14, 32, .6) 100%); }
html.in-game #bgshade { opacity: 0; }
#screens { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
#screens > .screen { pointer-events: auto; }
#screens > .screen.game-ui { pointer-events: none; }
#hudlayer { position: fixed; inset: 0; z-index: 12; pointer-events: none; }
#modals { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
#modals > * { pointer-events: auto; }
#toasts { position: fixed; left: 0; right: 0; top: calc(var(--st) + 10px); z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 12px; }
.hidden { display: none !important; }
.nojs { position: fixed; inset: 0; display: grid; place-items: center; color: #fff; z-index: 200; background: var(--navy); }
:focus { outline: none; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px rgba(79, 209, 255, .45); }

/* ------------------------------------------------------------- icons */
.ico { display: inline-grid; place-items: center; width: 1.25em; height: 1.25em; flex: none; }
.ico svg { width: 100%; height: 100%; display: block; overflow: visible; }
.fish-ico { color: #4fc3ff; filter: drop-shadow(0 0 6px rgba(79, 195, 255, .45)); }
.xp-ico { color: var(--gold); }

/* ------------------------------------------------------------- logo (legacy text logo, still used in a few places) */
.logo { margin: 0; font-family: var(--fd); font-weight: 900; letter-spacing: -.03em; line-height: .95; font-size: clamp(40px, 7.2vmin, 78px); white-space: nowrap; }
.logo-k { color: #fff; }
.logo-t { color: var(--ice); }
.tagline { margin: 6px 0 0; font-family: var(--fd); font-weight: 700; font-size: clamp(11px, 1.7vmin, 14px); letter-spacing: .3em; text-transform: uppercase; color: var(--ice); }

/* ------------------------------------------------------------- brand signature ("</> code by dagasan") */
.brand-sig { display: inline-flex; align-items: center; gap: 10px; height: 46px; text-decoration: none; color: #fff; flex: none; border-radius: 14px; padding: 3px 12px 3px 3px; transition: background .25s, transform .2s; }
.brand-sig.sig-menu { background: linear-gradient(135deg, rgba(5, 14, 30, .62), rgba(10, 26, 50, .4)); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 8px 24px rgba(2, 8, 22, .35), inset 0 1px 0 rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(10px) saturate(1.3); backdrop-filter: blur(10px) saturate(1.3); padding-right: 14px; height: 48px; }
@media (hover: hover) { .brand-sig.sig-menu:hover { background: linear-gradient(135deg, rgba(5, 14, 30, .78), rgba(10, 26, 50, .55)); transform: translateY(-1px); } }
.bs-mark { position: relative; width: 40px; height: 40px; border-radius: 12px; flex: none; display: flex; align-items: center; justify-content: center; gap: 1px; overflow: hidden;
  background: linear-gradient(145deg, #1d2c47 0%, #0b1322 100%); box-shadow: 0 6px 18px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 0 0 1px rgba(255, 255, 255, .06);
  font-family: var(--fd); font-weight: 800; font-size: 14px; line-height: 1; animation: bsGlow 4s ease-in-out 1.6s infinite; }
.bs-mark::after { content: ''; position: absolute; inset: -40% -60%; background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, .28) 50%, transparent 60%); transform: translateX(-70%); animation: bsSweep 4.5s ease-in-out 1.8s infinite; }
.bs-lt, .bs-gt { display: inline-block; color: #fff; opacity: 0; animation: bsLt .55s cubic-bezier(.2, .9, .3, 1.3) .15s forwards; }
.bs-gt { animation-name: bsGt; }
.bs-sl { display: inline-block; color: #8fd3ff; opacity: 0; transform: rotate(-90deg) scale(.2); animation: bsSl .5s cubic-bezier(.2, .9, .3, 1.4) .45s forwards; }
.bs-text { display: flex; flex-direction: column; justify-content: center; gap: 3px; line-height: 1; }
.bs-by { font: 800 9.5px/1 var(--fu); letter-spacing: .26em; text-transform: uppercase; color: rgba(234, 246, 255, .78); opacity: 0; animation: bsFade .5s ease .55s forwards; }
.bs-name { display: flex; align-items: center; font: 800 17px/1.05 var(--fd); letter-spacing: -.01em; }
.bs-ch { display: inline-block; opacity: 0; transform: translateY(4px) scale(.7); filter: blur(3px);
  animation: bsCh .28s cubic-bezier(.2, .9, .3, 1.3) calc(.7s + var(--i) * .07s) forwards, bsShine 5s ease-in-out calc(2.2s + var(--i) * .08s) infinite; }
.bs-cursor { width: 2px; height: 1.05em; margin-left: 3px; border-radius: 1px; background: #8fd3ff; box-shadow: 0 0 8px #8fd3ff; animation: bsBlink 1.05s steps(1) infinite; }
@keyframes bsLt { from { opacity: 0; transform: translateX(9px); } to { opacity: 1; transform: none; } }
@keyframes bsGt { from { opacity: 0; transform: translateX(-9px); } to { opacity: 1; transform: none; } }
@keyframes bsSl { to { opacity: 1; transform: none; } }
@keyframes bsFade { to { opacity: 1; } }
@keyframes bsCh { to { opacity: 1; transform: none; filter: none; } }
@keyframes bsShine { 0%, 82%, 100% { color: #fff; text-shadow: none; } 88% { color: #bfeaff; text-shadow: 0 0 10px rgba(143, 211, 255, .9); } }
@keyframes bsBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes bsSweep { 0%, 70% { transform: translateX(-70%); } 100% { transform: translateX(70%); } }
@keyframes bsGlow { 0%, 100% { box-shadow: 0 6px 18px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .14), 0 0 0 0 rgba(143, 211, 255, 0); } 50% { box-shadow: 0 6px 18px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .14), 0 0 18px 1px rgba(143, 211, 255, .35); } }
@media (prefers-reduced-motion: reduce) { .bs-ch, .bs-lt, .bs-gt, .bs-sl, .bs-by { animation-duration: .01s !important; animation-delay: 0s !important; } .bs-mark, .bs-mark::after { animation: none; } }

/* ------------------------------------------------------------- boot: brand intro -> logo + loading */
#boot { position: fixed; inset: 0; z-index: 100; overflow: hidden; cursor: pointer; transition: opacity .5s ease, visibility .5s;
  background: radial-gradient(130% 90% at 50% 35%, #12305c 0%, #0a1c3a 45%, #040b1a 100%); }
#boot.hide { opacity: 0; visibility: hidden; }
.boot-bg { position: absolute; inset: 0; pointer-events: none; }
.bb-aurora { position: absolute; left: -20%; right: -20%; top: -30%; height: 80%; opacity: .55; filter: blur(40px);
  background: radial-gradient(40% 45% at 30% 60%, rgba(62, 224, 176, .35), transparent 70%), radial-gradient(45% 50% at 70% 50%, rgba(111, 125, 255, .4), transparent 70%); animation: aurora 9s ease-in-out infinite alternate; }
@keyframes aurora { to { transform: translateX(6%) scaleY(1.15); opacity: .75; } }
.bb-snow { position: absolute; inset: -20% 0 0; background-repeat: repeat;
  background-image: radial-gradient(1.6px 1.6px at 12% 18%, #fff, transparent), radial-gradient(1.2px 1.2px at 64% 9%, #fffc, transparent), radial-gradient(2px 2px at 38% 62%, #fffa, transparent), radial-gradient(1.4px 1.4px at 84% 44%, #fffd, transparent), radial-gradient(1.8px 1.8px at 22% 82%, #fff9, transparent), radial-gradient(1.2px 1.2px at 92% 88%, #fffb, transparent);
  background-size: 280px 280px; animation: snowfall 11s linear infinite; opacity: .7; }
.bb-snow.s2 { background-size: 420px 420px; animation-duration: 17s; opacity: .45; filter: blur(.6px); }
@keyframes snowfall { from { transform: translateY(0); } to { transform: translateY(280px); } }
.bb-snow.s2 { animation-name: snowfall2; }
@keyframes snowfall2 { from { transform: translateY(0); } to { transform: translateY(420px); } }
.boot-intro { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: clamp(14px, 3vmin, 22px); transition: opacity .35s ease, transform .45s cubic-bezier(.5, 0, .2, 1); }
#boot.p2 .boot-intro { opacity: 0; transform: translate(-50%, -50%) scale(1.12); pointer-events: none; }
.bi-mark { position: relative; width: clamp(66px, 13vmin, 96px); aspect-ratio: 1; border-radius: 26%; display: flex; align-items: center; justify-content: center; gap: 2px; overflow: hidden;
  background: linear-gradient(145deg, #1e2e4a 0%, #0a1220 100%); box-shadow: 0 18px 50px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 0 0 1px rgba(255, 255, 255, .07), 0 0 60px rgba(143, 211, 255, .18);
  font: 800 clamp(22px, 4.4vmin, 32px)/1 var(--fd); animation: biPop .6s cubic-bezier(.2, .9, .3, 1.25) both; }
.bi-mark::after { content: ''; position: absolute; inset: -40% -70%; background: linear-gradient(110deg, transparent 42%, rgba(255, 255, 255, .42) 50%, transparent 58%); transform: translateX(-75%); animation: biSweep .7s ease-in-out .72s forwards; }
@keyframes biPop { from { opacity: 0; transform: scale(.6) rotate(-6deg); } }
@keyframes biSweep { to { transform: translateX(75%); } }
.bi-lt, .bi-gt { display: inline-block; color: #fff; opacity: 0; animation: bsLt .5s cubic-bezier(.2, .9, .3, 1.3) .12s forwards; }
.bi-lt { --dx: 16px; } .bi-gt { animation-name: bsGt; }
.bi-sl { display: inline-block; color: #8fd3ff; opacity: 0; transform: rotate(-120deg) scale(.2); text-shadow: 0 0 14px rgba(143, 211, 255, .8); animation: bsSl .45s cubic-bezier(.2, .9, .3, 1.4) .34s forwards; }
.bi-text { display: flex; flex-direction: column; gap: 6px; line-height: 1; }
.bi-by { font: 800 clamp(10px, 1.7vmin, 13px)/1 var(--fu); letter-spacing: .34em; text-transform: uppercase; color: rgba(214, 236, 255, .8); opacity: 0; animation: bsFade .4s ease .4s forwards; }
.bi-name { display: flex; align-items: center; font: 800 clamp(28px, 6vmin, 44px)/1 var(--fd); letter-spacing: -.02em; }
.bi-name > span:not(.bi-cursor) { display: inline-block; opacity: 0; transform: translateY(6px); filter: blur(4px); animation: bsCh .22s cubic-bezier(.2, .9, .3, 1.3) calc(.48s + var(--i) * .06s) forwards; }
.bi-cursor { width: 3px; height: 1em; margin-left: 4px; border-radius: 2px; background: #8fd3ff; box-shadow: 0 0 12px #8fd3ff; animation: bsBlink .9s steps(1) infinite; }
.boot-main { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -46%) scale(.94); width: min(92vw, 640px); display: flex; flex-direction: column; align-items: center; gap: clamp(8px, 1.6vmin, 14px); text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .45s ease .05s, transform .6s cubic-bezier(.2, .9, .3, 1.2) .05s; }
#boot.p2 .boot-main { opacity: 1; transform: translate(-50%, -50%); }
.boot-logo { width: min(86vw, 560px, calc(52vh * 4.31)); height: auto; aspect-ratio: 4.31; display: block; filter: drop-shadow(0 12px 30px rgba(0, 0, 0, .45)); }
.boot-tag { margin: 0; font: 800 clamp(11px, 2vmin, 15px)/1 var(--fd); letter-spacing: .42em; text-transform: uppercase; color: #cfeaff; text-shadow: 0 2px 12px rgba(0, 0, 0, .5); padding-left: .42em; }
.boot-bar { position: relative; width: min(300px, 64vw); height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .1); overflow: hidden; margin-top: clamp(6px, 2vmin, 16px); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .4), 0 0 0 1px rgba(170, 215, 255, .14); }
.boot-bar i { position: absolute; inset: 0; background: linear-gradient(90deg, #4fd1ff, #c8f1ff 70%, #fff); transform: scaleX(.05); transform-origin: left; transition: transform .45s cubic-bezier(.2, .8, .2, 1); border-radius: inherit; box-shadow: 0 0 14px rgba(79, 209, 255, .8); }
.boot-msg { margin: 0; height: 1.4em; color: var(--ink2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 90vw; }
.boot-skip { position: absolute; right: calc(var(--sr) + 18px); bottom: calc(var(--sb) + 16px); height: 34px; padding: 0 14px; border-radius: 17px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: rgba(220, 236, 255, .8); font: 800 12px/1 var(--fd); letter-spacing: .08em; cursor: pointer; transition: opacity .3s; }
#boot.p2 .boot-skip { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .bb-snow, .bb-aurora { animation: none; } }

/* ------------------------------------------------------------- buttons */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 22px; border: 0; border-radius: 16px; cursor: pointer;
  font-family: var(--fd); font-weight: 800; font-size: 15px; letter-spacing: .01em; white-space: nowrap; transition: transform .14s cubic-bezier(.2, .9, .3, 1.4), box-shadow .2s ease, filter .2s; flex: none; isolation: isolate; }
.btn:active { transform: translateY(2px) scale(.98); }
.btn .ico { width: 1.3em; height: 1.3em; }
.btn-primary { color: #fff; text-shadow: 0 1px 0 rgba(130, 40, 0, .45); background: linear-gradient(180deg, #ffb24a 0%, #ff7a1a 55%, #f0560e 100%);
  box-shadow: 0 4px 0 #b9440a, 0 12px 28px rgba(255, 110, 30, .4), inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -2px 0 rgba(120, 30, 0, .15); }
.btn-primary:active { box-shadow: 0 2px 0 #b9440a, 0 6px 14px rgba(255, 110, 30, .3), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-secondary { color: #fff; text-shadow: 0 1px 0 rgba(10, 40, 110, .4); background: linear-gradient(180deg, #6fdcff 0%, #2fa8f0 55%, #1a7fd6 100%);
  box-shadow: 0 4px 0 #0f5ea8, 0 12px 26px rgba(40, 150, 240, .35), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-secondary:active { box-shadow: 0 2px 0 #0f5ea8; }
.btn-ghost { color: var(--ink); background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px var(--line2), 0 6px 18px rgba(2, 8, 22, .25); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
@media (hover: hover) { .btn-ghost:hover { background: rgba(255, 255, 255, .14); } }
.btn-danger { color: #fff; background: linear-gradient(180deg, #ff8a96, #ff5d6c 55%, #e23c50); box-shadow: 0 4px 0 #a51d33, 0 10px 22px rgba(255, 70, 90, .3), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn.sm { height: 40px; padding: 0 14px; font-size: 13px; border-radius: 12px; gap: 7px; }
.btn.sm.btn-primary, .btn.sm.btn-secondary { box-shadow: 0 3px 0 rgba(0, 0, 0, .28), 0 8px 16px rgba(2, 8, 22, .25), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn.wide { width: 100%; }
.btn.disabled, .btn[aria-disabled="true"] { filter: grayscale(.75) brightness(.9); opacity: .6; }
.btn.busy { pointer-events: none; color: transparent !important; text-shadow: none; }
.btn.busy::after { content: ''; position: absolute; width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: spin .8s linear infinite; }
.btn.busy > * { visibility: hidden; }
@media (hover: hover) { .btn:hover { filter: brightness(1.07) saturate(1.05); } }
.icon-btn { width: 46px; height: 46px; border-radius: 15px; border: 0; display: grid; place-items: center; cursor: pointer; flex: none; color: var(--ink);
  background: var(--glass); box-shadow: var(--edge), 0 8px 22px rgba(2, 8, 22, .35); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); transition: transform .14s cubic-bezier(.2, .9, .3, 1.4), background .2s, box-shadow .2s; }
.icon-btn:active { transform: scale(.92); }
@media (hover: hover) { .icon-btn:hover { background: var(--glass-hi); box-shadow: var(--edge), 0 8px 22px rgba(2, 8, 22, .35), 0 0 18px rgba(79, 209, 255, .25); } }
.icon-btn .ico { width: 22px; height: 22px; }
.icon-btn.muted { color: var(--muted); }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .18); border-top-color: var(--cyan); animation: spin .8s linear infinite; margin: auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------- panels */
.panel { position: relative; background: var(--glass); border-radius: var(--r); box-shadow: var(--edge), var(--shadow); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
html[data-quality="low"] .panel, html[data-quality="low"] .nav-btn, html[data-quality="low"] .mode-card, html[data-quality="low"] .hm-card, html[data-quality="low"] .mode-sel, html[data-quality="low"] .icon-btn { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--glass-solid); }
.note { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 13px; color: var(--ink2); }
.note .ico { color: var(--cyan); }
.form-err { margin: 6px 2px 0; min-height: 1.35em; font-size: 13px; color: var(--bad); }
.bar { position: relative; height: 10px; border-radius: 6px; background: rgba(255, 255, 255, .1); overflow: hidden; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35); }
.bar i { position: absolute; inset: 0; background: linear-gradient(90deg, #4fd1ff, #a7eaff); transform-origin: left; border-radius: inherit; transition: transform .6s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 0 10px rgba(79, 209, 255, .5); }
.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px 12px; color: var(--ink2); text-align: center; }
.empty .ico { width: 40px; height: 40px; color: var(--ice); }
.empty p { margin: 0; }
.badge { position: absolute; top: -5px; right: -5px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: linear-gradient(180deg, #ff7b8b, #ff3d57); color: #fff; font: 900 12px/22px var(--fu); text-align: center;
  box-shadow: 0 0 0 2px #0b1d3a, 0 4px 12px rgba(255, 61, 87, .55); animation: pulse 1.6s ease-in-out infinite; z-index: 2; }
.badge.static { position: static; flex: none; }
@keyframes pulse { 50% { transform: scale(1.12); } }

/* ------------------------------------------------------------- screens & transitions */
.screen { position: absolute; inset: 0; transition: opacity .28s ease, transform .32s cubic-bezier(.2, .8, .2, 1); }
.screen.enter { opacity: 0; transform: translateY(16px) scale(.985); }
.screen.enter-back { opacity: 0; transform: translateY(-10px) scale(1.01); }
.screen.leave { opacity: 0; transform: translateY(-10px) scale(1.01); }
.screen.leave-back { opacity: 0; transform: translateY(16px) scale(.985); }
.scr { display: flex; flex-direction: column; gap: 12px; height: 100%; padding: calc(var(--st) + var(--pad)) calc(var(--sr) + var(--pad)) calc(var(--sb) + var(--pad)) calc(var(--sl) + var(--pad)); }
.scr-head { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 14px; height: 50px; flex: none; }
.scr-title { margin: 0; padding: 6px 2px; font-family: var(--fd); font-weight: 900; font-size: clamp(19px, 2.8vmin, 28px); letter-spacing: -.01em; color: #fff; text-shadow: 0 2px 0 rgba(2, 10, 30, .45), 0 2px 5px rgba(2, 10, 30, .3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: none; }
.scr-right { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.scr-body { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: rgba(170, 215, 255, .35) transparent; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.scr-body.center { display: flex; flex-direction: column; }
.scr-body.center > * { margin: auto; }
.scr-foot { flex: none; display: flex; justify-content: center; padding-top: 4px; }
.scr-foot .btn.wide { max-width: 440px; }
.sec-title { display: flex; align-items: center; gap: 8px; margin: 16px 2px 10px; font: 800 13px/1.2 var(--fd); letter-spacing: .08em; text-transform: uppercase; color: var(--ice); }
.sec-title .ico { width: 18px; height: 18px; }
.fish-chip { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 14px 0 10px; border-radius: 21px; border: 0; color: #fff; background: var(--glass); box-shadow: var(--edge), 0 8px 22px rgba(2, 8, 22, .35);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); font-family: var(--fd); font-weight: 800; font-size: 15px; min-width: 84px; justify-content: center; font-variant-numeric: tabular-nums; }
.fish-chip .ico { width: 22px; height: 22px; }
.fish-plus { cursor: pointer; padding-right: 5px; transition: transform .14s cubic-bezier(.2, .9, .3, 1.4); }
.fish-plus:active { transform: scale(.95); }
.fp-plus { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #6fe59a, #22b866); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 2px 8px rgba(34, 184, 102, .5); }
.fp-plus .ico { width: 16px; height: 16px; }

/* ------------------------------------------------------------- segmented / tabs (wrapping, never scrolling sideways) */
.seg { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 16px; background: rgba(2, 10, 26, .35); box-shadow: inset 0 0 0 1px var(--line); }
.seg-btn { flex: 1 1 auto; min-height: 40px; padding: 6px 14px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; font-family: var(--fd); font-weight: 700; font-size: 13px; color: var(--ink2); display: flex; flex-direction: column; align-items: center; justify-content: center; transition: background .2s, color .2s, box-shadow .2s; }
.seg-btn.on { background: linear-gradient(180deg, #3d6fb8, #24508f); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 4px 12px rgba(2, 8, 22, .35), 0 0 0 1px rgba(143, 216, 255, .45); }
@media (hover: hover) { .seg-btn:not(.on):hover { background: rgba(255, 255, 255, .07); color: #fff; } }
.seg-s { font-size: 11px; font-family: var(--fu); color: var(--muted); }

/* ============================================================= HOME / LOBBY */
.menu { position: absolute; inset: 0; display: grid;
  grid-template-columns: auto minmax(0, 1fr) clamp(300px, 27vw, 380px);
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: "top top top" "nav . side" "foot . side";
  column-gap: clamp(14px, 2vw, 28px); row-gap: 12px;
  padding: calc(var(--st) + var(--pad)) calc(var(--sr) + var(--pad)) calc(var(--sb) + var(--pad)) calc(var(--sl) + var(--pad)); }
.hm-top { grid-area: top; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-areas: "pc logo r"; align-items: center; gap: 12px; height: 60px; }
.player-card { grid-area: pc; justify-self: start; display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 16px 0 6px; border-radius: 29px; border: 0; cursor: pointer; color: #fff; text-align: left; max-width: min(300px, 100%); min-width: 0;
  background: var(--glass); box-shadow: var(--edge), 0 10px 26px rgba(2, 8, 22, .4); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); transition: transform .14s cubic-bezier(.2, .9, .3, 1.4), box-shadow .2s; }
.player-card:active { transform: scale(.97); }
@media (hover: hover) { .player-card:hover { box-shadow: var(--edge), 0 10px 26px rgba(2, 8, 22, .4), 0 0 20px rgba(79, 209, 255, .22); } }
.pc-avatar { --p: 0; position: relative; width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(#ffd25a calc(var(--p) * 360deg), rgba(255, 255, 255, .14) 0); box-shadow: 0 4px 12px rgba(0, 0, 0, .35); }
.pc-face { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; display: block; background: linear-gradient(160deg, #2f7fe0, #123e85); box-shadow: inset 0 0 0 2px #0b1d3a; }
.pc-face svg { width: 100%; height: 100%; display: block; transform: translateY(3px) scale(1.05); }
.pc-lv { position: absolute; right: -4px; bottom: -4px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: linear-gradient(180deg, #ffe07a, #ffb21a); color: #4a2a00; font: 900 11px/22px var(--fd); text-align: center; box-shadow: 0 0 0 2px #0b1d3a; }
.pc-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pc-nick { font: 800 15px/1.1 var(--fd); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-sub { font-size: 11px; color: var(--ink2); line-height: 1.1; letter-spacing: .04em; }
.pc-xp { position: relative; display: block; width: 96px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.pc-xp i { position: absolute; inset: 0; transform-origin: left; background: linear-gradient(90deg, #ffd25a, #fff1b8); border-radius: inherit; }
.hm-logo { grid-area: logo; display: flex; flex-direction: column; align-items: center; gap: 2px; pointer-events: none; }
.hm-logo img { display: block; height: 54px; width: auto; aspect-ratio: 4.31; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .4)); }
.hm-tag { margin: 0; font: 800 9.5px/1 var(--fd); letter-spacing: .38em; padding-left: .38em; text-transform: uppercase; color: #dff3ff; text-shadow: 0 2px 8px rgba(0, 0, 0, .6); white-space: nowrap; }
.hm-top-r { grid-area: r; justify-self: end; display: flex; align-items: center; gap: 10px; min-width: 0; }
.hm-nav { grid-area: nav; align-self: center; display: flex; flex-direction: column; gap: 10px; }
.nav-btn { --tc: #8fd8ff; position: relative; width: 86px; height: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 0 4px; border: 0; border-radius: 20px; cursor: pointer; color: #fff;
  background: var(--glass); box-shadow: var(--edge), 0 10px 24px rgba(2, 8, 22, .38); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); transition: transform .16s cubic-bezier(.2, .9, .3, 1.5), box-shadow .2s, background .2s; }
.nav-btn:active { transform: scale(.93); }
@media (hover: hover) { .nav-btn:hover { transform: translateY(-2px); background: var(--glass-hi); box-shadow: var(--edge), 0 12px 26px rgba(2, 8, 22, .42), 0 0 22px color-mix(in srgb, var(--tc) 35%, transparent); } }
.nb-ico { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; color: var(--tc); background: rgba(255, 255, 255, .08); background: color-mix(in srgb, var(--tc) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tc) 30%, transparent); }
.nb-ico .ico { width: 24px; height: 24px; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--tc) 55%, transparent)); }
.nb-l { max-width: 100%; font: 800 10.5px/1.1 var(--fd); letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-btn.t-mint { --tc: #3ee0b0; } .nav-btn.t-gold { --tc: #ffc940; } .nav-btn.t-coral { --tc: #ff8a4c; } .nav-btn.t-violet { --tc: #b49bff; } .nav-btn.t-ice { --tc: #8fd8ff; } .nav-btn.t-sky { --tc: #5fb9ff; }
.nav-btn.disabled { opacity: .55; filter: grayscale(.6); }
.hm-side { grid-area: side; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; min-height: 0; }
.hm-cards { display: flex; flex-direction: column; gap: 10px; }
.hm-card { position: relative; display: flex; align-items: center; gap: 12px; height: 70px; padding: 0 14px 0 10px; border: 0; border-radius: 20px; text-align: left; color: #fff; cursor: pointer; width: 100%;
  background: var(--glass); box-shadow: var(--edge), 0 10px 24px rgba(2, 8, 22, .35); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); transition: transform .14s cubic-bezier(.2, .9, .3, 1.4), box-shadow .2s; }
.hm-card:active { transform: scale(.98); }
.hm-card.hidden { display: flex !important; visibility: hidden; pointer-events: none; }
.hm-card > .ico { width: 20px; height: 20px; color: var(--ink2); }
.hc-ico { width: 48px; height: 48px; flex: none; border-radius: 15px; display: grid; place-items: center; color: #ffd25a; background: linear-gradient(160deg, rgba(255, 210, 90, .22), rgba(255, 140, 40, .12)); box-shadow: inset 0 0 0 1px rgba(255, 210, 90, .3); }
.hc-ico .ico { width: 26px; height: 26px; }
.hc-ico.app { background: none; box-shadow: none; }
.hc-ico.app img { width: 46px; height: 46px; border-radius: 13px; box-shadow: 0 4px 12px rgba(0, 0, 0, .4); }
.hm-quest.off .hc-ico { color: var(--ice); background: rgba(143, 216, 255, .12); box-shadow: inset 0 0 0 1px rgba(143, 216, 255, .25); }
.hc-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hc-txt strong { font: 800 13.5px/1.15 var(--fd); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-txt small { font-size: 12px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-bar { position: relative; display: block; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; margin-top: 2px; }
.hc-bar i { position: absolute; inset: 0; transform-origin: left; background: linear-gradient(90deg, #ffb21a, #ffe27a); border-radius: inherit; }
.hm-quest.skeleton { cursor: default; }
.hm-quest.skeleton small { opacity: .6; }
.ic-go { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--cyan); font: 800 10px/1 var(--fd); }
.ic-go .ico { width: 22px; height: 22px; }
.mode-sel { padding: 10px; border-radius: 22px; background: var(--glass); box-shadow: var(--edge), 0 12px 28px rgba(2, 8, 22, .4); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.ms-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ms-opt { position: relative; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 10px; border: 0; border-radius: 14px; cursor: pointer; color: var(--ink2); text-align: left; min-width: 0;
  background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); transition: background .2s, color .2s, box-shadow .2s, transform .14s; }
.ms-opt:active { transform: scale(.97); }
@media (hover: hover) { .ms-opt:not(.on):hover { background: rgba(255, 255, 255, .09); color: #fff; } }
.ms-ico { width: 30px; height: 30px; flex: none; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); }
.ms-ico .ico { width: 19px; height: 19px; }
.ms-l { font: 800 12px/1.1 var(--fd); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-opt.on { color: #fff; background: linear-gradient(180deg, rgba(79, 209, 255, .28), rgba(47, 120, 230, .22)); box-shadow: inset 0 0 0 1.5px rgba(143, 222, 255, .75), 0 0 18px rgba(79, 209, 255, .25); }
.ms-opt.on .ms-ico { background: linear-gradient(160deg, #6fe0ff, #2f8ef0); color: #fff; box-shadow: 0 3px 10px rgba(47, 142, 240, .5); }
.ms-opt.disabled { opacity: .5; }
.ms-desc { margin: 8px 4px 0; height: 1.3em; font-size: 12.5px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-play { position: relative; display: flex; align-items: center; justify-content: center; gap: 14px; height: clamp(64px, 9vmin, 80px); border: 0; border-radius: 24px; cursor: pointer; overflow: hidden; isolation: isolate; color: #fff;
  background: linear-gradient(115deg, #ffc44d 0%, #ff8a1f 40%, #ff5a3c 76%, #ff3d6a 100%);
  --pb: 0 6px 0 #b53216, 0 16px 34px rgba(255, 90, 50, .45), inset 0 2px 0 rgba(255, 255, 255, .5), inset 0 -3px 0 rgba(140, 30, 10, .2);
  box-shadow: var(--pb); animation: playGlow 2.8s ease-in-out infinite; transition: transform .16s cubic-bezier(.2, .9, .3, 1.5), filter .2s; }
.btn-play:active { transform: translateY(3px) scale(.985); box-shadow: 0 3px 0 #b53216, 0 8px 18px rgba(255, 90, 50, .35), inset 0 2px 0 rgba(255, 255, 255, .5); animation: none; }
@media (hover: hover) { .btn-play:hover { filter: brightness(1.06) saturate(1.08); transform: translateY(-1px); } }
.btn-play:focus-visible { outline: 3px solid rgba(255, 255, 255, .95); outline-offset: 3px; box-shadow: var(--pb); }
.btn-play::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .5) 50%, transparent 65%); transform: translateX(-100%); animation: playShine 3.6s ease-in-out 1.4s infinite; }
.btn-play::after { content: ''; position: absolute; left: 5%; right: 5%; top: 3px; height: 44%; z-index: -1; border-radius: 20px 20px 50% 50%; background: linear-gradient(180deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, 0)); pointer-events: none; }
.bp-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .22); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .45); flex: none; }
.bp-ico .ico { width: 22px; height: 22px; margin-left: 3px; filter: drop-shadow(0 2px 0 rgba(140, 30, 10, .35)); }
.bp-txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.bp-main { font: 900 clamp(24px, 3.6vmin, 32px)/1 var(--fd); letter-spacing: .08em; text-shadow: 0 2px 0 rgba(140, 30, 10, .45), 0 0 18px rgba(255, 255, 255, .25); }
.bp-sub { margin-top: 4px; font: 800 11px/1 var(--fd); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 245, 230, .92); }
.btn-play.disabled { filter: grayscale(.8) brightness(.85); animation: none; }
@keyframes playShine { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes playGlow { 0%, 100% { box-shadow: var(--pb); } 50% { box-shadow: var(--pb), 0 0 0 4px rgba(255, 170, 90, .28), 0 0 40px 6px rgba(255, 110, 60, .5); } }
@media (prefers-reduced-motion: reduce) { .btn-play, .btn-play::before { animation: none; } }
.hm-foot { grid-area: foot; align-self: end; display: flex; align-items: center; gap: 10px; }
.ver { font-size: 11px; color: rgba(220, 236, 255, .5); }
.offline-banner { position: absolute; left: 50%; top: calc(var(--st) + var(--pad) + 72px); transform: translateX(-50%); display: flex; align-items: center; gap: 8px; max-width: min(92vw, 560px);
  padding: 8px 14px; border-radius: 14px; background: rgba(255, 196, 80, .94); color: #4a2c00; font-size: 13px; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); z-index: 2; }
.offline-banner.hidden { display: none; }
/* desktop/tablet landscape: shorter screens */
@media (min-aspect-ratio: 1/1) and (max-height: 700px) {
  .nav-btn { height: 64px; width: 80px; gap: 4px; border-radius: 18px; }
  .nb-ico { width: 32px; height: 32px; border-radius: 11px; }
  .nb-ico .ico { width: 20px; height: 20px; }
  .hm-card { height: 62px; }
  .hc-ico { width: 42px; height: 42px; }
}
/* short landscape phones */
@media (min-aspect-ratio: 1/1) and (max-height: 520px) {
  .menu { row-gap: 8px; grid-template-columns: auto minmax(0, 1fr) clamp(270px, 38vw, 330px); }
  .hm-top { height: 46px; }
  .player-card { height: 46px; padding-right: 12px; }
  .pc-avatar { width: 38px; height: 38px; } .pc-face { width: 31px; height: 31px; }
  .pc-xp, .pc-sub { display: none; }
  .hm-logo img { height: 36px; } .hm-tag { display: none; }
  .icon-btn { width: 42px; height: 42px; } .fish-chip { height: 40px; }
  .hm-nav { display: grid; grid-template-columns: repeat(2, 64px); gap: 7px; }
  .nav-btn { width: 64px; height: 60px; gap: 3px; border-radius: 16px; }
  .nb-ico { width: 30px; height: 30px; } .nb-ico .ico { width: 19px; height: 19px; }
  .nb-l { font-size: 9px; }
  .hm-cards { display: none; }
  .mode-sel { padding: 7px; border-radius: 18px; }
  .ms-grid { gap: 6px; } .ms-opt { height: 38px; padding: 0 7px; gap: 5px; } .ms-ico { width: 22px; height: 22px; border-radius: 7px; } .ms-ico .ico { width: 14px; height: 14px; } .ms-l { font: 800 12px/1.1 var(--fu); }
  .ms-desc { display: none; }
  .btn-play { height: 56px; border-radius: 20px; gap: 10px; } .bp-ico { width: 36px; height: 36px; } .bp-main { font-size: 22px; }
  .hm-foot .brand-sig { height: 44px; } .hm-foot .ver { display: none; }
  .offline-banner { top: calc(var(--st) + 60px); }
}
/* portrait / narrow: logo row, hero in the middle, controls stacked at the bottom */
@media (max-aspect-ratio: 1/1) {
  .menu { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto auto auto; grid-template-areas: "top" "." "side" "nav" "foot"; row-gap: 10px; }
  .hm-top { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "pc r" "logo logo"; height: auto; row-gap: 10px; }
  .hm-logo img { height: clamp(46px, 7.5vh, 70px); }
  .hm-side { width: 100%; max-width: 520px; justify-self: center; gap: 10px; }
  .hm-cards { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .hm-cards .hm-quest { order: 1; } .hm-cards .install-card { order: 2; }
  .hm-cards .install-card { width: 74px; padding: 0; justify-content: center; }
  .hm-cards .install-card .hc-txt, .hm-cards .install-card .hc-ico { display: none; }
  .hm-cards .install-card .ic-go { font-size: 10px; }
  .hm-card { height: 62px; }
  .hm-nav { flex-direction: row; justify-self: center; width: 100%; max-width: 520px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
  .nav-btn { width: auto; height: 62px; border-radius: 16px; gap: 4px; }
  .nb-ico { width: 30px; height: 30px; border-radius: 10px; } .nb-ico .ico { width: 20px; height: 20px; }
  .nb-l { font: 800 10.5px/1.1 var(--fu); letter-spacing: 0; }
  .hm-foot { justify-self: center; }
  .hm-foot .ver { display: none; }
  .btn-play { height: 64px; }
  .offline-banner { top: calc(var(--st) + var(--pad) + 140px); }
}
@media (max-aspect-ratio: 1/1) and (max-width: 400px) {
  .player-card { padding-right: 10px; gap: 8px; } .pc-xp { width: 70px; } .pc-nick { font-size: 13px; }
  .hm-top-r { gap: 6px; } .icon-btn { width: 42px; height: 42px; border-radius: 14px; } .fish-chip { min-width: 0; height: 42px; padding-left: 8px; gap: 5px; font-size: 13px; }
  .fp-plus { width: 26px; height: 26px; }
  .ms-l { font-size: 11px; } .ms-ico { width: 26px; height: 26px; }
}
@media (max-aspect-ratio: 1/1) and (max-height: 760px) {
  .hm-cards { display: none; }
  .hm-foot .brand-sig { height: 42px; }
  .hm-foot .bs-mark { width: 36px; height: 36px; }
}
@media (min-width: 700px) and (max-aspect-ratio: 1/1) {
  .nav-btn { height: 72px; } .nb-l { font-size: 10.5px; } .nb-ico { width: 36px; height: 36px; } .nb-ico .ico { width: 22px; height: 22px; }
}

/* ------------------------------------------------------------- play / modes */
.mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; width: min(880px, 100%); }
.mode-card { position: relative; display: flex; align-items: center; gap: 16px; min-height: 108px; padding: 16px 18px; border-radius: 22px; border: 0; text-align: left; cursor: pointer; color: #fff;
  background: var(--glass); box-shadow: var(--edge), var(--shadow); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); transition: transform .16s cubic-bezier(.2, .9, .3, 1.4), box-shadow .2s; }
.mode-card:active { transform: scale(.98); }
@media (hover: hover) { .mode-card:hover { transform: translateY(-2px); box-shadow: var(--edge), var(--shadow), 0 0 26px rgba(79, 209, 255, .22); } }
.mode-card.disabled { opacity: .55; filter: grayscale(.5); }
.mode-ico { width: 60px; height: 60px; border-radius: 18px; flex: none; display: grid; place-items: center; color: #fff; background: linear-gradient(160deg, #ffb24a, #ff6a1a); box-shadow: 0 8px 18px rgba(255, 110, 30, .4), inset 0 1px 0 rgba(255, 255, 255, .45); }
.mode-ico .ico { width: 30px; height: 30px; }
.mode-card.bots .mode-ico, .mode-ico.alt { background: linear-gradient(160deg, #6fdcff, #2f7fe6); box-shadow: 0 8px 18px rgba(47, 127, 230, .4), inset 0 1px 0 rgba(255, 255, 255, .45); }
.mode-card.private .mode-ico { background: linear-gradient(160deg, #c7a8ff, #8b5cf6); box-shadow: 0 8px 18px rgba(139, 92, 246, .4), inset 0 1px 0 rgba(255, 255, 255, .45); }
.mode-card.practice .mode-ico { background: linear-gradient(160deg, #7ff0cd, #14b8a6); box-shadow: 0 8px 18px rgba(20, 184, 166, .4), inset 0 1px 0 rgba(255, 255, 255, .45); }
.mode-txt { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.mode-txt strong { font-family: var(--fd); font-size: clamp(16px, 2.2vmin, 20px); }
.mode-txt small { font-size: 13px; color: var(--ink2); font-weight: 700; }
.mode-tag { position: absolute; top: 10px; right: 12px; font-size: 10.5px; font-weight: 900; padding: 3px 8px; border-radius: 8px; background: rgba(79, 209, 255, .16); color: var(--ice); letter-spacing: .04em; }
@media (max-width: 560px) { .mode-grid { grid-template-columns: 1fr; } .mode-card { min-height: 88px; } }
@media (max-height: 520px) and (orientation: landscape) { .mode-card { min-height: 84px; padding: 12px; } .mode-ico { width: 48px; height: 48px; } }
.setup { width: min(780px, 100%); margin: 0 auto; padding: 6px 18px 18px; }
.arena-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.arena-card { position: relative; display: flex; flex-direction: column; text-align: left; border-radius: 18px; overflow: hidden; border: 0; background: rgba(255, 255, 255, .05); cursor: pointer; padding: 0; color: #fff;
  box-shadow: inset 0 0 0 1px var(--line), 0 10px 24px rgba(2, 8, 22, .3); transition: box-shadow .2s, transform .14s; }
.arena-card.on { box-shadow: inset 0 0 0 2px #ffb24a, 0 0 0 3px rgba(255, 140, 50, .25), 0 12px 28px rgba(255, 110, 30, .25); }
.arena-card:active { transform: scale(.985); }
.arena-art { display: block; height: 92px; overflow: hidden; }
.arena-art svg { width: 100%; height: 100%; display: block; }
.arena-txt { display: flex; flex-direction: column; gap: 3px; padding: 10px 14px 14px; }
.arena-txt strong { font-family: var(--fd); font-size: 14.5px; }
.arena-txt small { font-size: 12.5px; color: var(--ink2); }
@media (max-height: 520px) and (orientation: landscape) { .arena-art { height: 52px; } .arena-txt { padding: 6px 12px 8px; } .arena-txt small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .setup .sec-title { margin: 8px 2px 6px; } }
.room-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; width: min(840px, 100%); }
.room-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 22px; }
.room-card h3 { margin: 4px 0 0; font-family: var(--fd); font-size: 19px; }
.room-card p { margin: 0 0 8px; color: var(--ink2); font-size: 14px; flex: 1; }
.code-row { display: flex; gap: 8px; width: 100%; }
.code-input { flex: 1 1 0; width: 0; min-width: 0; height: 52px; border-radius: 14px; border: 0; background: rgba(2, 10, 26, .5); box-shadow: inset 0 0 0 1.5px var(--line2); padding: 0 14px; font-family: var(--fd); font-weight: 800; font-size: 22px; letter-spacing: .3em; text-transform: uppercase; color: #fff; text-align: center; }
.code-input::placeholder { color: rgba(190, 215, 245, .3); }
.code-input:focus { box-shadow: inset 0 0 0 2px var(--cyan), 0 0 18px rgba(79, 209, 255, .3); }
@media (max-width: 640px) { .room-grid { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------- roles */
.roles-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 520px); gap: 16px; overflow: hidden; }
.roles-left, .split-left { position: relative; min-height: 0; }
.preview-slot { position: absolute; inset: 0; cursor: grab; touch-action: none; }
.preview-slot:active { cursor: grabbing; }
.roles-right { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.roles-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 14px 6px; overscroll-behavior: contain; }
.role-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.role-card { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 4px; border-radius: 15px; border: 0; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: box-shadow .2s, transform .14s, background .2s; min-width: 0; color: var(--ink2); }
.role-card:active { transform: scale(.96); }
.role-card.on { color: #fff; background: linear-gradient(180deg, rgba(255, 150, 60, .26), rgba(255, 100, 40, .14)); box-shadow: inset 0 0 0 1.5px #ffb24a, 0 0 18px rgba(255, 140, 50, .3); }
.role-emo { font-size: 26px; line-height: 1; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .35)); }
.role-nm { font-family: var(--fu); font-size: 12px; font-weight: 900; text-align: center; line-height: 1.12; overflow-wrap: normal; word-break: keep-all; hyphens: manual; max-width: 100%; }
@media (max-width: 460px) { .roles-scroll { padding: 10px 10px 6px; } .role-list { gap: 5px; } .role-card { padding: 8px 1px; } .role-nm { font-size: 10.5px; letter-spacing: -.02em; } .role-emo { font-size: 22px; } }
.role-detail { padding: 6px 2px 4px; }
.role-title { margin: 14px 0 4px; font-family: var(--fd); font-size: 20px; }
.role-desc { margin: 0 0 12px; color: var(--ink2); font-size: 14px; min-height: 2.7em; }
.stat-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 18px; }
.stat { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--ink2); }
.stat-pips { display: flex; gap: 3px; }
.stat-pips i { width: 14px; height: 8px; border-radius: 3px; background: rgba(255, 255, 255, .1); }
.stat-pips i.on { background: linear-gradient(90deg, #ffb24a, #ff7a1a); box-shadow: 0 0 6px rgba(255, 122, 26, .5); }
.role-special { margin-top: 12px; padding: 10px 12px; border-radius: 15px; background: rgba(111, 125, 255, .14); box-shadow: inset 0 0 0 1px rgba(150, 160, 255, .25); min-height: 74px; }
.role-special.alt { background: rgba(62, 224, 176, .1); box-shadow: inset 0 0 0 1px rgba(62, 224, 176, .25); }
.role-special.placeholder { visibility: hidden; }
.role-special strong { font-family: var(--fd); font-size: 14px; }
.role-special p { margin: 3px 0 0; font-size: 13px; color: var(--ink2); }
.rs-tag { display: inline-block; margin-right: 8px; padding: 2px 8px; border-radius: 8px; background: var(--frost); color: #fff; font-size: 10.5px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.role-special.alt .rs-tag { background: #14b8a6; }
.roles-foot { display: flex; align-items: center; gap: 10px; padding: 10px 14px 14px; flex: none; }
.roles-foot .start-btn { flex: 1; height: 56px; font-size: 18px; }
.mode-pill { font-size: 12px; font-weight: 900; color: var(--ink2); padding: 7px 11px; border-radius: 10px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
@media (max-aspect-ratio: 1/1) {
  .roles-body, .split { grid-template-columns: 1fr !important; grid-template-rows: minmax(150px, 34%) minmax(0, 1fr); }
}
@media (max-height: 520px) and (orientation: landscape) {
  .roles-scroll { padding: 10px 10px 4px; }
  .role-card { padding: 6px 2px; }
  .role-emo { font-size: 20px; }
  .role-desc { min-height: 0; font-size: 13px; }
  .roles-foot { padding: 8px 10px 10px; }
  .roles-foot .start-btn { height: 48px; }
}

/* ------------------------------------------------------------- split (locker/profile) + item cards */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 640px); gap: 16px; overflow: hidden; }
.split-right { display: flex; flex-direction: column; min-height: 0; overflow: hidden; padding: 12px; }
.tabs-wrap { flex: none; margin-bottom: 10px; }
.grid-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px; }
.confirm-btns { display: flex; gap: 10px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.confirm { text-align: center; }
.confirm h3 { margin: 0 0 8px; font-family: var(--fd); font-size: 18px; }
.confirm p { margin: 0; color: var(--ink2); font-size: 14px; }

/* ------------------------------------------------------------- quests / leaderboard / profile / settings / howto */
.q-wrap { width: min(660px, 100%); display: flex; flex-direction: column; gap: 12px; }
.q-reset { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0; color: var(--ink2); text-shadow: 0 2px 8px rgba(2, 10, 30, .6); font-size: 14px; }
.q-reset-t { font-family: var(--fd); font-variant-numeric: tabular-nums; min-width: 8ch; color: #fff; }
.q-list { display: flex; flex-direction: column; gap: 12px; }
.q-card { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.q-top { display: flex; align-items: center; gap: 12px; }
.q-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(160deg, rgba(255, 210, 90, .22), rgba(255, 140, 40, .12)); color: #ffd25a; flex: none; box-shadow: inset 0 0 0 1px rgba(255, 210, 90, .3); }
.q-title { font-family: var(--fd); font-size: 15px; }
.q-prog { display: flex; align-items: center; gap: 10px; }
.q-prog .bar { flex: 1; height: 12px; }
.q-prog .bar i { background: linear-gradient(90deg, #ffb21a, #ffe27a); box-shadow: 0 0 10px rgba(255, 190, 40, .5); }
.q-n { font-size: 13px; font-variant-numeric: tabular-nums; min-width: 84px; text-align: right; color: var(--ink2); }
.q-bot { display: flex; align-items: center; justify-content: space-between; min-height: 40px; }
.q-reward { display: inline-flex; align-items: center; gap: 5px; font-family: var(--fd); }
.q-claimed { display: inline-flex; align-items: center; gap: 6px; height: 40px; color: #6ff0b8; font-weight: 900; }
.q-card.done:not(.claimed) { box-shadow: var(--edge), var(--shadow), 0 0 0 2px rgba(255, 178, 74, .7), 0 0 26px rgba(255, 140, 50, .3); }
.q-card.claimed { opacity: .75; }
.lb-wrap { width: min(680px, 100%); height: 100%; display: flex; flex-direction: column; gap: 8px; padding: 12px; min-height: 0; }
.lb-list { flex: 1; min-height: 120px; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 6px; }
.lb-loading { flex: 1; display: grid; place-items: center; min-height: 160px; }
.lb-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 84px 72px; align-items: center; gap: 8px; height: 48px; flex: none; padding: 0 10px; border-radius: 14px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
.lb-row.lb-cap { height: 26px; background: none; box-shadow: none; font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.lb-row.me { background: linear-gradient(90deg, rgba(255, 140, 50, .25), rgba(255, 255, 255, .05)); box-shadow: inset 0 0 0 1.5px rgba(255, 178, 74, .7); }
.lb-row.placeholder { visibility: hidden; }
@media (max-width: 420px) { .lb-row { grid-template-columns: 32px minmax(0, 1fr) 58px 52px; gap: 6px; padding: 0 8px; font-size: 13px; } .lb-row.lb-cap { font-size: 9.5px; letter-spacing: 0; } }
.lb-n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 800; }
.lb-v { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.lb-v .ico { width: 15px; height: 15px; color: var(--ice); }
.lb-v.w .ico { color: var(--gold); }
.rank { text-align: center; font-family: var(--fd); color: var(--muted); }
.medal { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--fd); font-size: 13px; color: #fff; margin: auto; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 3px 8px rgba(0, 0, 0, .35); }
.medal.m1 { background: linear-gradient(160deg, #ffe27a, #e9a800); color: #5a3a00; }
.medal.m2 { background: linear-gradient(160deg, #eef4fa, #9fb1c4); color: #2a3a4c; }
.medal.m3 { background: linear-gradient(160deg, #ffc59a, #c87533); }
.lb-mine { flex: none; min-height: 48px; }
.pf { padding: 18px; overflow-y: auto; }
.pf-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.nick-row { display: flex; gap: 8px; margin-top: 6px; }
.nick-field { position: relative; flex: 1; min-width: 0; }
.nick-input { width: 100%; height: 48px; border-radius: 14px; border: 0; box-shadow: inset 0 0 0 1.5px var(--line2); padding: 0 52px 0 14px; font-family: var(--fd); font-weight: 700; font-size: 16px; color: #fff; background: rgba(2, 10, 26, .5); }
.nick-input:focus { box-shadow: inset 0 0 0 2px var(--cyan), 0 0 16px rgba(79, 209, 255, .25); }
.nick-count { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.nick-row .btn { height: 48px; }
.pf-level { display: flex; align-items: center; gap: 14px; margin: 16px 0; }
.pf-xp { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.pf-xp strong { font-family: var(--fd); }
.pf-xp small { color: var(--ink2); font-variant-numeric: tabular-nums; }
.pf-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.pf-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; border-radius: 16px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); }
.pf-stat .ico { color: var(--ice); width: 22px; height: 22px; }
.pf-stat strong { font-family: var(--fd); font-size: 18px; font-variant-numeric: tabular-nums; }
.pf-stat span { font-size: 11.5px; color: var(--ink2); }
.lv-ring { --p: 0; position: relative; width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(#ffd25a calc(var(--p) * 360deg), rgba(255, 255, 255, .12) 0); }
.lv-ring::before { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: linear-gradient(180deg, #1f3d6c, #0f2346); }
.lv-ring span { position: relative; font-family: var(--fd); font-weight: 900; font-size: 15px; color: #fff; }
.lv-ring.big { width: 76px; height: 76px; }
.lv-ring.big::before { inset: 6px; }
.lv-ring.big span { font-size: 24px; }
.set-wrap { width: min(700px, 100%); padding: 6px 20px 20px; }
.set-wrap .sec-title { margin-top: 18px; }
.set-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 54px; padding: 6px 0; border-bottom: 1px solid rgba(170, 215, 255, .08); }
.set-l { display: flex; flex-direction: column; font-size: 15px; }
.set-l small { font-size: 12px; color: var(--muted); font-weight: 700; }
.set-c { display: flex; align-items: center; gap: 10px; min-width: 0; }
.set-c.right { justify-content: flex-end; }
.set-c .seg { flex-wrap: wrap; justify-content: flex-end; }
.sl-v { width: 52px; text-align: right; font-variant-numeric: tabular-nums; font-size: 14px; color: var(--ink2); }
.slider { --k: .5; -webkit-appearance: none; appearance: none; width: clamp(120px, 26vw, 220px); height: 30px; background: transparent; cursor: pointer; }
.slider::-webkit-slider-runnable-track { height: 8px; border-radius: 6px; background: linear-gradient(90deg, var(--cyan) calc(var(--k) * 100%), rgba(255, 255, 255, .12) 0); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35); }
.slider::-moz-range-track { height: 8px; border-radius: 6px; background: linear-gradient(90deg, var(--cyan) calc(var(--k) * 100%), rgba(255, 255, 255, .12) 0); }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -8px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 4px rgba(79, 209, 255, .35), 0 3px 8px rgba(0, 0, 0, .4); }
.slider::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 4px rgba(79, 209, 255, .35); }
.switch { position: relative; width: 54px; height: 32px; border-radius: 16px; border: 0; background: rgba(255, 255, 255, .14); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .35); cursor: pointer; transition: background .2s; flex: none; }
.switch i { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); transition: transform .2s cubic-bezier(.2, .9, .3, 1.3); }
.switch.on { background: linear-gradient(90deg, #22c55e, #3ee0b0); }
.switch.on i { transform: translateX(22px); }
@media (max-width: 520px) { .set-row { grid-template-columns: 1fr; gap: 6px; } .set-c { justify-content: flex-start; } .set-c.right { justify-content: flex-start; } .set-c .seg { justify-content: flex-start; } .slider { flex: 1; } }
.how-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; width: min(1100px, 100%); margin: 0 auto; padding-bottom: 8px; }
.how-card { padding: 12px 14px 16px; }
.how-art { height: 112px; border-radius: 15px; background: linear-gradient(180deg, #d7ecff, #f4f9ff); display: grid; place-items: center; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.how-art svg { width: 100%; height: 100%; }
.how-card h3 { margin: 12px 0 4px; font-family: var(--fd); font-size: 15px; }
.how-card p { margin: 0; font-size: 13.5px; color: var(--ink2); }
.how-card.controls { grid-column: 1 / -1; }
.ctl-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.ctl-cols h4 { margin: 6px 0; font-family: var(--fd); font-size: 13px; color: var(--ice); }
.ctl-cols ul { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--ink2); }

/* ------------------------------------------------------------- modals / toasts / sheets */
.modal-back { position: fixed; inset: 0; display: grid; place-items: center; padding: calc(var(--st) + 12px) calc(var(--sr) + 12px) calc(var(--sb) + 12px) calc(var(--sl) + 12px); background: rgba(2, 8, 22, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .22s; }
.modal-back.show { opacity: 1; }
.modal-box { width: min(430px, 100%); max-height: 100%; overflow-y: auto; padding: 24px; border-radius: var(--r-lg); color: #fff; background: linear-gradient(180deg, #1d3a66 0%, #0e2244 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 0 0 1px rgba(170, 215, 255, .16), 0 30px 80px rgba(0, 0, 0, .55); transform: translateY(14px) scale(.95); transition: transform .3s cubic-bezier(.2, .9, .3, 1.3); overscroll-behavior: contain; }
.modal-back.show .modal-box { transform: none; }
.pause { display: flex; flex-direction: column; gap: 12px; text-align: center; }
.pause h2 { margin: 0 0 4px; font-family: var(--fd); }
.pause .note { justify-content: center; margin: -4px 0 4px; }
.pause-row { display: flex; gap: 10px; }
.pause-row .btn { flex: 1; }
.ios-help h3 { margin: 0 0 10px; font-family: var(--fd); }
.ios-help ol { margin: 0 0 16px; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--ink2); }
.ios-share { display: inline-grid; vertical-align: middle; width: 22px; height: 22px; color: #4fb3ff; }
.toast { display: flex; align-items: center; gap: 10px; max-width: min(520px, 94vw); min-height: 46px; padding: 8px 10px 8px 16px; border-radius: 16px; background: rgba(10, 24, 48, .94); color: #fff; font-size: 14px; box-shadow: inset 0 0 0 1px rgba(170, 215, 255, .2), 0 14px 32px rgba(0, 0, 0, .4);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transform: translateY(-14px); opacity: 0; transition: transform .25s cubic-bezier(.2, .9, .3, 1.3), opacity .25s; pointer-events: auto; }
.toast.show { transform: none; opacity: 1; }
.toast.ok { background: rgba(14, 110, 70, .95); }
.toast.error { background: rgba(170, 28, 48, .95); }
.toast.warn { background: rgba(150, 92, 8, .95); }
.toast-text { flex: 1; }
.toast-btn { border: 0; height: 32px; padding: 0 12px; border-radius: 10px; background: #fff; color: #0b1d3a; font-family: var(--fd); font-weight: 800; font-size: 12.5px; cursor: pointer; flex: none; }
.install-sheet { position: fixed; left: 50%; bottom: calc(var(--sb) + 12px); width: min(520px, calc(100vw - 24px)); transform: translate(-50%, 140%); display: grid; grid-template-columns: 56px 1fr; gap: 6px 12px; align-items: center; padding: 14px; border-radius: 24px; color: #fff;
  background: linear-gradient(180deg, #1d3a66, #0e2244); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 0 0 1px rgba(170, 215, 255, .16), 0 20px 60px rgba(0, 0, 0, .5); transition: transform .35s cubic-bezier(.2, .9, .3, 1.2); }
.install-sheet.show { transform: translate(-50%, 0); }
.install-sheet img { border-radius: 14px; grid-row: 1 / 3; }
.is-txt { display: flex; flex-direction: column; }
.is-txt strong { font-family: var(--fd); }
.is-txt span { font-size: 13px; color: var(--ink2); }
.is-btns { display: flex; gap: 8px; justify-content: flex-end; }

/* ------------------------------------------------------------- game screen: waiting room, HUD, touch */
.game-ui { position: absolute; inset: 0; pointer-events: none; }
.game-ui > * { pointer-events: auto; }
.connecting { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 12px; color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, .4); pointer-events: none !important; }
.connecting p { margin: 0; font-family: var(--fd); }
.lobby { position: absolute; inset: 0; display: none; place-items: center; padding: calc(var(--st) + 10px) calc(var(--sr) + 10px) calc(var(--sb) + 10px) calc(var(--sl) + 10px); background: rgba(2, 8, 22, .35); }
.lobby.show { display: grid; }
.lb-box { width: min(780px, 100%); max-height: 100%; overflow-y: auto; padding: clamp(12px, 2.4vmin, 22px); display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.lb-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.lb-head h2 { margin: 0; font-family: var(--fd); font-size: clamp(18px, 2.6vmin, 24px); }
.lb-arena { font-size: 13px; color: var(--ink2); }
.lb-code { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 16px; background: linear-gradient(90deg, rgba(111, 125, 255, .2), rgba(79, 209, 255, .14)); box-shadow: inset 0 0 0 1px rgba(150, 190, 255, .25); }
.lb-code-l { font-size: 11px; color: var(--ink2); text-transform: uppercase; letter-spacing: .1em; }
.lb-code-v { font-family: var(--fd); font-size: clamp(24px, 4vmin, 34px); letter-spacing: .25em; color: #fff; text-shadow: 0 0 16px rgba(143, 216, 255, .6); }
.lb-code-btns { display: flex; gap: 8px; }
.lb-teams { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lb-team { display: flex; flex-direction: column; gap: 5px; }
.lb-team-h { display: flex; align-items: center; gap: 6px; font-family: var(--fd); font-size: 13px; }
.lb-team-h .dot { width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 8px currentColor; }
.lb-team.t0 .dot { background: var(--coral); color: var(--coral); } .lb-team.t1 .dot { background: var(--frost); color: var(--frost); }
.lb-slot { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 6px; height: 38px; padding: 0 10px; border-radius: 12px; background: rgba(255, 255, 255, .06); font-size: 14px; }
.lb-team.t0 .lb-slot { box-shadow: inset 3px 0 0 var(--coral); } .lb-team.t1 .lb-slot { box-shadow: inset 3px 0 0 var(--frost); }
.lb-slot.me { background: rgba(255, 255, 255, .14); }
.lb-slot.bot { color: var(--ink2); }
.lb-nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-tag { font-size: 10px; font-weight: 900; padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, .1); color: var(--ink2); }
.lb-tag.me { background: var(--coral); color: #fff; }
.lb-role-h { font-size: 11px; color: var(--ink2); text-transform: uppercase; letter-spacing: .08em; }
.lb-roles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.lb-role { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line); color: #fff; cursor: pointer; font-size: 20px; min-width: 0; }
.lb-role small { font-size: 10px; font-family: var(--fd); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.lb-role.on { background: linear-gradient(180deg, rgba(255, 150, 60, .26), rgba(255, 100, 40, .14)); box-shadow: inset 0 0 0 1.5px #ffb24a; }
.lb-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.lb-status { margin: 0; font-size: 14px; color: var(--ink2); min-height: 1.4em; flex: 1 1 200px; }
.lb-btns { display: flex; gap: 8px; }
@media (max-width: 480px) { .lb-code { grid-template-columns: 1fr; text-align: center; } .lb-code-btns { justify-content: center; } }
@media (max-height: 520px) and (orientation: landscape) { .lb-slot { height: 30px; } .lb-role { font-size: 16px; padding: 3px 2px; } .lb-box { gap: 7px; } }

.lock-hint { position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%); display: none; align-items: center; gap: 10px; height: 56px; padding: 0 24px; border-radius: 28px; border: 0; cursor: pointer;
  background: rgba(6, 18, 38, .78); box-shadow: inset 0 0 0 1px rgba(170, 215, 255, .25), 0 12px 32px rgba(0, 0, 0, .35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; font-family: var(--fd); font-weight: 800; font-size: 15px; z-index: 5; }
.lock-hint.show { display: inline-flex; }
.lock-hint .ico { width: 22px; height: 22px; color: var(--cyan); }

/* ------------------------------------------------------------- HUD (in-match) */

.hud { position: absolute; inset: 0; z-index: 3; pointer-events: none !important; font-family: var(--fd); color: #fff; --team: var(--coral); }
.hud-top { position: absolute; top: calc(var(--st) + 8px); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hud-timer { width: 100px; height: 38px; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(180deg, rgba(20, 40, 72, .78), rgba(8, 20, 40, .82)); font-weight: 800; font-size: 21px; font-variant-numeric: tabular-nums; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 0 0 1px rgba(170, 215, 255, .16), 0 6px 16px rgba(0, 0, 0, .3); }
.hud-timer.urgent { background: rgba(220, 38, 38, .8); animation: pulse 1s ease-in-out infinite; }
.cov { display: flex; align-items: center; gap: 8px; }
.cov-n { width: 46px; font-weight: 800; font-size: 15px; text-shadow: 0 2px 4px rgba(0, 0, 0, .45); font-variant-numeric: tabular-nums; }
.cov-n.c0 { text-align: right; color: #ffd2b0; } .cov-n.c1 { color: #cdd3ff; }
.cov-bar { position: relative; width: clamp(140px, 26vw, 320px); height: 14px; border-radius: 8px; background: rgba(255, 255, 255, .35); overflow: hidden; box-shadow: 0 3px 10px rgba(0, 0, 0, .2); }
.cov-fill { position: absolute; top: 0; bottom: 0; width: 100%; transform: scaleX(0); transition: transform .35s ease; }
.cov-fill.c0 { left: 0; transform-origin: left; background: linear-gradient(90deg, #ff9a4a, var(--coral)); }
.cov-fill.c1 { right: 0; transform-origin: right; background: linear-gradient(270deg, #8a97ff, var(--frost)); }
.cov-mid { position: absolute; left: 50%; top: -2px; bottom: -2px; width: 2px; margin-left: -1px; background: rgba(255, 255, 255, .9); }
.hud-miniwrap { position: absolute; top: calc(var(--st) + 8px); left: calc(var(--sl) + 8px); width: clamp(64px, 9vw, 104px); aspect-ratio: 80 / 112; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 2px rgba(255, 255, 255, .75), 0 8px 20px rgba(0, 0, 0, .35); background: #dfeaf5; }
.hud-mini { width: 100%; height: 100%; display: block; }
.hud-right { position: absolute; top: calc(var(--st) + 8px); right: calc(var(--sr) + 8px); display: flex; flex-direction: column; align-items: flex-end; gap: 6px; width: min(46vw, 320px); }
.hud-btns { display: flex; gap: 8px; }
.hud-btn { pointer-events: auto; width: 44px; height: 44px; border-radius: 14px; border: 0; background: linear-gradient(180deg, rgba(20, 40, 72, .72), rgba(8, 20, 40, .78)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 0 0 1px rgba(170, 215, 255, .2), 0 6px 16px rgba(0, 0, 0, .3); color: #fff; display: grid; place-items: center; cursor: pointer; }
.hud-btn .ico { width: 22px; height: 22px; }
.hud-scorebtn { display: none; }
.touch-on .hud-scorebtn { display: grid; }
.hud-net { height: 16px; font-family: var(--fu); font-size: 12px; color: rgba(255, 255, 255, .85); text-shadow: 0 1px 3px rgba(0, 0, 0, .5); font-variant-numeric: tabular-nums; }
.hud-feed { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; height: 128px; overflow: hidden; }
.feed-item { max-width: 100%; padding: 4px 10px; border-radius: 10px; background: rgba(8, 20, 40, .66); box-shadow: inset 0 0 0 1px rgba(170, 215, 255, .14); font-family: var(--fu); font-weight: 800; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: feedIn .25s ease; }
.feed-item b { font-weight: 900; text-shadow: 0 0 1px rgba(255, 255, 255, .5); }
.feed-item.mine { background: rgba(255, 255, 255, .92); color: #0b1d3a; }
.fi { margin: 0 3px; }
@keyframes feedIn { from { transform: translateX(20px); opacity: 0; } }
.hud-vitals { position: absolute; left: calc(var(--sl) + 12px); bottom: calc(var(--sb) + 12px); width: 212px; display: flex; flex-direction: column; gap: 4px; padding: 7px 10px 8px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(14, 32, 58, .52), rgba(8, 20, 40, .6)); border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 6px 16px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: box-shadow .25s; }
html[data-quality="low"] .hud-vitals { -webkit-backdrop-filter: none; backdrop-filter: none; }
.vit-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; height: 18px; }
.vit-role { min-width: 0; font-size: 11.5px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .01em; }
.vit { display: grid; grid-template-columns: 14px 1fr 24px; align-items: center; gap: 6px; height: 14px; }
.vit .vi { width: 13px; height: 13px; }
.v-hp .vi { color: #ff7d8f; } .v-tank .vi { color: #8fd3ff; }
.vit-bar { position: relative; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.vit-fill { position: absolute; inset: 0; transform-origin: left; border-radius: inherit; transition: transform .15s linear; }
.vit-fill.hp { background: linear-gradient(90deg, #ff6b81, #ffb0bc); }
.vit-fill.hp.low { animation: pulse .7s infinite; }
.vit-fill.tank { background: linear-gradient(90deg, #6fc3ff, #e3f6ff); }
.vit-fill.tank.low { background: linear-gradient(90deg, #ffb347, #ffe0a3); }
.vit-n { font-family: var(--fu); font-size: 11px; line-height: 1; text-align: right; font-variant-numeric: tabular-nums; opacity: .92; }
.spec { margin-top: 1px; }
.spec-bar { position: relative; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.spec-fill { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, #ffb31a, #ffe680); transition: transform .2s; }
.spec-row { flex: none; display: flex; align-items: center; gap: 5px; font-size: 10px; height: 18px; letter-spacing: .04em; color: rgba(255, 236, 170, .9); white-space: nowrap; }
.kbd { display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 5px; background: rgba(255, 255, 255, .92); color: #0b1d3a; font-size: 10px; }
.hud-vitals.spec-ready { box-shadow: 0 0 0 2px #ffd23f, 0 0 20px rgba(255, 210, 63, .6); }
.hud-vitals.spec-ready .spec-row { color: #ffe680; animation: pulse 1s infinite; }
.hud-alt { position: absolute; left: 50%; bottom: calc(var(--sb) + 18px); transform: translateX(-50%); font-size: 12px; height: 18px; color: rgba(255, 255, 255, .8); text-shadow: 0 1px 3px rgba(0, 0, 0, .6); white-space: nowrap; }
.hud-alt.ready { color: #bff3ff; }
.crosshair { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.ch-dot { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(0, 0, 0, .25); }
.ch-dot::before, .ch-dot::after { content: ''; position: absolute; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }
.ch-dot::before { left: 50%; top: -12px; width: 2px; height: 7px; margin-left: -1px; }
.ch-dot::after { top: 50%; left: -12px; width: 7px; height: 2px; margin-top: -1px; }
.ch-charge { position: absolute; left: -30px; top: -30px; width: 60px; height: 60px; opacity: 0; transition: opacity .15s; }
.ch-charge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ch-charge circle { fill: none; stroke-width: 5; }
.ch-charge .trk { stroke: rgba(255, 255, 255, .25); }
.ch-charge .val { stroke: #8fd3ff; stroke-dasharray: 150.8; stroke-dashoffset: 150.8; stroke-linecap: round; }
.ch-charge.full .val { stroke: #fff; filter: drop-shadow(0 0 4px #8fd3ff); }
.ch-hit { position: absolute; left: 0; top: 0; width: 40px; height: 40px; transform: translate(-50%, -50%); opacity: 0; transition: opacity .1s; }
.ch-hit svg { width: 100%; height: 100%; }
.ch-hit path { stroke: #fff; stroke-width: 3.5; stroke-linecap: round; filter: drop-shadow(0 0 2px rgba(0, 0, 0, .6)); }
.ch-hit.kill path { stroke: #ff4d4d; stroke-width: 4.5; }
.hud.spectate .crosshair, .hud.spectate .hud-vitals { display: none; }
.hud-center { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%) scale(.8); display: flex; flex-direction: column; align-items: center; text-align: center; opacity: 0; transition: opacity .2s, transform .25s cubic-bezier(.2, .9, .3, 1.4); white-space: nowrap; }
.hud-center.show { opacity: 1; transform: translate(-50%, -50%); }
.hud-big { font-weight: 900; font-size: clamp(54px, 12vmin, 120px); line-height: 1; color: #fff; text-shadow: 0 5px 0 var(--team), 0 10px 30px rgba(0, 0, 0, .35); }
.hud-sub { font-weight: 800; font-size: clamp(16px, 3vmin, 26px); margin-top: 8px; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.hud-center.go .hud-big { color: #fff3b0; }
.hud-center.respawn .hud-big { font-size: clamp(44px, 9vmin, 90px); }
.hud-vig { position: absolute; inset: 0; opacity: 0; --vc: #5b6cff; background: radial-gradient(ellipse at center, transparent 45%, color-mix(in srgb, var(--vc) 70%, transparent) 100%); transition: opacity .1s; }
.hud-toast { position: absolute; left: 50%; top: 24%; transform: translate(-50%, 8px); padding: 8px 18px; border-radius: 15px; background: rgba(8, 20, 40, .74); box-shadow: inset 0 0 0 1px rgba(170, 215, 255, .18); font-weight: 800; font-size: clamp(14px, 2.4vmin, 18px); opacity: 0; transition: opacity .2s, transform .2s; white-space: nowrap; max-width: 92vw; overflow: hidden; text-overflow: ellipsis; }
.hud-toast.show { opacity: 1; transform: translate(-50%, 0); }
.hud-toast.spec { background: linear-gradient(90deg, rgba(255, 179, 0, .9), rgba(255, 122, 26, .9)); }
.hud-toast.kill { background: rgba(255, 255, 255, .94); color: #0b1d3a; }
.hud-banner { position: absolute; left: 50%; top: calc(var(--st) + 78px); transform: translateX(-50%); padding: 7px 14px; border-radius: 12px; background: rgba(161, 98, 7, .92); font-family: var(--fu); font-weight: 800; font-size: 13px; display: none; white-space: nowrap; }
.hud-banner.show { display: block; }
.hud-score { position: absolute; inset: 0; display: none; place-items: center; background: rgba(6, 20, 40, .35); padding: 10px; }
.hud-score.show { display: grid; }
.sc-box { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: min(760px, 100%); max-height: 100%; overflow: hidden; }
.sc-team { border-radius: 18px; padding: 10px; background: linear-gradient(180deg, rgba(30, 58, 102, .92), rgba(14, 30, 58, .94)); box-shadow: var(--edge), 0 14px 34px rgba(0, 0, 0, .4); color: #fff; }
.sc-team.t0 { box-shadow: var(--edge), inset 0 4px 0 var(--coral), 0 14px 34px rgba(0, 0, 0, .4); } .sc-team.t1 { box-shadow: var(--edge), inset 0 4px 0 var(--frost), 0 14px 34px rgba(0, 0, 0, .4); }
.sc-head { display: flex; justify-content: space-between; font-weight: 800; margin-bottom: 4px; }
.sc-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) 60px 44px; gap: 6px; align-items: center; height: 30px; font-family: var(--fu); font-size: 13px; padding: 0 6px; border-radius: 8px; }
.sc-row.sc-cap { height: 20px; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .02em; }
.sc-row > :nth-child(n+3) { text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-row.me { background: rgba(255, 140, 50, .22); }
.sc-nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
em.bot { font-style: normal; font-size: 9px; font-weight: 900; margin-left: 5px; padding: 1px 5px; border-radius: 5px; background: rgba(255, 255, 255, .1); color: var(--ink2); vertical-align: middle; }
.rotate-ov { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 30px; text-align: center; background: radial-gradient(120% 90% at 50% 40%, rgba(18, 48, 92, .96), rgba(4, 11, 26, .97)); z-index: 20; pointer-events: auto; font-size: 18px; font-family: var(--fd); }
.rot-ico { width: 74px; height: 74px; animation: rot 2s ease-in-out infinite; }
.rot-ico .ico { width: 100%; height: 100%; }
@keyframes rot { 0%, 30% { transform: rotate(0); } 60%, 100% { transform: rotate(-90deg); } }
@media (orientation: portrait) { .touch-on .rotate-ov { display: flex; } }
/* touch layout */
.touch-on .hud-vitals { left: calc(var(--sl) + 8px); top: calc(var(--st) + 16px + clamp(64px, 9vw, 104px) * 1.4); bottom: auto; width: 140px; padding: 5px 8px 6px; gap: 3px; }
.touch-on .vit-head { display: none; }
.touch-on .hud-alt { display: none; }
.touch-on .hud-feed { height: 100px; }
@media (max-height: 520px) { .hud-vitals { gap: 3px; } .hud-feed { height: 84px; } .feed-item { font-size: 11.5px; padding: 3px 8px; } .hud-timer { height: 30px; font-size: 18px; width: 84px; } .cov-bar { height: 11px; } }
.touch { position: absolute; inset: 0; z-index: 1; pointer-events: none !important; --s: max(var(--sr), 0px); }
/* joystick: lower-left only; look: everywhere else (also over minimap / feed / top HUD), inset from
   the screen edges so iOS edge swipes (home indicator, back) do not steal the drag */
.tz-move { position: absolute; left: 0; top: 30%; bottom: 0; width: 42%; pointer-events: auto; touch-action: none; }
.tz-look { position: absolute; left: max(var(--sl), 10px); right: max(var(--sr), 10px); top: max(var(--st), 6px); bottom: max(var(--sb), 16px); pointer-events: auto; touch-action: none; }
.joy { position: absolute; left: calc(var(--sl) + clamp(22px, 5vw, 64px)); bottom: calc(var(--sb) + clamp(18px, 7vh, 56px)); width: clamp(116px, 30vh, 150px); aspect-ratio: 1; border-radius: 50%; pointer-events: none; touch-action: none;
  background: radial-gradient(circle, rgba(255, 255, 255, .1) 0%, rgba(255, 255, 255, .22) 70%); border: 2px solid rgba(255, 255, 255, .55); box-shadow: 0 8px 20px rgba(0, 0, 0, .15); transition: opacity .2s; opacity: .8; }
.joy.on { opacity: 1; }
.joy-knob { position: absolute; left: 50%; top: 50%; width: 44%; height: 44%; margin: -22% 0 0 -22%; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff, #dbeeff); box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.tb { position: absolute; border-radius: 50%; pointer-events: auto; touch-action: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border: 2px solid rgba(255, 255, 255, .65); color: #fff; cursor: pointer; padding: 0;
  background: rgba(10, 25, 45, .32); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-family: var(--fd); font-weight: 800; font-size: 11px; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); transition: transform .08s, background .15s; -webkit-user-select: none; user-select: none; }
.tb.on { transform: scale(.92); background: rgba(255, 255, 255, .42); }
.tb .ico { width: 34px; height: 34px; }
.tb-l { pointer-events: none; }
.tb-fire { right: calc(var(--s) + 22px); bottom: calc(var(--sb) + 26px); width: 96px; height: 96px; background: radial-gradient(circle at 40% 35%, rgba(255, 173, 92, .75), rgba(240, 100, 10, .7)); font-size: 13px; }
.tb-jump { right: calc(var(--s) + 132px); bottom: calc(var(--sb) + 18px); width: 66px; height: 66px; }
.tb-slide { right: calc(var(--s) + 30px); bottom: calc(var(--sb) + 136px); width: 66px; height: 66px; }
.tb-special { right: calc(var(--s) + 118px); bottom: calc(var(--sb) + 104px); width: 72px; height: 72px; }
.tb-alt { right: calc(var(--s) + 212px); bottom: calc(var(--sb) + 30px); width: 60px; height: 60px; background: rgba(90, 190, 255, .35); }
.tb-alt.cool { opacity: .5; }
.tb-ring { position: absolute; inset: -4px; pointer-events: none; }
.tb-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.tb-ring circle { fill: none; stroke-width: 6; }
.tb-ring .trk { stroke: rgba(255, 255, 255, .2); }
.tb-ring .val { stroke: #ffd23f; stroke-dasharray: 276.5; stroke-dashoffset: 276.5; stroke-linecap: round; transition: stroke-dashoffset .2s; }
.tb-special.ready { background: radial-gradient(circle, rgba(255, 210, 63, .85), rgba(255, 140, 0, .75)); animation: specGlow 1s ease-in-out infinite; }
@keyframes specGlow { 50% { box-shadow: 0 0 0 6px rgba(255, 210, 63, .35), 0 0 30px rgba(255, 210, 63, .8); } }
@media (max-height: 420px) { .tb-fire { width: 84px; height: 84px; } .tb-jump, .tb-slide { width: 58px; height: 58px; } .tb-special { width: 64px; height: 64px; bottom: calc(var(--sb) + 92px); right: calc(var(--s) + 106px); } .tb-slide { bottom: calc(var(--sb) + 118px); } .tb-jump { right: calc(var(--s) + 118px); } .tb-alt { right: calc(var(--s) + 190px); width: 54px; height: 54px; } }

/* ------------------------------------------------------------- results */
.scr-results { padding-bottom: calc(var(--sb) + 10px); }
.confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.res-wrap { position: relative; z-index: 1; flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; align-items: start; overflow-y: auto; overscroll-behavior: contain; }
.res-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.res-banner { --tc: var(--coral); position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; padding: 14px 10px 16px; border-radius: 24px; color: #fff; text-align: center;
  background: linear-gradient(160deg, color-mix(in srgb, var(--tc) 85%, #fff), var(--tc)); box-shadow: 0 16px 40px color-mix(in srgb, var(--tc) 45%, transparent); animation: bannerIn .6s cubic-bezier(.2, .9, .3, 1.4) both; }
.res-banner strong { font-family: var(--fd); font-weight: 900; font-size: clamp(30px, 6vmin, 56px); line-height: 1.05; text-shadow: 0 4px 0 rgba(0, 0, 0, .15); }
.res-team { font-family: var(--fd); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; opacity: .92; }
.res-banner.lose { filter: saturate(.75); }
@keyframes bannerIn { from { transform: scale(.6) translateY(-20px); opacity: 0; } }
.res-cov { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 20px; background: var(--glass); box-shadow: var(--edge), var(--shadow); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.rc-side { display: flex; flex-direction: column; align-items: center; min-width: 64px; }
.rc-name { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.rc-n { font-family: var(--fd); font-size: 20px; font-variant-numeric: tabular-nums; }
.rc-side.t0 .rc-n { color: var(--coral); } .rc-side.t1 .rc-n { color: var(--frost); }
.rc-bar { position: relative; height: 18px; border-radius: 10px; background: rgba(255, 255, 255, .08); overflow: hidden; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .4); }
.rc-fill { position: absolute; top: 0; bottom: 0; width: 100%; transform: scaleX(0); transition: transform 1.1s cubic-bezier(.2, .8, .2, 1); }
.rc-fill.c0 { left: 0; transform-origin: left; background: linear-gradient(90deg, #ff9a4a, var(--coral)); }
.rc-fill.c1 { right: 0; transform-origin: right; background: linear-gradient(270deg, #8a97ff, var(--frost)); }
.res-rewards { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 20px; background: var(--glass); box-shadow: var(--edge), var(--shadow); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); min-height: 72px; }
.res-rewards .note { margin: 0; }
.rw { display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border-radius: 14px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line); }
.rw .ico { width: 24px; height: 24px; }
.rw-n { font-family: var(--fd); font-size: 22px; min-width: 2.2ch; text-align: right; font-variant-numeric: tabular-nums; }
.rw-level { flex: 1 1 100%; min-height: 26px; }
.lvl-bar { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; font-size: 13px; }
.lvl-up { display: inline-flex; align-items: center; gap: 6px; font-family: var(--fd); color: var(--gold); animation: pulse 1s ease-in-out 3; }
.res-quests { flex: 1 1 100%; display: flex; flex-direction: column; gap: 6px; }
.res-quests:empty { display: none; }
.res-quests h4 { margin: 4px 0 0; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.rq { display: grid; grid-template-columns: minmax(0, 1fr) 90px 56px; align-items: center; gap: 8px; font-size: 13px; }
.rq-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rq-n { text-align: right; font-variant-numeric: tabular-nums; }
.rq.done .rq-n { color: #6ff0b8; }
.res-b { padding: 10px; }
.res-table { display: flex; flex-direction: column; gap: 4px; }
.rt-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) 54px 46px 40px 50px; align-items: center; gap: 6px; height: 38px; padding: 0 8px; border-radius: 10px; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.rt-row > span:nth-child(n+3), .rt-row > strong { text-align: right; }
.rt-head > span { white-space: nowrap; overflow: hidden; text-overflow: clip; }
.rt-head { height: 24px; font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.rt-row.t0 { background: rgba(255, 122, 26, .12); box-shadow: inset 4px 0 0 var(--coral); }
.rt-row.t1 { background: rgba(111, 125, 255, .14); box-shadow: inset 4px 0 0 var(--frost); }
.rt-row.me { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); background-color: rgba(255, 255, 255, .14); }
.rt-row.mvp { background-image: linear-gradient(90deg, rgba(255, 197, 49, .35), transparent 70%); }
.rt-name { display: flex; align-items: center; gap: 4px; min-width: 0; }
.rt-nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 800; }
.mvp-tag { display: inline-flex; align-items: center; gap: 2px; flex: none; font-size: 10px; font-weight: 900; padding: 1px 5px; border-radius: 6px; background: linear-gradient(180deg, #ffe07a, #ffb21a); color: #4a2a00; }
.mvp-tag .ico { width: 12px; height: 12px; }
.res-foot { position: relative; z-index: 1; display: flex; justify-content: center; gap: 12px; flex: none; padding-top: 10px; }
.res-foot .btn { min-width: 150px; }
@media (max-aspect-ratio: 1/1), (max-width: 720px) { .res-wrap { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .rt-row { grid-template-columns: 20px minmax(0, 1fr) 40px 44px 30px 38px; font-size: 12px; padding: 0 5px; gap: 4px; } .rt-head { font-size: 9px; letter-spacing: 0; } .res-foot .btn { min-width: 0; flex: 1; } }
@media (max-height: 520px) and (orientation: landscape) { .res-banner { padding: 8px 10px 10px; } .res-banner strong { font-size: 28px; } .rt-row { height: 30px; } .res-cov, .res-rewards { padding: 8px 12px; } .res-col { gap: 8px; } .res-foot .btn { height: 44px; } }

.res-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%); transform: translateX(-100%); animation: playShine 3.2s ease-in-out .8s infinite; pointer-events: none; }
.res-banner > * { position: relative; z-index: 1; }
.rc-name { color: var(--ink2); }
.rt-head { color: var(--muted); }

/* ------------------------------------------------------------- in-match performance (iOS)
   backdrop-filter over a WebGL canvas that redraws every frame is re-blurred every frame (very
   expensive on iOS Safari): in a match every glass element gets a solid translucent background. */
html.in-game .hud-vitals, html.in-game .tb, html.in-game .lock-hint, html.in-game .modal-back, html.in-game .modal,
html.in-game .panel, html.in-game .btn-ghost, html.in-game .toast { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html.in-game .hud-vitals { background: linear-gradient(180deg, rgba(14, 32, 58, .72), rgba(8, 20, 40, .78)); }
html.in-game .tb { background: rgba(10, 25, 45, .46); }
html.in-game .tb-fire { background: radial-gradient(circle at 40% 35%, rgba(255, 173, 92, .82), rgba(240, 100, 10, .78)); }
html.in-game .tb-alt { background: rgba(90, 190, 255, .42); }
html.in-game .tb.on { background: rgba(255, 255, 255, .46); }
html.in-game .modal-back { background: rgba(2, 8, 22, .74); }
html.in-game .panel { background: var(--glass-solid); }
/* performance mode: no glass blur in menus either */
html.perf-mode .panel, html.perf-mode .nav-btn, html.perf-mode .mode-card, html.perf-mode .hm-card, html.perf-mode .mode-sel, html.perf-mode .icon-btn,
html.perf-mode .btn-ghost, html.perf-mode .chest-card, html.perf-mode .res-cov, html.perf-mode .res-rewards { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html.perf-mode .panel, html.perf-mode .mode-card, html.perf-mode .hm-card, html.perf-mode .mode-sel { background: var(--glass-solid); }

/* weak connection pill + coach hint (HUD: never intercept touches) */
.hud-weak { display: none; align-items: center; gap: 6px; height: 22px; padding: 0 10px; border-radius: 11px; background: rgba(8, 20, 40, .7); box-shadow: inset 0 0 0 1px rgba(255, 190, 90, .45); font-family: var(--fu); font-weight: 800; font-size: 11.5px; color: #ffd9a0; white-space: nowrap; }
.hud-weak.show { display: inline-flex; }
.hud-weak i { width: 7px; height: 7px; border-radius: 50%; background: #ffb347; animation: weakBlink 1.2s ease-in-out infinite; }
@keyframes weakBlink { 50% { opacity: .25; } }
.hud-coach { position: absolute; left: 50%; bottom: calc(var(--sb) + 18%); transform: translate(-50%, 10px); max-width: min(86vw, 520px); padding: 9px 16px; border-radius: 16px; background: rgba(8, 20, 40, .8); box-shadow: inset 0 0 0 1px rgba(170, 215, 255, .3); font-family: var(--fu); font-weight: 800; font-size: clamp(13px, 2.4vmin, 16px); color: #fff; text-align: center; opacity: 0; transition: opacity .3s, transform .3s; pointer-events: none; }
.hud-coach.show { opacity: 1; transform: translate(-50%, 0); }

/* developer / performance overlay */
.perf-hud { position: fixed; left: 50%; top: calc(var(--st) + 74px); transform: translateX(-50%); z-index: 70; width: max-content; min-width: 150px; max-width: 92vw; padding: 5px 8px 6px; border-radius: 10px; background: rgba(4, 12, 26, .78); color: #dff2ff; font: 600 10.5px/1.35 ui-monospace, SFMono-Regular, Menlo, monospace; font-variant-numeric: tabular-nums; pointer-events: none; white-space: nowrap; overflow: hidden; }
.perf-hud canvas { display: block; width: 150px; height: 30px; margin: 3px 0; }

/* =============================================================================================
   DÜKKÂN / DOLAP v2 — premium store. Rules: every async image box is reserved (aspect-ratio), grids
   wrap (never sideways scroll), the store scrolls under the home indicator with inner safe-area
   padding (no clipped band), no backdrop-filter over the animated 3D (solid frosted gradients),
   foil / frame animations are transform-only and stop with prefers-reduced-motion and in matches.
   ============================================================================================= */
:root { --rc-common: #b8c4cf; --rc-rare: #4fa3ff; --rc-epic: #b46bff; --rc-legendary: #ffb52e; --rc-special: #ff5fb8; }

/* iOS standalone (black-translucent): the layout viewport can be shorter than the screen by the status
   bar -> an empty band at the bottom. Size the fixed layers to the large viewport instead. */
@media (display-mode: standalone) {
  #gl, #bgshade, #screens, #hudlayer, #modals { bottom: auto; height: 100vh; height: 100lvh; }
}

/* ------------------------------------------------------------- store frame */
.scr-shop { padding-bottom: 0; gap: 8px; }
.shop-scroll { margin: 0 calc(-1 * var(--pad) - var(--sr)) 0 calc(-1 * var(--pad) - var(--sl)); padding: 6px calc(var(--pad) + var(--sr)) calc(var(--sb) + 28px) calc(var(--pad) + var(--sl));
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12px, #000 calc(100% - 26px), transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 12px, #000 calc(100% - 26px), transparent 100%); }
.shop-wrap { width: min(1180px, 100%); margin: 0 auto; display: flex; flex-direction: column; gap: clamp(22px, 3.4vmin, 34px); }
.shop-end { height: 4px; }
.shop-offline { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; background: rgba(255, 180, 70, .14); box-shadow: inset 0 0 0 1px rgba(255, 190, 90, .35); color: #ffe2b0; font-size: 14px; }
.shop-sec { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 10px; }
.sec-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 34px; }
.sec-h h3 { margin: 0; font: 900 clamp(17px, 2.4vmin, 22px)/1.1 var(--fd); letter-spacing: -.01em; color: #fff; text-shadow: 0 2px 0 rgba(2, 10, 30, .4); }
.sec-ico { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex: none; color: #ffd27a; background: linear-gradient(160deg, rgba(255, 196, 90, .26), rgba(255, 122, 26, .12)); box-shadow: inset 0 0 0 1px rgba(255, 200, 110, .32); }
.sec-ico .ico { width: 19px; height: 19px; }
.sec-h > .pill, .sec-h > .sec-note, .sec-h > .sec-count { margin-left: auto; }
.sec-note { font-size: 12.5px; color: var(--ink2); }
.sec-count { font-size: 13px; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 14px; font: 800 12px/1 var(--fu); color: #eaf4ff; background: rgba(8, 20, 40, .55); box-shadow: inset 0 0 0 1px rgba(170, 215, 255, .2); white-space: nowrap; }
.pill .ico { width: 15px; height: 15px; }
.pill.hot { color: #fff; background: linear-gradient(180deg, #ff9a4a, #ff6a1a); box-shadow: 0 6px 16px rgba(255, 110, 30, .35), inset 0 1px 0 rgba(255, 255, 255, .35); font-family: var(--fd); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; }
.pill.cd .cd-t { font-variant-numeric: tabular-nums; min-width: 6.2ch; font-family: var(--fd); font-size: 11.5px; }

/* ------------------------------------------------------------- hero (featured set) */
.shop-hero { --s1: #1b3a6b; --s2: #4fa3ff; --s3: #fff; position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: stretch; min-height: 320px; border-radius: 30px; overflow: hidden; isolation: isolate;
  box-shadow: 0 24px 60px rgba(2, 8, 22, .5), inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 0 0 1px rgba(255, 255, 255, .12); }
.hero-bg { position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(70% 90% at 78% 40%, color-mix(in srgb, var(--s2) 70%, transparent) 0%, transparent 62%),
  radial-gradient(60% 80% at 10% 110%, color-mix(in srgb, var(--s2) 40%, transparent), transparent 70%),
  linear-gradient(125deg, color-mix(in srgb, var(--s1) 92%, #000) 0%, color-mix(in srgb, var(--s1) 70%, #0a1830) 55%, #07122a 100%); }
.hero-flakes { position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none;
  background-image: radial-gradient(1.6px 1.6px at 12% 20%, #fff, transparent), radial-gradient(1.2px 1.2px at 40% 70%, #fffc, transparent), radial-gradient(2px 2px at 66% 12%, #fffa, transparent), radial-gradient(1.4px 1.4px at 88% 58%, #fffd, transparent), radial-gradient(1.6px 1.6px at 28% 88%, #fff9, transparent);
  background-size: 220px 220px; }
.hero-txt { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: clamp(20px, 3.6vmin, 38px); min-width: 0; }
.hero-kick { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-title { margin: 2px 0 0; font: 900 clamp(26px, 5vmin, 50px)/1.02 var(--fd); letter-spacing: -.025em; color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, .18), 0 10px 30px rgba(0, 0, 0, .3); overflow-wrap: anywhere; }
.hero-desc { margin: 0; font-size: clamp(13px, 1.8vmin, 16px); color: rgba(235, 245, 255, .86); max-width: 44ch; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hero-count { font-size: 12.5px; font-weight: 800; color: rgba(235, 245, 255, .8); }
.slot-icons { display: flex; flex-wrap: wrap; gap: 5px; }
.slot-icons > span { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.slot-icons .ico { width: 16px; height: 16px; }
.hero-prog, .bc-prog { display: grid; grid-template-columns: minmax(0, 260px) auto; align-items: center; gap: 10px; font-size: 12px; font-weight: 800; color: rgba(235, 245, 255, .85); font-variant-numeric: tabular-nums; }
.hero-prog .bar, .bc-prog .bar, .in-set .bar { height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.hero-prog .bar i, .bc-prog .bar i, .in-set .bar i { display: block; height: 100%; transform-origin: left; background: linear-gradient(90deg, #ffe07a, #ffb21a); border-radius: inherit; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 6px; }
.hero-btn { height: 54px; padding: 0 22px; font-family: var(--fd); font-size: 15px; }
.bp-row { display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.bp-row.done { color: #7ff0bf; font-weight: 900; font-size: 14px; }
.bp-off { height: 26px; padding: 0 8px; border-radius: 9px; display: inline-grid; place-items: center; font: 900 12.5px/1 var(--fd); color: #3a1300; background: linear-gradient(180deg, #ffe07a, #ffb21a); box-shadow: 0 4px 12px rgba(255, 180, 30, .35); }
.bp-full s { color: rgba(220, 235, 255, .55); font-weight: 800; font-size: 14px; }
.bp-price { display: inline-flex; align-items: center; gap: 5px; font: 900 18px/1 var(--fd); color: #fff; }
.bp-row.big .bp-price { font-size: 24px; }
.bp-price .ico { width: 22px; height: 22px; }
.hero-art { position: relative; display: grid; place-items: center; min-height: 0; }
.hero-halo { position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--s2) 60%, #fff) 0%, color-mix(in srgb, var(--s2) 30%, transparent) 38%, transparent 70%); opacity: .75; }
.hero-img { position: relative; width: min(100%, 420px); aspect-ratio: 1; height: auto; object-fit: contain; opacity: 0; transform: translateY(8px) scale(.98); transition: opacity .45s ease, transform .6s cubic-bezier(.2, .9, .3, 1.2); filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .4)); }
.hero-img.in, .bc-img.in, .bd-img.in, .ch-img.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------- grids */
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 12px; }
.offer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 600px) { .offer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1020px) { .offer-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.bundle-grid, .chest-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 700px) { .bundle-grid, .chest-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.grid-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 34px 10px; color: var(--muted); }
.grid-empty .ico { width: 34px; height: 34px; }
.grid-empty p { margin: 0; }

/* ------------------------------------------------------------- item card */
.icard { --rc: var(--rc-common); position: relative; display: flex; flex-direction: column; min-width: 0; padding: 0; border: 0; border-radius: 20px; cursor: pointer; color: #fff; text-align: left; isolation: isolate;
  background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 20%, #16305a) 0%, #0d1d3a 58%, #0a1730 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 10px 24px rgba(2, 8, 22, .38); transition: transform .16s cubic-bezier(.2, .9, .3, 1.4), box-shadow .2s; }
.icard.r-rare { --rc: var(--rc-rare); } .icard.r-epic { --rc: var(--rc-epic); } .icard.r-legendary { --rc: var(--rc-legendary); } .icard.r-special { --rc: var(--rc-special); }
.ic-frame { position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; z-index: 3;
  background: linear-gradient(160deg, color-mix(in srgb, var(--rc) 95%, #fff) 0%, color-mix(in srgb, var(--rc) 35%, transparent) 38%, color-mix(in srgb, var(--rc) 15%, transparent) 62%, color-mix(in srgb, var(--rc) 70%, transparent) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
.icard.r-common .ic-frame { background: linear-gradient(160deg, rgba(220, 232, 245, .55), rgba(170, 200, 230, .12) 45%, rgba(170, 200, 230, .26)); }
.icard.r-legendary { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 10px 26px rgba(2, 8, 22, .4), 0 0 24px rgba(255, 181, 46, .22); }
.icard.r-special .ic-frame { background: linear-gradient(135deg, #ff5fb8, #ffd36b 25%, #5fe3ff 50%, #b46bff 75%, #ff5fb8); padding: 2px; }
.icard.r-special { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 10px 26px rgba(2, 8, 22, .4), 0 0 26px rgba(255, 95, 184, .24); }
.ic-media { position: relative; display: block; margin: 7px 7px 0; aspect-ratio: 1; border-radius: 15px; overflow: hidden; z-index: 1;
  background: radial-gradient(120% 90% at 50% 30%, color-mix(in srgb, var(--rc) 42%, #2b4e86) 0%, color-mix(in srgb, var(--rc) 14%, #13284d) 55%, #0b1a35 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), inset 0 -18px 30px rgba(2, 8, 22, .35); }
.icard.r-epic .ic-media::before, .icard.r-legendary .ic-media::before, .icard.r-special .ic-media::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5; }
.icard.r-epic .ic-media::before { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 8px, transparent 8px 18px); }
.icard.r-legendary .ic-media::before { background: repeating-conic-gradient(from 0deg at 50% 42%, rgba(255, 225, 150, .16) 0 9deg, transparent 9deg 22deg); opacity: .8; }
.icard.r-special .ic-media::before { background: conic-gradient(from 210deg at 50% 45%, rgba(255, 95, 184, .22), rgba(255, 211, 107, .18), rgba(95, 227, 255, .22), rgba(180, 107, 255, .22), rgba(255, 95, 184, .22)); opacity: .9; }
.ic-glow { position: absolute; left: 50%; top: 46%; width: 76%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--rc) 55%, #fff) 0%, color-mix(in srgb, var(--rc) 22%, transparent) 40%, transparent 70%); opacity: .55; pointer-events: none; }
.ic-art { position: absolute; inset: 0; display: grid; place-items: center; }
.ic-img { width: 100%; height: 100%; object-fit: contain; display: block; opacity: 0; transform: scale(.96); transition: opacity .3s ease, transform .4s cubic-bezier(.2, .9, .3, 1.3); }
.ic-img.in { opacity: 1; transform: none; }
.ic-img.now { transition: none; }
.ic-art.dom { padding: 12%; }
.ic-art.dom.is-badge { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 8%; }
.ic-medal { width: 46%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; color: color-mix(in srgb, var(--bc) 80%, #fff);
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--bc) 55%, #fff), color-mix(in srgb, var(--bc) 55%, #0b1a35) 70%); box-shadow: 0 8px 20px rgba(0, 0, 0, .35), inset 0 2px 0 rgba(255, 255, 255, .45), inset 0 0 0 3px color-mix(in srgb, var(--bc) 60%, #fff), 0 0 24px color-mix(in srgb, var(--bc) 45%, transparent); }
.ic-medal .ico { width: 50%; height: 50%; color: #fff; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3)); }
.ic-art.is-badge .bdg { max-width: 100%; }
.ic-none { width: 44%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; color: var(--muted); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 2px rgba(170, 215, 255, .2); }
.ic-none .ico { width: 46%; height: 46%; }
.ic-gem { position: absolute; left: 9px; top: 9px; width: 11px; height: 11px; transform: rotate(45deg); border-radius: 3px; background: linear-gradient(135deg, #fff, var(--rc) 55%); box-shadow: 0 0 10px var(--rc), 0 0 0 1.5px rgba(0, 0, 0, .25); z-index: 2; }
.ic-off { position: absolute; right: 7px; top: 7px; z-index: 2; height: 22px; padding: 0 7px; border-radius: 8px; display: grid; place-items: center; font: 900 11px/1 var(--fd); color: #3a1300; background: linear-gradient(180deg, #ffe07a, #ffb21a); box-shadow: 0 4px 10px rgba(255, 170, 30, .4); }
.ic-off.tag { color: #fff; background: linear-gradient(180deg, #ff86c9, #ff4fa8); box-shadow: 0 4px 10px rgba(255, 80, 170, .4); font-size: 9.5px; letter-spacing: .06em; }
.ic-set { position: absolute; left: 6px; right: 6px; bottom: 6px; z-index: 2; display: flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 10px; width: max-content; max-width: calc(100% - 12px);
  font: 800 10px/1 var(--fu); color: #fff; background: rgba(6, 16, 34, .72); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.ic-set span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ic-set .ico { width: 12px; height: 12px; color: #ffd27a; }
.ic-body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 3px; padding: 9px 11px 0; min-width: 0; }
.ic-name { font: 800 13.5px/1.2 var(--fu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ic-meta { display: flex; align-items: center; gap: 5px; height: 14px; color: var(--muted); min-width: 0; }
.ic-meta .ico { width: 13px; height: 13px; flex: none; }
.ic-rar { font: 900 9.5px/1 var(--fu); letter-spacing: .1em; text-transform: uppercase; color: color-mix(in srgb, var(--rc) 80%, #fff); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ic-foot { position: relative; z-index: 1; display: block; padding: 8px 9px 10px; }
.ic-state { display: flex; align-items: center; justify-content: center; gap: 5px; height: 30px; padding: 0 8px; border-radius: 11px; font: 900 12.5px/1 var(--fu); white-space: nowrap; overflow: hidden; font-variant-numeric: tabular-nums; }
.ic-state .ico { width: 15px; height: 15px; flex: none; }
.ic-state span { overflow: hidden; text-overflow: ellipsis; }
.ic-state.price { color: #fff; background: linear-gradient(180deg, rgba(79, 195, 255, .2), rgba(40, 120, 220, .16)); box-shadow: inset 0 0 0 1px rgba(120, 200, 255, .3); }
.ic-state.price b { font-family: var(--fd); font-size: 13.5px; }
.ic-state.price s { color: rgba(200, 220, 245, .55); font-size: 11px; font-weight: 800; }
.ic-state.own { color: #9fe9ff; background: rgba(143, 216, 255, .1); box-shadow: inset 0 0 0 1px rgba(143, 216, 255, .22); }
.ic-state.eq { color: #052b1c; background: linear-gradient(180deg, #7ff0bf, #2fd08f); box-shadow: 0 4px 12px rgba(52, 211, 153, .3); }
.ic-state.lock { color: var(--muted); background: rgba(255, 255, 255, .05); }
.ic-state.spc { color: #fff; background: linear-gradient(90deg, rgba(255, 95, 184, .35), rgba(180, 107, 255, .35)); box-shadow: inset 0 0 0 1px rgba(255, 150, 220, .4); }
.ic-state.chest { color: #ffe2a0; background: rgba(255, 190, 70, .14); box-shadow: inset 0 0 0 1px rgba(255, 200, 110, .3); }
.ic-state.blank { background: transparent; }
.icard.equipped { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 0 0 2px #34d399, 0 0 22px rgba(52, 211, 153, .35), 0 10px 24px rgba(2, 8, 22, .38); }
.icard.locked .ic-img { filter: saturate(.35) brightness(.72); }
.icard.locked .ic-name { color: var(--ink2); }
.icard:active { transform: scale(.97); }
@media (hover: hover) { .icard:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 16px 30px rgba(2, 8, 22, .45), 0 0 26px color-mix(in srgb, var(--rc) 40%, transparent); } }
.icard:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.icard.none { --rc: #5f7a9c; }
/* animated foil (Efsanevi / Özel): one diagonal sheen sweeping across, transform-only */
.ic-foil { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; z-index: 2; }
.ic-foil::after { content: ''; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 45%; background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, .0) 20%, rgba(255, 246, 220, .38) 50%, rgba(255, 255, 255, 0) 80%, transparent 100%);
  transform: translateX(0) skewX(-12deg); animation: foil 4.2s cubic-bezier(.4, 0, .2, 1) infinite; }
.icard.r-special .ic-foil::after { background: linear-gradient(100deg, transparent, rgba(255, 160, 220, .35) 35%, rgba(160, 240, 255, .4) 55%, transparent); }
@keyframes foil { 0%, 55% { transform: translateX(0) skewX(-12deg); } 100% { transform: translateX(420%) skewX(-12deg); } }

/* ------------------------------------------------------------- filters */
.filters { display: flex; flex-direction: column; gap: 10px; }
.cat-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; padding: 5px; border-radius: 18px; background: rgba(2, 10, 26, .42); box-shadow: inset 0 0 0 1px var(--line); }
.cat-tabs.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cat-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; height: 58px; padding: 4px 2px; border: 0; border-radius: 13px; background: transparent; color: var(--ink2); cursor: pointer;
  font: 800 11.5px/1.05 var(--fu); transition: background .2s, color .2s, box-shadow .2s; }
.cat-tab span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-tab .ico { width: 21px; height: 21px; }
.cat-tab.on { color: #fff; background: linear-gradient(180deg, #3d6fb8, #24508f); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 4px 12px rgba(2, 8, 22, .35), 0 0 0 1px rgba(143, 216, 255, .45); }
.cat-tab.on .ico { color: #ffd27a; }
@media (hover: hover) { .cat-tab:not(.on):hover { background: rgba(255, 255, 255, .07); color: #fff; } }
@media (max-width: 400px) { .cat-tab { font-size: 10.5px; letter-spacing: -.01em; height: 54px; } .cat-tab .ico { width: 19px; height: 19px; } }
.sub-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border: 0; border-radius: 17px; cursor: pointer; color: #dfeaf7; background: linear-gradient(180deg, rgba(20, 40, 74, .8), rgba(10, 24, 48, .84)); box-shadow: inset 0 0 0 1px var(--line); font: 800 12.5px/1 var(--fu); transition: background .2s, color .2s, box-shadow .2s; }
.chip .ico { width: 16px; height: 16px; }
.chip.on { color: #0b1d3a; background: linear-gradient(180deg, #ffffff, #d8ecff); box-shadow: 0 4px 12px rgba(2, 8, 22, .3); }
@media (hover: hover) { .chip:not(.on):hover { color: #fff; background: rgba(255, 255, 255, .1); } }
.tools { display: flex; flex-wrap: wrap; gap: 8px; }
.sel { position: relative; flex: 1 1 160px; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 34px 0 12px; border-radius: 13px; color: #dfeaf7; background: linear-gradient(180deg, rgba(20, 40, 74, .82), rgba(10, 24, 48, .86)); box-shadow: inset 0 0 0 1px rgba(170, 215, 255, .2), 0 6px 16px rgba(2, 8, 22, .25); cursor: pointer; min-width: 0; }
.sel.on { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(143, 216, 255, .55); background: rgba(79, 163, 255, .12); }
.sel > .ico:first-child { width: 17px; height: 17px; flex: none; color: var(--ice); }
.sel select { appearance: none; -webkit-appearance: none; flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: inherit; font: 800 13px/1 var(--fu); cursor: pointer; outline: none; text-overflow: ellipsis; }
.sel select option { color: #0b1d3a; }
.sel-caret { position: absolute; right: 11px; top: 50%; width: 15px !important; height: 15px !important; transform: translateY(-50%) rotate(90deg); pointer-events: none; color: var(--muted); }
.sel:focus-within { box-shadow: inset 0 0 0 2px var(--cyan); }

/* ------------------------------------------------------------- weekly bundles */
.bundle-card { --s1: #1b3a6b; --s2: #4fa3ff; position: relative; display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: linear-gradient(180deg, #13284d, #0b1a35); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 14px 34px rgba(2, 8, 22, .42); }
.bc-media { position: relative; display: block; aspect-ratio: 16 / 9; border: 0; padding: 0; cursor: pointer; overflow: hidden; background: none; }
.bc-bg { position: absolute; inset: 0; background: radial-gradient(70% 90% at 50% 70%, color-mix(in srgb, var(--s2) 65%, transparent), transparent 70%), linear-gradient(135deg, color-mix(in srgb, var(--s1) 90%, #000), #0a1830); }
.bc-img { position: absolute; left: 50%; top: 4%; height: 108%; width: auto; aspect-ratio: 1; transform: translateX(-50%) translateY(6px); opacity: 0; transition: opacity .4s, transform .5s cubic-bezier(.2, .9, .3, 1.2); filter: drop-shadow(0 14px 20px rgba(0, 0, 0, .4)); }
.bc-img.in { transform: translateX(-50%); opacity: 1; }
.bc-off { position: absolute; right: 12px; top: 12px; height: 28px; padding: 0 10px; border-radius: 10px; display: grid; place-items: center; font: 900 13px/1 var(--fd); color: #3a1300; background: linear-gradient(180deg, #ffe07a, #ffb21a); box-shadow: 0 6px 14px rgba(255, 170, 30, .4); }
.bc-body { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 16px; flex: 1; }
.bc-body h4 { margin: 0; font: 900 18px/1.1 var(--fd); }
.bc-sub .slot-icons > span { width: 24px; height: 24px; border-radius: 8px; }
.bc-sub .slot-icons .ico { width: 14px; height: 14px; }
.bc-prog { grid-template-columns: minmax(0, 1fr) auto; }
.bc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: auto; }
@media (hover: hover) { .bundle-card:hover .bc-img.in { transform: translateX(-50%) scale(1.04); } }

/* bundle sheet */
.modal-box.bundle-modal { width: min(920px, 100%); padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.bundle-dlg { --s1: #1b3a6b; --s2: #4fa3ff; display: flex; flex-direction: column; min-height: 0; max-height: calc(100dvh - var(--st) - var(--sb) - 24px); }
.bd-head { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; align-items: center; padding: 18px 20px; flex: none;
  background: radial-gradient(60% 120% at 15% 60%, color-mix(in srgb, var(--s2) 55%, transparent), transparent 70%), linear-gradient(135deg, color-mix(in srgb, var(--s1) 85%, #000), #0d1f40); }
.bd-art { aspect-ratio: 1; display: grid; place-items: center; }
.bd-img { width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .4s; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .4)); }
.bd-txt { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; min-width: 0; }
.bd-txt h3 { margin: 0; font: 900 clamp(20px, 3.4vmin, 30px)/1.05 var(--fd); }
.bd-txt p { margin: 0; color: rgba(235, 245, 255, .85); font-size: 14px; }
.bd-txt .hero-prog { width: 100%; }
.bd-grid { padding: 16px 20px; overflow-y: auto; min-height: 0; flex: 1; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); }
.bd-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 14px 20px calc(16px); border-top: 1px solid var(--line); background: rgba(5, 14, 30, .55); flex: none; }
.bd-sum { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--ink2); font-weight: 800; }
.bd-buy { height: 52px; font-family: var(--fd); }
@media (max-width: 560px) { .bd-head { grid-template-columns: 96px minmax(0, 1fr); padding: 14px; gap: 12px; } .bd-txt p { display: none; } .bd-grid { padding: 12px; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; } .bd-foot { padding: 12px; } .bd-foot .btn { flex: 1; } }

/* ------------------------------------------------------------- chests */
.chest-card { position: relative; display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 14px 12px 8px; border-radius: 24px; overflow: hidden; isolation: isolate;
  background: linear-gradient(140deg, var(--c1, #1d3a66), var(--c2, #0c1b37)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), inset 0 1px 0 rgba(255, 255, 255, .18), 0 14px 34px rgba(2, 8, 22, .42); }
.chest-card.c-kar { --c1: #2c5a8c; --c2: #0f2446; --cg: #9fd3ff; }
.chest-card.c-buz { --c1: #136a96; --c2: #062743; --cg: #4fd1ff; }
.chest-card.c-aurora { --c1: #3b2486; --c2: #0d0a2a; --cg: #8a5bff; }
.ch-media { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.ch-glow { position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--cg) 70%, #fff) 0%, color-mix(in srgb, var(--cg) 30%, transparent) 40%, transparent 70%); opacity: .7; }
.ch-img { position: relative; width: 100%; height: 100%; object-fit: contain; opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .5s cubic-bezier(.2, .9, .3, 1.3); filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .45)); }
.ch-info { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.ch-name { margin: 0; font: 900 18px/1.1 var(--fd); }
.ch-odds { display: flex; flex-direction: column; gap: 6px; }
.ch-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; gap: 2px; background: rgba(0, 0, 0, .25); }
.ch-bar i { display: block; height: 100%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.ch-legend { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11.5px; font-weight: 800; color: var(--ink2); }
.ch-legend span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.ch-legend i { width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: var(--c); }
.ch-buy { align-self: flex-start; height: 46px; padding: 0 18px; gap: 8px; }
.ch-buy b { font: 900 16px/1 var(--fd); }
.ch-buy .ico { width: 20px; height: 20px; }
@media (min-width: 700px) {
  .chest-card { grid-template-columns: minmax(0, 1fr); padding: 6px 16px 18px; text-align: center; }
  .ch-media { width: min(180px, 70%); margin: 0 auto 4px; }
  .ch-info { align-items: center; }
  .ch-odds { align-self: stretch; }
  .ch-legend { justify-content: center; }
  .ch-buy { align-self: stretch; }
}
@media (hover: hover) { .chest-card:hover .ch-img.in { transform: translateY(-4px) rotate(-2deg); } }

/* ------------------------------------------------------------- avatar frames */
.av { --rw: 5px; position: relative; display: inline-grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; vertical-align: middle; }
.av-xs { width: 26px; height: 26px; --rw: 2.5px; } .av-sm { width: 34px; height: 34px; --rw: 3px; } .av-md { width: 46px; height: 46px; --rw: 4px; } .av-lg { width: 76px; height: 76px; --rw: 6px; } .av-xl { width: 128px; height: 128px; --rw: 10px; }
.av-ring { position: absolute; inset: 0; border-radius: 50%; background: rgba(170, 215, 255, .28);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--rw) - .5px), #000 calc(100% - var(--rw))); mask: radial-gradient(farthest-side, transparent calc(100% - var(--rw) - .5px), #000 calc(100% - var(--rw))); }
.av-in { position: absolute; inset: calc(var(--rw) + 1.5px); border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: linear-gradient(160deg, #2f7fe0, #123e85); box-shadow: inset 0 0 0 1.5px rgba(5, 15, 35, .6); }
.av-in.face svg { width: 100%; height: 100%; display: block; transform: translateY(8%) scale(1.06); }
.av-in.txt { font-size: calc(100% + 0px); line-height: 1; background: linear-gradient(160deg, #24508f, #0f2a55); }
.av-xs .av-in.txt { font-size: 13px; } .av-sm .av-in.txt { font-size: 16px; } .av-md .av-in.txt { font-size: 21px; }
.av-orn { position: absolute; pointer-events: none; }
.fr-ice .av-ring { background: conic-gradient(from 210deg, var(--f1), var(--f2), var(--f1), var(--f2), var(--f1)); filter: drop-shadow(0 0 4px color-mix(in srgb, var(--f1) 70%, transparent)); }
.fr-snow .av-ring { background: repeating-conic-gradient(var(--f1) 0 12deg, var(--f2) 12deg 24deg); }
.fr-laurel .av-ring { background: repeating-conic-gradient(from 0deg, var(--f1) 0 9deg, color-mix(in srgb, var(--f1) 55%, #0a3) 9deg 14deg, transparent 14deg 18deg); }
.fr-laurel .av-orn { left: 50%; top: -6%; width: 26%; aspect-ratio: 1; transform: translateX(-50%) rotate(45deg); border-radius: 3px; background: linear-gradient(135deg, #fff6c8, var(--f2)); box-shadow: 0 0 8px var(--f2); }
.fr-fire .av-ring { background: conic-gradient(from 180deg, var(--f2), var(--f1), #ffe07a, var(--f1), var(--f2)); box-shadow: 0 0 14px color-mix(in srgb, var(--f1) 60%, transparent); }
.fr-fire { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--f1) 55%, transparent)); }
.fr-night .av-ring { background: radial-gradient(circle at 50% 50%, transparent 60%, transparent 0), repeating-conic-gradient(var(--f1) 0 14deg, color-mix(in srgb, var(--f2) 80%, #fff) 14deg 16deg, var(--f1) 16deg 30deg); }
.fr-storm .av-ring { background: conic-gradient(from 90deg, var(--f1), var(--f2), var(--f1) 30%, var(--f1) 60%, var(--f2) 70%, var(--f1)); }
.fr-storm { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--f2) 50%, transparent)); }
.fr-sunrise .av-ring { background: linear-gradient(200deg, #ffd36b, var(--f1) 45%, var(--f2)); }
.fr-glacier .av-ring { background: repeating-conic-gradient(var(--f1) 0 20deg, var(--f2) 20deg 30deg, color-mix(in srgb, var(--f1) 70%, #fff) 30deg 45deg); }
.fr-tulip .av-ring { background: repeating-conic-gradient(var(--f1) 0 16deg, var(--f2) 16deg 20deg); }
.fr-tulip .av-orn { left: 50%; bottom: -8%; width: 30%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50% 50% 45% 45%; background: radial-gradient(circle at 50% 30%, #ff8fa0, var(--f1)); box-shadow: 0 0 0 2px var(--f2); }
.fr-neon .av-ring { background: conic-gradient(var(--f1), var(--f2), var(--f1)); }
.fr-neon { filter: drop-shadow(0 0 5px var(--f1)) drop-shadow(0 0 9px color-mix(in srgb, var(--f2) 60%, transparent)); }
.fr-rope .av-ring { background: repeating-conic-gradient(var(--f1) 0 6deg, var(--f2) 6deg 12deg); }
.fr-check .av-ring { background: repeating-conic-gradient(var(--f1) 0 15deg, var(--f2) 15deg 30deg); }
.fr-football .av-ring { background: repeating-conic-gradient(var(--f1) 0 22deg, var(--f2) 22deg 30deg); }
.fr-nazar .av-ring { background: radial-gradient(farthest-side, transparent calc(100% - var(--rw)), #7cc4ff calc(100% - var(--rw)), #7cc4ff calc(100% - var(--rw) * .66), #fff calc(100% - var(--rw) * .66), #fff calc(100% - var(--rw) * .33), var(--f1) calc(100% - var(--rw) * .33)); }
.fr-diamond .av-ring, .fr-aurora .av-ring, .fr-gold .av-ring { animation: avSpin 7s linear infinite; }
.fr-diamond .av-ring { background: conic-gradient(var(--f1), #fff, var(--f2), #c9f2ff, #fff, var(--f1)); }
.fr-diamond { filter: drop-shadow(0 0 7px rgba(200, 240, 255, .6)); }
.fr-aurora .av-ring { background: conic-gradient(var(--f1), #4fd1ff, var(--f2), #ff9cf2, var(--f1)); }
.fr-aurora { filter: drop-shadow(0 0 7px color-mix(in srgb, var(--f1) 55%, transparent)); }
.fr-gold .av-ring { background: conic-gradient(#fff3c4, var(--f1) 18%, var(--f2) 35%, #fff3c4 50%, var(--f1) 68%, var(--f2) 85%, #fff3c4); }
.fr-gold { filter: drop-shadow(0 0 7px rgba(255, 197, 49, .55)); }
@keyframes avSpin { to { transform: rotate(360deg); } }
html.in-game .av-ring, html.in-game .ic-foil::after { animation: none !important; }
html.in-game .av { filter: none !important; }

/* title pill (Unvan) */
.bdg { --bc: #8fd8ff; display: inline-flex; align-items: center; gap: 5px; max-width: 100%; height: 24px; padding: 0 9px 0 7px; border-radius: 12px; min-width: 0;
  color: color-mix(in srgb, var(--bc) 55%, #fff); background: color-mix(in srgb, var(--bc) 18%, rgba(6, 16, 34, .7)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bc) 50%, transparent); font: 800 12px/1 var(--fu); white-space: nowrap; }
.bdg .ico { width: 14px; height: 14px; flex: none; color: var(--bc); }
.bdg-t { overflow: hidden; text-overflow: ellipsis; }
.bdg-xs { height: 15px; padding: 0 5px 0 4px; gap: 3px; font-size: 9.5px; border-radius: 8px; }
.bdg-xs .ico { width: 10px; height: 10px; }
.bdg-sm { height: 19px; padding: 0 7px 0 5px; font-size: 10.5px; border-radius: 10px; }
.bdg-sm .ico { width: 12px; height: 12px; }
.bdg-lg { height: 30px; padding: 0 12px 0 9px; font-size: 14px; border-radius: 15px; }
.bdg-lg .ico { width: 17px; height: 17px; }
.bdg.r-special { color: #fff; background: linear-gradient(90deg, rgba(255, 95, 184, .4), rgba(180, 107, 255, .4), rgba(95, 227, 255, .35)); box-shadow: inset 0 0 0 1px rgba(255, 180, 230, .55), 0 0 12px rgba(255, 95, 184, .25); }
.bdg.r-legendary { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bc) 70%, #fff), 0 0 12px color-mix(in srgb, var(--bc) 35%, transparent); }
.bdg.empty { color: var(--muted); background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); }

/* framed home player card */
.pc-avatar.framed { background: none; }
.pc-avatar.framed .av-ring { --rw: 4px; z-index: 0; }
.pc-avatar.framed .pc-face { position: relative; z-index: 1; width: 36px; height: 36px; }

/* ------------------------------------------------------------- item sheet (full-screen inspect) */
.inspect { position: fixed; inset: 0; z-index: 2; opacity: 0; transition: opacity .25s ease; pointer-events: auto; }
.inspect.show { opacity: 1; }
.inspect.hide { opacity: 0; pointer-events: none; }
.in-stage { position: absolute; left: 0; top: 0; bottom: 0; width: 58%; cursor: grab; touch-action: none; }
.in-stage:active { cursor: grabbing; }
.in-top { position: absolute; top: calc(var(--st) + var(--pad)); left: calc(var(--sl) + var(--pad)); z-index: 3; }
.in-close { width: 48px; height: 48px; background: rgba(8, 20, 40, .62); -webkit-backdrop-filter: none; backdrop-filter: none; }
.in-hint { position: absolute; left: 29%; bottom: calc(var(--sb) + 18px); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 14px; border-radius: 16px; color: rgba(225, 240, 255, .82); background: rgba(6, 16, 34, .5); box-shadow: inset 0 0 0 1px rgba(170, 215, 255, .18); font-size: 12.5px; font-weight: 800; pointer-events: none; white-space: nowrap; }
.in-hint .ico { width: 18px; height: 18px; }
.in-panel { position: absolute; right: calc(var(--sr) + var(--pad)); top: calc(var(--st) + var(--pad)); bottom: calc(var(--sb) + var(--pad)); width: min(440px, 40vw); display: flex; flex-direction: column; gap: 14px; padding: 24px; overflow-y: auto; overscroll-behavior: contain;
  border-radius: 28px; background: linear-gradient(180deg, rgba(24, 48, 88, .94), rgba(10, 22, 46, .96)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 0 0 1px rgba(170, 215, 255, .16), 0 30px 80px rgba(0, 0, 0, .5);
  transform: translateX(24px); transition: transform .4s cubic-bezier(.2, .9, .3, 1.15); }
.inspect.show .in-panel { transform: none; }
.in-panel::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: 28px 28px 0 0; background: linear-gradient(90deg, transparent, var(--rc), transparent); }
.in-kick { display: flex; flex-wrap: wrap; gap: 8px; }
.in-rar, .in-slot { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 14px; font: 900 11.5px/1 var(--fu); letter-spacing: .08em; text-transform: uppercase; }
.in-rar { color: #0b1d3a; background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 60%, #fff), var(--rc)); box-shadow: 0 4px 14px color-mix(in srgb, var(--rc) 45%, transparent); }
.inspect.r-special .in-rar { background: linear-gradient(90deg, #ff86c9, #ffd36b, #7fe7ff); }
.in-rar i { width: 8px; height: 8px; transform: rotate(45deg); border-radius: 2px; background: #fff; box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .25); }
.in-slot { color: var(--ink2); background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px var(--line); letter-spacing: .02em; text-transform: none; font-size: 12.5px; }
.in-slot .ico { width: 15px; height: 15px; }
.in-name { margin: 0; font: 900 clamp(24px, 4vmin, 34px)/1.05 var(--fd); letter-spacing: -.02em; }
.in-set { --s1: #1b3a6b; --s2: #4fa3ff; display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 18px; background: linear-gradient(135deg, color-mix(in srgb, var(--s1) 55%, transparent), color-mix(in srgb, var(--s2) 22%, transparent)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.in-set-h { display: flex; align-items: center; gap: 8px; font: 800 13.5px/1.2 var(--fu); }
.in-set-h .ico { width: 17px; height: 17px; color: #ffd27a; }
.in-set-h b { margin-left: auto; font-family: var(--fd); font-variant-numeric: tabular-nums; }
.in-set small { color: rgba(230, 242, 255, .75); font-size: 12px; }
.in-desc { margin: 0; color: var(--ink2); font-size: 14px; }
.in-profile { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); }
.in-pc { display: flex; flex-direction: column; gap: 6px; min-width: 0; align-items: flex-start; }
.in-pc strong { font: 900 18px/1.1 var(--fd); }
.in-actions { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.in-cta { height: 58px; font-family: var(--fd); font-size: 17px; justify-content: space-between; padding: 0 22px; }
.in-price { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.in-price b { font-size: 19px; }
.in-price s { font-size: 13px; opacity: .65; }
.in-price .ico { width: 22px; height: 22px; }
.in-equipped { display: flex; align-items: center; justify-content: center; gap: 8px; height: 54px; border-radius: 16px; font: 900 16px/1 var(--fd); color: #052b1c; background: linear-gradient(180deg, #7ff0bf, #2fd08f); box-shadow: 0 6px 18px rgba(52, 211, 153, .3); }
.in-equipped .ico { width: 22px; height: 22px; }
.in-short { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 14px; background: rgba(255, 110, 120, .12); box-shadow: inset 0 0 0 1px rgba(255, 130, 140, .3); color: #ffc6cc; font-size: 13.5px; font-weight: 800; }
.in-locked { display: flex; flex-direction: column; gap: 10px; }
.in-locked p { display: flex; gap: 8px; margin: 0; color: var(--ink2); font-size: 14px; }
.in-locked p .ico { flex: none; width: 20px; height: 20px; color: #ffd27a; }
.in-note { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ink2); }
.inspect.bought .in-panel::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 2px var(--rc), 0 0 40px var(--rc); animation: boughtPulse .9s ease-out forwards; pointer-events: none; }
@keyframes boughtPulse { from { opacity: 1; } to { opacity: 0; } }
@media (max-aspect-ratio: 1/1) {
  .in-stage { width: 100%; bottom: auto; height: 50%; top: calc(var(--st) + 8px); }
  .in-hint { left: auto; right: calc(var(--sr) + var(--pad)); transform: none; bottom: auto; top: calc(var(--st) + var(--pad) + 8px); }
  .in-panel { left: calc(var(--sl) + 8px); right: calc(var(--sr) + 8px); top: auto; bottom: 0; width: auto; max-height: 52%; padding: 20px 18px calc(var(--sb) + 18px); border-radius: 26px 26px 0 0; transform: translateY(30px); gap: 11px; }
  .in-panel::before { border-radius: 26px 26px 0 0; }
}
@media (max-aspect-ratio: 1/1) and (max-height: 700px) { .in-desc { display: none; } .in-cta { height: 52px; } }
@media (max-height: 520px) and (orientation: landscape) {
  .in-panel { padding: 16px 18px; gap: 9px; width: min(400px, 46vw); }
  .in-stage { width: 54%; }
  .in-hint { left: 27%; }
  .in-desc { display: none; }
  .in-name { font-size: 22px; }
  .in-cta { height: 48px; }
}

/* ------------------------------------------------------------- chest cinematic */
.chest-cine { position: fixed; inset: 0; z-index: 3; opacity: 0; transition: opacity .25s; pointer-events: auto; --rc: #9fd3ff; }
.chest-cine.show { opacity: 1; }
.cc-focus { position: absolute; left: 10%; right: 10%; top: 16%; height: 48%; pointer-events: none; }
.cc-flash { position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, #fff 0%, color-mix(in srgb, var(--rc) 70%, #fff) 30%, transparent 75%); opacity: 0; pointer-events: none; }
.cc-flash.go { animation: ccFlash .7s ease-out; }
@keyframes ccFlash { 0% { opacity: 0; } 12% { opacity: .95; } 100% { opacity: 0; } }
.cc-head { position: absolute; left: 0; right: 0; top: calc(var(--st) + 16px); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; text-align: center; padding: 0 70px; }
.cc-kick { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 12px; border-radius: 13px; font: 900 10.5px/1 var(--fd); letter-spacing: .14em; text-transform: uppercase; color: rgba(225, 240, 255, .85); background: rgba(6, 16, 34, .45); box-shadow: inset 0 0 0 1px rgba(170, 215, 255, .2); }
.cc-kick .ico { width: 15px; height: 15px; }
.cc-title { margin: 0; font: 900 clamp(24px, 5vmin, 40px)/1.05 var(--fd); color: #fff; text-shadow: 0 4px 0 rgba(0, 0, 0, .18), 0 10px 30px rgba(0, 0, 0, .35); }
.cc-skip { position: absolute; right: calc(var(--sr) + 16px); top: calc(var(--st) + 16px); display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 12px 0 16px; border: 0; border-radius: 19px; cursor: pointer; color: rgba(230, 242, 255, .9); background: rgba(6, 16, 34, .5); box-shadow: inset 0 0 0 1px rgba(170, 215, 255, .25); font: 800 13px/1 var(--fd); letter-spacing: .04em; transition: opacity .3s; }
.cc-skip .ico { width: 16px; height: 16px; }
.cc-skip.gone { opacity: 0; pointer-events: none; }
.cc-bottom { position: absolute; left: 0; right: 0; bottom: calc(var(--sb) + 18px); display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 0 16px; }
.cc-status { margin: 0; min-height: 1.4em; font: 800 15px/1.3 var(--fu); color: rgba(230, 242, 255, .85); text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.cc-reveal { display: flex; flex-direction: column; align-items: center; gap: 10px; min-height: 0; }
.cc-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; min-height: 52px; }
.cc-actions .btn { min-width: 132px; }
.cc-p { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; opacity: .85; }
.cc-p .ico { width: 15px !important; height: 15px !important; }
.rv-card { --rc: #9fd3ff; width: 204px; aspect-ratio: 204 / 278; perspective: 900px; }
.rv-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateY(180deg) scale(.6); opacity: 0; transition: transform .75s cubic-bezier(.2, .9, .25, 1.15), opacity .25s; }
.rv-card.flip .rv-inner { transform: none; opacity: 1; }
.rv-front, .rv-back { position: absolute; inset: 0; border-radius: 22px; -webkit-backface-visibility: hidden; backface-visibility: hidden; overflow: hidden; }
.rv-back { display: grid; place-items: center; transform: rotateY(180deg); background: repeating-linear-gradient(45deg, #1a3766 0 10px, #142d57 10px 20px); box-shadow: inset 0 0 0 3px var(--rc); color: rgba(255, 255, 255, .5); }
.rv-back .ico { width: 64px; height: 64px; }
.rv-front { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 12px 14px; text-align: center;
  background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 38%, #16305a), #0c1b37 70%); box-shadow: inset 0 0 0 2.5px var(--rc), 0 0 0 6px color-mix(in srgb, var(--rc) 22%, transparent), 0 0 60px color-mix(in srgb, var(--rc) 60%, transparent), 0 20px 50px rgba(0, 0, 0, .5); }
.rv-rar { font: 900 11px/1 var(--fd); letter-spacing: .16em; text-transform: uppercase; color: color-mix(in srgb, var(--rc) 60%, #fff); }
.rv-art { position: relative; width: 100%; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--rc) 50%, #fff) 0%, color-mix(in srgb, var(--rc) 25%, #13284d) 45%, #0b1a35 100%); }
.rv-art .ic-art { position: absolute; inset: 0; }
.rv-name { font: 900 16px/1.15 var(--fd); margin-top: 4px; }
.rv-slot { font-size: 12px; color: var(--ink2); font-weight: 800; }
.rv-dup, .rv-new { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 17px; font-size: 13.5px; font-weight: 800; background: rgba(6, 16, 34, .6); box-shadow: inset 0 0 0 1px rgba(170, 215, 255, .2); }
.rv-new { color: #7ff0bf; }
.rv-new .ico { width: 18px; height: 18px; }
.rv-refund { display: inline-flex; align-items: center; gap: 3px; font-family: var(--fd); color: #9fdcff; }
@media (max-height: 640px) { .rv-card { width: 150px; } .rv-name { font-size: 14px; } .cc-head { top: calc(var(--st) + 8px); } .cc-title { font-size: 22px; } }
@media (max-height: 520px) and (orientation: landscape) {
  .cc-focus { left: 4%; right: 52%; top: 18%; height: 70%; }
  .cc-bottom { left: 46%; top: calc(var(--st) + 60px); bottom: calc(var(--sb) + 10px); justify-content: center; gap: 10px; }
  .cc-head { left: 0; right: 50%; padding: 0 10px; }
  .rv-card { width: 132px; }
  .cc-actions .btn { min-width: 0; height: 44px; padding: 0 14px; }
}

/* ------------------------------------------------------------- locker */
.locker-body { grid-template-columns: minmax(0, 1fr) minmax(320px, min(700px, 60%)); }
.locker-panel { gap: 12px; padding: 12px; }
.locker-panel .grid-scroll { padding: 4px 4px calc(var(--sb) + 8px); -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 18px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 18px), transparent); }
.locker-grid { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px; }
.locker-filters .cat-tab { height: 54px; }
.icard-wrap { position: relative; display: flex; min-width: 0; }
.icard-wrap > .icard { flex: 1; }
.ic-eye { position: absolute; right: 12px; top: 12px; z-index: 4; width: 32px; height: 32px; border: 0; border-radius: 11px; display: grid; place-items: center; cursor: pointer; color: #fff; background: rgba(6, 16, 34, .62); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); opacity: .92; transition: transform .14s, background .2s; }
.ic-eye .ico { width: 17px; height: 17px; }
.ic-eye:active { transform: scale(.9); }
@media (hover: hover) { .ic-eye:hover { background: rgba(40, 90, 160, .8); } }
.lk-info { position: absolute; left: 8px; right: 8px; bottom: 6px; display: flex; align-items: center; justify-content: space-between; gap: 10px; pointer-events: none; }
.lk-id { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 6px 12px 6px 6px; border-radius: 30px; background: rgba(6, 16, 34, .55); box-shadow: inset 0 0 0 1px rgba(170, 215, 255, .16); }
.lk-nm { display: flex; flex-direction: column; gap: 3px; min-width: 0; align-items: flex-start; }
.lk-nm strong { font: 900 14px/1.1 var(--fd); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
.lk-count { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; padding: 6px 12px; border-radius: 16px; background: rgba(6, 16, 34, .55); box-shadow: inset 0 0 0 1px rgba(170, 215, 255, .16); }
.lk-count b { font: 900 15px/1 var(--fd); font-variant-numeric: tabular-nums; }
.lk-count span { font-size: 10.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
@media (max-aspect-ratio: 1/1) { .locker-body { grid-template-rows: minmax(170px, 36%) minmax(0, 1fr); } .lk-info { bottom: 2px; } .lk-id { padding: 4px 10px 4px 4px; } }
@media (max-height: 520px) and (orientation: landscape) { .lk-count { display: none; } .locker-filters .cat-tab { height: 42px; gap: 0; } .locker-filters .cat-tab > span:not(.ico) { display: none; } .locker-panel { gap: 8px; padding: 8px; } .chip { height: 30px; } }

/* ------------------------------------------------------------- profile identity / results dance */
.pf-id { display: flex; align-items: center; gap: 14px; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.pf-id-t { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; align-items: flex-start; }
.pf-id-t strong { font: 900 20px/1.1 var(--fd); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pf-edit { flex: none; }
.res-stage { position: relative; height: clamp(150px, 26vh, 250px); flex: none; border-radius: 24px; background: radial-gradient(60% 70% at 50% 75%, rgba(143, 216, 255, .22), transparent 70%); }
.res-dance { position: absolute; inset: 0; }
.res-me { position: absolute; left: 10px; bottom: 8px; display: flex; align-items: center; gap: 8px; max-width: calc(100% - 20px); padding: 4px 12px 4px 4px; border-radius: 22px; background: rgba(6, 16, 34, .55); box-shadow: inset 0 0 0 1px rgba(170, 215, 255, .18); pointer-events: none; }
.res-me strong { font: 900 13px/1 var(--fd); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-height: 560px) { .res-stage { display: none; } }
.rt-row { height: 42px; }
.rt-role .av, .sc-role .av, .lb-emo .av { vertical-align: middle; }
.rt-name { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; }
.rt-l1 { display: flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; }
.rt-name .bdg, .sc-nm .bdg, .lb-nm .bdg { max-width: 100%; }
.sc-row { height: 34px; grid-template-columns: 28px minmax(0, 1fr) 60px 44px; }
.sc-nm { display: flex; flex-direction: column; justify-content: center; gap: 1px; min-width: 0; }
.sc-n1, .lb-n1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-slot { height: 42px; grid-template-columns: 30px minmax(0, 1fr) auto; }
.lb-nm { display: flex; flex-direction: column; gap: 2px; min-width: 0; align-items: flex-start; }
@media (max-height: 520px) and (orientation: landscape) { .rt-row { height: 32px; } .rt-name .bdg { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .ic-foil::after, .av-ring { animation: none !important; }
  .ic-img, .hero-img, .bc-img, .ch-img, .rv-inner, .in-panel { transition-duration: .01s !important; }
  .cc-flash.go { animation-duration: .2s; }
}
html.perf-mode .ic-foil, html.perf-mode .hero-flakes { display: none; }

@media (max-width: 460px) { .pill .cd-l { display: none; } }
@media (max-width: 680px) {
  .shop-hero { grid-template-columns: minmax(0, 1fr); grid-template-rows: 230px auto; min-height: 0; }
  .hero-art { grid-row: 1; }
  .hero-art { height: 230px; }
  .hero-img { position: absolute; left: 50%; top: 2px; width: 250px; height: 250px; margin-left: -125px; }
  .hero-halo { width: 230px; }
  .hero-txt { grid-row: 2; padding: 2px 18px 20px; gap: 9px; }
  .hero-kick { position: absolute; left: 14px; right: 14px; top: 14px; justify-content: space-between; }
  .hero-title { font-size: 30px; }
  .hero-desc { font-size: 13.5px; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-cta .bp-row { justify-content: center; }
  .hero-btn { width: 100%; }
  .hero-prog { grid-template-columns: minmax(0, 1fr) auto; }
}

/* a full-screen 3D overlay is open (item sheet / chest): the screens underneath are hidden */
html.ov3d #screens, html.ov3d #bgshade { visibility: hidden; }

@media (max-width: 520px) { .pf-edit span:not(.ico) { display: none; } .pf-edit { width: 44px; padding: 0; } .pf-id { gap: 12px; } }

@media (max-height: 520px) and (orientation: landscape) {
  .shop-hero { min-height: 250px; }
  .hero-txt { padding: 18px 22px; gap: 7px; }
  .hero-title { font-size: 30px; }
  .hero-desc { display: none; }
  .hero-img { width: min(100%, 290px); }
  .hero-btn { height: 46px; }
}

@media (max-height: 520px) and (orientation: landscape) {
  .rv-card { width: 104px; }
  .rv-front { padding: 7px 7px 9px; border-radius: 16px; }
  .rv-name { font-size: 12px; } .rv-slot { font-size: 10.5px; } .rv-rar { font-size: 9px; }
  .rv-dup, .rv-new { height: 28px; font-size: 12px; }
  .cc-actions { gap: 6px; min-height: 0; }
  .cc-actions .btn { height: 38px; font-size: 13px; padding: 0 12px; }
  .bd-head { grid-template-columns: 90px minmax(0, 1fr); padding: 10px 14px; }
  .bd-txt p { display: none; }
  .bd-grid { padding: 10px 14px; }
}

/* =====================================================================================================
   v1.3 — NİTRO, zırh (yelek), Kar Puanı, İglo Cephaneliği, hasar geri bildirimi, Silahlar.
   Rules: fixed-size HUD elements (no reflow / layout shift mid-match), transform/opacity animations only,
   no backdrop-filter in the match, never over the joystick / fire / look buttons.
   ===================================================================================================== */
.hud-left { position: absolute; left: calc(var(--sl) + 12px); bottom: calc(var(--sb) + 12px); display: flex; flex-direction: column; align-items: flex-start; gap: 6px; pointer-events: none; }
.hud-left .hud-vitals { position: relative; left: auto; bottom: auto; top: auto; }
.touch-on .hud-left { left: calc(var(--sl) + 8px); top: calc(var(--st) + 16px + clamp(64px, 9vw, 104px) * 1.4); bottom: auto; gap: 5px; }
.touch-on .hud-left .hud-vitals { left: auto; top: auto; order: 0; }
.touch-on .hud-left .kp-row { order: 1; }
/* armor: segmented bar (one segment = 20 armor) */
.ar-segs { display: flex; gap: 2px; height: 7px; min-width: 0; }
.ar-segs i { position: relative; flex: 1; border-radius: 2px; background: rgba(191, 233, 255, .16); overflow: hidden; }
.ar-segs b { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, #8fd8ff, #eaf8ff); box-shadow: 0 0 6px rgba(143, 216, 255, .6); transition: transform .15s linear; }
.hud-vitals[data-vest="agir"] .ar-segs b { background: linear-gradient(90deg, #a9b8d6, #f1f5ff); }
.hud-vitals[data-vest="buz"] .ar-segs b { background: linear-gradient(90deg, #5fe3ff, #dffbff); }
.hud-vitals.no-vest .v-ar { opacity: .38; }
.v-ar .vi { color: #bfe9ff; }
/* NİTRO meter */
.v-ni .vi { color: #9fe3ff; }
.ni-bar { height: 12px; border-radius: 6px; background: rgba(159, 227, 255, .14); }
.vit-fill.ni { background: linear-gradient(90deg, #3aa6ff, #9fe3ff 70%, #ffffff); transition: transform .12s linear; }
.ni-t { position: absolute; inset: 0; display: grid; place-items: center; font: 900 8.5px/1 var(--fd); letter-spacing: .08em; color: #fff; text-shadow: 0 1px 2px rgba(0, 20, 60, .9); white-space: nowrap; }
.kbd.ni-k { justify-self: end; }
.hud-vitals.ni-ready { box-shadow: 0 0 0 2px #7fd8ff, 0 0 20px rgba(95, 200, 255, .6); }
.hud-vitals.ni-ready .vit-fill.ni { animation: niPulse .8s ease-in-out infinite; }
.hud-vitals.ni-on .vit-fill.ni { background: linear-gradient(90deg, #ffffff, #9fe3ff); box-shadow: 0 0 10px #9fe3ff; }
.hud-vitals.spec-ready.ni-ready { box-shadow: 0 0 0 2px #ffd23f, 0 0 0 4px #7fd8ff, 0 0 20px rgba(95, 200, 255, .5); }
@keyframes niPulse { 50% { filter: brightness(1.5); } }
/* KP row: counter + bought weapon + grenades (fixed height; chips only change width) */
.kp-row { display: flex; align-items: center; gap: 6px; height: 26px; }
.kp-chip { position: relative; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px 0 8px; border-radius: 13px; background: linear-gradient(180deg, rgba(14, 32, 58, .8), rgba(8, 20, 40, .86)); box-shadow: inset 0 0 0 1px rgba(150, 220, 255, .35), 0 4px 12px rgba(0, 0, 0, .2); font-family: var(--fd); }
.kp-ico { color: #9fe3ff; font-size: 13px; }
.kp-v { min-width: 3ch; font-size: 13px; font-variant-numeric: tabular-nums; color: #fff; text-align: right; }
.kp-u { font-size: 9px; letter-spacing: .08em; color: #9fe3ff; }
.kp-pop { position: absolute; left: 50%; top: 0; margin-left: -1.2em; font: 900 12px/1 var(--fd); color: #9fe3ff; text-shadow: 0 1px 3px rgba(0, 20, 60, .9); opacity: 0; white-space: nowrap; pointer-events: none; }
.kp-pop.go { animation: kpPop 1.1s ease-out forwards; }
.kp-pop.spend { color: #ffd23f; }
@keyframes kpPop { 0% { opacity: 0; transform: translate(0, 10%) scale(.8); } 15% { opacity: 1; transform: translate(0, -60%) scale(1.15); } 100% { opacity: 0; transform: translate(0, -220%) scale(1); } }
.wp-chip, .gr-chip { display: none; align-items: center; height: 26px; padding: 0 10px; border-radius: 13px; background: rgba(8, 20, 40, .78); box-shadow: inset 0 0 0 1px rgba(255, 210, 63, .45); font: 800 11.5px/1 var(--fu); white-space: nowrap; color: #ffe9a8; }
.wp-chip.show, .gr-chip.show { display: inline-flex; }
.touch-on .kp-row .wp-chip { max-width: 118px; overflow: hidden; text-overflow: ellipsis; }
/* low HP vignette + NİTRO speed streaks (full-screen, transform/opacity only) */
.hud-lowhp { position: absolute; inset: 0; opacity: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 45%, rgba(210, 20, 40, .72) 100%); transition: opacity .3s; }
.hud-lowhp.on { opacity: 1; animation: lowHp 1.1s ease-in-out infinite; }
@keyframes lowHp { 50% { opacity: .55; } }
.hud-speed { position: absolute; inset: 0; opacity: 0; overflow: hidden; pointer-events: none; transition: opacity .25s; background: radial-gradient(ellipse at center, transparent 50%, rgba(60, 150, 255, .38) 100%); }
.hud-speed i { position: absolute; left: 50%; top: 50%; width: 160vmax; height: 160vmax; margin: -80vmax 0 0 -80vmax; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .0) 0deg 5deg, rgba(150, 215, 255, .8) 5.4deg 5.9deg, rgba(255, 255, 255, 0) 6.3deg 13deg);
  -webkit-mask-image: radial-gradient(circle at center, transparent 14vmax, rgba(0, 0, 0, .55) 26vmax, #000 44vmax); mask-image: radial-gradient(circle at center, transparent 14vmax, rgba(0, 0, 0, .55) 26vmax, #000 44vmax); }
.hud-speed.on { opacity: 1; }
.hud-speed.on i { animation: speedSpin 2.4s linear infinite; }
@keyframes speedSpin { to { transform: rotate(13deg); } }
/* hit direction indicators: wedges around the crosshair pointing at the attacker */
.hud-dirs { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.hdir { position: absolute; left: -120px; top: -120px; width: 240px; height: 240px; opacity: 0; transition: opacity .1s; }
.hdir i { position: absolute; left: 50%; top: 0; width: 86px; height: 22px; margin-left: -43px; border-radius: 50% 50% 0 0 / 100% 100% 0 0; background: radial-gradient(ellipse 50% 100% at 50% 100%, transparent 78%, rgba(255, 80, 80, .95) 82%, rgba(255, 80, 80, .0) 100%); filter: drop-shadow(0 0 5px rgba(255, 60, 60, .8)); }
@media (max-height: 520px) { .hdir { left: -96px; top: -96px; width: 192px; height: 192px; } }
/* floating damage numbers (shooter) */
.hud-dmgs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.dmgn { position: absolute; left: 0; top: 0; display: none; font: 900 18px/1 var(--fd); color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .35), 0 0 6px rgba(0, 0, 0, .45); white-space: nowrap; will-change: transform, opacity; }
.dmgn.show { display: block; }
.dmgn.armor { color: #bfe9ff; }
.dmgn.kill { font-size: 20px; color: #ff6b6b; letter-spacing: .04em; }
/* İglo Cephaneliği prompt (bottom centre, above the button row; only shown in the igloo zone) */
.hud-buy { position: absolute; left: 50%; bottom: calc(var(--sb) + 118px); transform: translateX(-50%) translateY(8px); display: inline-flex; align-items: center; gap: 8px; height: 44px; max-width: min(56vw, 320px); padding: 0 16px; border: 0; border-radius: 22px; cursor: pointer;
  color: #10233f; background: linear-gradient(180deg, #fff3c4, #ffd23f); box-shadow: 0 8px 22px rgba(255, 180, 30, .35), inset 0 1px 0 rgba(255, 255, 255, .7); font: 900 13px/1 var(--fd); white-space: nowrap; opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility 0s .2s; pointer-events: none; }
.hud-buy.show { opacity: 1; visibility: visible; transform: translateX(-50%); pointer-events: auto; transition: opacity .2s, transform .2s; animation: buyGlow 1.6s ease-in-out infinite; }
.hud-buy .ico { width: 20px; height: 20px; flex: none; }
.hud-buy .hb-t { overflow: hidden; text-overflow: ellipsis; }
.hud-buy .kbd { background: rgba(16, 35, 63, .85); color: #fff; }
.touch-on .hud-buy .hb-k { display: none; }
@keyframes buyGlow { 50% { box-shadow: 0 8px 26px rgba(255, 190, 40, .6), 0 0 0 4px rgba(255, 220, 90, .35), inset 0 1px 0 rgba(255, 255, 255, .7); } }
.hud.spectate .hud-buy, .hud.spectate .hud-left { display: none; }
/* buy panel: big cards, wrapping grid (never a horizontal strip), vertical scroll only if needed */
.armory { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; padding: calc(var(--st) + 8px) calc(var(--sr) + 10px) calc(var(--sb) + 8px) calc(var(--sl) + 10px); pointer-events: none; z-index: 6; }
.armory.show { display: flex; }
.arm-box { pointer-events: auto; width: min(860px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 22px; color: #fff;
  background: linear-gradient(180deg, rgba(20, 44, 82, .96), rgba(8, 20, 42, .97)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 0 0 1px rgba(150, 210, 255, .22), 0 24px 60px rgba(0, 0, 0, .5); animation: armIn .22s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes armIn { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.arm-head { display: flex; align-items: center; gap: 10px; flex: none; }
.arm-title { display: flex; align-items: center; gap: 8px; font: 900 17px/1 var(--fd); min-width: 0; }
.arm-title .ico { width: 24px; height: 24px; color: #9fe3ff; }
.arm-kp { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 17px; background: rgba(150, 220, 255, .12); box-shadow: inset 0 0 0 1px rgba(150, 220, 255, .35); font: 900 16px/1 var(--fd); color: #fff; }
.arm-kp small { font-size: 10px; color: #9fe3ff; letter-spacing: .08em; }
.arm-kp span { color: #9fe3ff; }
.arm-x { flex: none; width: 40px; height: 40px; border: 0; border-radius: 13px; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .1); cursor: pointer; }
.arm-x .ico { width: 20px; height: 20px; }
.arm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 8px; overflow-y: auto; overscroll-behavior: contain; min-height: 0; padding: 2px; }
.ac { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 3px; min-height: 0; padding: 9px 10px 9px; border: 0; border-radius: 16px; cursor: pointer; text-align: left; color: #fff;
  background: linear-gradient(170deg, rgba(48, 86, 140, .55), rgba(20, 40, 74, .72)); box-shadow: inset 0 0 0 1px rgba(170, 215, 255, .22); transition: transform .08s, box-shadow .15s, opacity .15s; }
.ac:active { transform: scale(.97); }
.ac:hover, .ac.focus { box-shadow: inset 0 0 0 2px #9fe3ff, 0 6px 18px rgba(80, 180, 255, .25); }
.ac.ac-vest { background: linear-gradient(170deg, rgba(60, 140, 200, .5), rgba(18, 44, 80, .75)); }
.ac.ac-weapon { background: linear-gradient(170deg, rgba(255, 140, 60, .4), rgba(60, 30, 30, .55) 70%, rgba(30, 24, 40, .7)); }
.ac.ac-util { background: linear-gradient(170deg, rgba(120, 90, 255, .42), rgba(26, 24, 64, .75)); }
.ac-ico { font-size: 28px; line-height: 34px; height: 34px; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .35)); }
.ac-key { position: absolute; right: 8px; top: 8px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 6px; display: grid; place-items: center; font: 800 10px/1 var(--fu); color: rgba(255, 255, 255, .7); background: rgba(0, 0, 0, .25); }
.touch-on .ac-key { display: none; }
.ac-nm { font: 900 13.5px/1.15 var(--fd); min-height: 2.3em; display: flex; align-items: flex-end; }
.ac-d { font: 700 11.5px/1.25 var(--fu); color: #cfe0f2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.ac-foot { display: flex; align-items: center; gap: 6px; margin-top: 3px; min-height: 22px; min-width: 0; }
.ac-cost { flex: none; white-space: nowrap; display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 11px; font: 900 12px/1 var(--fd); color: #10233f; background: linear-gradient(180deg, #e6f7ff, #9fe3ff); }
.ac-r { min-width: 0; font: 800 10.5px/1.1 var(--fu); color: #ffcf9f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac.no { opacity: .55; }
.ac.no .ac-cost { background: rgba(255, 255, 255, .25); color: #fff; }
.ac.own { opacity: .7; }
.ac.own .ac-r { color: #7dffb0; }
.arm-foot { flex: none; font: 700 11px/1.35 var(--fu); color: var(--ink2); text-align: center; }
@media (max-height: 520px) {
  .arm-box { padding: 10px; gap: 7px; border-radius: 18px; }
  .arm-grid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 6px; }
  .ac { padding: 6px 8px 7px; gap: 2px; }
  .ac-ico { font-size: 20px; line-height: 24px; height: 24px; }
  .ac-nm { font-size: 12px; min-height: 2.3em; }
  .ac-d { display: none; }
  .ac-foot { margin-top: 2px; }
  .arm-foot { display: none; }
  .arm-title { font-size: 15px; }
  .hud-buy { bottom: calc(var(--sb) + 112px); height: 40px; font-size: 12px; }
}
.hud.arm-open .crosshair { opacity: 0; }
/* touch: NİTRO button (left of Çığ; never overlaps fire / jump / slide / alt) */
.tb-nitro { right: calc(var(--s) + 202px); bottom: calc(var(--sb) + 116px); width: 60px; height: 60px; font-size: 10px; }
.tb-nitro .ico { width: 22px; height: 22px; margin-top: -2px; }
.tb-nitro .tb-ring .val { stroke: #8fd8ff; }
.tb-nitro.ready { background: radial-gradient(circle, rgba(170, 235, 255, .9), rgba(40, 140, 255, .78)); animation: niGlow 1s ease-in-out infinite; }
.tb-nitro.active { background: radial-gradient(circle, rgba(255, 255, 255, .9), rgba(120, 210, 255, .8)); color: #0a2a4a; text-shadow: none; }
.tb-nitro.active .tb-ring .val { stroke: #ffffff; }
@keyframes niGlow { 50% { box-shadow: 0 0 0 6px rgba(120, 210, 255, .35), 0 0 30px rgba(120, 210, 255, .85); } }
.tb-alt.nade { background: rgba(255, 140, 60, .45); font-size: 10px; }
html.in-game .tb-nitro.ready { background: radial-gradient(circle, rgba(170, 235, 255, .92), rgba(40, 140, 255, .82)); }
html.in-game .tb-alt.nade { background: rgba(255, 140, 60, .5); }
@media (max-height: 420px) { .tb-nitro { width: 54px; height: 54px; right: calc(var(--s) + 182px); bottom: calc(var(--sb) + 104px); } }
.hud-toast.nitro { background: linear-gradient(90deg, rgba(60, 160, 255, .92), rgba(160, 230, 255, .92)); color: #06213f; }
.hud-toast.buy { background: linear-gradient(90deg, rgba(255, 210, 63, .95), rgba(255, 243, 196, .95)); color: #10233f; }
.hud-toast.assist { background: rgba(255, 255, 255, .9); color: #0b1d3a; }
.hud-toast.warn { background: rgba(160, 60, 20, .88); }
/* results: Kar Puanı summary */
.rw-kp { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 6px; padding: 7px 12px; border-radius: 14px; background: rgba(150, 220, 255, .1); box-shadow: inset 0 0 0 1px rgba(150, 220, 255, .25); font: 800 12.5px/1.3 var(--fu); color: #dff4ff; }
.rw-kp .kp-ico { font-size: 14px; }
.rw-kp-sep { opacity: .5; }

/* ----- Silahlar (shop section + weapon sheet + role-screen picker) ----- */
.wgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 12px; }
.wcard { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; min-height: 168px; padding: 12px; border: 0; border-radius: 20px; cursor: pointer; text-align: left; color: #fff;
  background: linear-gradient(165deg, rgba(255, 150, 70, .2), rgba(18, 38, 72, .9) 45%, rgba(10, 24, 48, .95)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 0 0 1px rgba(255, 190, 120, .28), 0 10px 26px rgba(2, 8, 22, .35); transition: transform .12s, box-shadow .2s; }
.wcard:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 0 0 1px rgba(255, 200, 130, .6), 0 14px 30px rgba(2, 8, 22, .45); }
.wcard:active { transform: scale(.97); }
.wcard.eq { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 0 0 2px #34d399, 0 0 22px rgba(52, 211, 153, .3), 0 10px 24px rgba(2, 8, 22, .38); }
.wc-top { display: flex; align-items: center; gap: 7px; }
.wc-emo { font-size: 22px; }
.wc-role { font: 800 11px/1 var(--fu); color: #ffd9b0; text-transform: uppercase; letter-spacing: .06em; }
.wc-nm { font: 900 16px/1.1 var(--fd); }
.wc-d { font: 700 12px/1.3 var(--fu); color: #c9dbef; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.wc-stats { display: flex; gap: 6px; margin-top: auto; }
.wc-stats span { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 2px; border-radius: 10px; background: rgba(255, 255, 255, .07); font: 700 9.5px/1 var(--fu); color: #b9cde3; white-space: nowrap; }
.wc-stats b { font: 900 13px/1 var(--fd); color: #fff; }
.wc-foot { display: flex; align-items: center; min-height: 26px; }
.weapon-modal { width: min(560px, 94vw); }
.wsheet { display: flex; flex-direction: column; gap: 12px; color: #fff; }
.ws-head { display: flex; align-items: center; gap: 12px; }
.ws-emo { flex: none; width: 64px; height: 64px; display: grid; place-items: center; font-size: 36px; border-radius: 18px; background: radial-gradient(circle at 40% 35%, rgba(255, 190, 120, .45), rgba(255, 120, 40, .15)); box-shadow: inset 0 0 0 1px rgba(255, 200, 140, .4); }
.ws-ttl h3 { margin: 4px 0 2px; font: 900 22px/1.1 var(--fd); }
.ws-ttl p { margin: 0; font: 700 13px/1.35 var(--fu); color: var(--ink2); }
.pill.wpn { height: 24px; font-size: 11px; }
.ws-demo { position: relative; border-radius: 16px; overflow: hidden; background: linear-gradient(180deg, rgba(14, 34, 66, .9), rgba(8, 20, 40, .95)); box-shadow: inset 0 0 0 1px rgba(170, 215, 255, .18); }
.wd-canvas { display: block; width: 100%; height: auto; aspect-ratio: 640 / 180; }
.ws-demo-l { position: absolute; right: 10px; bottom: 6px; font: 800 10px/1 var(--fu); color: rgba(255, 255, 255, .55); }
.ws-table { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(170, 215, 255, .16); }
.ws-row { display: grid; grid-template-columns: minmax(0, 1.4fr) 1fr 1fr; gap: 8px; align-items: center; min-height: 30px; padding: 0 12px; font: 700 12.5px/1.2 var(--fu); }
.ws-row:nth-child(odd) { background: rgba(255, 255, 255, .04); }
.ws-row.ws-h { font: 900 11px/1 var(--fd); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.ws-a, .ws-b { text-align: center; font-variant-numeric: tabular-nums; }
.ws-b { font-weight: 900; color: #fff; }
.ws-b.up { color: #7dffb0; } .ws-b.down { color: #ffb38a; }
.ws-traits { display: flex; flex-wrap: wrap; gap: 6px; }
.chip.static { cursor: default; height: 28px; font-size: 11.5px; }
.ws-fair { display: flex; align-items: flex-start; gap: 8px; margin: 0; font: 700 12px/1.35 var(--fu); color: #cfe9d9; }
.ws-fair .ico { flex: none; width: 18px; height: 18px; color: #7dffb0; }
.ws-foot { display: flex; justify-content: center; min-height: 48px; align-items: center; }
.ws-eq { display: inline-flex; align-items: center; gap: 8px; font: 900 14px/1 var(--fd); color: #7dffb0; }
.ws-eq .ico { width: 20px; height: 20px; }
.vpick { margin-top: 10px; display: flex; align-items: center; gap: 8px; min-height: 36px; }
.rs-tag.wpn { background: #ff8a3d; }
.vp-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.vp-chip { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 12px; border: 0; border-radius: 16px; cursor: pointer; color: #dfeaf7; background: linear-gradient(180deg, rgba(20, 40, 74, .8), rgba(10, 24, 48, .84)); box-shadow: inset 0 0 0 1px var(--line); font: 800 12px/1 var(--fu); white-space: nowrap; }
.vp-chip .ico { width: 14px; height: 14px; opacity: .8; }
.vp-chip.on { color: #10233f; background: linear-gradient(180deg, #fff3c4, #ffd23f); box-shadow: 0 4px 12px rgba(255, 190, 40, .3); }
.vp-chip.locked { color: var(--ink2); }

.hud.arm-open .hud-toast { top: auto; bottom: calc(var(--sb) + 10px); z-index: 7; }
.hud-coach.top { bottom: auto; top: 30%; }
.ni-t { font-size: 9px; text-shadow: 0 0 2px #031a33, 0 0 3px #031a33, 0 1px 2px #031a33; }
.hud.arm-open .hud-coach { opacity: 0; }
/* the prompt never reaches the NİTRO / Alt buttons (they start 262 px / 236 px from the right edge) */
.touch-on .hud-buy { max-width: calc(100vw - 2 * (var(--sr) + 270px)); }
.hud-buy .hb-s { display: none; }
@media (max-width: 960px) { .touch-on .hud-buy .hb-t { display: none; } .touch-on .hud-buy .hb-s { display: inline; } .touch-on .hud-buy { padding: 0 14px; } }
@media (max-height: 420px) { .touch-on .hud-buy { max-width: calc(100vw - 2 * (var(--sr) + 244px)); } }

/* ============================================================= v1.4 ÜYELİK (welcome / auth / account / legal)
   Same "midnight ice" glass language. Every message line has a fixed height (no layout shift); forms scroll
   inside the screen body on short landscape phones; nothing scrolls sideways. */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lnk { display: inline; padding: 0; margin: 0; border: 0; background: none; cursor: pointer; color: var(--ice); font: inherit; font-weight: 800; text-decoration: underline; text-decoration-color: rgba(143, 216, 255, .35); text-underline-offset: 3px; border-radius: 4px; }
@media (hover: hover) { .lnk:hover { color: #fff; text-decoration-color: currentColor; } }
.pill { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border-radius: 13px; font: 800 12px/1 var(--fu); white-space: nowrap; flex: none; }
.pill .ico { width: 14px; height: 14px; }
.pill.mint { color: #7ff3cf; background: rgba(62, 224, 176, .14); box-shadow: inset 0 0 0 1px rgba(62, 224, 176, .35); }
.pill.warn { color: var(--gold); background: rgba(255, 201, 64, .12); box-shadow: inset 0 0 0 1px rgba(255, 201, 64, .35); }
.icon-btn.sm { width: 36px; height: 36px; border-radius: 12px; }
.icon-btn.sm .ico { width: 18px; height: 18px; }
@keyframes kpShake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(3px); } 30%, 50%, 70% { transform: translateX(-6px); } 40%, 60% { transform: translateX(6px); } }

/* ---- welcome (first launch / signed out) */
.scr-welcome { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) clamp(330px, 36vw, 450px); grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: "brand side" ". side" "foot side"; column-gap: clamp(14px, 2.4vw, 32px); row-gap: 10px;
  padding: calc(var(--st) + var(--pad)) calc(var(--sr) + var(--pad)) calc(var(--sb) + var(--pad)) calc(var(--sl) + var(--pad)); }
.wl-head { position: absolute; top: calc(var(--st) + var(--pad)); left: calc(var(--sl) + var(--pad)); z-index: 2; }
.wl-brand { grid-area: brand; display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 2px; pointer-events: none; }
.wl-logo { display: block; height: clamp(46px, 8vmin, 78px); width: auto; aspect-ratio: 4.31; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .45)); }
.wl-panel { grid-area: side; align-self: center; display: flex; flex-direction: column; gap: 12px; padding: 22px; max-height: 100%; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; border-radius: var(--r-lg); }
.wl-title { margin: 0; font: 900 clamp(19px, 2.6vmin, 24px)/1.15 var(--fd); color: #fff; }
.wl-sub { margin: -4px 0 0; font-size: 14px; color: var(--ink2); line-height: 1.45; }
.wl-reason { margin: -4px 0 0; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; font-size: 13.5px; color: #ffe39a; background: rgba(255, 201, 64, .12); box-shadow: inset 0 0 0 1px rgba(255, 201, 64, .3); }
.wl-reason .ico { color: var(--gold); width: 18px; height: 18px; }
.wl-perks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wl-perks li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink); line-height: 1.25; }
.wp-ico { width: 36px; height: 36px; flex: none; border-radius: 12px; display: grid; place-items: center; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 4px 12px rgba(2, 8, 22, .3); }
.wp-ico .ico { width: 20px; height: 20px; }
.wp-ico.t1 { background: linear-gradient(160deg, #6fdcff, #1a7fd6); }
.wp-ico.t2 { background: linear-gradient(160deg, #ffd25a, #ff8a1a); }
.wp-ico.t3 { background: linear-gradient(160deg, #c3a8ff, #6f4fe0); }
.wl-guest { padding: 12px; border-radius: 16px; background: linear-gradient(160deg, rgba(62, 224, 176, .16), rgba(62, 224, 176, .05)); box-shadow: inset 0 0 0 1px rgba(62, 224, 176, .3); }
.wl-guest-t { display: flex; gap: 10px; align-items: flex-start; }
.wl-guest-t > .ico { width: 24px; height: 24px; color: var(--mint); flex: none; }
.wl-guest-t span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wl-guest-t strong { font: 800 14.5px/1.25 var(--fd); overflow-wrap: anywhere; }
.wl-guest-t small { font-size: 12.5px; color: var(--ink2); }
.gs-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.gs-chip { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 14px; background: rgba(2, 10, 26, .45); box-shadow: inset 0 0 0 1px var(--line); font: 800 12px/1 var(--fd); color: #fff; white-space: nowrap; }
.gs-chip .ico { width: 15px; height: 15px; color: var(--gold); }
.gs-chip .fish-ico { color: #4fc3ff; }
.wl-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 2px; }
.wl-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font: 800 11px/1 var(--fu); letter-spacing: .14em; text-transform: uppercase; }
.wl-or::before, .wl-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.wl-practice { height: 58px; justify-content: flex-start; padding-left: 18px; }
.wl-practice > .ico { color: var(--mint); }
.wlp-t { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; line-height: 1.1; min-width: 0; }
.wlp-t small { font: 700 11.5px/1.1 var(--fu); color: var(--ink2); letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.auth-legal { display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.auth-legal .lnk { color: var(--ink2); font-weight: 700; text-decoration-color: rgba(188, 208, 234, .3); }
.wl-foot { grid-area: foot; align-self: end; display: flex; align-items: center; }
@media (min-aspect-ratio: 1/1) and (max-height: 560px) {
  .wl-panel { padding: 14px 16px; gap: 9px; }
  .wl-perks, .gs-chips { display: none; }
  .wl-guest { padding: 9px 10px; } .wl-guest-t small { display: none; } .wl-sub, .wl-reason { font-size: 13px; }
  .wl-actions .btn { height: 44px; }
  .wl-practice { height: 48px; }
  .wl-logo { height: 40px; } .wl-brand .hm-tag { display: none; }
  .wl-foot .brand-sig { height: 42px; } .wl-foot .bs-mark { width: 36px; height: 36px; }
}
@media (max-aspect-ratio: 1/1) {
  .scr-welcome { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto auto; grid-template-areas: "brand" "." "side" "foot"; row-gap: 10px; }
  .wl-brand { padding-top: 54px; }
  .wl-panel { width: 100%; max-width: 520px; justify-self: center; align-self: end; padding: 18px; gap: 10px; }
  .wl-foot { justify-self: center; }
}
@media (max-aspect-ratio: 1/1) and (max-height: 760px) {
  .wl-perks { display: none; }
  .wl-brand { padding-top: 50px; }
  .wl-logo { height: 46px; }
  .wl-actions .btn { height: 48px; }
  .wl-practice { height: 52px; }
}
@media (max-aspect-ratio: 1/1) and (min-height: 761px) { .wl-brand { padding-top: clamp(54px, 6vh, 70px); } }

/* ---- auth card (login / register / verify / forgot / new password) */
.auth-body { padding: 4px 2px 8px; }
.auth-card { position: relative; width: min(460px, 100%); padding: 22px 22px 18px; border-radius: var(--r-lg); isolation: isolate; }
.auth-glow { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; z-index: -1; }
.auth-glow::before { content: ''; position: absolute; width: 70%; height: 60%; top: -30%; right: -20%; background: radial-gradient(closest-side, rgba(111, 125, 255, .35), transparent); filter: blur(10px); }
.auth-glow::after { content: ''; position: absolute; width: 60%; height: 50%; bottom: -30%; left: -15%; background: radial-gradient(closest-side, rgba(62, 224, 176, .18), transparent); filter: blur(10px); }
.auth-top { display: flex; align-items: center; gap: 14px; }
.auth-top > div { min-width: 0; }
.auth-badge { width: 52px; height: 52px; flex: none; border-radius: 17px; display: grid; place-items: center; color: #fff; background: linear-gradient(160deg, #ffb24a, #f0560e); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 8px 20px rgba(255, 110, 30, .35); }
.auth-badge .ico { width: 26px; height: 26px; }
.auth-badge.t2 { background: linear-gradient(160deg, #6fe5c4, #17a982); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 8px 20px rgba(23, 169, 130, .35); }
.auth-badge.t3 { background: linear-gradient(160deg, #c3a8ff, #6f4fe0); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 8px 20px rgba(111, 79, 224, .35); }
.auth-badge.danger { background: linear-gradient(160deg, #ff8a96, #e23c50); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 8px 20px rgba(226, 60, 80, .35); }
.auth-h { margin: 0; font: 900 clamp(18px, 2.4vmin, 22px)/1.2 var(--fd); color: #fff; }
.auth-h.center, .auth-sub.center { text-align: center; }
.auth-sub { margin: 4px 0 0; font-size: 14px; color: var(--ink2); line-height: 1.45; }
.auth-email { color: #fff; overflow-wrap: anywhere; }
.auth-form { display: flex; flex-direction: column; margin-top: 16px; }
.auth-err { margin: 2px 2px 8px; height: 2.7em; font-size: 13px; line-height: 1.35; text-align: center; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.auth-err.net { color: var(--gold); }
.auth-alt { margin: 14px 0 0; text-align: center; font-size: 14px; color: var(--ink2); }
.auth-fine { display: flex; gap: 7px; align-items: flex-start; margin: 10px 2px 0; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.auth-fine .ico { width: 16px; height: 16px; color: var(--ice); margin-top: 1px; }
.auth-form .auth-fine { margin: 0 2px 8px; }
.auth-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px; border-radius: 16px; font-size: 13px; line-height: 1.45; color: var(--ink); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line); }
.auth-note > .ico { width: 22px; height: 22px; flex: none; }
.auth-note p { margin: 0; }
.auth-note p.small { margin-top: 8px; font-size: 12.5px; color: var(--ink2); }
.auth-note .gs-chips { margin-top: 8px; }
.auth-note.ok { background: linear-gradient(160deg, rgba(62, 224, 176, .14), rgba(62, 224, 176, .04)); box-shadow: inset 0 0 0 1px rgba(62, 224, 176, .3); }
.auth-note.ok > .ico { color: var(--mint); }
.auth-note.warn { background: linear-gradient(160deg, rgba(255, 201, 64, .13), rgba(255, 201, 64, .04)); box-shadow: inset 0 0 0 1px rgba(255, 201, 64, .3); }
.auth-note.warn > .ico { color: var(--gold); }

/* fields */
.fld { display: flex; flex-direction: column; min-width: 0; }
.fld-l { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0 2px 6px; font: 800 11.5px/1.2 var(--fu); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fld-l .lnk { text-transform: none; letter-spacing: 0; font-size: 12.5px; }
.fld-box { position: relative; }
.fld-in { display: block; width: 100%; height: 50px; margin: 0; padding: 0 14px; border: 0; border-radius: 14px; font: 700 16px/1 var(--fu); color: #fff; background: rgba(2, 10, 26, .5); box-shadow: inset 0 0 0 1.5px var(--line2); transition: box-shadow .18s, background .18s; -webkit-appearance: none; appearance: none; }
.fld-in::placeholder { color: var(--dim); font-weight: 600; }
.fld-in:focus { background: rgba(2, 10, 26, .62); box-shadow: inset 0 0 0 2px var(--cyan), 0 0 18px rgba(79, 209, 255, .22); }
.fld-in:-webkit-autofill { -webkit-text-fill-color: #fff; -webkit-box-shadow: inset 0 0 0 1.5px var(--line2), inset 0 0 0 60px #0b1a33; caret-color: #fff; }
.has-ico .fld-in { padding-left: 44px; }
.has-eye .fld-in { padding-right: 50px; }
.fld-ico { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--ice); pointer-events: none; opacity: .85; }
.fld-eye { position: absolute; right: 4px; top: 4px; bottom: 4px; width: 44px; border: 0; border-radius: 11px; display: grid; place-items: center; background: transparent; color: var(--ink2); cursor: pointer; }
.fld-eye .ico { width: 21px; height: 21px; }
@media (hover: hover) { .fld-eye:hover { color: #fff; background: rgba(255, 255, 255, .06); } }
.fld-count { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font: 700 12px/1 var(--fu); color: var(--dim); font-variant-numeric: tabular-nums; pointer-events: none; }
.fld-box:has(.fld-count) .fld-in { padding-right: 56px; }
.fld-msg { margin: 5px 2px 6px; height: 2.6em; font-size: 12px; line-height: 1.3; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fld.err .fld-msg { color: #ff9aa4; }
.fld.err .fld-in { box-shadow: inset 0 0 0 2px rgba(255, 93, 108, .85); }
.fld.ok .fld-msg { color: #7ff3cf; }
.pw-meter { display: flex; align-items: center; gap: 10px; height: 14px; margin: 8px 2px 0; }
.pw-bars { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.pw-bars i { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .12); transition: background .25s; }
.pw-meter[data-s="0"] .pw-bars i.on, .pw-meter[data-s="1"] .pw-bars i.on { background: var(--bad); }
.pw-meter[data-s="2"] .pw-bars i.on { background: var(--gold); }
.pw-meter[data-s="3"] .pw-bars i.on { background: #7fe3a8; }
.pw-meter[data-s="4"] .pw-bars i.on { background: var(--ok); box-shadow: 0 0 8px rgba(52, 211, 153, .5); }
.pw-l { width: 74px; flex: none; text-align: right; font: 800 11.5px/1 var(--fu); color: var(--ink2); white-space: nowrap; }
.pw-meter + .fld-msg { margin-top: 4px; }

/* checkbox */
.chk { position: relative; display: flex; gap: 11px; align-items: flex-start; margin: 2px 0 4px; font-size: 13px; line-height: 1.45; color: var(--ink2); cursor: pointer; }
.chk-in { position: absolute; opacity: 0; width: 24px; height: 24px; margin: 0; cursor: pointer; }
.chk-box { width: 24px; height: 24px; flex: none; border-radius: 8px; display: grid; place-items: center; color: #fff; background: rgba(2, 10, 26, .5); box-shadow: inset 0 0 0 1.5px var(--line2); transition: background .18s, box-shadow .18s; }
.chk-box .ico { width: 16px; height: 16px; opacity: 0; transform: scale(.4); transition: opacity .15s, transform .2s cubic-bezier(.2, .9, .3, 1.4); }
.chk-in:checked + .chk-box { background: linear-gradient(180deg, #6fdcff, #1a7fd6); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 4px 10px rgba(40, 150, 240, .35); }
.chk-in:checked + .chk-box .ico { opacity: 1; transform: none; }
.chk-in:focus-visible + .chk-box { outline: 2px solid #fff; outline-offset: 2px; }
.chk.err .chk-box { box-shadow: inset 0 0 0 2px rgba(255, 93, 108, .9); animation: kpShake .4s; }
.chk-t { min-width: 0; padding-top: 2px; }

/* one-time code */
.auth-mail { position: relative; width: 76px; height: 76px; margin: 2px auto 12px; border-radius: 24px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(160deg, #6fdcff, #1a7fd6 60%, #6f4fe0); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 14px 30px rgba(40, 120, 240, .35); animation: amFloat 3.2s ease-in-out infinite; }
.am-env .ico { width: 38px; height: 38px; }
.am-dot { position: absolute; top: -5px; right: -5px; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(180deg, #ff9b6a, #ff5a3d); box-shadow: 0 0 0 3px #0f2346, 0 4px 10px rgba(255, 90, 60, .55); animation: pulse 1.6s ease-in-out infinite; }
@keyframes amFloat { 50% { transform: translateY(-4px) rotate(-2deg); } }
.otp { display: flex; justify-content: center; align-items: center; gap: clamp(5px, 1.6vw, 9px); margin: 4px 0 10px; }
.otp-box { width: clamp(40px, 11.2vw, 54px); height: clamp(52px, 13vw, 62px); padding: 0; border: 0; border-radius: 14px; text-align: center; font: 900 clamp(22px, 6vw, 28px)/1 var(--fd); color: #fff; caret-color: var(--cyan);
  background: rgba(2, 10, 26, .5); box-shadow: inset 0 0 0 1.5px var(--line2); transition: box-shadow .15s, background .15s, transform .12s; -webkit-appearance: none; appearance: none; }
.otp-box:focus { background: rgba(2, 10, 26, .65); box-shadow: inset 0 0 0 2px var(--cyan), 0 0 18px rgba(79, 209, 255, .28); }
.otp-box.filled { box-shadow: inset 0 0 0 1.5px rgba(143, 216, 255, .6); background: rgba(40, 90, 160, .35); }
.otp-dash { width: 10px; height: 3px; border-radius: 2px; background: var(--line2); flex: none; }
.otp.bad { animation: kpShake .42s; }
.otp.bad .otp-box { box-shadow: inset 0 0 0 2px rgba(255, 93, 108, .85); }
.auth-resend { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 12px; font-size: 13px; color: var(--ink2); }
.resend { min-width: 168px; }
.resend.disabled { opacity: .55; pointer-events: none; }
.rs-t { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .auth-mail, .am-dot { animation: none; } }
@media (max-height: 560px) and (orientation: landscape) {
  .auth-card { padding: 16px 18px 14px; }
  .auth-badge { width: 44px; height: 44px; border-radius: 14px; } .auth-badge .ico { width: 22px; height: 22px; }
  .auth-sub { font-size: 13px; }
  .auth-form { margin-top: 12px; }
  .fld-in { height: 46px; }
  .auth-mail { width: 56px; height: 56px; border-radius: 18px; margin-bottom: 8px; } .am-env .ico { width: 28px; height: 28px; }
  .otp-box { height: 50px; }
}
@media (max-width: 380px) { .auth-card { padding: 18px 14px 14px; } .auth-top { gap: 11px; } .auth-badge { width: 46px; height: 46px; } }

/* ---- profile → account */
.acct { margin-top: 4px; }
.acct-card { padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); }
.acct-email { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ae-ico { width: 40px; height: 40px; flex: none; border-radius: 13px; display: grid; place-items: center; color: var(--ice); background: rgba(143, 216, 255, .12); box-shadow: inset 0 0 0 1px rgba(143, 216, 255, .25); }
.ae-ico .ico { width: 21px; height: 21px; }
.ae-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ae-t small { font: 800 10.5px/1.2 var(--fu); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ae-t strong { font: 800 14.5px/1.25 var(--fu); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.acct-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); gap: 8px; margin-top: 10px; }
.acct-actions .btn { width: 100%; min-width: 0; }
.acct-actions .btn > span:not(.ico) { overflow: hidden; text-overflow: ellipsis; }
.btn-ghost.warn { color: #ffe08a; }
.btn-ghost.danger { color: #ffb3bb; box-shadow: inset 0 0 0 1px rgba(255, 93, 108, .45), 0 6px 18px rgba(2, 8, 22, .25); }
@media (hover: hover) { .btn-ghost.danger:hover { background: rgba(255, 93, 108, .14); } }
.acct-danger { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding: 12px; border-radius: 16px; background: rgba(255, 93, 108, .06); box-shadow: inset 0 0 0 1px rgba(255, 93, 108, .22); }
.acct-danger > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.acct-danger strong { font: 800 14px/1.2 var(--fd); color: #ffc2c8; }
.acct-danger small { font-size: 12px; color: var(--ink2); }
.acct-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 8px; margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }
.acct-legal .lnk { color: var(--ink2); font-weight: 700; }
.acct-subrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 10px; margin: 16px 2px 8px; min-height: 40px; }
.acct-sub { white-space: nowrap; margin: 0; font: 800 12px/1.2 var(--fd); letter-spacing: .08em; text-transform: uppercase; color: var(--ice); }
.sess-list { display: flex; flex-direction: column; gap: 6px; }
.sess-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 10px; height: 58px; padding: 0 10px; border-radius: 14px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); }
.sess-row.cur { background: rgba(62, 224, 176, .07); box-shadow: inset 0 0 0 1px rgba(62, 224, 176, .3); }
.sess-row.skeleton { background: linear-gradient(90deg, rgba(255, 255, 255, .04) 0%, rgba(255, 255, 255, .09) 50%, rgba(255, 255, 255, .04) 100%); background-size: 200% 100%; animation: skel 1.3s linear infinite; }
@keyframes skel { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.sess-ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: var(--ice); background: rgba(143, 216, 255, .1); }
.sess-ico .ico { width: 19px; height: 19px; }
.sess-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sess-t strong { font: 800 14px/1.2 var(--fu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sess-t small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sess-empty { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px; font-size: 13px; color: var(--ink2); }
.acct-cta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 12px; align-items: center; padding: 14px; border-radius: 16px; background: linear-gradient(160deg, rgba(62, 224, 176, .14), rgba(62, 224, 176, .04)); box-shadow: inset 0 0 0 1px rgba(62, 224, 176, .3); }
.ac-ico { width: 30px; height: 30px; color: var(--mint); }
.ac-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ac-t strong { font: 800 14.5px/1.25 var(--fd); }
.ac-t small { font-size: 12.5px; color: var(--ink2); line-height: 1.4; }
.ac-btns { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.ac-btns .btn { flex: 1 1 140px; }
.pf-signin { width: min(440px, 100%); padding: 26px 22px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.pf-signin strong { font: 900 19px/1.2 var(--fd); }
.pf-signin p { margin: 0 0 8px; color: var(--ink2); font-size: 14px; line-height: 1.45; }
.pf-signin .ac-btns { width: 100%; }
.pfs-ico { width: 54px; height: 54px; color: var(--ice); }
.hm-acct .hc-ico { color: #7ff3cf; background: linear-gradient(160deg, rgba(62, 224, 176, .26), rgba(62, 224, 176, .08)); box-shadow: inset 0 0 0 1px rgba(62, 224, 176, .4); }

/* account modals */
.modal-box.acct-modal { width: min(450px, 100%); padding: 22px; }
.am-form { display: flex; flex-direction: column; }
.am-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.am-head > div { min-width: 0; }
.am-title { margin: 0; font: 900 18px/1.2 var(--fd); }
.am-sub { margin: 3px 0 0; font-size: 13px; line-height: 1.45; color: var(--ink2); overflow-wrap: anywhere; }
.am-sub.center { text-align: center; margin: -6px 0 12px; }
.am-list { margin: 0 0 14px; padding-left: 20px; font-size: 13.5px; line-height: 1.5; color: var(--ink2); }
.am-btns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 10px; margin-top: 2px; }
.am-btns .btn { width: 100%; padding: 0 12px; }
.acct-modal .form-err { height: 2.7em; margin: 0 2px 8px; text-align: center; overflow: hidden; }
.acct-modal .auth-resend { margin-top: 10px; }

/* ---- legal */
.legal-body { padding: 0 2px 8px; }
.legal-panel { width: min(820px, 100%); margin: 0 auto; padding: 20px clamp(16px, 3vw, 32px) 26px; }
.legal-load { min-height: 220px; display: grid; place-items: center; }
.legal { -webkit-user-select: text; user-select: text; font-weight: 600; }
.legal h1 { margin: 2px 0 6px; font: 900 clamp(19px, 2.6vmin, 24px)/1.25 var(--fd); }
.legal h2 { margin: 22px 0 6px; font: 800 14.5px/1.3 var(--fd); color: var(--ice); }
.legal p, .legal li { font-size: 14.5px; line-height: 1.62; color: var(--ink2); }
.legal p { margin: 0 0 10px; }
.legal ul { margin: 0 0 10px; padding-left: 20px; }
.legal li { margin-bottom: 4px; }
.legal strong { color: #fff; }
.legal a { color: var(--ice); }
.legal .meta { font-size: 12.5px; color: var(--muted); }
.lg-other .ico { width: 18px; height: 18px; }
