:root {
  --bg: #0a0d12;
  --bg-2: #11161e;
  --fg: #e8eef5;
  --muted: #8a96a6;
  --accent: #34ff7a;
  --accent-dim: #1a7a3a;
  --red: #ff4d6d;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

.cheat-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-30px);
  background: linear-gradient(90deg, #ff4d6d, #ff9966);
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: 0.14em;
  font-size: 13px;
  text-transform: uppercase;
  box-shadow: 0 14px 40px rgba(255,77,109,0.45);
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease, transform .25s cubic-bezier(.2,1.6,.4,1);
}
.cheat-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  animation: cheat-out 2.4s ease forwards;
}
.cheat-toast.off {
  background: linear-gradient(90deg, #4b5666, #2a3342);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
@keyframes cheat-out {
  0%, 70% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-12px); }
}

html, body {
  margin: 0;
  background: radial-gradient(1200px 800px at 50% -10%, #182232 0%, var(--bg) 60%) fixed;
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, sans-serif;
  min-height: 100vh;
}

a { color: var(--accent); }

/* claim bar (very top thin strip) */
.claim-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 20px;
  background: rgba(0,0,0,0.45);
  border-bottom: 1px solid #1c2330;
  font-size: 13px;
}
.ghost-logo { font-size: 22px; filter: drop-shadow(0 2px 6px rgba(255,255,255,0.15)); }
.claim-msg { flex: 1; text-align: center; color: var(--muted); }
.claim-msg b { color: var(--accent); letter-spacing: 0.06em; }
.claim-btn {
  padding: 7px 16px;
  border: 1px solid #2a3342;
  border-radius: 999px;
  color: var(--fg);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.1em;
  font-size: 11px;
}
.claim-btn:hover { border-color: var(--accent); color: var(--accent); }

/* sub bar (HOW TO MOG · SEASON 1 · avatar) */
.subbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px 4px;
  max-width: 1320px;
  margin: 0 auto;
}
.how-pill {
  background: transparent;
  border: 1px solid #2a3342;
  border-radius: 999px;
  color: var(--fg);
  font-weight: 800;
  letter-spacing: 0.1em;
  font-size: 12px;
  padding: 8px 16px 8px 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
.how-pill:hover { border-color: var(--accent); color: var(--accent); }
.how-pill .q {
  display: inline-flex;
  width: 20px; height: 20px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  color: var(--muted);
  font-weight: 800;
}
.season-pill {
  background: linear-gradient(90deg, #2b1f00, #3d2900);
  border: 1px solid #6a4a00;
  color: #f1c44a;
  font-weight: 900;
  letter-spacing: 0.14em;
  font-size: 12px;
  padding: 8px 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.season-pill .trophy { font-size: 14px; }
.me-avatar {
  appearance: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #7a4dff, #3a1aa0);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: white;
  border: 2px solid #2a3342;
  letter-spacing: 0.04em;
  cursor: pointer;
  padding: 0;
  font-size: 16px;
  transition: border-color .15s ease, transform .15s ease;
}
.me-avatar:hover { border-color: var(--accent); transform: scale(1.05); }

/* auth + profile modal */
.auth-card { text-align: center; }
.auth-tabs {
  display: flex;
  gap: 6px;
  background: #0a0d12;
  border: 1px solid #1c2330;
  border-radius: 999px;
  padding: 4px;
  margin: 4px 0 14px;
}
.auth-tab {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.16em;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.auth-tab.active {
  background: var(--accent);
  color: #002414;
}
.auth-input {
  width: 100%;
  background: #0a0d12;
  border: 1px solid #2a3342;
  color: var(--fg);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 10px;
}
.auth-input:focus { outline: none; border-color: var(--accent); }
.auth-msg {
  margin: 8px 0;
  font-size: 13px;
  color: var(--red);
  min-height: 1em;
}
.auth-msg.info { color: var(--muted); }
.auth-msg.ok { color: var(--accent); }
.auth-msg.err { color: var(--red); }
.auth-foot {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.profile-pic {
  width: 96px;
  height: 96px;
  margin: 4px auto 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #7a4dff, #3a1aa0);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 38px;
  border: 3px solid #2a3342;
}
.profile-email {
  font-weight: 800;
  letter-spacing: 0.06em;
  margin: 4px 0 14px;
}
#profilePanel .big-btn { width: 100%; margin-bottom: 10px; }
#profilePanel .ghost-btn { width: 100%; }
#authPanel .big-btn { width: 100%; }

.google-btn {
  appearance: none;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #ffffff;
  color: #1f1f1f;
  border: 1px solid #dadce0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.google-btn:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  transform: translateY(-1px);
  border-color: #b5b9c0;
}
.google-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.google-btn .g-logo { width: 18px; height: 18px; }
#authPanel .or-line { margin: 14px 0 12px; }

/* leaderboard modal */
.rank-card { width: min(520px, 100%); text-align: left; }
.rank-card .modal-title { text-align: center; color: #f1c44a; }
.rank-card .lobby-sub { text-align: center; }
.rank-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 4px;
  max-height: 60vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rank-list::-webkit-scrollbar { width: 6px; }
.rank-list::-webkit-scrollbar-thumb { background: #2a3342; border-radius: 4px; }
.lb-row {
  display: grid;
  grid-template-columns: 36px 36px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: rgba(0,0,0,0.3);
  border: 1px solid #1c2330;
  border-radius: 10px;
  font-size: 14px;
}
.lb-row.me {
  border-color: rgba(52,255,122,0.55);
  background: rgba(52,255,122,0.08);
}
.lb-row.top1 { border-color: #b88600; background: linear-gradient(90deg, rgba(241,196,74,0.16), rgba(241,196,74,0.04)); }
.lb-row.top2 { border-color: #6e7480; background: linear-gradient(90deg, rgba(200,210,225,0.10), rgba(200,210,225,0.02)); }
.lb-row.top3 { border-color: #7a4a1a; background: linear-gradient(90deg, rgba(205,127,50,0.14), rgba(205,127,50,0.02)); }
.lb-rank {
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.lb-row.top1 .lb-rank { color: #f1c44a; }
.lb-row.top2 .lb-rank { color: #c8d2e1; }
.lb-row.top3 .lb-rank { color: #cd7f32; }
.lb-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #7a4dff, #3a1aa0);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: white;
  font-size: 13px;
  border: 1px solid #2a3342;
}
.lb-name {
  font-weight: 700;
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lb-name .lb-tier {
  display: block;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 800;
  margin-top: 2px;
}
.lb-score {
  font-weight: 900;
  color: var(--accent);
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}
.lb-empty {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 18px 8px;
}

.privacy {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin: 8px 24px 18px;
}
.privacy b { color: var(--fg); }

main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 20px 80px;
}

#play { padding-top: 6px; }

.back-btn {
  background: rgba(0,0,0,0.62);
  border: 1px solid #2a3342;
  color: var(--fg);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 12px;
  cursor: pointer;
  margin-bottom: 14px;
}
.back-btn:hover { border-color: var(--accent); color: var(--accent); }

/* home card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 980px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .card-grid { grid-template-columns: 1fr; }
}
.game-card {
  position: relative;
  aspect-ratio: 0.82;
  background: linear-gradient(160deg, #0e1218 0%, #161c25 100%);
  border: 1px solid #1c2330;
  border-radius: 20px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: transform .18s ease, border-color .2s ease, box-shadow .2s ease;
  overflow: hidden;
}
.game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 50% 0%, rgba(52,255,122,0.08), transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease;
}
.game-card:hover {
  border-color: rgba(52,255,122,0.45);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.game-card:hover::after { opacity: 1; }
.game-card.disabled { cursor: not-allowed; opacity: 0.65; }
.game-card.disabled:hover { transform: none; border-color: #1c2330; }
.game-card.disabled:hover::after { opacity: 0; }

.card-icon {
  font-size: 64px;
  line-height: 1;
  filter: drop-shadow(0 8px 22px rgba(0,0,0,0.55));
  margin-bottom: 8px;
}
.card-title {
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.04em;
}
.card-sub {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
}
.card-badge {
  position: absolute;
  top: 14px;
  font-size: 10px;
  letter-spacing: 0.12em;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}
.card-badge.online {
  left: 14px;
  background: rgba(52,255,122,0.14);
  color: var(--accent);
  border: 1px solid rgba(52,255,122,0.45);
}
.card-badge.new {
  right: 14px;
  background: linear-gradient(90deg, #ff4d6d, #ff8a4d);
  color: white;
  letter-spacing: 0.16em;
}
.card-foot {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 11px;
  border: 1px solid #2a3342;
  border-radius: 12px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}
.card-foot.play {
  background: rgba(52,255,122,0.1);
  color: var(--accent);
  border-color: rgba(52,255,122,0.45);
}
.game-card.rank .card-icon { filter: drop-shadow(0 8px 22px rgba(241,196,74,0.4)); }
.game-card.rank .card-title { color: #f1c44a; }
.game-card.arena .card-title { color: #cfe7ff; }
.game-card.customs .card-title { color: #ffd0d0; }
.game-card.lab .card-title { color: #b8a8ff; }

/* HOW TO MOG modal list */
.how-card { text-align: left; }
.how-card .modal-title { text-align: center; }
.how-card .lobby-sub { text-align: center; }
.how-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 14px;
  display: grid;
  gap: 6px;
}
.how-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 12px;
  background: rgba(0,0,0,0.3);
  border: 1px solid #1c2330;
  border-radius: 10px;
}
.how-list li b { color: var(--accent); font-weight: 800; letter-spacing: 0.04em; }
.how-list li span { color: var(--muted); font-size: 13px; }
.disclaimer { color: var(--muted); font-size: 12px; margin-top: 10px; text-align: center; }

#stage {
  position: relative;
  aspect-ratio: 4/3;
  width: 100%;
  background: #000;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #1c2330;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}

.side {
  position: absolute;
  top: 0;
  bottom: 0;
  overflow: hidden;
  background: #000;
  transition: left 0.25s ease, right 0.25s ease;
}
#meSide { left: 0; right: 0; }
#stage.vs #meSide { right: 50%; border-right: 2px solid rgba(52,255,122,0.6); }
#stage.vs #oppSide { left: 50%; right: 0; }
.side video,
.side canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* selfie mirror for own preview */
}
.side.opp video { transform: none; } /* don't mirror remote feed */
#overlay { pointer-events: none; }

/* score cards positioned at the top of each side, like the reference */
.score-card {
  position: absolute;
  top: 12px;
  right: 12px;
  min-width: 160px;
  background: rgba(0,0,0,0.62);
  border: 1px solid rgba(52,255,122,0.35);
  border-radius: 12px;
  padding: 8px 14px 10px;
  text-align: right;
  backdrop-filter: blur(8px);
  z-index: 2;
  box-shadow: 0 6px 22px rgba(0,0,0,0.45);
}
.score-card.opp {
  border-color: rgba(255,77,109,0.45);
  background: rgba(20,5,10,0.62);
}
.score-card .sc-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
}
.score-card.opp .sc-label { color: var(--red); }
.score-card .sc-num {
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.score-card .sc-num .of { color: var(--muted); font-size: 0.42em; font-weight: 700; margin-left: 2px; }
.score-card .sc-tier {
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 800;
  margin-top: 4px;
  color: var(--accent);
  text-transform: uppercase;
}
.score-card.opp .sc-tier { color: var(--red); }
.score-card .sc-time {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-top: 8px;
  font-weight: 700;
}
.score-card .sc-bar {
  margin-top: 4px;
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
}
.score-card .sc-bar-fill {
  height: 100%;
  width: 100%;
  background: var(--accent);
  transition: width 0.1s linear;
}

.mic-btn {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0,0,0,0.62);
  border: 1px solid rgba(52,255,122,0.45);
  color: var(--accent);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.14em;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  z-index: 3;
  backdrop-filter: blur(6px);
}
.mic-btn:hover { background: rgba(0,0,0,0.78); }
.mic-btn.muted {
  border-color: rgba(255,77,109,0.55);
  color: var(--red);
}

.vs-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0a0d12;
  background: var(--accent);
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(52,255,122,0.18), 0 6px 20px rgba(52,255,122,0.35);
  pointer-events: none;
}

/* quick-match searching */
.searching { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 0 4px; }
.dot-spin { display: inline-flex; gap: 6px; margin-bottom: 8px; }
.dot-spin span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  animation: dot-bounce 1s infinite ease-in-out;
}
.dot-spin span:nth-child(2) { animation-delay: 0.15s; }
.dot-spin span:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot-bounce {
  0%, 80%, 100% { transform: scale(0.5); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

.hud {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding: 28px;
  background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0) 40%);
}

#status {
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.big-btn {
  appearance: none;
  border: 0;
  background: var(--accent);
  color: #002414;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.08em;
  padding: 16px 28px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 0 0 6px rgba(52,255,122,0.12), 0 8px 30px rgba(52,255,122,0.2);
  transition: transform .15s ease, box-shadow .15s ease;
}
.big-btn:hover { transform: translateY(-1px); }
.big-btn:active { transform: translateY(0); }
.big-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.ghost-btn {
  appearance: none;
  background: transparent;
  color: var(--fg);
  border: 1px solid #2a3342;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.ghost-btn:hover { border-color: var(--accent); color: var(--accent); }

.big-btn.alt {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  box-shadow: none;
}
.big-btn.alt:hover { background: rgba(52,255,122,0.08); }

.mode-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* modal / lobby */
.modal {
  position: absolute;
  inset: 0;
  background: rgba(5,8,12,0.82);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  padding: 20px;
}
.modal-card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid #1c2330;
  border-radius: 16px;
  padding: 28px 24px 24px;
  width: min(420px, 100%);
  text-align: center;
  box-shadow: 0 30px 90px rgba(0,0,0,0.6);
}
.modal-x {
  position: absolute;
  top: 8px;
  right: 12px;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.modal-x:hover { color: var(--fg); }
.modal-title {
  margin: 0 0 8px;
  letter-spacing: 0.1em;
  font-size: 20px;
  color: var(--accent);
}
.lobby-pane { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.lobby-sub { color: var(--muted); margin: 0 0 6px; font-size: 14px; }
.lobby-status { color: var(--fg); margin: 0; font-size: 14px; }
.lobby-status.err { color: var(--red); }
.or-line { position: relative; color: var(--muted); font-size: 12px; margin: 4px 0; }
.or-line::before, .or-line::after {
  content: ""; position: absolute; top: 50%; width: 40%; height: 1px; background: #1c2330;
}
.or-line::before { left: 0; }
.or-line::after { right: 0; }
.join-row { display: flex; gap: 8px; }
.join-row input {
  flex: 1;
  background: #0a0d12;
  color: var(--fg);
  border: 1px solid #2a3342;
  border-radius: 999px;
  padding: 14px 18px;
  font-size: 18px;
  letter-spacing: 0.3em;
  text-align: center;
  text-transform: uppercase;
  font-weight: 800;
}
.join-row input:focus { outline: none; border-color: var(--accent); }
.big-code {
  font-size: 56px;
  font-weight: 900;
  letter-spacing: 0.25em;
  color: var(--accent);
  text-shadow: 0 0 30px rgba(52,255,122,0.5);
  padding: 8px 0;
}

/* vs final */
.vs-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: clamp(40px, 9vw, 88px);
  font-weight: 900;
  margin: 8px 0;
  font-variant-numeric: tabular-nums;
}
.vs-side { display: flex; flex-direction: column; align-items: center; }
.vs-label { font-size: 12px; letter-spacing: 0.18em; color: var(--muted); font-weight: 800; }
.vs-x { color: var(--muted); font-size: 0.5em; font-weight: 700; }

/* live-hud styles moved into .score-card above */

.results {
  position: absolute;
  inset: 0;
  background: rgba(5,8,12,0.78);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  gap: 8px;
}

.reveal {
  font-size: clamp(40px, 9vw, 96px);
  font-weight: 900;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-shadow: 0 6px 24px rgba(52,255,122,0.45);
  transform: scale(0.6);
  opacity: 0;
  animation: pop .6s cubic-bezier(.2,1.6,.4,1) forwards;
}
.reveal.lose { color: var(--red); text-shadow: 0 6px 24px rgba(255,77,109,0.4); }

@keyframes pop {
  to { transform: scale(1); opacity: 1; }
}

.score {
  font-size: clamp(60px, 14vw, 160px);
  font-weight: 900;
  line-height: 1;
}
.score .of { color: var(--muted); font-size: 0.45em; font-weight: 700; margin-left: 4px; }

.tier {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.breakdown {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 6px 18px;
  font-size: 13px;
  max-width: 560px;
  width: 100%;
}
.breakdown li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed #1c2330;
  padding: 4px 0;
}
.breakdown li b { color: var(--accent); font-weight: 700; }

.actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.info {
  margin-top: 36px;
  background: var(--bg-2);
  border: 1px solid #1c2330;
  border-radius: 14px;
  padding: 22px 24px;
}
.info h2 {
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.info ol { margin: 0 0 12px; padding-left: 20px; color: var(--fg); }
.info li { margin: 4px 0; }
.disclaimer { color: var(--muted); font-size: 13px; margin: 0; }

.foot {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding: 20px;
  letter-spacing: 0.1em;
}

@media (max-width: 600px) {
  #stage { aspect-ratio: 3/4; }
}
