/* GOAT LAB — WHOOP × Nike × 2K. Black, white, electric lime. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #111416;
  --bg2: #181b1e;
  --card: #1c2124;
  --text: #ffffff;
  --muted: #A6ACAE;
  --lime: #C7FF4D;
  --lime-dim: rgba(199, 255, 77, 0.16);
  --accent: #C7FF4D;
  --accent2: #C7FF4D;
  --glow: #C7FF4D;
  --danger: #ff4d6a;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bot: env(safe-area-inset-bottom, 0px);
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.screen {
  display: none;
  position: fixed;
  inset: 0;
  padding: calc(16px + var(--safe-top)) 16px calc(16px + var(--safe-bot));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.screen.active { display: flex; flex-direction: column; }

/* BRAND */
.brand { text-align: center; padding: 4px 0 2px; }
.brand-logo {
  display: block;
  width: min(280px, 78vw);
  height: auto;
  margin: 0 auto;
  background: #000;
  border-radius: 12px;
}
.wordmark {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -1.5px;
  color: #fff;
  line-height: 1;
}
.wordmark .lab { color: var(--lime); }
.tagline {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
}
.subline {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

/* PLAYERS */
.player-picker { margin: 14px 0 10px; }
.player-picker label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
  margin-bottom: 8px;
}
.player-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.player-btn {
  background: var(--card);
  border: 2px solid transparent;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  padding: 12px 4px;
  border-radius: 12px;
  min-height: 48px;
}
.player-btn.selected {
  border-color: var(--lime);
  background: var(--lime-dim);
  box-shadow: 0 0 18px rgba(199, 255, 77, 0.25);
  color: var(--lime);
}
.selected-player {
  text-align: center;
  margin-top: 8px;
  font-weight: 700;
  color: var(--lime);
  min-height: 20px;
  font-size: 14px;
}

/* GOAT SCORE CARD */
.goat-score-card {
  width: 100%;
  text-align: left;
  background: linear-gradient(145deg, #1a2210, var(--card));
  border: 2px solid var(--lime);
  border-radius: 18px;
  padding: 14px 16px 10px;
  color: var(--text);
  margin-bottom: 12px;
}
.goat-score-card:disabled { opacity: 0.55; border-color: #333; }
.gs-top { display: flex; justify-content: space-between; align-items: center; }
.gs-label {
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 800;
  color: var(--muted);
}
.gs-row { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.gs-number {
  font-size: 56px;
  font-weight: 900;
  color: var(--lime);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 28px rgba(199, 255, 77, 0.35);
}
.gs-number.huge {
  font-size: 88px;
  text-align: center;
  width: 100%;
  margin: 8px 0;
}
.gs-meta { flex: 1; }
.gs-player { font-weight: 800; font-size: 16px; }
.gs-hint { font-size: 12px; color: var(--muted); margin-top: 2px; }
.gs-disclaimer {
  font-size: 10px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.35;
}

.badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
}
.badge.live { background: var(--lime-dim); color: var(--lime); }
.badge.coming { background: #2a2e32; color: var(--muted); }
.badge.soft { background: #2a2e32; color: #ddd; }
.badge.early {
  background: rgba(199, 255, 77, 0.18);
  color: var(--lime);
  border: 1px solid rgba(199, 255, 77, 0.35);
}
.phase.scaffolding { border-color: rgba(199, 255, 77, 0.55); }
.shoot-hub-sub { margin-top: -4px; }

/* LOOP NAV */
.loop-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 4px 0 12px;
}
.loop-pill {
  background: var(--bg2);
  border: 1px solid #2a2e32;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  padding: 10px 4px;
  border-radius: 999px;
}
.loop-pill.active {
  background: var(--lime);
  color: #111;
  border-color: var(--lime);
}

.hub-title {
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.hub-sub { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.section-label {
  margin: 16px 0 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
}

.game-list, .drill-list { display: flex; flex-direction: column; gap: 10px; }
.game-card, .drill-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-rows: auto auto auto;
  gap: 2px 12px;
  align-items: center;
  background: var(--card);
  border: 2px solid #2a2e32;
  border-radius: 16px;
  padding: 14px;
  text-align: left;
  color: var(--text);
  min-height: 72px;
  width: 100%;
  position: relative;
}
.game-card:disabled, .drill-card:disabled { opacity: 0.4; }
.game-card.primary {
  border-color: var(--lime);
  background: linear-gradient(135deg, #1f2a12, var(--card));
}
.game-card.daily { border-color: #5a6a3a; }
.gicon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  grid-row: 1 / 4;
  filter: drop-shadow(0 0 6px rgba(199, 255, 77, 0.28));
  flex-shrink: 0;
  pointer-events: none;
  user-select: none;
}
.gicon-xs { width: 16px; height: 16px; display: inline-block; vertical-align: -3px; grid-row: auto; filter: none; }
.gicon-sm { width: 22px; height: 22px; display: inline-block; vertical-align: -5px; grid-row: auto; }
.gicon-rank { width: 18px; height: 18px; display: inline-block; vertical-align: -4px; grid-row: auto; filter: none; margin-right: 4px; }
.gicon-diff { width: 44px; height: 44px; grid-row: auto; filter: drop-shadow(0 0 8px rgba(199, 255, 77, 0.2)); }
.gicon-guard { width: 96px; height: 96px; grid-row: auto; filter: drop-shadow(0 0 18px rgba(199, 255, 77, 0.45)); }
.bonus-label { display: inline-flex; align-items: center; gap: 6px; }
.link-btn .gicon-xs { margin-right: 4px; }
.game-name, .drill-name { font-size: 18px; font-weight: 800; }
.game-desc, .drill-desc { font-size: 12px; color: var(--muted); grid-column: 2; }
.game-tag {
  grid-column: 2;
  font-size: 10px;
  font-weight: 800;
  color: var(--lime);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.drill-card .drill-meta {
  grid-column: 2;
  font-size: 11px;
  color: var(--lime);
  font-weight: 700;
}

/* WEEKLY CHALLENGE */
.challenge-card {
  background: var(--card);
  border: 2px solid var(--lime);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 12px;
}
.ch-top { display: flex; justify-content: space-between; align-items: center; }
.ch-label { font-size: 11px; letter-spacing: 1.2px; color: var(--muted); font-weight: 700; }
.ch-name { font-size: 24px; font-weight: 900; margin: 6px 0 4px; }
.ch-desc { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.ch-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.ch-stat-label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.8px; }
.ch-stat-val { font-size: 22px; font-weight: 900; color: var(--lime); font-variant-numeric: tabular-nums; }
.big-btn.compact { min-height: 48px; font-size: 16px; padding: 12px; }
.ch-window {
  font-size: 11px;
  color: var(--lime);
  font-weight: 700;
  letter-spacing: 0.6px;
  margin: 0 0 6px;
}
.ch-rules {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
  background: var(--bg2);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 0 0 12px;
}
.ch-family-streak {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 12px;
  padding: 8px 10px;
  background: var(--bg2);
  border-radius: 10px;
}
.ch-family-streak .ch-stat-val { font-size: 18px; }
.ch-stat-hint { font-size: 11px; color: var(--muted); }
.board-sub {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin: 8px 0 4px;
}
.board-note {
  font-size: 11px;
  color: var(--muted);
  margin: -4px 0 8px;
}
.history-row {
  background: var(--card);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 6px;
}
.history-row.current { border: 1px solid var(--lime); }
.history-main .name { font-weight: 800; font-size: 15px; }
.history-main .meta { font-size: 11px; color: var(--muted); }
.score-row.compact { padding: 8px 14px; margin-bottom: 4px; }
.score-row.compact .pts { font-size: 18px; }
.score-row.streak-family { border: 1px dashed rgba(199,255,77,0.35); }

/* Yardley Cup + arcade picks + lime share card (v43) */
.yardley-cup-card {
  border-color: var(--lime);
  box-shadow: 0 0 0 1px rgba(199,255,77,0.2), 0 12px 40px rgba(0,0,0,0.35);
}
.arcade-picks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 8px 0 14px;
}
#weekly-arcade-picks {
  grid-template-columns: repeat(4, 1fr);
}
.arcade-pick {
  background: var(--bg2);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 10px 6px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-height: 56px;
}
.arcade-pick.active {
  border-color: var(--lime);
  background: var(--lime-dim);
  color: var(--lime);
}
.arcade-name { font-size: 12px; font-weight: 800; line-height: 1.2; text-align: center; }
.arcade-sub { font-size: 10px; color: var(--muted); text-align: center; }
.arcade-pick.active .arcade-sub { color: var(--lime); opacity: 0.85; }
.score-row.crown-winner {
  border: 2px solid var(--lime);
  background: linear-gradient(90deg, rgba(199,255,77,0.14), transparent 70%);
}
.crown-badge {
  display: inline-block;
  margin-right: 4px;
  color: var(--lime);
  font-weight: 900;
}
.share-card-wrap {
  margin-top: 16px;
  padding: 12px;
  background: var(--bg2);
  border: 2px solid var(--lime);
  border-radius: 16px;
}
#share-card-canvas {
  width: 100%;
  max-width: 280px;
  height: auto;
  display: block;
  margin: 0 auto 8px;
  border-radius: 12px;
  background: #0b0d0f;
  box-shadow: 0 0 28px rgba(199,255,77,0.25);
}
.share-card-hint {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 10px;
}
.share-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}


.link-btn, .back-btn, .quit-btn, .danger-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 15px;
  padding: 12px;
  margin-top: 8px;
}
.danger-btn { color: var(--danger); }
.hint {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: auto;
  padding-top: 12px;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.topbar h2 { font-size: 22px; font-weight: 800; }

.setup-body { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.howto {
  background: var(--card);
  border-radius: 14px;
  padding: 16px 16px 16px 32px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}
.howto li { margin-bottom: 8px; }
.cam-status {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  padding: 8px;
  background: var(--bg2);
  border-radius: 8px;
}
.cam-status.ok { color: var(--lime); }
.cam-status.err { color: var(--danger); }

.big-btn {
  background: var(--lime);
  color: #111;
  border: none;
  border-radius: 16px;
  font-size: 18px;
  font-weight: 900;
  padding: 16px;
  min-height: 56px;
  width: 100%;
}
.big-btn.secondary {
  background: var(--card);
  color: var(--text);
  border: 2px solid #333;
}
.big-btn.go {
  background: var(--lime);
  color: #111;
  font-size: 22px;
}
.big-btn:disabled { opacity: 0.35; }

#preview {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* GAME */
#screen-game { padding: 0; background: #000; }
.hud {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: calc(8px + var(--safe-top)) 12px 8px;
  background: linear-gradient(180deg, rgba(0,0,0,0.85), transparent);
  pointer-events: none;
}
.hud-left { display: flex; flex-direction: column; gap: 2px; font-size: 13px; font-weight: 700; min-width: 0; }
.hud-left #hud-game { color: var(--muted); font-weight: 500; }
.timer {
  font-size: 56px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 20px rgba(199, 255, 77, 0.55);
  color: var(--glow);
  line-height: 1;
}
.timer.warn { color: var(--danger); animation: pulse 0.5s infinite; }
@keyframes pulse { 50% { opacity: 0.5; } }
.hud-right { text-align: right; }
.score-label { font-size: 11px; letter-spacing: 1px; color: var(--muted); }
.score {
  font-size: 42px;
  font-weight: 900;
  color: var(--lime);
  line-height: 1;
  text-shadow: 0 0 16px rgba(199, 255, 77, 0.45);
}

.game-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #0a0c0e;
}
#cam {
  position: absolute;
  inset: 0;
  z-index: 1; /* under overlay/UI, always visible when opacity > 0 */
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  background: transparent;
}
/* Combo Call / Speedometer — brighter self-view so kids see the camera */
#game-stage[data-game="combocall"] #cam,
#game-stage[data-game="calloutladder"] #cam {
  opacity: 0.90;
}
#game-stage[data-game="speedometer"] #cam,
#game-stage[data-game="freezepound"] #cam,
#game-stage[data-game="rhythmbounce"] #cam,
#game-stage[data-game="mirrormatch"] #cam {
  opacity: 0.82;
}
#cam.cam-mirror,
.drill-cam.cam-mirror,
#shoot-cam.cam-mirror,
video.cam-mirror {
  transform: scaleX(-1);
}
#cam.cam-unmirrored,
.drill-cam.cam-unmirrored,
#shoot-cam.cam-unmirrored,
video.cam-unmirrored {
  transform: none;
}
#overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 1;
  /* v37: above #cam (1) + targets/fx so green skeleton stays visible outdoors;
     still under speedo/guard/combo pads (40+) */
  z-index: 22;
}
#overlay.overlay-hidden {
  opacity: 0 !important;
}
#targets-layer, #fx-layer {
  position: absolute;
  inset: 0;
  z-index: 10;
}

/* Slice 7: visual orb ~80px; invisible hit pad ≥96px for fingers while dribbling */
.target {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(var(--orb-scale, 1));
  background: radial-gradient(circle at 35% 35%, #fff 0%, var(--tcolor, #C7FF4D) 40%, transparent 70%);
  box-shadow:
    0 0 20px var(--tcolor, #C7FF4D),
    0 0 60px var(--tcolor, #C7FF4D),
    inset 0 0 20px rgba(255,255,255,0.5);
  animation: target-in 0.22s ease-out, target-drift 1.6s ease-in-out infinite 0.22s;
  z-index: 11;
  touch-action: none;
  cursor: pointer;
  /* Expand the layout hit box without growing the glow */
  margin: 0;
  --hit-pad: 14px;
  --orb-scale: 1;
}
.target::before {
  content: "";
  position: absolute;
  /* hit pad expands by difficulty (Lamb larger / GOAT tighter) */
  inset: calc(-1 * var(--hit-pad, 14px));
  min-width: 96px;
  min-height: 96px;
  border-radius: 50%;
  /* invisible hit padding */
  background: transparent;
}
.target.diff-lamb {
  width: 88px;
  height: 88px;
}
.target.diff-goat {
  width: 72px;
  height: 72px;
}
.target.hit {
  animation: target-hit 0.3s forwards;
  pointer-events: none;
}
.target.hit::before { pointer-events: none; }
.target.miss {
  animation: target-miss 0.22s forwards;
  pointer-events: none;
}
.target.miss::before { pointer-events: none; }
@keyframes target-in {
  from { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  to { transform: translate(-50%, -50%) scale(var(--orb-scale, 1)); opacity: 1; }
}
/* Slow gentle drift — honor --orb-scale so Lamb/GOAT do not flicker size */
@keyframes target-drift {
  0%, 100% { transform: translate(-50%, -50%) translate(0, 0) scale(var(--orb-scale, 1)); }
  50% { transform: translate(-50%, -50%) translate(5px, -7px) scale(calc(var(--orb-scale, 1) * 1.06)); }
}
@keyframes target-hit {
  to { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}
@keyframes target-miss {
  to { transform: translate(-50%, -50%) scale(0.55); opacity: 0; }
}

.fx-plus {
  position: absolute;
  font-size: 28px;
  font-weight: 900;
  color: var(--lime);
  pointer-events: none;
  animation: float-up 0.7s forwards;
  text-shadow: 0 0 10px rgba(199, 255, 77, 0.8);
  z-index: 20;
}
@keyframes float-up {
  to { transform: translateY(-60px); opacity: 0; }
}

#speedo-ui {
  position: absolute;
  inset: 0;
  z-index: 40; /* above targets-layer so TAP works */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 64px 12px calc(120px + var(--safe-bot));
  pointer-events: none;
  background: transparent;
  box-sizing: border-box;
}
#speedo-ui.hidden { display: none; }
#speedo-ui .speedo-hint {
  position: absolute;
  left: 50%;
  bottom: calc(4px + var(--safe-bot));
  transform: translateX(-50%);
  width: min(340px, 92vw);
}
.speedo-hand-cue {
  font-size: clamp(28px, 8vw, 48px);
  font-weight: 900;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 0 24px rgba(199, 255, 77, 0.65);
  padding: 8px 18px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.55);
  border: 2px solid var(--lime);
  margin-bottom: 4px;
}
.speedo-hand-cue[data-mode="xo"] {
  color: #111416;
  background: var(--lime);
  border-color: #fff;
  text-shadow: none;
}
.speedo-hand-cue[data-mode="left"] {
  border-color: #00b4ff;
  text-shadow: 0 0 24px rgba(0, 180, 255, 0.55);
}
.speedo-hand-cue[data-mode="right"] {
  border-color: var(--lime);
}
.speedo-hand-cue.hidden { display: none; }
.speedo-count {
  font-size: clamp(72px, 22vw, 112px);
  font-weight: 900;
  color: var(--lime);
  text-shadow: 0 0 40px rgba(199, 255, 77, 0.55);
  line-height: 1;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}
.speedo-label {
  font-size: 18px;
  letter-spacing: 4px;
  color: var(--muted);
  font-weight: 700;
}
.tap-count-btn {
  pointer-events: auto;
  margin-top: 0;
  width: min(320px, 92vw);
  height: 88px;
  border-radius: 20px;
  border: 3px solid var(--lime);
  background: rgba(199, 255, 77, 0.28);
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.5px;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  box-shadow: 0 0 28px rgba(199, 255, 77, 0.35);
  z-index: 45;
}
.tap-count-btn:active { background: rgba(199, 255, 77, 0.55); transform: scale(0.96); }
.speedo-hint { font-size: 12px; color: var(--muted); margin-top: 2px; text-align: center; max-width: 92vw; }

.game-footer {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 30;
  padding: 8px 12px calc(12px + var(--safe-bot));
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(0deg, rgba(0,0,0,0.85), transparent);
  pointer-events: none; /* v33: chrome must not cover guard RIGHT pad */
}
.bonus-bar {
  flex: 1;
  margin-right: 12px;
  background: var(--bg2);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11px;
  color: var(--muted);
}
.bonus-bar.hidden { display: none; }
.bonus-fill {
  height: 6px;
  margin-top: 4px;
  background: var(--lime);
  border-radius: 3px;
  width: 0%;
  transition: width 0.15s;
}
.quit-btn {
  color: var(--danger);
  font-weight: 700;
  pointer-events: auto;
  padding: 10px 16px;
  background: rgba(0,0,0,0.5);
  border-radius: 10px;
}

/* RESULTS */
#screen-results {
  justify-content: center;
  align-items: center;
  background: radial-gradient(ellipse at center, #1a2210, #111416);
}
.results-card {
  width: 100%;
  max-width: 360px;
  text-align: center;
  padding: 24px;
}
.results-player { font-size: 16px; color: var(--lime); font-weight: 700; }
.results-card h2 { font-size: 22px; margin: 4px 0 12px; }
.results-score {
  font-size: 96px;
  font-weight: 900;
  color: var(--lime);
  line-height: 1;
  text-shadow: 0 0 40px rgba(199, 255, 77, 0.45);
}
.results-note, .results-rank {
  color: var(--muted);
  margin-top: 8px;
  font-size: 14px;
  min-height: 20px;
}
.results-goat {
  margin-top: 12px;
  padding: 10px;
  background: var(--lime-dim);
  border-radius: 12px;
  font-weight: 800;
  color: var(--lime);
  font-size: 15px;
}
.results-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
}

/* BOARD */
.board {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.board-section h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 8px;
}
.score-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 6px;
}
.score-row.you { border: 1px solid var(--lime); }
.score-row .name { font-weight: 700; font-size: 17px; }
.score-row .pts { font-weight: 900; font-size: 22px; color: var(--lime); }
.score-row .meta { font-size: 11px; color: var(--muted); }
.empty { color: var(--muted); text-align: center; padding: 32px; }

/* DAILY */
.daily-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
}
.daily-timer {
  font-size: 72px;
  font-weight: 900;
  color: var(--glow);
  font-variant-numeric: tabular-nums;
}
.daily-plan {
  background: var(--card);
  border-radius: 14px;
  padding: 16px 16px 16px 32px;
  width: 100%;
  font-size: 15px;
  line-height: 1.7;
}
#daily-phase { font-weight: 700; color: var(--lime); }

/* ROADMAP */
.roadmap { display: flex; flex-direction: column; gap: 12px; }
.phase {
  background: var(--card);
  border-radius: 16px;
  padding: 16px;
  border: 2px solid #2a2e32;
}
.phase.live { border-color: var(--lime); }
.phase-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.phase h3 { font-size: 20px; font-weight: 900; margin-bottom: 6px; }
.phase p { font-size: 13px; color: var(--muted); line-height: 1.45; }

/* DRILL DETAIL */
.drill-body { display: flex; flex-direction: column; gap: 12px; }
.drill-obj { font-size: 16px; font-weight: 700; line-height: 1.4; }
.drill-score-box {
  background: var(--card);
  border-radius: 14px;
  padding: 14px;
}
.drill-score-box p { margin-top: 4px; font-size: 14px; color: var(--muted); }
.drill-timer-display {
  font-size: 64px;
  font-weight: 900;
  text-align: center;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
  margin: 8px 0;
}

.measure-card {
  background: var(--card);
  border-radius: 18px;
  padding: 16px;
  border: 2px solid var(--lime);
}
.breakdown { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.bd-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}
.bd-bar {
  height: 8px;
  background: #2a2e32;
  border-radius: 4px;
  margin-top: 4px;
  overflow: hidden;
}
.bd-fill {
  height: 100%;
  background: var(--lime);
  border-radius: 4px;
}

.hidden { display: none !important; }


/* Vision status */
.vision-status {
  margin: 8px 0 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.vision-status.mode-mediapipe { color: var(--lime); }
.vision-status.mode-basic { color: #ffe600; }
.vision-status.mode-tap-only { color: var(--muted); }

.overlay-toggle {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0 16px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}
.overlay-toggle input {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  accent-color: var(--lime);
}

.hud-vision {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: none;
}
.hud-vision[data-mode="mediapipe"] { color: var(--lime); }
.hud-vision[data-mode="basic"] { color: #ffe600; }

/* Drill path groups */
.skill-group { margin-bottom: 14px; }
.skill-group-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--lime);
  margin: 8px 0 8px;
}
.drill-path { display: flex; flex-direction: column; gap: 4px; }
.drill-badges { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.drill-skill-pill, .drill-level-pill {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: #2a2e32;
  color: var(--lime);
}
.drill-level-pill { color: var(--muted); }
.drill-best-line {
  margin-top: 8px !important;
  font-size: 13px !important;
  font-weight: 700;
  color: var(--text) !important;
}
.drill-reps-block {
  text-align: center;
  background: var(--card);
  border-radius: 18px;
  padding: 16px;
  border: 1px solid #2a2e32;
}
.drill-rep-count {
  font-size: 72px;
  font-weight: 900;
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.drill-rep-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--muted);
  margin: 4px 0 12px;
}
.drill-cam-wrap {
  position: relative;
  width: 100%;
  max-height: 180px;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}
.drill-cam, .drill-overlay {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  display: block;
}
.drill-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.drill-card .drill-best-chip {
  grid-column: 2;
  font-size: 11px;
  font-weight: 700;
  color: var(--lime);
}


/* GOAT Score v2 — bump + toast + assess CTA */
.gs-number.gs-bump {
  animation: goat-bump 0.9s ease-out;
}
@keyframes goat-bump {
  0% { transform: scale(1); filter: brightness(1); }
  35% { transform: scale(1.18); filter: brightness(1.35); text-shadow: 0 0 40px rgba(199, 255, 77, 0.7); }
  100% { transform: scale(1); filter: brightness(1); }
}
.goat-score-card.gs-card-flash {
  animation: goat-card-flash 1.2s ease-out;
}
@keyframes goat-card-flash {
  0%, 100% { box-shadow: none; }
  40% { box-shadow: 0 0 0 3px var(--lime), 0 0 28px rgba(199, 255, 77, 0.45); }
}
.goat-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: #1a2210;
  color: var(--lime);
  border: 2px solid var(--lime);
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 8px 28px rgba(0,0,0,0.45);
  max-width: calc(100vw - 32px);
  text-align: center;
}
.goat-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.bd-note, .bd-formula {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
  margin: 2px 0 4px;
}
.bd-formula { margin-top: 6px; }
.cta-assess {
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid var(--lime);
  background: linear-gradient(145deg, #1a2210, var(--card));
  color: var(--lime);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}
.cta-assess:active { transform: scale(0.98); }

/* ---- Beat the Guard ---- */
#guard-ui {
  position: absolute;
  inset: 0;
  z-index: 40; /* above #targets-layer — pads must receive taps */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 72px 12px calc(88px + var(--safe-bot));
  pointer-events: none;
}
#guard-ui.hidden { display: none; }
.guard-cue {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease-out;
}
.guard-cue[data-side="L"] { transform: translateX(-28%); }
.guard-cue[data-side="R"] { transform: translateX(28%); }
.guard-cue.miss .guard-cone { filter: grayscale(1); opacity: 0.5; }
.guard-cue.hit .guard-cone { transform: scale(1.35); }
.guard-cone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, filter 0.2s, opacity 0.2s;
}
.guard-cone .guard-arrow {
  margin-top: 4px;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--lime);
  text-shadow: 0 0 16px rgba(199, 255, 77, 0.55);
}
.guard-cone[data-dir="L"] .guard-arrow::before { content: "◀"; }
.guard-cone[data-dir="R"] .guard-arrow::before { content: "▶"; }
.guard-side-label {
  margin-top: 8px;
  font-size: 42px;
  font-weight: 900;
  letter-spacing: 4px;
  color: var(--lime);
  text-shadow: 0 0 24px rgba(199, 255, 77, 0.5);
}
.guard-pads {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  pointer-events: auto;
  position: relative;
  z-index: 41;
}
.guard-pad {
  height: 110px;
  border-radius: 18px;
  border: 3px solid var(--lime);
  background: rgba(199, 255, 77, 0.16);
  color: var(--text);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 1px;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  position: relative;
  z-index: 42;
}
.guard-pad.left { border-color: #00b4ff; background: rgba(0, 180, 255, 0.18); }
.guard-pad.right { border-color: #ff6b00; background: rgba(255, 107, 0, 0.18); }
.guard-pad:active { transform: scale(0.96); filter: brightness(1.2); }
.guard-pad.flash-ok {
  animation: pad-ok 0.28s ease-out;
}
.guard-pad.flash-miss {
  animation: pad-miss 0.35s ease-out;
}
@keyframes pad-ok {
  50% { background: rgba(199, 255, 77, 0.55); }
}
@keyframes pad-miss {
  50% { background: rgba(255, 60, 60, 0.45); border-color: #ff3c3c; }
}
.guard-hint {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

/* ---- Combo Call ---- */
#combo-ui {
  position: absolute;
  inset: 0;
  z-index: 40; /* same as guard — above targets-layer */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 72px 14px calc(88px + var(--safe-bot));
  pointer-events: none;
  background: transparent; /* must NOT cover #cam */
}
#combo-ui.hidden { display: none; }
.combo-callout {
  font-size: clamp(28px, 9vw, 48px);
  font-weight: 900;
  color: var(--lime);
  text-align: center;
  letter-spacing: 1px;
  text-shadow: 0 0 30px rgba(199, 255, 77, 0.5);
  line-height: 1.15;
  min-height: 1.2em;
}
.combo-step-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  min-height: 36px;
}
.combo-chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 2px solid rgba(166, 172, 174, 0.4);
  color: var(--muted);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1px;
}
.combo-chip.active {
  border-color: var(--lime);
  color: #111;
  background: var(--lime);
  box-shadow: 0 0 18px rgba(199, 255, 77, 0.45);
}
.combo-chip.done {
  border-color: #00e5a0;
  color: #00e5a0;
  opacity: 0.85;
}
.combo-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: min(360px, 92vw);
  pointer-events: auto;
}
.combo-move {
  height: 72px;
  border-radius: 16px;
  border: 3px solid var(--lime);
  background: rgba(199, 255, 77, 0.14);
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1px;
  touch-action: manipulation;
}
.combo-move:active { transform: scale(0.96); background: rgba(199, 255, 77, 0.35); }
.combo-move.flash-ok { animation: pad-ok 0.28s ease-out; }
.combo-move.flash-miss { animation: pad-miss 0.35s ease-out; }
.combo-done {
  pointer-events: auto;
  width: min(280px, 80vw);
  height: 64px;
  border-radius: 16px;
  border: 3px solid #00e5a0;
  background: rgba(0, 229, 160, 0.18);
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
  touch-action: manipulation;
}
.combo-done:active { transform: scale(0.96); background: rgba(0, 229, 160, 0.4); }
.combo-hint { font-size: 12px; color: var(--muted); text-align: center; }

/* ========== SHOOTING (Phase 2 scaffolding) ========== */
.honesty-banner {
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
  background: #1a1d20;
  border: 1px solid #2a2e32;
  border-left: 3px solid var(--lime);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
}
.shoot-body { padding: 0 4px 28px; }
.shoot-pick-label {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}
.attempt-picks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}
.attempt-pick {
  background: var(--card);
  border: 2px solid #2a2e32;
  color: var(--text);
  font-size: 22px;
  font-weight: 900;
  padding: 18px 8px;
  border-radius: 14px;
}
.attempt-pick:active, .attempt-pick.selected {
  border-color: var(--lime);
  background: linear-gradient(135deg, #1f2a12, var(--card));
  color: var(--lime);
}
.shoot-stats {
  text-align: center;
  margin: 8px 0 16px;
}
.shoot-pct {
  font-size: 64px;
  font-weight: 900;
  color: var(--lime);
  line-height: 1;
  letter-spacing: -1px;
}
.shoot-frac {
  font-size: 22px;
  font-weight: 800;
  margin-top: 4px;
}
.shoot-progress {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
}
.shoot-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}
.shoot-btn {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 1px;
  padding: 28px 12px;
  border-radius: 18px;
  border: 3px solid transparent;
  min-height: 96px;
}
.shoot-btn.make {
  background: var(--lime);
  color: #111;
  border-color: #9fd62e;
}
.shoot-btn.miss {
  background: #2a1212;
  color: #ff6b6b;
  border-color: #5a2020;
}
.shoot-btn:disabled { opacity: 0.35; }
.shoot-btn.flash-make { animation: shoot-flash-make 0.35s ease-out; }
.shoot-btn.flash-miss { animation: shoot-flash-miss 0.35s ease-out; }
@keyframes shoot-flash-make {
  0% { transform: scale(1.06); box-shadow: 0 0 24px rgba(199,255,77,0.55); }
  100% { transform: scale(1); box-shadow: none; }
}
@keyframes shoot-flash-miss {
  0% { transform: scale(1.06); box-shadow: 0 0 24px rgba(255,80,80,0.45); }
  100% { transform: scale(1); box-shadow: none; }
}
.form-checklist, .frame-check {
  background: var(--card);
  border: 1px solid #2a2e32;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.form-head, .frame-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 6px;
}
.form-note, .frame-label {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
  margin-bottom: 10px;
}
.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  padding: 8px 0;
  border-top: 1px solid #22262a;
}
.form-check input {
  width: 22px;
  height: 22px;
  accent-color: var(--lime);
}
.form-notes-label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 10px 0 6px;
  font-weight: 700;
}
.shoot-notes {
  width: 100%;
  background: #0e1012;
  border: 1px solid #2a2e32;
  border-radius: 10px;
  color: var(--text);
  padding: 10px;
  font-size: 14px;
  resize: vertical;
  min-height: 52px;
}
.frame-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.frame-status {
  font-size: 13px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  background: #2a2e32;
  color: var(--muted);
}
.frame-status[data-state="in"] {
  background: rgba(199,255,77,0.18);
  color: var(--lime);
}
.frame-status[data-state="out"] {
  background: rgba(255,80,80,0.15);
  color: #ff8a8a;
}
.frame-status[data-state="off"] {
  background: #2a2e32;
  color: var(--muted);
}
.big-btn.compact { padding: 10px 14px; font-size: 13px; min-height: 0; width: auto; }
.shoot-cam-wrap {
  position: relative;
  margin-top: 12px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 4 / 3;
  max-height: 220px;
}
.shoot-cam-wrap video, .shoot-cam-wrap canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shoot-cam-wrap canvas { pointer-events: none; }
.section-label .badge { vertical-align: middle; margin-left: 6px; }

/* ========== IQ / FILM (Phase 3 scaffolding) ========== */
.iq-hub-sub { margin-top: -4px; }
.film-body, .iq-body { padding: 0 4px 28px; }
.tag-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 14px;
}
.tag-pick {
  background: var(--card);
  border: 2px solid #2a2e32;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  padding: 12px 14px;
  border-radius: 999px;
  min-height: 44px;
  touch-action: manipulation;
}
.tag-pick.selected {
  border-color: var(--lime);
  background: linear-gradient(135deg, #1f2a12, var(--card));
  color: var(--lime);
}
.film-upload-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 10px 0 14px;
}
.film-file-name {
  font-size: 12px;
  color: var(--muted);
  word-break: break-all;
}
.iq-progress {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.iq-question {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
  margin: 8px 0 16px;
}
.iq-choices {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}
.iq-choice {
  text-align: left;
  background: var(--card);
  border: 2px solid #2a2e32;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  padding: 16px 14px;
  border-radius: 14px;
  min-height: 56px;
  touch-action: manipulation;
}
.iq-choice:active { transform: scale(0.98); }
.iq-choice.correct {
  border-color: var(--lime);
  background: rgba(199, 255, 77, 0.16);
  color: var(--lime);
}
.iq-choice.wrong {
  border-color: #5a2020;
  background: rgba(255, 80, 80, 0.12);
  color: #ff8a8a;
}
.iq-choice:disabled { opacity: 0.85; }
.iq-feedback {
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
  min-height: 1.4em;
  margin-bottom: 12px;
}
.iq-score-card {
  text-align: center;
  background: var(--card);
  border: 1px solid #2a2e32;
  border-radius: 16px;
  padding: 22px 16px;
  margin: 12px 0;
}
.iq-score-num {
  font-size: 56px;
  font-weight: 900;
  color: var(--lime);
  line-height: 1;
}
.iq-score-label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
}
.phase.scaffolding-p3 { border-color: rgba(199, 255, 77, 0.45); }

/* Slice 8 — how-to / hand mode / duration / round record */
.setup-panel {
  background: var(--card);
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid #2a2e32;
}
.setup-panel.hidden { display: none; }
.setup-panel-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.setup-tip {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
  margin: 8px 0 0;
}
.hand-mode-picks,
.duration-picks,
.diff-mode-picks,
.speedo-mode-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hand-pick,
.duration-pick,
.speedo-pick {
  flex: 1 1 auto;
  min-width: 0;
  background: var(--bg2);
  color: var(--text);
  border: 2px solid #333;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}
.hand-pick.active,
.duration-pick.active,
.speedo-pick.active {
  border-color: var(--lime);
  background: rgba(199, 255, 77, 0.14);
  color: var(--lime);
}
.speedo-pick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.speedo-pick .speedo-name {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.speedo-pick .speedo-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.25;
}
.speedo-pick.active .speedo-sub { color: rgba(199, 255, 77, 0.9); }
.speedo-pick[data-speedo="xo"].active {
  border-color: #ffe600;
  background: rgba(255, 230, 0, 0.14);
  color: #ffe600;
}
.speedo-pick[data-speedo="xo"].active .speedo-sub { color: rgba(255, 230, 0, 0.9); }
.speedo-pick[data-speedo="left"].active {
  border-color: #00b4ff;
  background: rgba(0, 180, 255, 0.14);
  color: #7dd7ff;
}
.speedo-pick[data-speedo="left"].active .speedo-sub { color: rgba(125, 215, 255, 0.95); }
.diff-pick {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: #0a0c0e;
  color: var(--text);
  border: 2px solid #2a2e32;
  border-radius: 14px;
  padding: 12px 8px 10px;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s, transform 0.15s;
}



.diff-pick .diff-name {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.diff-pick .diff-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.25;
}
.diff-pick.active {
  border-color: #C7FF4D;
  background: linear-gradient(180deg, rgba(199, 255, 77, 0.16), rgba(10, 12, 14, 0.95));
  color: var(--lime);
  box-shadow:
    0 0 0 1px #C7FF4D,
    0 0 22px rgba(199, 255, 77, 0.35),
    inset 0 0 18px rgba(199, 255, 77, 0.08);
  transform: translateY(-1px);
}
.diff-pick.active .gicon-diff {
  filter: drop-shadow(0 0 10px rgba(199, 255, 77, 0.55));
}
.diff-pick.active .diff-sub { color: rgba(199, 255, 77, 0.9); }
.diff-pick[data-diff="goat"].active {
  border-color: #ffe600;
  background: linear-gradient(180deg, rgba(255, 230, 0, 0.18), rgba(10, 12, 14, 0.95));
  color: #ffe600;
  box-shadow:
    0 0 0 1px #ffe600,
    0 0 26px rgba(255, 107, 0, 0.45),
    0 0 18px rgba(255, 230, 0, 0.35),
    inset 0 0 18px rgba(255, 230, 0, 0.1);
}
.diff-pick[data-diff="goat"].active .gicon-diff {
  filter: drop-shadow(0 0 12px rgba(255, 230, 0, 0.7));
}
.diff-pick[data-diff="goat"].active .diff-sub { color: rgba(255, 230, 0, 0.9); }
.diff-pick[data-diff="lamb"].active {
  border-color: #00b4ff;
  background: linear-gradient(180deg, rgba(0, 180, 255, 0.16), rgba(10, 12, 14, 0.95));
  color: #7dd7ff;
  box-shadow:
    0 0 0 1px #00b4ff,
    0 0 22px rgba(0, 180, 255, 0.35),
    inset 0 0 18px rgba(0, 180, 255, 0.08);
}
.diff-pick[data-diff="lamb"].active .gicon-diff {
  filter: drop-shadow(0 0 10px rgba(0, 180, 255, 0.55));
}
.diff-pick[data-diff="lamb"].active .diff-sub { color: rgba(125, 215, 255, 0.95); }
.hud-diff-badge {
  position: absolute;
  top: calc(108px + var(--safe-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 28;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.92);
  border: 2px solid #C7FF4D;
  color: var(--lime);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 0 18px rgba(199, 255, 77, 0.4), inset 0 0 12px rgba(199, 255, 77, 0.08);
  text-shadow: 0 0 10px rgba(199, 255, 77, 0.55);
}
.hud-diff-badge.hidden { display: none; }
.hud-diff-badge[data-diff="sheep"] {
  animation: diff-rank-glow 1.8s ease-in-out infinite;
}
.hud-diff-badge[data-diff="goat"] {
  border-color: #ffe600;
  color: #ffe600;
  box-shadow: 0 0 22px rgba(255, 107, 0, 0.55), 0 0 14px rgba(255, 230, 0, 0.4);
  text-shadow: 0 0 12px rgba(255, 230, 0, 0.7);
  animation: diff-rank-glow-goat 1.2s ease-in-out infinite;
}
.hud-diff-badge[data-diff="lamb"] {
  border-color: #00b4ff;
  color: #7dd7ff;
  box-shadow: 0 0 18px rgba(0, 180, 255, 0.4);
  text-shadow: 0 0 10px rgba(0, 180, 255, 0.55);
}

.mode-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--lime);
}
.mode-tag .gicon-xs { width: 14px; height: 14px; vertical-align: -2px; }
.hud-diff-badge .gicon-diff {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 0 6px rgba(199, 255, 77, 0.45));
}
.hud-diff-badge[data-diff="lamb"] .gicon-diff {
  filter: drop-shadow(0 0 6px rgba(0, 180, 255, 0.5));
}
.hud-diff-badge[data-diff="goat"] .gicon-diff {
  filter: drop-shadow(0 0 6px rgba(255, 230, 0, 0.55));
}
@keyframes diff-rank-glow {
  0%, 100% { box-shadow: 0 0 14px rgba(199, 255, 77, 0.35); }
  50% { box-shadow: 0 0 24px rgba(199, 255, 77, 0.55); }
}
@keyframes diff-rank-glow-goat {
  0%, 100% { box-shadow: 0 0 16px rgba(255, 107, 0, 0.45), 0 0 10px rgba(255, 230, 0, 0.35); }
  50% { box-shadow: 0 0 28px rgba(255, 107, 0, 0.7), 0 0 18px rgba(255, 230, 0, 0.55); }
}
.record-toggle .toggle-hint {
  display: block;
  font-style: normal;
  font-weight: 500;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.inround-cue {
  position: absolute;
  top: calc(72px + var(--safe-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 28;
  max-width: 92%;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(199, 255, 77, 0.45);
  color: var(--lime);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-align: center;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inround-cue:empty { display: none; }
.drill-cue {
  position: static;
  transform: none;
  left: auto;
  top: auto;
  display: block;
  margin: 8px 0;
  white-space: normal;
}
.drill-cue.hidden { display: none; }
.howTo-block {
  margin-top: 8px;
  padding-left: 16px;
  list-style: none;
  font-size: 14px;
  color: var(--muted);
}
.howTo-block strong { color: var(--text); }
.results-record {
  margin: 12px 0;
  padding: 12px;
  background: var(--bg2);
  border-radius: 14px;
  border: 1px solid #2a2e32;
  text-align: center;
}
.results-record.hidden { display: none; }
.results-record-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
}
.results-video {
  width: 100%;
  max-height: 220px;
  border-radius: 10px;
  background: #000;
  margin-bottom: 10px;
}
.results-record-actions {
  display: flex;
  gap: 8px;
}
.results-record-actions .big-btn,
.results-record-actions a.big-btn {
  flex: 1;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  padding: 12px;
  min-height: 48px;
}


/* Brand icon polish — Family Board + skill groups */
.board-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.board-section h3 .gicon,
.skill-group-title .gicon {
  width: 22px;
  height: 22px;
  grid-row: auto;
}
.board-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  margin: 10px 0 6px;
}
.skill-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ch-name {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ch-name .gicon { width: 28px; height: 28px; grid-row: auto; }
.score-row .name { display: flex; align-items: center; flex-wrap: wrap; }


/* Family Board discoverability + period rankings (v17) */
.family-board-home {
  margin: 12px 0 4px;
  width: 100%;
}
.family-board-hint {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin: 0 0 12px;
}
.board-top-hint {
  font-size: 12px;
  color: var(--muted);
  padding: 0 4px 8px;
  text-align: center;
}
.board-period-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0 0 6px;
  justify-content: center;
}
.board-period {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.12);
  background: var(--card);
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.board-period.active {
  background: rgba(199,255,77,0.16);
  border-color: var(--lime);
  color: var(--lime);
}
.board-period-hint {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin: 0 0 10px;
}
.board-group-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--lime);
  margin: 14px 0 6px;
}
.board-skill-head {
  margin: 10px 0 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.score-row.champ {
  box-shadow: inset 0 0 0 1px rgba(199,255,77,0.35);
}
.empty.compact {
  padding: 12px;
  font-size: 13px;
}


/* Manage ballers + Add (v18) */
.player-manage-row {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}
.manage-link {
  appearance: none;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 6px 10px;
  cursor: pointer;
}
.manage-link:active { color: var(--lime); }
.player-btn.player-add {
  border: 2px dashed rgba(199, 255, 77, 0.55);
  background: rgba(199, 255, 77, 0.08);
  color: var(--lime);
  font-size: 13px;
  letter-spacing: 0.3px;
}
.player-btn.player-add:active {
  background: rgba(199, 255, 77, 0.18);
  box-shadow: 0 0 16px rgba(199, 255, 77, 0.25);
}
.player-grid {
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
}

.manage-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.manage-sheet.hidden { display: none; }
.manage-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
}
.manage-panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: min(78vh, 560px);
  overflow: auto;
  background: var(--card);
  border: 1px solid rgba(199, 255, 77, 0.28);
  border-radius: 20px 20px 0 0;
  padding: 16px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
}
.manage-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.manage-panel-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  color: var(--lime);
}
.manage-close {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.12);
  background: #1a1e22;
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
}
.manage-sub {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 12px;
}
.manage-list { margin-bottom: 12px; }
.manage-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.manage-name {
  font-weight: 800;
  font-size: 15px;
}
.manage-actions { display: flex; gap: 6px; flex-shrink: 0; }
.manage-btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.14);
  background: #1a1e22;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  min-height: 44px;
}
.manage-btn[data-act="rename"] {
  border-color: rgba(199, 255, 77, 0.45);
  color: var(--lime);
}
.manage-btn.danger,
.manage-btn[data-act="remove"] {
  border-color: rgba(255, 80, 80, 0.35);
  color: #ff8f8f;
}
.manage-note {
  font-size: 11px;
  color: var(--muted);
  margin: 10px 0 0;
  line-height: 1.35;
}

/* Live Scoreboard on Home (v18) */
.live-scoreboard-card {
  width: 100%;
  text-align: left;
  background: linear-gradient(160deg, #161c14, var(--card));
  border: 1px solid rgba(199, 255, 77, 0.32);
  border-radius: 18px;
  padding: 12px 14px 10px;
  color: var(--text);
  margin: 0 0 14px;
  cursor: pointer;
}
.live-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.live-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.live-title {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--lime);
}
.live-period-bar {
  display: flex;
  gap: 6px;
}
.live-period {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.12);
  background: #1a1e22;
  color: var(--muted);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.live-period.active {
  background: rgba(199,255,77,0.16);
  border-color: var(--lime);
  color: var(--lime);
}
.live-hint {
  font-size: 11px;
  color: var(--muted);
  margin: 8px 0 6px;
}
.live-body { min-height: 48px; }
.live-body .score-row {
  margin: 0;
  padding: 8px 4px;
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.live-body .score-row:last-child { border-bottom: none; }
.live-full-link {
  appearance: none;
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 8px 4px 2px;
  background: transparent;
  border: none;
  color: var(--lime);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-align: right;
  cursor: pointer;
}


/* Ball Knowledge (v20) */
.knowledge-home {
  margin: 4px 0 4px;
  width: 100%;
  border-color: rgba(199, 255, 77, 0.45);
}
.knowledge-home-hint {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin: 0 0 12px;
}
/* Sticky chrome so category chips never flex-shrink away under tips/list */
#screen-knowledge.screen.active {
  display: flex;
  flex-direction: column;
  overflow: hidden; /* body scrolls; chrome stays */
}
.knowledge-chrome {
  flex: 0 0 auto;
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg);
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.knowledge-chrome .topbar { margin-bottom: 10px; }
.knowledge-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-top: 10px;
}
.knowledge-disclaimer {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  padding: 6px 8px 4px;
  line-height: 1.35;
}
.knowledge-cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: flex-start;
  gap: 8px;
  padding: 4px 2px 8px;
  margin: 0;
  flex-shrink: 0;
  min-height: 44px;
  max-width: 100%;
  overflow: visible;
}
.knowledge-cat {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  border: 2px solid rgba(255,255,255,0.22);
  background: #242a2e;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  line-height: 1;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.35);
}
.knowledge-cat .gicon,
.knowledge-cat .gicon-xs {
  width: 16px !important;
  height: 16px !important;
  display: inline-block !important;
  grid-row: auto !important;
  filter: none !important;
}
.knowledge-cat.active {
  background: var(--lime);
  border-color: var(--lime);
  color: #111;
  box-shadow: 0 0 16px rgba(199,255,77,0.45);
}
.knowledge-cat.active .gicon,
.knowledge-cat.active .gicon-xs {
  filter: none !important;
}
.knowledge-tips {
  background: linear-gradient(160deg, #161c14, var(--card));
  border: 1px solid rgba(199,255,77,0.22);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.knowledge-tips h3 {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--lime);
  display: flex;
  align-items: center;
  gap: 8px;
}
.knowledge-tips ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}
.knowledge-tips li { margin-bottom: 4px; }
.knowledge-list { display: flex; flex-direction: column; gap: 10px; padding-bottom: 28px; }
.knowledge-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 14px 14px 12px;
  text-align: left;
}
.knowledge-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.knowledge-card-title {
  font-size: 15px;
  font-weight: 900;
  color: var(--text);
  line-height: 1.25;
  margin: 0;
}
.knowledge-card-who {
  font-size: 12px;
  font-weight: 700;
  color: var(--lime);
  margin: 0 0 6px;
}
.knowledge-card-why {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
  margin: 0 0 12px;
}
.knowledge-watch {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 2px solid var(--lime);
  background: rgba(199,255,77,0.14);
  color: var(--lime);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
}
.knowledge-watch:active {
  background: rgba(199,255,77,0.28);
}
.knowledge-channel {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}


/* Sound unlock + mute (v24) */
.sound-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
}
.sound-toggle {
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid var(--lime);
  background: rgba(199,255,77,0.14);
  color: var(--lime);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.3px;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  min-height: 44px;
}
.sound-toggle.sound-off {
  border-color: rgba(255,255,255,0.25);
  background: var(--card);
  color: var(--muted);
}
.sound-toggle.sound-needs-unlock {
  animation: sound-pulse 1.2s ease-in-out infinite;
}
@keyframes sound-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(199,255,77,0.45); }
  50% { box-shadow: 0 0 0 8px rgba(199,255,77,0); }
}
.sound-test-btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.2);
  background: var(--card);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  min-height: 44px;
}
.sound-unlock-banner {
  appearance: none;
  display: block;
  width: 100%;
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 2px solid var(--lime);
  border-radius: 14px;
  background: rgba(199,255,77,0.12);
  color: var(--lime);
  font-weight: 800;
  font-size: 14px;
  text-align: center;
  cursor: pointer;
}
.sound-unlock-banner.hidden { display: none; }
.hud-sound {
  pointer-events: auto;
  margin-bottom: 6px;
  min-height: 36px;
  padding: 6px 10px;
  font-size: 16px;
}
.hud-right { pointer-events: auto; display: flex; flex-direction: column; align-items: flex-end; }
.cam-facing-label {
  text-align: center;
  font-size: 12px;
  color: var(--lime);
  font-weight: 700;
  margin: 0 0 6px;
}
.setup-sound-row { margin: 8px 0 4px; }


/* v26: mirrored front cam must never steal Light Slap taps */
#cam,
#preview,
#overlay,
#drill-cam,
#shoot-cam,
.drill-overlay {
  pointer-events: none !important;
}
#targets-layer {
  z-index: 30;
  /* Layer itself must NOT steal Beat the Guard / Combo taps.
     Only live .target orbs capture pointers (Light Slap). */
  pointer-events: none;
}
#targets-layer .target {
  pointer-events: auto;
}
#fx-layer {
  z-index: 25;
  pointer-events: none;
}
#game-stage[data-cam-mirror="1"] #cam.cam-mirror {
  transform: scaleX(-1);
}


/* ===== v27 Speedometer height control + Combo Call readability + beats ===== */
/* ===== v28 countdown clear + Lamb orb-scale stable + audible beat beds ===== */
.speedo-bands {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  pointer-events: none;
  margin-top: 4px;
}
.speedo-bands .band {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.45);
  color: var(--muted);
  border: 1px solid rgba(166,172,174,0.35);
}
.speedo-bands .band em {
  font-style: normal;
  font-weight: 900;
  color: #fff;
  margin-right: 4px;
}
.speedo-bands .band-clean { border-color: rgba(0,229,160,0.55); }
.speedo-bands .band-clean em { color: #00e5a0; }
.speedo-bands .band-high { border-color: rgba(255,107,0,0.55); }
.speedo-bands .band-high em { color: #ff6b00; }
.speedo-bands .band-low { border-color: rgba(0,180,255,0.55); }
.speedo-bands .band-low em { color: #00b4ff; }
.speedo-height-cue {
  pointer-events: none;
  font-size: clamp(28px, 8vw, 44px);
  font-weight: 900;
  letter-spacing: 2px;
  text-shadow: 0 0 24px rgba(0,0,0,0.8);
  min-height: 1.1em;
  margin-bottom: 4px;
}
.speedo-height-cue.cue-clean { color: #00e5a0; }
.speedo-height-cue.cue-high { color: #ff6b00; }
.speedo-height-cue.cue-low { color: #00b4ff; }

.combo-callout {
  font-size: clamp(26px, 8vw, 44px) !important;
  line-height: 1.25 !important;
  max-width: 96vw;
}
.combo-call-piece {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  vertical-align: middle;
  margin: 0 4px;
}
.combo-abbr {
  font-size: 1em;
  font-weight: 900;
  color: var(--lime);
}
.combo-full {
  font-size: 0.38em;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
  text-transform: lowercase;
  opacity: 0.92;
}
.combo-arrow {
  display: inline-block;
  margin: 0 6px;
  color: var(--muted);
  font-weight: 900;
  vertical-align: middle;
}
.combo-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: center;
  font-size: 13px;
  color: var(--muted);
  pointer-events: none;
  max-width: 92vw;
}
.combo-legend strong {
  color: var(--lime);
  margin-right: 4px;
  font-weight: 900;
}
.combo-chip {
  display: inline-flex !important;
  flex-direction: column;
  align-items: center;
  padding: 8px 14px !important;
  min-width: 72px;
}
.combo-chip strong { font-size: 15px; letter-spacing: 1px; }
.combo-chip em {
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  opacity: 0.85;
  text-transform: lowercase;
  margin-top: 2px;
}
.combo-move {
  height: auto !important;
  min-height: 88px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 16px !important;
}
.combo-move .cm-abbr {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--lime);
}
.combo-move .cm-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.3px;
  text-transform: lowercase;
  opacity: 0.9;
}
.combo-hint {
  font-size: 13px !important;
  line-height: 1.35;
  max-width: 92vw;
  padding: 0 8px;
}

/* Combo Call — camera primary; I DID THAT MOVE is clear between-move backup */
.combo-pad-fallback { opacity: 0.78; }
.combo-now {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 18px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.55);
  border: 2px solid var(--lime);
  pointer-events: none;
  min-width: min(280px, 86vw);
  box-shadow: 0 0 22px rgba(199, 255, 77, 0.35);
}
.combo-now:empty { display: none; }
.combo-now-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--muted);
}
.combo-now-move {
  font-size: clamp(28px, 9vw, 42px);
  font-weight: 900;
  color: var(--lime);
  letter-spacing: 2px;
  line-height: 1;
}
.combo-now-full {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-transform: lowercase;
}
.combo-feedback {
  pointer-events: none;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.15s ease, transform 0.15s ease;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1px;
  padding: 8px 16px;
  border-radius: 12px;
  background: rgba(0,0,0,0.7);
}
.combo-feedback.show { opacity: 1; transform: scale(1); }
.combo-feedback.ok { color: #00e5a0; border: 2px solid #00e5a0; }
.combo-feedback.bad { color: #ff6b6b; border: 2px solid #ff6b6b; }
.combo-feedback:empty { display: none; }
#btn-combo-done,
.combo-done {
  margin-top: 4px;
  width: min(320px, 90vw) !important;
  min-height: 72px !important;
  height: auto !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  letter-spacing: 0.5px;
  opacity: 1 !important;
  border: 3px solid #00e5a0 !important;
  background: rgba(0, 229, 160, 0.28) !important;
  color: #fff !important;
  box-shadow: 0 0 18px rgba(0, 229, 160, 0.35);
}
#btn-combo-done:active {
  transform: scale(0.97);
  background: rgba(0, 229, 160, 0.5) !important;
}


/* ===== v49 Combo Call — intentional hierarchy, less clutter ===== */
/* Hero = NOW cue; sequence chips stay; hide legend + shrink callout duplicate */
#game-stage[data-game="combocall"] #combo-ui .combo-legend {
  display: none !important;
}
#game-stage[data-game="combocall"] #combo-ui .combo-callout {
  font-size: clamp(14px, 3.6vw, 18px);
  font-weight: 800;
  letter-spacing: 0.5px;
  opacity: 0.85;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 12px;
  padding: 6px 10px;
  text-shadow: none;
  min-height: 0;
}
#game-stage[data-game="combocall"] #combo-ui .combo-step-row {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 12px;
  padding: 6px 8px;
}
#game-stage[data-game="combocall"] #combo-ui .combo-now {
  background: rgba(0, 0, 0, 0.62);
  border-width: 3px;
  box-shadow: 0 0 28px rgba(199, 255, 77, 0.45);
}
#game-stage[data-game="combocall"] #combo-ui .combo-hint {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  padding: 5px 10px;
  font-size: 12px !important;
  max-width: 88vw;
}
#game-stage[data-game="combocall"] #combo-ui .combo-pad-fallback {
  opacity: 0.55;
}
#game-stage[data-game="combocall"] #combo-ui .combo-move {
  min-height: 64px;
  opacity: 0.9;
}
#game-stage[data-game="combocall"] #combo-ui {
  gap: 8px;
  padding: 64px 12px calc(80px + var(--safe-bot));
  justify-content: flex-start;
}
#game-stage[data-game="combocall"] #combo-ui .combo-pad,
#game-stage[data-game="combocall"] #combo-ui #btn-combo-done {
  margin-top: auto;
}
#game-stage[data-game="combocall"] #combo-ui #btn-combo-done {
  min-height: 64px !important;
  font-size: 16px !important;
}
#game-stage[data-game="combocall"] #overlay,
#game-stage[data-game="speedometer"] #overlay,
#game-stage[data-game="lightslap"] #overlay,
#game-stage[data-game="beatguard"] #overlay,
#game-stage[data-game="mirrormatch"] #overlay,
#game-stage[data-game="freezepound"] #overlay,
#game-stage[data-game="rhythmbounce"] #overlay,
#game-stage[data-game="slapsurvive"] #overlay,
#game-stage[data-game="calloutladder"] #overlay {
  z-index: 22;
  opacity: 1;
}


/* ---- v44 new arcade UIs ---- */
.arcade-picks {
  flex-wrap: wrap;
}
#yardley-arcade-picks .arcade-pick,
#weekly-arcade-picks .arcade-pick {
  min-width: 4.6rem;
  flex: 1 1 22%;
}
#mirror-ui, #freeze-ui, #rhythm-ui, #survive-ui, #ladder-ui {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  gap: 12px;
  padding: 12px;
}
#mirror-ui.hidden, #freeze-ui.hidden, #rhythm-ui.hidden,
#survive-ui.hidden, #ladder-ui.hidden { display: none; }
.mirror-cue {
  font-size: clamp(42px, 14vw, 72px);
  font-weight: 900;
  color: #C7FF4D;
  text-shadow: 0 2px 18px rgba(0,0,0,0.65);
  letter-spacing: 0.04em;
}
.mirror-cue[data-side="L"] { color: #7ad7ff; }
.mirror-cue[data-side="R"] { color: #ffb86b; }
.mirror-cue.hit { color: #C7FF4D; transform: scale(1.08); }
.mirror-cue.miss { color: #ff5c7a; }
.mirror-pads {
  display: flex;
  gap: 14px;
  width: min(92%, 420px);
  pointer-events: auto;
}
.mirror-pad {
  flex: 1;
  min-height: 64px;
  border-radius: 16px;
  border: 2px solid rgba(199,255,77,0.55);
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
}
.mirror-hint, .freeze-hint, .rhythm-hint, .survive-hint {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  text-align: center;
  max-width: 92%;
  text-shadow: 0 1px 8px #000;
}
.freeze-cue {
  font-size: clamp(48px, 16vw, 84px);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.7);
}
.freeze-cue[data-phase="pound"] { color: #C7FF4D; }
.freeze-cue[data-phase="freeze"] { color: #7ad7ff; animation: freezePulse 0.55s ease-in-out infinite alternate; }
.freeze-cue[data-phase="hit"] { color: #C7FF4D; }
.freeze-cue[data-phase="miss"] { color: #ff5c7a; }
@keyframes freezePulse {
  from { transform: scale(1); opacity: 0.85; }
  to { transform: scale(1.06); opacity: 1; }
}
.rhythm-meter {
  width: min(78%, 280px);
  height: 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(199,255,77,0.45);
  position: relative;
  overflow: hidden;
  --beat: 0;
}
.rhythm-meter::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 22%;
  transform: translateX(-50%);
  background: rgba(199,255,77,0.35);
}
.rhythm-needle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  left: calc(var(--beat) * 100%);
  background: #C7FF4D;
  box-shadow: 0 0 10px #C7FF4D;
  transform: translateX(-50%);
}
.rhythm-meter.pulse { box-shadow: 0 0 0 4px rgba(199,255,77,0.35); }
.rhythm-meter.hit { border-color: #C7FF4D; background: rgba(199,255,77,0.25); }
.survive-lives {
  font-size: 28px;
  letter-spacing: 4px;
  color: #ff5c7a;
  text-shadow: 0 2px 10px #000;
  pointer-events: none;
}
.ladder-rung {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 45;
  font-weight: 900;
  font-size: 18px;
  color: #C7FF4D;
  background: rgba(0,0,0,0.55);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(199,255,77,0.4);
  pointer-events: none;
}
#game-stage[data-game="calloutladder"] #combo-ui { opacity: 1; }
#game-stage[data-game="calloutladder"] #ladder-ui { display: flex; }
#game-stage[data-game="slapsurvive"] #survive-ui { pointer-events: none; }


/* v46 — quick camera calibration checklist */
.calib-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.calib-checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  padding: 6px 8px;
  border-radius: 10px;
  background: var(--bg2);
  border: 1px solid #2a2e32;
}
.calib-checklist li[data-state="ok"] {
  color: var(--lime);
  border-color: rgba(199, 255, 77, 0.45);
}
.calib-checklist li[data-state="bad"] {
  color: #ff8a8a;
  border-color: rgba(255, 100, 100, 0.35);
}
.calib-checklist li[data-state="wait"] { color: var(--muted); }
.calib-mark {
  width: 1.1em;
  text-align: center;
  font-weight: 900;
}
.calib-opt {
  font-weight: 600;
  font-style: normal;
  opacity: 0.7;
  font-size: 12px;
}
.calib-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}


/* v47 — developer diagnostics + driveway test workflow */
.diag-toggle .toggle-hint { font-style: normal; opacity: 0.75; font-size: 12px; font-weight: 600; }
.diag-panel {
  position: fixed;
  z-index: 80;
  left: 8px;
  right: 8px;
  bottom: 8px;
  max-height: 42vh;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(10, 12, 14, 0.94);
  border: 1px solid rgba(199, 255, 77, 0.35);
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  color: #e8ffe0;
  font-size: 12px;
}
.diag-panel.hidden { display: none; }
.diag-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.diag-ver { margin-left: auto; color: var(--lime); font-weight: 800; font-size: 11px; }
.diag-snap {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: #c7ff4d;
  background: #15181b;
  border-radius: 8px;
  padding: 6px 8px;
  border: 1px solid #2a2e32;
}
.diag-events {
  flex: 1;
  overflow: auto;
  min-height: 72px;
  max-height: 22vh;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  line-height: 1.35;
  background: #0c0e10;
  border-radius: 8px;
  padding: 6px 8px;
  border: 1px solid #222;
}
.diag-events .de-row { color: #b8c2b0; border-bottom: 1px solid #1a1d20; padding: 2px 0; }
.diag-events .de-row[data-type="dribble"] { color: #c7ff4d; }
.diag-events .de-row[data-type="raised_hand"] { color: #7ec8ff; }
.diag-events .de-row[data-type="hand_side"] { color: #ffd27e; }
.diag-events .de-row[data-type="target_entry"] { color: #ff9ad5; }
.diag-events .de-row[data-type="active_dribble_hand"] { color: #b5ff9a; }
.diag-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.diag-note { margin: 0; opacity: 0.7; font-size: 11px; }
.driveway-panel { max-height: 86vh; overflow: auto; }
.driveway-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.driveway-list > li {
  background: var(--bg2);
  border: 1px solid #2a2e32;
  border-radius: 12px;
  padding: 10px;
}
.dt-title { font-weight: 800; margin-bottom: 6px; color: var(--lime); }
.dt-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.dt-fields label, .dt-notes {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}
.dt-notes { margin-top: 6px; }
.dt-fields input, .dt-notes input {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #333;
  background: #0e1012;
  color: #fff;
  padding: 6px 8px;
  font-size: 14px;
}
@media (max-width: 420px) {
  .dt-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ========== v48 PLAYER CARD (mock-matched · charcoal + #C7FF4D neon) ========== */
.pc-teaser {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  background: linear-gradient(145deg, #141814, #0c0e0c 60%, #151a10);
  border: 2px solid var(--lime);
  border-radius: 18px;
  padding: 12px 14px;
  color: var(--text);
  margin-bottom: 12px;
  box-shadow: 0 0 24px rgba(199, 255, 77, 0.18), inset 0 0 40px rgba(199, 255, 77, 0.04);
}
.pc-teaser:disabled { opacity: 0.55; border-color: #333; box-shadow: none; }
.pc-teaser-left { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.pc-teaser-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: #0a0c0a; border: 2px solid var(--lime);
  display: grid; place-items: center; font-size: 26px;
  box-shadow: 0 0 16px rgba(199, 255, 77, 0.35);
  flex-shrink: 0;
}
.pc-teaser-kicker {
  font-size: 10px; letter-spacing: 1.6px; font-weight: 800; color: var(--muted);
}
.pc-teaser-name {
  font-weight: 900; font-size: 16px; color: #fff; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.pc-teaser-level { font-size: 11px; color: var(--lime); margin-top: 2px; font-weight: 700; }
.pc-teaser-xp {
  margin-top: 6px; height: 6px; border-radius: 999px; background: #222;
  overflow: hidden; max-width: 160px;
}
.pc-teaser-xp-fill {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, #8fbf20, var(--lime));
  box-shadow: 0 0 8px rgba(199, 255, 77, 0.6);
}
.pc-teaser-ovr {
  flex-shrink: 0;
  min-width: 64px; padding: 10px 8px;
  border: 2px solid var(--lime); border-radius: 12px;
  text-align: center; font-weight: 900; font-size: 12px; letter-spacing: 0.5px;
  color: var(--lime); background: #0a0c0a;
  box-shadow: 0 0 14px rgba(199, 255, 77, 0.25);
}

#screen-playercard {
  background: radial-gradient(ellipse at 50% 0%, #1a2210 0%, #0b0c0b 45%, #070807 100%);
  min-height: 100%;
  padding-bottom: 40px;
}
.pc-page { max-width: 720px; margin: 0 auto; padding: 10px 14px 28px; }
.pc-topbar {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
  margin-bottom: 14px;
}
.pc-wordmark { font-weight: 900; font-size: 22px; letter-spacing: 1px; }
.pc-wordmark .pc-goat { color: #fff; }
.pc-wordmark .pc-lab { color: var(--lime); text-shadow: 0 0 12px rgba(199, 255, 77, 0.5); }
.pc-tag {
  font-size: 9px; letter-spacing: 2px; font-weight: 800; color: var(--muted); margin-top: 2px;
}
.pc-pillars {
  display: none; flex-direction: column; align-items: flex-end; gap: 2px;
  font-size: 9px; letter-spacing: 1.5px; color: #8a8f88; font-weight: 600;
}
@media (min-width: 420px) { .pc-pillars { display: flex; } }
.pc-back {
  background: transparent; border: 1px solid #333; color: var(--lime);
  width: 40px; height: 40px; border-radius: 10px; font-size: 18px; font-weight: 800;
}

.pc-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  position: relative;
  background: linear-gradient(160deg, rgba(20, 28, 14, 0.95), rgba(10, 12, 10, 0.92));
  border: 1px solid rgba(199, 255, 77, 0.35);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 0 40px rgba(199, 255, 77, 0.12);
}
@media (min-width: 520px) {
  .pc-hero { grid-template-columns: 140px 1fr auto; align-items: center; }
}
.pc-hero-visual { text-align: center; position: relative; }
.pc-crown-aura {
  position: absolute; left: 50%; top: 8%; transform: translateX(-50%);
  width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle, rgba(199,255,77,0.45) 0%, rgba(199,255,77,0.08) 55%, transparent 70%);
  filter: blur(2px); pointer-events: none; z-index: 0;
}
.pc-avatar-ring {
  position: relative; z-index: 1;
  width: 96px; height: 96px; margin: 8px auto 6px;
  border-radius: 50%;
  border: 3px solid var(--lime);
  background: #0a0c0a;
  display: grid; place-items: center;
  box-shadow: 0 0 28px rgba(199, 255, 77, 0.45), inset 0 0 20px rgba(199, 255, 77, 0.08);
}
.pc-avatar-glyph { font-size: 44px; line-height: 1; }
.pc-avatar-pick { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 8px; }
.pc-av-opt {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid #333; background: #121412; font-size: 18px; padding: 0;
}
.pc-av-opt.selected {
  border-color: var(--lime); box-shadow: 0 0 10px rgba(199, 255, 77, 0.5);
}
.pc-avatar-hint { font-size: 10px; color: var(--muted); margin-top: 6px; }

.pc-athlete-kicker {
  font-size: 11px; letter-spacing: 2px; color: #9aa094; font-weight: 700;
}
.pc-name {
  margin: 2px 0 4px; font-size: 28px; font-weight: 900; color: #fff;
  letter-spacing: 0.5px; text-transform: uppercase;
}
.pc-archetype-script {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic; font-weight: 700; font-size: 18px;
  color: var(--lime); text-shadow: 0 0 14px rgba(199, 255, 77, 0.45);
  margin-bottom: 8px;
}
.pc-level-line {
  font-size: 12px; font-weight: 800; letter-spacing: 1px; color: #dfe6d4;
}
.pc-xp-wrap { margin-top: 8px; max-width: 280px; }
.pc-xp-bar {
  height: 10px; border-radius: 999px; background: #1c1f1a; overflow: hidden;
  border: 1px solid #2a2f24;
}
.pc-xp-fill {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, #6f9a14, var(--lime));
  box-shadow: 0 0 12px rgba(199, 255, 77, 0.7);
}
.pc-xp-line { font-size: 11px; color: var(--muted); margin-top: 4px; font-weight: 700; }
.pc-edit-row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.pc-field {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 10px; color: var(--muted); font-weight: 700; letter-spacing: 0.5px;
}
.pc-field input {
  background: #101210; border: 1px solid #333; border-radius: 8px;
  color: #fff; padding: 8px 10px; font-size: 14px; font-weight: 700; min-width: 0;
  width: 120px;
}
#pc-jersey-input { width: 56px; }

.pc-ovr-badge {
  justify-self: end; align-self: start;
  min-width: 96px; padding: 12px 10px 10px;
  border: 2px solid var(--lime); border-radius: 14px;
  background: #0a0c0a; text-align: center;
  box-shadow: 0 0 22px rgba(199, 255, 77, 0.3);
}
.pc-ovr-num {
  font-size: 42px; font-weight: 900; color: var(--lime); line-height: 1;
  text-shadow: 0 0 18px rgba(199, 255, 77, 0.45);
  font-variant-numeric: tabular-nums;
}
.pc-ovr-label {
  font-size: 11px; font-weight: 900; letter-spacing: 1px; color: #fff; margin-top: 2px;
}
.pc-ovr-sub { font-size: 9px; color: var(--muted); margin-top: 4px; line-height: 1.3; }
.pc-ovr-disclaimer {
  font-size: 10px; color: var(--muted); line-height: 1.4; margin: 8px 2px 14px;
}

.pc-hex-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin-bottom: 16px;
}
.pc-hex {
  background: linear-gradient(160deg, #151815, #0d0f0d);
  border: 1px solid rgba(199, 255, 77, 0.28);
  border-radius: 14px; padding: 10px 6px; text-align: center;
  clip-path: polygon(8% 0, 92% 0, 100% 18%, 100% 82%, 92% 100%, 8% 100%, 0 82%, 0 18%);
}
.pc-hex-icon { font-size: 16px; }
.pc-hex-val {
  font-weight: 900; font-size: 16px; color: var(--lime); margin-top: 2px;
  word-break: break-word;
}
.pc-hex-val.pc-hex-team { font-size: 10px; line-height: 1.2; color: #fff; }
.pc-hex-lab { font-size: 9px; color: var(--muted); margin-top: 2px; font-weight: 700; }

.pc-section {
  background: linear-gradient(160deg, rgba(18, 22, 14, 0.95), rgba(10, 12, 10, 0.95));
  border: 1px solid rgba(199, 255, 77, 0.22);
  border-radius: 16px; padding: 14px; margin-bottom: 12px;
}
.pc-section-title {
  margin: 0; font-size: 13px; letter-spacing: 1.5px; font-weight: 900; color: #fff;
}
.pc-section-sub { font-size: 11px; color: var(--muted); margin: 4px 0 12px; }
.pc-attrs-grid {
  display: grid; grid-template-columns: 1fr; gap: 10px;
}
@media (min-width: 480px) {
  .pc-attrs-grid { grid-template-columns: 1fr 1fr; }
}
.pc-attr-top {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12px; font-weight: 700; color: #e8ecdf;
}
.pc-attr-unrated { color: var(--muted); font-size: 14px; }
.pc-attr-bar {
  margin-top: 4px; height: 8px; border-radius: 999px; background: #1a1d18; overflow: hidden;
}
.pc-attr-fill {
  display: block; height: 100%;
  background: linear-gradient(90deg, #6f9a14, var(--lime));
  box-shadow: 0 0 8px rgba(199, 255, 77, 0.5);
}
.pc-attr-fill.unassessed {
  background: repeating-linear-gradient(90deg, #2a2e26 0 4px, #1a1d18 4px 8px);
  box-shadow: none; opacity: 0.55;
}
.pc-attr-status { font-size: 10px; color: var(--muted); margin-top: 3px; font-weight: 700; }

.pc-two-col { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 560px) { .pc-two-col { grid-template-columns: 1fr 1fr; } }

.pc-arch-crown { font-size: 22px; }
.pc-arch-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.pc-arch-blurb { font-size: 13px; color: #cfd6c2; line-height: 1.4; font-style: italic; margin: 0 0 10px; }
.pc-arch-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-arch-opt {
  border: 1px solid #333; background: #121412; color: #ddd;
  border-radius: 999px; padding: 6px 10px; font-size: 11px; font-weight: 700;
}
.pc-arch-opt.selected {
  border-color: var(--lime); color: var(--lime);
  box-shadow: 0 0 10px rgba(199, 255, 77, 0.35);
}
.pc-arch-note { font-size: 10px; color: var(--muted); margin: 10px 0 0; }

.pc-progress-placeholder { margin-top: 8px; }
.pc-chart-stub {
  height: 90px; display: flex; align-items: flex-end; gap: 8px; padding: 8px 4px;
  border-bottom: 1px solid #2a2e26;
}
.pc-chart-stub span {
  flex: 1; border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, rgba(199,255,77,0.7), rgba(199,255,77,0.15));
  box-shadow: 0 0 8px rgba(199, 255, 77, 0.25);
}
.pc-chart-stub span:nth-child(1) { height: 28%; }
.pc-chart-stub span:nth-child(2) { height: 40%; }
.pc-chart-stub span:nth-child(3) { height: 48%; }
.pc-chart-stub span:nth-child(4) { height: 62%; }
.pc-chart-stub span:nth-child(5) { height: 78%; opacity: 0.45; }
.pc-progress-note { font-size: 11px; color: var(--muted); margin-top: 8px; line-height: 1.35; }
.pc-prs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.pc-pr {
  background: #101210; border-radius: 10px; padding: 8px 6px; text-align: center;
  border: 1px solid #222;
}
.pc-pr span { display: block; font-size: 9px; color: var(--muted); font-weight: 700; }
.pc-pr strong { display: block; margin-top: 2px; color: var(--lime); font-size: 16px; }

.pc-achievements-row {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 10px;
}
@media (min-width: 480px) {
  .pc-achievements-row { grid-template-columns: repeat(5, 1fr); }
}
.pc-badge {
  background: #101210; border: 1px solid #2a2e26; border-radius: 12px;
  padding: 10px 6px; text-align: center; opacity: 0.55;
}
.pc-badge.done {
  opacity: 1; border-color: rgba(199, 255, 77, 0.45);
  box-shadow: 0 0 12px rgba(199, 255, 77, 0.2);
}
.pc-badge-icon { font-size: 22px; }
.pc-badge-title { font-size: 10px; font-weight: 800; color: #fff; margin-top: 4px; line-height: 1.2; }
.pc-badge-mark {
  font-size: 9px; font-weight: 900; letter-spacing: 0.5px; margin-top: 4px; color: var(--muted);
}
.pc-badge.done .pc-badge-mark { color: var(--lime); }
.pc-foot-hint {
  text-align: center; font-size: 10px; color: #666; margin-top: 8px;
}


