/* FitCheck Arena — night-arena look: black stage, neon orange + acid pink, chunky condensed type.
   Deliberately one dark theme (it's a game screen). */
:root {
  --bg: #08080b;
  --bg2: #101016;
  --card: #15151d;
  --card2: #1d1d28;
  --line: #2a2a38;
  --ink: #f6f5ff;
  --muted: #9b9ab3;
  --orange: #ff5a1f;
  --pink: #ff2e88;
  --lime: #c6ff3d;
  --blue: #3d7bff;
  --gold: #ffc53d;
  --bad: #ff4d5e;
  --good: #3dffa2;
  --hot: linear-gradient(135deg, #ff5a1f 0%, #ff2e88 100%);
  --cool: linear-gradient(135deg, #3d7bff 0%, #b04dff 100%);
  --font-display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --font-body: "Archivo", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", ui-monospace, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.45;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(255, 90, 31, .18), transparent 60%),
    radial-gradient(900px 600px at 110% 10%, rgba(255, 46, 136, .14), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
  padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
}
img { max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
::selection { background: var(--pink); color: #fff; }

.site-head, .view, .site-foot {
  max-width: 880px; margin-left: auto; margin-right: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 30;
  padding-top: calc(10px + env(safe-area-inset-top, 0px)); padding-bottom: 10px;
  background: linear-gradient(var(--bg) 70%, transparent);
}
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.logo { font-family: var(--font-display); font-size: clamp(26px, 7vw, 36px); line-height: .9; text-transform: uppercase; text-decoration: none; letter-spacing: .01em; }
.logo span { background: var(--hot); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hud { display: flex; gap: 6px; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; text-decoration: none; white-space: nowrap;
  font-family: var(--font-mono); font-weight: 600; font-size: 13px;
  background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 6px 10px;
}
.chip .em { font-size: 14px; line-height: 1; }
.chip.flame { color: var(--gold); }
.chip.lvl { background: var(--hot); border-color: transparent; color: #fff; }
.chip.icon { padding: 6px 9px; cursor: pointer; font: inherit; color: var(--ink); }
.chip.bump { animation: bump .45s cubic-bezier(.2, 2, .4, 1); }
@keyframes bump { 40% { transform: scale(1.25); } }
.theme-strip {
  margin-top: 10px; display: flex; align-items: center; gap: 10px; overflow: hidden;
  border-radius: 12px; padding: 8px 12px; background: var(--card); border: 1px solid var(--line);
}
.theme-strip .label { color: var(--muted); }
.theme-strip b {
  font-family: var(--font-display); font-weight: 400; font-size: 22px; text-transform: uppercase; letter-spacing: .02em;
  background: var(--hot); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.theme-strip .live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; color: var(--lime); text-transform: uppercase; letter-spacing: .1em; }
.theme-strip .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .3; } }

/* ---------- bottom tab bar (thumb-friendly) ---------- */
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px max(8px, env(safe-area-inset-left, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-right, 0px));
  background: rgba(12, 12, 17, .92); backdrop-filter: blur(14px); border-top: 1px solid var(--line);
}
.nav a {
  display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none;
  color: var(--muted); font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding: 6px 0; border-radius: 12px;
}
.nav a .ni { font-size: 22px; line-height: 1; filter: grayscale(1) opacity(.7); transition: transform .2s, filter .2s; }
.nav a.on { color: var(--ink); }
.nav a.on .ni { filter: none; transform: translateY(-2px) scale(1.15); }
.nav a.rate-tab .ni {
  width: 46px; height: 46px; margin-top: -22px; border-radius: 50%; display: grid; place-items: center; filter: none;
  background: var(--hot); box-shadow: 0 6px 24px rgba(255, 46, 136, .5); font-size: 22px;
}

.view { padding-block: 14px 32px; display: flex; flex-direction: column; gap: 16px; min-height: 60vh; }
.site-foot { padding-block: 16px 24px; color: var(--muted); font-size: 12px; }

/* ---------- building blocks ---------- */
.label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 9vw, 54px); line-height: .92; text-transform: uppercase; letter-spacing: .01em; }
.h1 em { font-style: normal; background: var(--hot); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h2 { font-family: var(--font-display); font-weight: 400; font-size: 26px; line-height: 1; text-transform: uppercase; }
.muted { color: var(--muted); font-size: 13px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid2 > * { min-width: 0; }
@media (max-width: 680px) { .grid2.collapse { grid-template-columns: 1fr; } }

.btn {
  font: inherit; font-weight: 800; cursor: pointer; text-decoration: none; text-align: center;
  border-radius: 14px; padding: 12px 16px; border: 1px solid var(--line); background: var(--card2); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .12s, box-shadow .2s, filter .2s;
}
.btn:active { transform: scale(.96); }
.btn.go {
  background: var(--hot); border: 0; color: #fff;
  font-family: var(--font-display); font-weight: 400; font-size: 24px; letter-spacing: .04em; text-transform: uppercase;
  padding: 14px 20px; box-shadow: 0 8px 30px rgba(255, 46, 136, .35);
}
.btn.go:hover { filter: brightness(1.08); box-shadow: 0 10px 40px rgba(255, 46, 136, .55); }
.btn.cool { background: var(--cool); border: 0; color: #fff; }
.btn.lime { background: var(--lime); border: 0; color: #0b0b0b; }
.btn.ghost { background: transparent; }
.btn.small { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn.link { border: 0; background: none; padding: 4px; color: var(--muted); font-weight: 600; text-decoration: underline; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.btn.google { background: #fff; color: #1f1f1f; border: 0; }
.btn:focus-visible, .nav a:focus-visible, input:focus-visible, select:focus-visible, .drop:focus-visible, .pick:focus-visible, .chip:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.pulse { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.04); box-shadow: 0 10px 50px rgba(255, 46, 136, .6); } }

input[type="text"], input[type="email"], select {
  font: inherit; font-weight: 700; color: var(--ink); background: var(--bg2);
  border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; width: 100%; min-width: 0;
}
input[type="range"] { flex: 1; min-width: 120px; accent-color: var(--pink); }
input[type="checkbox"] { accent-color: var(--pink); width: 18px; height: 18px; }
.flag { display: inline-block; width: 22px; height: 15px; border-radius: 3px; flex: none; box-shadow: 0 0 0 1px rgba(255,255,255,.15); vertical-align: middle; }
.who { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; min-width: 0; }
.who span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill { font-family: var(--font-mono); font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--card2); border: 1px solid var(--line); white-space: nowrap; }
.pill.pass { background: var(--hot); border: 0; color: #fff; }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); border: 2px dashed var(--line); border-radius: 18px; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.err { color: var(--bad); font-size: 14px; font-weight: 600; }
.thinking { display: flex; align-items: center; gap: 12px; color: var(--muted); font-weight: 600; }
.loader { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--card2); border-top-color: var(--pink); animation: spin .7s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- daily goals ---------- */
.goals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.goal { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.goal b { font-size: 13px; }
.goal.done { border-color: var(--lime); box-shadow: 0 0 0 1px var(--lime) inset; }
.meter { height: 6px; background: var(--card2); border-radius: 99px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--hot); border-radius: 99px; transition: width .6s cubic-bezier(.2, .9, .3, 1); }
.goal.done .meter i { background: var(--lime); }

/* ---------- arena ---------- */
.arena { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.arena > * { min-width: 0; }
.vs {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 5;
  width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 26px; color: #fff; background: var(--hot);
  box-shadow: 0 0 0 5px var(--bg), 0 0 30px rgba(255, 46, 136, .8); animation: vspulse 1.6s ease-in-out infinite;
}
@keyframes vspulse { 50% { transform: translate(-50%, -50%) scale(1.12) rotate(-6deg); } }
.contender { display: flex; flex-direction: column; gap: 8px; position: relative; transition: transform .35s cubic-bezier(.2, 1.6, .4, 1), opacity .35s, filter .35s; }
.contender.enter-l { animation: inL .45s cubic-bezier(.2, 1.4, .4, 1) both; }
.contender.enter-r { animation: inR .45s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes inL { from { transform: translateX(-40px) rotate(-4deg); opacity: 0; } }
@keyframes inR { from { transform: translateX(40px) rotate(4deg); opacity: 0; } }
.pick { all: unset; cursor: pointer; display: block; border-radius: 18px; position: relative; }
.photo { position: relative; border-radius: 18px; overflow: hidden; background: var(--card2); aspect-ratio: 3 / 4; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.pick:hover .photo img { transform: scale(1.04); }
.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 60%, rgba(0,0,0,.55)); pointer-events: none; }
.contender.won { transform: scale(1.04); z-index: 2; }
.contender.won .photo { box-shadow: 0 0 0 4px var(--lime), 0 0 40px rgba(198, 255, 61, .5); }
.contender.lost { transform: scale(.94); opacity: .55; filter: grayscale(.8); }
.burst {
  position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); z-index: 3; pointer-events: none; text-align: center;
  font-family: var(--font-display); font-size: clamp(34px, 9vw, 56px); line-height: .9; color: var(--lime); text-shadow: 0 4px 24px rgba(0,0,0,.6);
  animation: burst .9s cubic-bezier(.2, 1.8, .4, 1) both;
}
.burst small { display: block; font-family: var(--font-mono); font-size: 13px; color: #fff; letter-spacing: .08em; }
.burst.neg { color: var(--bad); }
@keyframes burst { from { transform: translate(-50%, -50%) scale(.2); opacity: 0; } 60% { opacity: 1; } }
.vote-btn { font-family: var(--font-display); font-weight: 400; font-size: 20px; letter-spacing: .04em; text-transform: uppercase; }

/* cosmetic frames */
.frame-gold .photo { box-shadow: 0 0 0 4px #ffc53d, 0 0 24px rgba(255, 197, 61, .5); }
.frame-chrome .photo { box-shadow: 0 0 0 4px #d7dde6, 0 0 0 7px #6c727c; }
.frame-graffiti .photo { outline: 4px dashed #ff2e88; outline-offset: 2px; box-shadow: 0 0 0 4px #29e1ff; }
.frame-holo .photo { box-shadow: 0 0 0 4px #b98cff, 0 0 26px 4px #5ef3ff; animation: holo 3s linear infinite; }
@keyframes holo { 50% { box-shadow: 0 0 0 4px #5ef3ff, 0 0 26px 4px #ff2e88; } }
.frame-pixel .photo { border-radius: 4px; box-shadow: 0 0 0 4px #fff, 0 0 0 8px #0b0b0b, 0 0 0 12px #c6ff3d; }
.frame-ice .photo { box-shadow: 0 0 0 4px #bfefff, 0 0 0 7px #4fc3ff, 0 0 28px 6px rgba(120, 220, 255, .7); }
.frame-fire .photo { box-shadow: 0 0 0 4px #ff5a1f, 0 0 30px 6px #ff2e00; animation: fire 0.9s ease-in-out infinite alternate; }
@keyframes fire { to { box-shadow: 0 0 0 4px #ffc53d, 0 -6px 40px 10px #ff5a1f; } }
.frame-glitch .photo { box-shadow: -4px 0 0 #ff2e88, 4px 0 0 #29e1ff; animation: glitch 1.2s steps(2) infinite; }
@keyframes glitch { 20% { box-shadow: 4px 0 0 #ff2e88, -4px 0 0 #29e1ff; } 40% { box-shadow: -6px 2px 0 #ff2e88, 6px -2px 0 #29e1ff; } }
.frame-galaxy .photo { box-shadow: 0 0 0 4px #7b5cff, 0 0 34px 8px rgba(123, 92, 255, .8); animation: galaxy 4s linear infinite; }
@keyframes galaxy { 33% { box-shadow: 0 0 0 4px #ff2e88, 0 0 34px 8px rgba(255, 46, 136, .8); } 66% { box-shadow: 0 0 0 4px #29e1ff, 0 0 34px 8px rgba(41, 225, 255, .8); } }

/* name colors */
.name-toxic { color: #9dff3d; text-shadow: 0 0 10px rgba(157, 255, 61, .5); }
.name-ice { color: #bfefff; text-shadow: 0 0 10px rgba(120, 220, 255, .8); }
.name-fire { background: linear-gradient(90deg, #ffc53d, #ff5a1f, #ff2e00, #ffc53d); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: rainbow 1.6s linear infinite; }
.name-glitch { color: #fff; text-shadow: -2px 0 #ff2e88, 2px 0 #29e1ff; animation: glitchtext 1.4s steps(2) infinite; }
@keyframes glitchtext { 30% { text-shadow: 2px 0 #ff2e88, -2px 0 #29e1ff; } 60% { text-shadow: -3px 1px #ff2e88, 3px -1px #29e1ff; } }
.title-tag { display: inline-block; font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; background: var(--card2); border: 1px solid var(--line); color: var(--gold); white-space: nowrap; }
.who-wrap { display: inline-flex; flex-direction: column; gap: 3px; min-width: 0; }
.name-orange { color: #ff7a3d; }
.name-blue { color: #6f9bff; }
.name-gold { color: var(--gold); }
.name-rainbow { background: linear-gradient(90deg, #ff4d4d, #ffb84d, #4dff88, #4dc3ff, #b44dff, #ff4d4d); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: rainbow 3s linear infinite; }
@keyframes rainbow { to { background-position: 200% 0; } }

/* ---------- verdict ---------- */
.verdict {
  position: relative; overflow: hidden; border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 14px;
  background: linear-gradient(160deg, #1b1b26, #121219); border: 1px solid var(--line);
}
.verdict::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 70%; height: 80%; background: radial-gradient(closest-side, rgba(255, 46, 136, .35), transparent); pointer-events: none; }
.verdict > * { position: relative; }
.verdict.shake { animation: shake .5s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px) rotate(-1deg); } 40%, 80% { transform: translateX(8px) rotate(1deg); } }
.skin-card-midnight { background: linear-gradient(160deg, #0c1130, #1c2563); border-color: #3a4590; }
.skin-card-sunset { background: linear-gradient(160deg, #ff8a3d, #ff3d77 55%, #7a2cff); border-color: transparent; }
.skin-card-y2k { background: linear-gradient(135deg, #2b2d52, #3a6f8f 45%, #a64d9a); border-color: #c6b6ff; }
.skin-card-camo { background: linear-gradient(160deg, #2f3a22, #1c2414); border-color: #a3b06d; }
.skin-card-chrome { background: linear-gradient(135deg, #5f6670, #d7dde6 35%, #7b828c 55%, #e9edf2 75%, #5f6670); border-color: #fff; }
.skin-card-chrome .title, .skin-card-chrome .fact, .skin-card-chrome .bar, .skin-card-chrome .roast { color: #0b0b0b; }
.skin-card-vapor { background: linear-gradient(180deg, #2b1055 0%, #7597de 55%, #ff71ce 100%); border-color: #ff71ce; }
.skin-card-matrix { background: repeating-linear-gradient(0deg, #001a05, #001a05 3px, #002a08 3px, #002a08 6px); border-color: #00ff41; }
.skin-card-matrix .title, .skin-card-matrix .roast { color: #00ff41; text-shadow: 0 0 8px rgba(0, 255, 65, .6); }
.skin-card-inferno { background: radial-gradient(120% 80% at 50% 110%, #ffc53d, #ff5a1f 30%, #8a0f0f 60%, #1a0505 85%); border-color: #ffc53d; animation: inferno 2s ease-in-out infinite alternate; }
@keyframes inferno { to { box-shadow: 0 0 40px rgba(255, 90, 31, .5); } }
.score-wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.score {
  font-family: var(--font-display); font-size: clamp(96px, 26vw, 150px); line-height: .8;
  background: var(--hot); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.score small { font-size: .26em; -webkit-text-fill-color: var(--muted); }
.grade {
  font-family: var(--font-display); font-size: 22px; letter-spacing: .06em; padding: 6px 12px; border-radius: 10px;
  background: var(--lime); color: #0b0b0b; transform: rotate(-4deg); animation: stamp .4s cubic-bezier(.2, 2, .4, 1) both;
}
@keyframes stamp { from { transform: rotate(-4deg) scale(3); opacity: 0; } }
.title { font-family: var(--font-display); font-size: 30px; line-height: 1; text-transform: uppercase; }
.bars { display: flex; flex-direction: column; gap: 8px; }
.bar { display: grid; grid-template-columns: 92px 1fr 34px; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.bar > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar .t { height: 10px; background: rgba(255,255,255,.08); border-radius: 99px; overflow: hidden; }
.bar .t i { display: block; height: 100%; width: 0; background: var(--hot); border-radius: 99px; transition: width 1s cubic-bezier(.2, .9, .3, 1); }
.bar .n { font-family: var(--font-mono); text-align: right; font-variant-numeric: tabular-nums; }
.facts { display: grid; gap: 8px; }
.fact { display: grid; grid-template-columns: 70px 1fr; gap: 8px; font-size: 14px; }
.fact .k { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding-top: 2px; }
.fact.best .k { color: var(--good); }
.fact.worst .k { color: var(--bad); }
.roast { font-size: 20px; font-weight: 800; line-height: 1.3; border-top: 1px solid rgba(255,255,255,.1); padding-top: 12px; min-height: 2.6em; }
.roast .caret { display: inline-block; width: 2px; height: 1em; background: var(--pink); vertical-align: -2px; margin-left: 2px; animation: blink .8s infinite; }
.rewards { display: flex; gap: 8px; flex-wrap: wrap; }
.reward { font-family: var(--font-mono); font-weight: 600; font-size: 13px; padding: 6px 10px; border-radius: 99px; background: rgba(198, 255, 61, .12); color: var(--lime); border: 1px solid rgba(198, 255, 61, .35); animation: pop .5s cubic-bezier(.2, 2, .4, 1) both; }
.reward:nth-child(2) { animation-delay: .12s; }
@keyframes pop { from { transform: scale(0); } }
.stylist { border-top: 1px solid rgba(255,255,255,.1); padding-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.stylist ol { margin: 0; padding-left: 20px; }

/* ---------- rate ---------- */
.drop {
  border: 2px dashed var(--line); border-radius: 18px; min-height: 280px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 16px; cursor: pointer; color: var(--muted);
  background: repeating-linear-gradient(45deg, var(--bg2), var(--bg2) 12px, var(--card) 12px, var(--card) 24px);
  transition: border-color .2s, transform .2s;
}
.drop .big-ico { font-size: 48px; animation: float 2.4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.drop b { color: var(--ink); font-size: 18px; }
.drop.over { border-color: var(--pink); transform: scale(1.01); }
.drop.has { border-style: solid; padding: 8px; cursor: default; background: var(--bg2); }
.drop canvas { max-width: 100%; max-height: 440px; border-radius: 12px; display: block; }
.scan { position: relative; overflow: hidden; border-radius: 18px; }
.scan::after { content: ""; position: absolute; left: 0; right: 0; height: 30%; top: -30%; background: linear-gradient(transparent, rgba(198, 255, 61, .35), transparent); animation: scan 1.4s linear infinite; }
@keyframes scan { to { top: 100%; } }

/* ---------- battle ---------- */
.announcer { font-family: var(--font-display); font-size: clamp(28px, 7vw, 42px); line-height: 1; text-transform: uppercase; text-align: center; }
.fighter { border: 2px solid var(--line); border-radius: 18px; padding: 10px; display: flex; flex-direction: column; gap: 8px; position: relative; min-width: 0; background: var(--card); }
.fighter.win { border-color: var(--lime); box-shadow: 0 0 30px rgba(198, 255, 61, .25); }
.fighter .big { font-family: var(--font-display); font-size: 54px; line-height: .9; }
.fighter.win .big { color: var(--lime); }
.crown { position: absolute; top: -12px; right: 10px; background: var(--lime); color: #0b0b0b; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; padding: 3px 9px; border-radius: 99px; z-index: 6; }
.linkbox { font-family: var(--font-mono); font-size: 13px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 10px; overflow-wrap: anywhere; user-select: all; }

/* ---------- lists & grids ---------- */
.fitgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; text-align: left; font: inherit; color: inherit; padding: 0; transition: transform .2s; }
button.tile { cursor: pointer; }
button.tile:hover { transform: translateY(-3px); }
.tile img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; background: var(--card2); }
.tile .meta { padding: 9px 10px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tile .meta b { font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 1; background: var(--hot); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tile .meta span { font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .imgwrap { position: relative; }
.rank { position: absolute; top: 8px; left: 8px; z-index: 2; font-family: var(--font-display); font-size: 20px; padding: 2px 10px; border-radius: 10px; background: rgba(0,0,0,.7); }
.rank.r1 { background: var(--gold); color: #0b0b0b; }
.rank.r2 { background: #d7dde6; color: #0b0b0b; }
.rank.r3 { background: #d08a4b; color: #0b0b0b; }
.list { display: flex; flex-direction: column; gap: 6px; }
.lrow { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; position: relative; overflow: hidden; }
.lrow > * { position: relative; z-index: 1; min-width: 0; }
.lrow .fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, rgba(255, 90, 31, .22), rgba(255, 46, 136, .12)); z-index: 0; }
.lrow .n { font-family: var(--font-display); font-size: 20px; color: var(--muted); }
.lrow.mine { border-color: var(--pink); }
.lrow .v { font-family: var(--font-mono); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs a { text-decoration: none; font-weight: 800; font-size: 14px; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--muted); }
.tabs a.on { background: var(--hot); color: #fff; border-color: transparent; }

/* ---------- shop ---------- */
.shopgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; }
.item { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0; transition: transform .2s; }
.item:hover { transform: translateY(-3px); }
.swatch { height: 84px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 24px; background: var(--bg2); overflow: hidden; }
.swatch .photo { width: 50px; }
.item { position: relative; }
.item .rar { font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.item.common .rar { color: #b8b8c8; }
.item.rare { border-color: rgba(61, 123, 255, .6); }
.item.rare .rar { color: #6f9bff; }
.item.epic { border-color: rgba(176, 77, 255, .7); box-shadow: 0 0 22px rgba(176, 77, 255, .18); }
.item.epic .rar { color: #c78bff; }
.item.legendary { border-color: rgba(255, 197, 61, .8); box-shadow: 0 0 26px rgba(255, 197, 61, .22); background: linear-gradient(160deg, #2a2312, var(--card) 60%); }
.item.legendary .rar { color: var(--gold); }
.item.owned::after { content: "OWNED"; position: absolute; top: 10px; right: 10px; font-family: var(--font-mono); font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 6px; background: var(--lime); color: #0b0b0b; }
.item.equipped::after { content: "EQUIPPED"; background: var(--pink); color: #fff; }
.item .price-row { display: flex; align-items: baseline; gap: 6px; }
.item .old { text-decoration: line-through; color: var(--muted); font-family: var(--font-mono); font-size: 12px; }
.deal-tag { position: absolute; top: 10px; left: 10px; z-index: 2; font-family: var(--font-display); font-size: 14px; padding: 2px 8px; border-radius: 6px; background: var(--lime); color: #0b0b0b; transform: rotate(-4deg); }
.deals { border-radius: 22px; padding: 16px; border: 1px solid rgba(198, 255, 61, .4); background: linear-gradient(160deg, rgba(198, 255, 61, .08), transparent 60%), var(--card); display: flex; flex-direction: column; gap: 12px; }
.countdown { font-family: var(--font-mono); font-weight: 600; color: var(--lime); }
.shop-tabs { position: sticky; top: calc(118px + env(safe-area-inset-top, 0px)); z-index: 20; padding: 6px 0; background: linear-gradient(var(--bg) 80%, transparent); }
.fx-preview { font-size: 34px; letter-spacing: 4px; }
.unlock-item { width: 140px; }
.unlock-rar { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.pass-card { position: relative; overflow: hidden; border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 12px; background: var(--hot); color: #fff; }
.pass-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 40%, rgba(255,255,255,.25) 50%, transparent 60%); background-size: 250% 100%; animation: shine 3s linear infinite; pointer-events: none; }
@keyframes shine { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.pass-card ul { margin: 0; padding-left: 18px; font-weight: 600; }
.pass-card .btn { align-self: flex-start; background: #fff; color: #0b0b0b; border: 0; position: relative; z-index: 1; }

/* ---------- profile ---------- */
.hero-card { background: linear-gradient(160deg, #1d1d28, #121219); border: 1px solid var(--line); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.xpbar { height: 12px; background: var(--card2); border-radius: 99px; overflow: hidden; }
.xpbar i { display: block; height: 100%; background: var(--hot); border-radius: 99px; box-shadow: 0 0 14px rgba(255, 46, 136, .6); transition: width 1s cubic-bezier(.2, .9, .3, 1); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 520px) { .stats { grid-template-columns: repeat(2, 1fr); } .goals { grid-template-columns: 1fr; } }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; text-align: center; }
.stat b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: 1; }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.badge { border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 4px; background: var(--card); }
.badge .ico { font-size: 28px; line-height: 1; }
.badge b { font-size: 14px; }
.badge.got { border-color: rgba(198, 255, 61, .5); box-shadow: 0 0 20px rgba(198, 255, 61, .12); }
.badge.locked { opacity: .35; filter: grayscale(1); }
.guest-banner { border-radius: 18px; padding: 14px 16px; background: var(--cool); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.guest-banner b { font-size: 16px; }

/* ---------- popups ---------- */
.modal-back { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.7); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; animation: fade .2s both; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(92vw, 380px); text-align: center; background: linear-gradient(160deg, #22223a, #121219); border: 1px solid var(--line); border-radius: 26px; padding: 26px 20px; display: flex; flex-direction: column; gap: 12px; align-items: center; animation: pop .5s cubic-bezier(.2, 1.8, .4, 1) both; }
.modal .huge { font-family: var(--font-display); font-size: 84px; line-height: .85; background: var(--hot); -webkit-background-clip: text; background-clip: text; color: transparent; }
.floaty { position: fixed; z-index: 70; pointer-events: none; font-family: var(--font-display); font-size: 26px; color: var(--lime); text-shadow: 0 2px 10px rgba(0,0,0,.6); animation: floaty 1s ease-out forwards; }
@keyframes floaty { to { transform: translateY(-70px) scale(1.2); opacity: 0; } }
.confetti { position: fixed; inset: 0; z-index: 65; pointer-events: none; }
.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(88px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 8px; z-index: 80; width: min(92vw, 420px); }
.toast { background: var(--ink); color: #0b0b0b; padding: 12px 14px; border-radius: 14px; font-weight: 700; box-shadow: 0 10px 30px rgba(0,0,0,.4); animation: pop .35s cubic-bezier(.2, 1.8, .4, 1) both; }
.toast.bad { background: var(--bad); color: #fff; }

.prose { max-width: 68ch; display: flex; flex-direction: column; gap: 10px; }
.prose h2 { font-family: var(--font-display); font-weight: 400; font-size: 22px; text-transform: uppercase; margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
