/* ============ PicklePoP ============ */

@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/anton.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('/fonts/outfit.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('/fonts/outfit-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0;
}

:root {
  --bg: #0a1510;
  --bg-2: #10201780;
  --card: rgba(22, 42, 31, 0.55);
  --card-solid: #14261c;
  --line: rgba(140, 200, 165, 0.14);
  --line-hot: rgba(216, 243, 77, 0.35);
  --ink: #f4f9f2;
  --ink-dim: #a9c4b3;
  --ink-faint: #5f7d6c;
  --pop: #d8f34d;
  --pop-soft: rgba(216, 243, 77, 0.12);
  --pop-deep: #a8c62d;
  --hot: #ff6b57;
  --hot-soft: rgba(255, 107, 87, 0.12);
  --in: #4ade80;
  --in-soft: rgba(74, 222, 128, 0.13);
  --display: 'Anton', 'Arial Narrow', sans-serif;
  --body: 'Outfit', -apple-system, 'Segoe UI', sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

/* Layered court atmosphere: glows + faint court lines, fixed behind everything */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 42% at 85% -8%, rgba(216, 243, 77, 0.13), transparent 70%),
    radial-gradient(55% 40% at -10% 105%, rgba(74, 222, 128, 0.09), transparent 70%),
    radial-gradient(40% 30% at 50% 55%, rgba(216, 243, 77, 0.04), transparent 75%),
    linear-gradient(rgba(140, 200, 165, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 200, 165, 0.05) 1px, transparent 1px);
  background-size: auto, auto, auto, 100% 88px, 88px 100%;
}

#app { min-height: 100dvh; }

/* ---------- screens ---------- */
.screen { min-height: 100dvh; padding: calc(20px + var(--safe-t)) 20px calc(24px + var(--safe-b)); }
.screen-center {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; text-align: center; position: relative; overflow: hidden;
}

/* ---------- wordmark ---------- */
.wordmark {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 74px;
  line-height: 0.92;
  letter-spacing: 1px;
  color: var(--ink);
  position: relative; z-index: 1;
}
.wordmark span {
  color: var(--pop);
  text-shadow: 0 0 28px rgba(216, 243, 77, 0.45), 0 0 90px rgba(216, 243, 77, 0.25);
}
.wordmark.sm { font-size: 44px; }
.wordmark.xs { font-size: 24px; letter-spacing: 1.5px; }
.tagline {
  color: var(--ink-faint); font-size: 12px; font-weight: 600;
  letter-spacing: 3.5px; text-transform: uppercase;
  margin-bottom: 14px; position: relative; z-index: 1;
  max-width: 320px; line-height: 1.7;
}

/* the champ, framed on the gate screen */
.gate-champ {
  width: min(240px, 62vw); height: auto; aspect-ratio: 1;
  border-radius: 26px;
  object-fit: cover;
  border: 3px solid var(--pop);
  box-shadow: 0 0 0 7px rgba(216, 243, 77, 0.12), 0 0 55px rgba(216, 243, 77, 0.4), 0 24px 60px rgba(0, 0, 0, 0.55);
  position: relative; z-index: 1;
  animation: champ-bob 5s ease-in-out infinite;
}
@keyframes champ-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) { .gate-champ { animation: none; } }

/* ---------- gate court + rally ---------- */
.gate-art { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.court {
  position: absolute; left: 50%; top: 50%;
  width: min(96vw, 560px); height: min(62vw, 58dvh);
  transform: translate(-50%, -50%);
  background:
    /* kitchen zones straddling the net */
    linear-gradient(rgba(120, 190, 255, 0.07) 0 0) 36% 0 / 28% 100% no-repeat,
    /* center service lines, left and right halves */
    linear-gradient(rgba(255, 255, 255, 0.16) 0 0) 0 50% / 32% 2px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.16) 0 0) 100% 50% / 32% 2px no-repeat,
    /* kitchen lines */
    linear-gradient(rgba(255, 255, 255, 0.2) 0 0) 36% 0 / 2px 100% no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.2) 0 0) 64% 0 / 2px 100% no-repeat,
    /* court surface */
    linear-gradient(100deg, rgba(37, 78, 128, 0.5), rgba(28, 58, 96, 0.45));
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  box-shadow: 0 0 90px rgba(30, 80, 140, 0.35), inset 0 0 70px rgba(0, 0, 0, 0.35);
  opacity: .6;
}
.net {
  position: absolute; top: -4%; bottom: -4%; left: 50%;
  width: 3px; transform: translateX(-50%);
  background: rgba(232, 246, 240, 0.5);
  box-shadow: 0 0 14px rgba(232, 246, 240, 0.35), 4px 0 10px rgba(0, 0, 0, 0.4);
}
.net::before, .net::after {
  content: '';
  position: absolute; left: -7px; width: 17px; height: 4px;
  background: rgba(232, 246, 240, 0.55); border-radius: 2px;
}
.net::before { top: 0; }
.net::after { bottom: 0; }

.rally-ball {
  position: absolute; width: 26px; height: 26px; border-radius: 50%;
  background:
    radial-gradient(circle at 30% 26%, rgba(255,255,255,.55) 0 8%, transparent 30%),
    radial-gradient(circle at 60% 34%, #0a1510 0 7%, transparent 9%),
    radial-gradient(circle at 36% 56%, #0a1510 0 7%, transparent 9%),
    radial-gradient(circle at 64% 66%, #0a1510 0 7%, transparent 9%),
    radial-gradient(circle at 35% 30%, #eaff70, var(--pop-deep) 80%);
  box-shadow: 0 0 22px rgba(216, 243, 77, 0.45), 0 6px 14px rgba(0, 0, 0, 0.4);
  animation: rally 7s linear infinite;
}
.rb-2 {
  width: 20px; height: 20px; opacity: .75;
  animation-duration: 9.5s;
  animation-delay: -4.2s;
  animation-name: rally2;
}
/* horizontal rally: side to side over the net, ball "rises" mid-flight */
@keyframes rally {
  0%    { left: 86%; top: 18%; transform: scale(1); }
  12.5% { transform: scale(1.6); }
  25%   { left: 8%;  top: 68%; transform: scale(1); }
  37.5% { transform: scale(1.6); }
  50%   { left: 86%; top: 24%; transform: scale(1); }
  62.5% { transform: scale(1.6); }
  75%   { left: 10%; top: 74%; transform: scale(1); }
  87.5% { transform: scale(1.6); }
  100%  { left: 86%; top: 18%; transform: scale(1); }
}
@keyframes rally2 {
  0%    { left: 90%; top: 78%; transform: scale(1); }
  12.5% { transform: scale(1.5); }
  25%   { left: 6%;  top: 30%; transform: scale(1); }
  37.5% { transform: scale(1.5); }
  50%   { left: 90%; top: 62%; transform: scale(1); }
  62.5% { transform: scale(1.5); }
  75%   { left: 8%;  top: 22%; transform: scale(1); }
  87.5% { transform: scale(1.5); }
  100%  { left: 90%; top: 78%; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) { .rally-ball { animation: none; opacity: .3; } }

/* ---------- forms ---------- */
.stack { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 340px; margin: 0 auto; position: relative; z-index: 1; }

input, select {
  width: 100%; padding: 16px 18px; font-size: 16px;
  font-family: var(--body); font-weight: 500;
  background: rgba(10, 21, 16, 0.6); color: var(--ink);
  border: 1px solid var(--line); border-radius: 14px;
  outline: none; appearance: none;
  transition: border-color .18s, box-shadow .18s;
}
input::placeholder { color: var(--ink-faint); font-weight: 450; }
input:focus, select:focus {
  border-color: var(--line-hot);
  box-shadow: 0 0 0 3px rgba(216, 243, 77, 0.08), 0 0 24px rgba(216, 243, 77, 0.06);
}

.btn {
  padding: 16px 22px; font-size: 15px; font-weight: 800;
  font-family: var(--body); letter-spacing: .4px;
  border: none; border-radius: 14px; cursor: pointer;
  transition: transform .1s, box-shadow .2s, filter .15s;
}
.btn:active { transform: scale(.96); }
.btn-primary {
  background: linear-gradient(160deg, #e5fd66, var(--pop) 55%, #b9d63a);
  color: #0d1a12;
  box-shadow: 0 6px 28px rgba(216, 243, 77, 0.28), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn-primary:active { filter: brightness(1.06); }
.btn-ghost { background: transparent; color: var(--ink-dim); border: 1px solid var(--line); }
.linklike {
  background: none; border: none; color: var(--ink-faint);
  font-family: var(--body); font-size: 14px; font-weight: 500;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 6px;
}

.form-error { color: var(--hot); font-size: 14px; font-weight: 600; min-height: 18px; margin-top: 4px; }
.form-ok { color: var(--in); font-size: 14px; font-weight: 600; }
.muted { color: var(--ink-faint); font-size: 13px; line-height: 1.55; }

/* ---------- cards ---------- */
.card {
  background: var(--card);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line); border-radius: 22px;
  padding: 24px; width: 100%; max-width: 380px; margin: 0 auto;
  position: relative; z-index: 1;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.card-title {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: 18px; letter-spacing: 1.5px; color: var(--ink);
  margin-bottom: 16px; text-align: left;
}

.install-card { text-align: left; }
.install-card h2 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: 22px; letter-spacing: 1px; margin-bottom: 18px;
}
.install-steps { list-style: none; display: flex; flex-direction: column; gap: 16px; margin-bottom: 18px; }
.install-steps li { display: flex; align-items: flex-start; gap: 13px; color: var(--ink-dim); font-size: 15px; line-height: 1.55; }
.install-steps b { color: var(--ink); font-weight: 700; }
.step-num {
  flex: 0 0 27px; height: 27px; border-radius: 50%;
  background: var(--pop); color: #0d1a12;
  font-weight: 900; font-size: 14px;
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
  box-shadow: 0 0 16px rgba(216, 243, 77, 0.35);
}
.share-glyph {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border: 1.5px solid var(--ink-dim); border-radius: 6px;
  font-size: 13px; color: var(--ink); vertical-align: -4px;
}

/* ---------- auth tabs ---------- */
.tab-row {
  display: flex; gap: 5px;
  background: rgba(10, 21, 16, 0.6);
  border: 1px solid var(--line);
  border-radius: 14px; padding: 5px; margin-bottom: 20px;
}
.tab {
  flex: 1; padding: 12px; font-size: 14px; font-weight: 700;
  font-family: var(--body); letter-spacing: .3px;
  border: none; border-radius: 10px;
  background: transparent; color: var(--ink-faint); cursor: pointer;
  transition: color .15s, background .15s;
}
.tab.active { background: var(--pop-soft); color: var(--pop); }

/* ---------- main app ---------- */
#screen-main { padding: calc(16px + var(--safe-t)) 16px calc(110px + var(--safe-b)); }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; max-width: 480px; margin-inline: auto; }

.view { display: flex; flex-direction: column; gap: 16px; max-width: 480px; margin: 0 auto; }

.hero-card {
  position: relative; overflow: hidden;
  background: var(--card);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line-hot);
  border-radius: 26px; padding: 30px 24px 26px; text-align: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4), 0 0 60px rgba(216, 243, 77, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.hero-card::before {
  content: '';
  position: absolute; inset: -40% -20% auto; height: 120%;
  background: radial-gradient(50% 60% at 50% 0%, rgba(216, 243, 77, 0.14), transparent 75%);
  pointer-events: none;
}
.hero-label {
  color: var(--pop); font-size: 12px; font-weight: 800;
  letter-spacing: 4px; text-transform: uppercase; margin-bottom: 10px;
  position: relative;
}
.hero-card h2 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: 40px; line-height: 1; letter-spacing: 1px;
  margin-bottom: 14px; position: relative;
}
.session-times {
  position: relative; color: var(--pop); font-size: 14px; font-weight: 750;
  letter-spacing: .4px; margin-bottom: 6px;
}
.session-loc {
  position: relative; color: var(--ink-dim); font-size: 13px; font-weight: 600;
  margin-bottom: 8px;
}
.session-spots {
  position: relative; color: var(--ink-faint); font-size: 12.5px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 18px;
}
.session-spots.full { color: var(--hot); }
.hero-card .muted { position: relative; }
.btn-in:disabled { opacity: .45; filter: saturate(.4); cursor: not-allowed; }
.rsvp-buttons { display: flex; gap: 10px; position: relative; }
.rsvp-buttons .btn { flex: 1; font-size: 15px; }
.btn-in {
  background: linear-gradient(160deg, #e5fd66, var(--pop) 55%, #b9d63a);
  color: #0d1a12;
  box-shadow: 0 6px 24px rgba(216, 243, 77, 0.25), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn-out { background: transparent; color: var(--ink-dim); border: 1px solid var(--line); }
.btn-in.picked { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--pop), 0 6px 30px rgba(216, 243, 77, 0.4); }
.btn-out.picked { border-color: var(--hot); color: var(--hot); background: var(--hot-soft); }

.section-title {
  font-family: var(--display); font-weight: 400;
  font-size: 15px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--ink-faint); margin-top: 10px;
}

/* ---------- rsvp bubbles ---------- */
.bubble {
  border-radius: 24px; padding: 20px 18px 18px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.bubble-in {
  background: linear-gradient(160deg, rgba(74, 222, 128, 0.1), var(--card) 55%);
  border: 1px solid rgba(74, 222, 128, 0.3);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.35), 0 0 50px rgba(74, 222, 128, 0.07), inset 0 1px 0 rgba(255,255,255,.05);
}
.bubble-out {
  background: var(--card);
  border: 1px solid var(--line);
  opacity: .85;
}
.bubble-none {
  background: transparent;
  border: 1px dashed var(--line);
  opacity: .75;
}
.name-chip { cursor: pointer; transition: transform .1s, border-color .15s; }
.name-chip:active { transform: scale(.95); }
.bubble-title {
  font-family: var(--display); font-weight: 400;
  font-size: 15px; letter-spacing: 2.5px; text-transform: uppercase;
  margin-bottom: 14px;
}
.bubble-in .bubble-title { color: var(--in); text-shadow: 0 0 18px rgba(74, 222, 128, 0.4); }
.bubble-out .bubble-title { color: var(--ink-faint); }
.chip-zone { display: flex; flex-wrap: wrap; gap: 9px; min-height: 48px; }
.name-chip {
  display: flex; align-items: center; gap: 9px;
  background: rgba(10, 21, 16, 0.55);
  border: 1px solid var(--line); border-radius: 99px;
  padding: 7px 16px 7px 7px;
  font-weight: 700; font-size: 14.5px;
}
.bubble-in .name-chip { border-color: rgba(74, 222, 128, 0.35); box-shadow: 0 4px 18px rgba(74, 222, 128, 0.1); }
.bubble-out .name-chip { opacity: .65; }
.name-chip .avatar { flex: 0 0 34px; height: 34px; font-size: 13px; }
.zone-empty { color: var(--ink-faint); font-size: 13.5px; font-weight: 500; align-self: center; padding: 8px 4px; }
.noreply-line { color: var(--ink-faint); font-size: 13px; font-weight: 500; text-align: center; line-height: 1.6; padding: 0 8px; }
.noreply-line b { color: var(--ink-dim); font-weight: 650; }

/* ---------- roster ---------- */
.roster { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.roster li {
  display: flex; align-items: center; gap: 13px;
  background: var(--card);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 16px; padding: 13px 16px;
  font-weight: 650; font-size: 15px;
}
.roster li .grow { flex: 1; }
.avatar {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; color: #0d1a12;
  text-transform: uppercase;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pill {
  font-size: 11px; font-weight: 800; padding: 6px 13px; border-radius: 99px;
  letter-spacing: 1px; text-transform: uppercase;
}
.pill-in { background: var(--in-soft); color: var(--in); box-shadow: inset 0 0 0 1px rgba(74, 222, 128, .25); }
.pill-out { background: var(--hot-soft); color: var(--hot); box-shadow: inset 0 0 0 1px rgba(255, 107, 87, .22); }
.pill-none { background: rgba(95, 125, 108, 0.12); color: var(--ink-faint); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- session schedule ---------- */
.sched-head { display: flex; align-items: center; justify-content: space-between; }
.sched-head .mini-btn { font-size: 13px; padding: 10px 14px; }
.sched-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.sched-list li {
  background: var(--card);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.sched-list li.done { opacity: .6; border-style: dashed; }
.sched-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sched-ord {
  font-family: var(--display); font-size: 13px; letter-spacing: 1.5px;
  color: var(--ink-faint); text-transform: uppercase;
}
.sched-match { font-size: 14.5px; font-weight: 650; line-height: 1.5; }
.sched-match .vs-mini { color: var(--ink-faint); font-family: var(--display); font-size: 12px; padding: 0 5px; }
.sched-match .w { color: var(--pop); }
.sched-result { font-family: var(--display); font-size: 20px; color: var(--pop); white-space: nowrap; }
.sched-sits { color: var(--ink-faint); font-size: 12px; font-weight: 500; }
.sched-actions { display: flex; gap: 6px; }
.sched-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sched-inline .score-input { width: 72px; padding: 10px; font-size: 16px; }
.sched-inline select { padding: 10px 8px; font-size: 14px; flex: 1 1 40%; min-width: 120px; border-radius: 10px; }
.sched-inline .mini-btn { flex: 0 0 auto; }
.sched-empty {
  color: var(--ink-faint); font-size: 14px; font-weight: 500; text-align: center;
  padding: 24px 16px; line-height: 1.7; border: 1px dashed var(--line); border-radius: 16px;
}

/* ---------- games ---------- */
.team-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: start; }
.team-grid > div:not(.vs) { display: flex; flex-direction: column; gap: 8px; }
.vs {
  align-self: center; color: var(--ink-faint);
  font-family: var(--display); font-size: 15px; letter-spacing: 1px; padding: 0 2px;
}
.team-label { font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
.team-label-a { color: var(--pop); }
.team-label-b { color: var(--hot); }
.player-select, .score-input { padding: 13px 12px; font-size: 15px; border-radius: 12px; }
.score-input { text-align: center; font-weight: 800; font-size: 19px; }

.game-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.game-list li {
  background: var(--card);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 16px; padding: 15px 17px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.game-teams { font-size: 14px; font-weight: 650; line-height: 1.55; color: var(--ink-dim); }
.game-teams .w { color: var(--pop); }
.game-score {
  font-family: var(--display); font-size: 26px; letter-spacing: 1px;
  white-space: nowrap; color: var(--ink);
}
.game-date { color: var(--ink-faint); font-size: 12px; font-weight: 500; margin-top: 2px; }
.game-del { background: none; border: none; color: var(--ink-faint); font-size: 15px; cursor: pointer; padding: 8px; }

/* ---------- awards (hall of fame) ---------- */
.awards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.award {
  position: relative; overflow: hidden;
  background: var(--card);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 20px;
  padding: 18px 15px 16px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.award::before {
  content: '';
  position: absolute; inset: -50% -30% auto; height: 110%;
  background: radial-gradient(55% 60% at 50% 0%, var(--award-glow, rgba(216,243,77,0.12)), transparent 75%);
  pointer-events: none;
}
.award-emoji { font-size: 26px; line-height: 1; position: relative; }
.award-title {
  font-family: var(--display); font-weight: 400;
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--ink-faint); position: relative;
}
.award .avatar { flex: 0 0 46px; width: 46px; height: 46px; font-size: 17px; position: relative; }
.award-name { font-weight: 750; font-size: 14.5px; position: relative; }
.award-value {
  font-family: var(--display); font-size: 19px; letter-spacing: .5px;
  color: var(--pop); text-shadow: 0 0 18px rgba(216, 243, 77, 0.3); position: relative;
}
.award.vacant .award-value { color: var(--ink-faint); text-shadow: none; font-size: 14px; }
.award.vacant .avatar { opacity: .35; }

/* ---------- leaderboard ---------- */
.board { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.board li {
  display: grid; grid-template-columns: 34px 40px 1fr auto; align-items: center; gap: 11px;
  background: var(--card);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 16px; padding: 15px 17px;
}
.board li.first {
  background: linear-gradient(150deg, rgba(216, 243, 77, 0.14), var(--card) 60%);
  border-color: var(--line-hot);
  box-shadow: 0 10px 40px rgba(216, 243, 77, 0.1);
}
.rank {
  font-family: var(--display); font-size: 20px;
  color: var(--ink-faint); text-align: center;
}
.board li.first .rank { font-size: 24px; }
.board-name { font-weight: 750; font-size: 16px; }
.board-sub { color: var(--ink-faint); font-size: 12.5px; font-weight: 500; margin-top: 3px; }
.board-pct {
  font-family: var(--display); font-size: 26px; letter-spacing: .5px;
  color: var(--pop); text-shadow: 0 0 20px rgba(216, 243, 77, 0.35);
}
.streak-hot { color: var(--hot); font-weight: 800; }

.empty {
  color: var(--ink-faint); font-size: 14px; font-weight: 500;
  text-align: center; padding: 32px 16px; line-height: 1.7;
  background: none; border: 1px dashed var(--line) !important;
}

/* ---------- tab bar ---------- */
.tabbar {
  position: fixed; bottom: calc(14px + var(--safe-b)); left: 50%; transform: translateX(-50%);
  z-index: 10;
  display: flex; gap: 4px;
  background: rgba(13, 26, 18, 0.82);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: 22px; padding: 7px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.tabbar-btn {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: none; border: none; color: var(--ink-faint);
  font-family: var(--body); font-size: 10.5px; font-weight: 700; letter-spacing: .6px;
  cursor: pointer; padding: 9px 12px; border-radius: 16px;
  transition: color .15s, background .15s;
}
.tabbar-btn.active { color: var(--pop); background: var(--pop-soft); }
.tb-ico { font-size: 21px; line-height: 1; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); transform: translateX(-50%) translateY(16px);
  background: linear-gradient(160deg, #e5fd66, var(--pop));
  color: #0d1a12; font-weight: 800; font-size: 14px;
  padding: 13px 22px; border-radius: 99px; opacity: 0; pointer-events: none;
  box-shadow: 0 10px 36px rgba(216, 243, 77, 0.35);
  transition: opacity .22s, transform .22s; z-index: 50; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- admin page ---------- */
.admin-wrap { max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.stat {
  background: var(--card);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 16px;
  padding: 17px 10px; text-align: center;
}
.stat b {
  display: block; font-family: var(--display); font-weight: 400;
  font-size: 30px; color: var(--pop); letter-spacing: 1px;
  text-shadow: 0 0 22px rgba(216, 243, 77, 0.3);
}
.stat span { font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; }

.admin-users { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.admin-users li {
  background: var(--card);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 16px; padding: 14px 17px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.au-name { font-weight: 750; font-size: 15px; }
.au-meta { color: var(--ink-faint); font-size: 12px; font-weight: 500; margin-top: 3px; line-height: 1.5; }
.au-actions { display: flex; gap: 6px; }
.mini-btn {
  font-family: var(--body); font-size: 12px; font-weight: 700;
  padding: 9px 12px; border-radius: 10px; cursor: pointer;
  background: rgba(10, 21, 16, 0.6); color: var(--ink-dim); border: 1px solid var(--line);
}
.mini-btn.danger { color: var(--hot); border-color: rgba(255, 107, 87, .25); }
.taunt-add { display: flex; gap: 8px; }
.taunt-add input { flex: 1; }
.taunt-add .btn { padding: 12px 20px; flex: 0 0 auto; }

/* ---------- player sheet (popup) ---------- */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(5, 12, 8, 0.7);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: flex-end; justify-content: center;
}
.sheet {
  position: relative;
  width: 100%; max-width: 460px;
  background: linear-gradient(170deg, #16302290, var(--card-solid) 45%);
  border: 1px solid var(--line-hot); border-bottom: none;
  border-radius: 28px 28px 0 0;
  padding: 30px 22px calc(26px + var(--safe-b));
  box-shadow: 0 -20px 80px rgba(0, 0, 0, 0.6);
  display: flex; flex-direction: column; gap: 16px;
}
.sheet-close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(10, 21, 16, 0.6); border: 1px solid var(--line);
  color: var(--ink-dim); font-size: 14px; cursor: pointer;
}
.sheet-head { display: flex; align-items: center; gap: 15px; }
.sheet-head .avatar { flex: 0 0 64px; width: 64px; height: 64px; font-size: 24px; }
.sheet-name {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: 26px; letter-spacing: 1px; line-height: 1;
}
.rank-pill {
  display: inline-block; margin-top: 7px;
  font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 5px 12px; border-radius: 99px;
  background: var(--pop-soft); color: var(--pop);
  box-shadow: inset 0 0 0 1px rgba(216, 243, 77, 0.3);
}
.rank-pill.unranked { background: rgba(95, 125, 108, 0.12); color: var(--ink-faint); box-shadow: inset 0 0 0 1px var(--line); }
.sheet-note { text-align: center; min-height: 16px; }

/* ---------- stat grid (sheet + stats tab) ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.stat-tile {
  background: rgba(10, 21, 16, 0.5);
  border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 8px; text-align: center;
}
.stat-tile b {
  display: block; font-family: var(--display); font-weight: 400;
  font-size: 22px; letter-spacing: .5px; color: var(--ink);
}
.stat-tile.hot b { color: var(--pop); text-shadow: 0 0 18px rgba(216, 243, 77, 0.3); }
.stat-tile span { font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-faint); }

.stats-hero { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 22px; }
.stats-hero .avatar { flex: 0 0 84px; width: 84px; height: 84px; font-size: 30px; }
.stats-hero h2 { margin-bottom: 0 !important; font-size: 32px !important; }

/* ---------- Choices.js theme ---------- */
.choices { margin-bottom: 0; text-align: left; }
.choices__inner {
  background: rgba(10, 21, 16, 0.6);
  border: 1px solid var(--line);
  border-radius: 12px !important;
  padding: 9px 12px; min-height: 46px;
  font-family: var(--body); font-size: 15px; color: var(--ink);
  transition: border-color .18s, box-shadow .18s;
}
.is-open .choices__inner, .is-focused .choices__inner {
  border-color: var(--line-hot);
  box-shadow: 0 0 0 3px rgba(216, 243, 77, 0.08);
}
.choices__list--single { padding: 2px 20px 2px 2px; }
.choices__list--single .choices__item { color: var(--ink); font-weight: 600; }
.choices__item--selectable.choices__placeholder { color: var(--ink-faint); opacity: 1; font-weight: 450; }
.choices__list--dropdown, .choices__list[aria-expanded] {
  background: #12241a;
  border: 1px solid var(--line-hot);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  overflow: hidden; z-index: 20; margin-top: 6px;
}
.choices__list--dropdown .choices__item, .choices__list[aria-expanded] .choices__item {
  color: var(--ink); font-size: 15px; font-weight: 600; padding: 13px 16px;
}
.choices__list--dropdown .choices__item--selectable.is-highlighted,
.choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
  background: var(--pop-soft); color: var(--pop);
}
.choices[data-type*=select-one]::after {
  border-color: var(--ink-faint) transparent transparent;
  right: 14px;
}
.choices[data-type*=select-one].is-open::after {
  border-color: transparent transparent var(--ink-faint);
}
.choices__list--dropdown .choices__item--disabled { color: var(--ink-faint); opacity: .5; }

/* ---------- settings ---------- */
.field-label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--ink-faint); text-align: left; width: 100%;
}
.time-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.add-player-row { display: flex; gap: 8px; margin-bottom: 12px; }
.add-player-row select { flex: 1; padding: 12px; font-size: 14px; border-radius: 12px; }
.add-player-row .mini-btn { flex: 0 0 auto; padding: 12px 16px; font-size: 13px; }
input[type="date"], input[type="time"] { color-scheme: dark; min-height: 50px; }
.settings-card { max-width: none; }
.pfp-row { display: flex; align-items: center; gap: 16px; }
.pfp-row .avatar { flex: 0 0 72px; width: 72px; height: 72px; font-size: 26px; }
.pfp-btns { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.pfp-pick { display: inline-block; padding: 12px 18px; font-size: 14px; cursor: pointer; }
#form-pin input { max-width: none; }

@media (prefers-reduced-motion: reduce) {
  .ball { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
