/* Where's Jug? — Black Ops Zombies theme */
:root {
  --bg: #070606;
  --bg-2: #0e0b0a;
  --panel: #141110;
  --panel-2: #1b1715;
  --panel-3: #241e1b;
  --line: #2e2623;
  --line-2: #43362f;
  --text: #ece4d8;
  --muted: #9b8f83;
  --dim: #6c625a;
  --red: #c1121f;
  --red-hot: #ff2b2b;
  --blood: #6d070c;
  --e115: #6dff6d;
  --gold: #e3b341;
  --silver: #c2c9d1;
  --bronze: #c07a48;
  --blue: #3fa3ff;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .55);
  --font-display: 'Black Ops One', 'Impact', 'Arial Black', sans-serif;
  --font-ui: 'Oswald', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --font-type: 'Special Elite', 'Courier New', monospace;
  --font-round: 'Creepster', 'Black Ops One', Impact, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(193, 18, 31, .18), transparent 60%),
    radial-gradient(900px 500px at 100% 100%, rgba(109, 255, 109, .05), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: .01em;
}
a { color: inherit; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--red); color: #fff; }

/* ------------------------------------------------------------- ambience */
.fx-fog, .fx-grain { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.fx-fog {
  background:
    radial-gradient(40% 30% at 20% 80%, rgba(200, 200, 210, .05), transparent 70%),
    radial-gradient(35% 25% at 80% 70%, rgba(200, 200, 210, .045), transparent 70%),
    radial-gradient(30% 20% at 50% 95%, rgba(200, 200, 210, .06), transparent 70%);
  animation: fog-drift 38s ease-in-out infinite alternate;
}
.fx-grain {
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes fog-drift { from { transform: translateX(-4%) } to { transform: translateX(4%) } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* --------------------------------------------------------------- topbar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 18px;
  padding: 10px clamp(16px, 3vw, 32px);
  background: linear-gradient(180deg, rgba(7, 6, 6, .97), rgba(7, 6, 6, .85));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.topbar::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: .7;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img { filter: drop-shadow(0 0 8px rgba(255, 43, 43, .6)); }
.brand-name {
  font-family: var(--font-display); font-size: 1.45rem; letter-spacing: .04em;
  color: var(--red-hot);
  text-shadow: 0 0 12px rgba(255, 43, 43, .55), 0 0 2px #000;
  animation: flicker 7s infinite;
}
@keyframes flicker {
  0%, 100%, 7%, 9%, 60%, 62%, 64% { opacity: 1 }
  8%, 63% { opacity: .45 }
  61% { opacity: .8 }
}
.nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav a, .nav button.link {
  text-decoration: none; text-transform: uppercase; letter-spacing: .08em; font-size: .92rem;
  color: var(--muted); padding: 8px 12px; border-radius: 6px; background: none; border: 0; cursor: pointer;
}
.nav a:hover, .nav button.link:hover { color: var(--text); background: var(--panel-2); }
.nav a.active { color: var(--text); box-shadow: inset 0 -2px 0 var(--red); }
.nav .spacer { flex: 1; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); border-radius: 6px; padding: 4px 10px; font-size: 1.2rem; cursor: pointer; }
.user-chip { display: flex; align-items: center; gap: 8px; text-decoration: none; padding: 4px 10px 4px 4px; border-radius: 99px; border: 1px solid var(--line); }
.user-chip:hover { border-color: var(--line-2); }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch;
    padding: 10px 16px 16px; background: var(--bg-2); border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav .spacer { display: none; }
}

/* ----------------------------------------------------------------- MOTD */
.motd {
  position: relative; z-index: 1;
  margin: 16px auto 0; width: min(1200px, calc(100% - 32px));
  padding: 10px 16px 10px 48px; border: 1px solid rgba(109, 255, 109, .25); border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(109, 255, 109, .08), rgba(109, 255, 109, .02));
  font-family: var(--font-type); color: #c8f7c8;
}
.motd::before {
  content: '📻'; position: absolute; left: 16px; top: 9px;
}

/* ----------------------------------------------------------------- page */
.view { position: relative; z-index: 1; width: min(1200px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 56px; flex: 1; outline: none; }
.footer {
  position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 18px clamp(16px, 3vw, 32px); border-top: 1px solid var(--line); color: var(--dim); font-size: .85rem;
}
.footer-115 { font-family: var(--font-display); color: var(--e115); text-shadow: 0 0 8px rgba(109, 255, 109, .6); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: .03em; margin: 0 0 .5em; line-height: 1.1; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }
.eyebrow { font-family: var(--font-type); color: var(--red-hot); text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; margin-bottom: 6px; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.type { font-family: var(--font-type); }
.section { margin-top: 40px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.grow { flex: 1; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }

.panel {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  box-shadow: var(--shadow);
}
.panel-title { font-family: var(--font-display); font-size: 1.1rem; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }

/* -------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 16px; border-radius: 7px; border: 1px solid var(--line-2);
  background: var(--panel-3); color: var(--text); cursor: pointer; text-decoration: none;
  text-transform: uppercase; letter-spacing: .08em; font-size: .88rem; font-weight: 500;
  transition: transform .08s, background .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-red {
  background: linear-gradient(180deg, #d8202d, #8e0d16); border-color: #ff4b55; color: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 6px 18px rgba(193, 18, 31, .35);
}
.btn-red:hover { box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 6px 26px rgba(255, 43, 43, .55); border-color: #ff7a80; }
.btn-ghost { background: transparent; }
.btn-sm { padding: 5px 10px; font-size: .78rem; }
.btn-danger { color: #ff8a8a; border-color: #5a1d1d; }
.btn-danger:hover { background: #3a0f10; border-color: #a33; }
.icon-btn { background: none; border: 1px solid transparent; border-radius: 6px; padding: 4px 7px; cursor: pointer; color: var(--muted); }
.icon-btn:hover { color: var(--text); border-color: var(--line-2); }

/* --------------------------------------------------------------- forms */
.form { display: grid; gap: 14px; }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.field { display: grid; gap: 6px; }
.field > span, .label { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.field small { color: var(--dim); font-size: .8rem; }
input[type=text], input[type=password], input[type=number], input[type=date], input[type=url], input[type=search], select, textarea {
  width: 100%; padding: 10px 12px; border-radius: 7px; border: 1px solid var(--line-2);
  background: #0c0a09; color: var(--text); outline: none;
}
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(193, 18, 31, .25); }
input[type=file] { color: var(--muted); }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--red); }
.error-text { color: #ff8a8a; min-height: 1.2em; font-size: .92rem; }

.seg { display: inline-flex; justify-self: start; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.seg button {
  padding: 8px 14px; background: #0c0a09; border: 0; border-right: 1px solid var(--line-2); cursor: pointer;
  text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; color: var(--muted);
}
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--red); color: #fff; }
.seg button:hover:not(.on) { color: var(--text); background: var(--panel-2); }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  padding: 5px 12px; border-radius: 99px; border: 1px solid var(--line-2); background: transparent; cursor: pointer;
  font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
}
.chip.on { border-color: var(--red); color: #fff; background: rgba(193, 18, 31, .25); }

.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 4px; font-size: .72rem;
  text-transform: uppercase; letter-spacing: .1em; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap;
}
.badge-bo1 { color: #ffb4b4; border-color: #6d1b1b; background: rgba(193, 18, 31, .12); }
.badge-bo2 { color: #ffd9a3; border-color: #6b4416; background: rgba(230, 126, 34, .12); }
.badge-ok { color: var(--e115); border-color: rgba(109, 255, 109, .35); background: rgba(109, 255, 109, .07); }
.badge-admin { color: var(--gold); border-color: #6b5316; }
.badge-off { color: #ff8a8a; border-color: #5a1d1d; }

/* ------------------------------------------------------------ perk badge */
.perk {
  --c: var(--red);
  width: var(--size, 32px); height: var(--size, 32px); flex-shrink: 0; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 70%, #fff), var(--c) 45%, color-mix(in srgb, var(--c) 45%, #000));
  border: 2px solid color-mix(in srgb, var(--c) 60%, #000);
  box-shadow: 0 0 10px color-mix(in srgb, var(--c) 45%, transparent), inset 0 -3px 6px rgba(0,0,0,.35);
  color: #fff; font-family: var(--font-display); font-size: calc(var(--size, 32px) * .32); text-shadow: 0 1px 2px #000;
}
.player-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.player-link:hover .player-name { color: var(--red-hot); }
.player-name { font-weight: 500; }

/* ------------------------------------------------------------- rounds */
.round { font-family: var(--font-round); color: var(--red-hot); font-size: 1.9rem; line-height: 1; letter-spacing: .02em; text-shadow: 0 0 10px rgba(255, 43, 43, .45), 0 2px 0 #3a0003; }
.round-lg { font-size: 4.5rem; }
.round-xl { font-size: clamp(5rem, 12vw, 8rem); }
.tally { height: 1.7em; vertical-align: middle; filter: drop-shadow(0 0 4px rgba(255, 43, 43, .5)); }

/* -------------------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden; border-radius: 16px; border: 1px solid var(--line);
  padding: clamp(24px, 5vw, 56px); min-height: 280px;
  background:
    linear-gradient(90deg, rgba(7,6,6,.96) 0%, rgba(7,6,6,.75) 55%, rgba(7,6,6,.35) 100%),
    var(--hero-img, none) center / cover no-repeat, var(--panel);
  box-shadow: var(--shadow);
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(7,6,6,.9), transparent 45%);
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { text-shadow: 0 3px 0 #000, 0 0 30px rgba(255, 43, 43, .35); }
.hero p { max-width: 640px; color: #d9cfc3; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 16px; font-size: .92rem; }
.hero-meta div span { display: block; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }

.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); gap: 12px; margin-top: 18px; }
.stat {
  padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
}
.stat-value { font-family: var(--font-display); font-size: 1.9rem; line-height: 1.1; }
.stat-label { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.stat-115 .stat-value { color: var(--e115); text-shadow: 0 0 10px rgba(109, 255, 109, .45); }
.stat-red .stat-value { color: var(--red-hot); text-shadow: 0 0 10px rgba(255, 43, 43, .4); }

/* ------------------------------------------------------------ map cards */
.map-card {
  position: relative; display: flex; flex-direction: column; text-decoration: none; overflow: hidden;
  border-radius: 12px; border: 1px solid var(--line); background: var(--panel);
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.map-card:hover { transform: translateY(-3px); border-color: var(--accent, var(--red)); box-shadow: 0 14px 34px rgba(0,0,0,.6), 0 0 0 1px var(--accent, var(--red)), 0 0 30px color-mix(in srgb, var(--accent, var(--red)) 30%, transparent); }
.map-card-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.map-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; filter: saturate(.9) contrast(1.05); }
.map-card:hover .map-card-img img { transform: scale(1.06); }
.map-card-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,8,7,1), rgba(10,8,7,0) 60%); }
.map-card-tags { position: absolute; top: 10px; left: 10px; z-index: 1; display: flex; gap: 6px; }
.map-card-tags .badge { background: rgba(0,0,0,.65); }
.map-card-body { position: relative; padding: 0 16px 14px; margin-top: -42px; z-index: 1; }
.map-card-title { font-family: var(--font-display); font-size: 1.45rem; text-shadow: 0 2px 6px #000; margin: 0; }
.map-card-sub { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; }
.map-card-records { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.mini-record .label { font-size: .68rem; }
.mini-record .round { font-size: 1.6rem; }
.mini-record .who { font-size: .82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ----------------------------------------------------------- leaderboard */
.board-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 22px 0 14px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table.board { width: 100%; border-collapse: collapse; min-width: 720px; }
.board th {
  text-align: left; padding: 12px 12px; font-weight: 500; font-size: .74rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted); border-bottom: 1px solid var(--line-2); background: var(--panel-2); white-space: nowrap;
}
.board td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.board tr:last-child td { border-bottom: 0; }
.board tbody tr { cursor: pointer; transition: background .12s; }
.board tbody tr:hover { background: rgba(193, 18, 31, .08); }
.board .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.rank {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px;
  font-family: var(--font-display); font-size: 1.05rem; color: var(--muted); border: 1px solid var(--line-2);
}
.rank-1 { color: #1b1300; background: linear-gradient(180deg, #ffe08a, var(--gold)); border-color: #fff1b8; box-shadow: 0 0 16px rgba(227, 179, 65, .5); }
.rank-2 { color: #111; background: linear-gradient(180deg, #f0f3f6, var(--silver)); border-color: #fff; }
.rank-3 { color: #1a0b00; background: linear-gradient(180deg, #e9a77a, var(--bronze)); border-color: #ffc9a3; }
.squad { display: flex; flex-direction: column; gap: 4px; }
.squad-mates { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .82rem; color: var(--muted); }
.squad-mates a { text-decoration: none; }
.squad-mates a:hover { color: var(--red-hot); }
.flags { display: flex; gap: 6px; align-items: center; }
.empty {
  text-align: center; padding: 48px 20px; color: var(--muted); font-family: var(--font-type);
  border: 1px dashed var(--line-2); border-radius: var(--radius); background: rgba(0,0,0,.25);
}
.empty .big { font-size: 2.6rem; display: block; margin-bottom: 8px; }

/* ------------------------------------------------------------ feed */
.feed { display: grid; gap: 8px; }
.feed-item {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; text-decoration: none;
  padding: 8px; border-radius: 8px; border: 1px solid var(--line); background: rgba(0,0,0,.2);
}
.feed-item:hover { border-color: var(--line-2); background: var(--panel-2); }
.feed-item img { width: 64px; height: 40px; object-fit: cover; border-radius: 5px; display: block; }
.feed-item .what { font-size: .92rem; }
.feed-item .when { font-size: .78rem; color: var(--dim); }

.leaders { display: grid; gap: 8px; }
.leader { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: rgba(0,0,0,.25); border: 1px solid var(--line); text-decoration: none; }
.leader:hover { border-color: var(--line-2); }
.leader .count { margin-left: auto; font-family: var(--font-display); color: var(--gold); }

.spotlight { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }

/* --------------------------------------------------------- player cards */
.player-card { display: flex; gap: 14px; align-items: center; padding: 16px; text-decoration: none; position: relative; }
.player-card:hover { border-color: var(--red); }
.player-card .meta { font-size: .85rem; color: var(--muted); }
.player-card .pick { position: absolute; top: 10px; right: 10px; }

.profile-head { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

.medals { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 10px; }
.medal { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0,0,0,.25); }
.medal .ico { font-size: 1.6rem; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--panel-3); border: 1px solid var(--line-2); flex-shrink: 0; }
.medal.on { border-color: rgba(227, 179, 65, .45); background: linear-gradient(180deg, rgba(227, 179, 65, .12), rgba(0,0,0,.2)); }
.medal.on .ico { border-color: var(--gold); box-shadow: 0 0 14px rgba(227, 179, 65, .4); }
.medal:not(.on) { opacity: .55; }
.medal:not(.on) .ico { filter: grayscale(1); }
.medal .name { font-weight: 600; }
.medal .desc { font-size: .8rem; color: var(--muted); }
.progress { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: 6px; }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--blood), var(--red-hot)); }

.trophy { color: var(--gold); }

/* ----------------------------------------------------------------- compare */
.vs { font-family: var(--font-display); font-size: 2.4rem; color: var(--red-hot); text-align: center; }
.cmp-score { font-family: var(--font-display); font-size: 3rem; text-align: center; }
.win { color: var(--e115); font-weight: 600; }

/* ------------------------------------------------------------ mystery box */
.box-stage { display: grid; justify-items: center; gap: 24px; text-align: center; padding: 20px 0; }
.mystery-box {
  position: relative; width: min(560px, 100%); aspect-ratio: 2.1 / 1; border-radius: 10px;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.25) 0 2px, transparent 2px 46px),
    linear-gradient(180deg, #5b3a1e, #3b2410 60%, #2a1709);
  border: 4px solid #1a0e05;
  box-shadow: inset 0 0 40px rgba(0,0,0,.7), 0 30px 60px rgba(0,0,0,.6), 0 0 80px rgba(80, 160, 255, .15);
  display: grid; place-items: center; overflow: hidden;
}
.mystery-box::before {
  content: '?'; position: absolute; font-family: var(--font-display); font-size: 7rem; color: rgba(140, 200, 255, .2);
  text-shadow: 0 0 30px rgba(140, 200, 255, .4);
}
.mystery-box.spinning { animation: box-shake .25s infinite; box-shadow: inset 0 0 40px rgba(0,0,0,.7), 0 30px 60px rgba(0,0,0,.6), 0 0 120px rgba(80, 160, 255, .55); }
.mystery-box.spinning::after {
  content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 100%, rgba(140, 200, 255, .5), transparent 65%);
}
@keyframes box-shake { 0%,100% { transform: rotate(0) } 25% { transform: rotate(-.5deg) } 75% { transform: rotate(.5deg) } }
.box-reel { position: relative; z-index: 1; display: grid; justify-items: center; gap: 8px; }
.box-reel img { width: 220px; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; border: 2px solid rgba(255,255,255,.2); box-shadow: 0 0 30px rgba(140, 200, 255, .5); }
.box-reel .name { font-family: var(--font-display); font-size: 1.6rem; text-shadow: 0 2px 6px #000; }
.box-result { max-width: 640px; }
.challenge { font-family: var(--font-type); color: #c8f7c8; border: 1px dashed rgba(109,255,109,.35); padding: 10px 14px; border-radius: 8px; display: inline-block; }
.teddy { font-size: 5rem; animation: teddy-fly 2.4s ease-in forwards; z-index: 1; }
@keyframes teddy-fly { 0% { transform: translateY(0) } 30% { transform: translateY(-10px) rotate(-10deg) } 100% { transform: translateY(-300px) rotate(20deg); opacity: 0 } }

/* ------------------------------------------------------------ admin */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs button { padding: 10px 16px; background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; white-space: nowrap; }
.tabs button.on { color: var(--text); border-bottom-color: var(--red); }
.admin-map { display: grid; grid-template-columns: 160px 1fr; gap: 14px; align-items: center; padding: 12px; }
.admin-map img { width: 160px; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; display: block; }
@media (max-width: 560px) { .admin-map { grid-template-columns: 1fr; } .admin-map img { width: 100%; } }

/* ------------------------------------------------------------ modal */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.75); backdrop-filter: blur(3px);
  display: grid; place-items: center; padding: 16px; animation: fade-in .15s;
}
.modal {
  width: min(720px, 100%); max-height: calc(100vh - 32px); overflow-y: auto;
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,.8), 0 0 0 1px rgba(193, 18, 31, .2);
  animation: pop-in .18s;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel-2); z-index: 1; }
.modal-head h2 { margin: 0; font-size: 1.4rem; }
.modal-body { padding: 20px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 0 20px 20px; }
@keyframes fade-in { from { opacity: 0 } }
@keyframes pop-in { from { opacity: 0; transform: translateY(10px) scale(.98) } }
.proof-img { width: 100%; border-radius: 8px; border: 1px solid var(--line-2); display: block; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 16px 0; }
.detail-grid div { padding: 10px; border-radius: 8px; background: rgba(0,0,0,.3); border: 1px solid var(--line); }
.detail-grid span { display: block; font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }

/* ------------------------------------------------------------ toasts */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: grid; gap: 8px; }
.toast { padding: 12px 16px; border-radius: 8px; background: var(--panel-3); border: 1px solid var(--line-2); box-shadow: var(--shadow); animation: pop-in .2s; max-width: 360px; }
.toast-ok { border-color: rgba(109,255,109,.45); }
.toast-err { border-color: #a33; }

/* ------------------------------------------------------------ auth */
.auth-wrap { display: grid; place-items: center; padding: 30px 0; }
.auth-card { width: min(440px, 100%); }
.auth-card h1 { font-size: 2.2rem; text-align: center; }

.loading { display: grid; place-items: center; padding: 80px 0; color: var(--muted); font-family: var(--font-type); }
.loading::before { content: ''; width: 34px; height: 34px; margin-bottom: 12px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--red); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg) } }

@media (max-width: 640px) {
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat { padding: 10px 12px; }
  .stat-value { font-size: 1.5rem; }
  .spotlight { grid-template-columns: 1fr; }
  .feed-item { grid-template-columns: 52px 1fr; }
  .feed-item .when { grid-column: 2; }
  .feed-item img { width: 52px; height: 34px; }
}
