/* ===================== SKILLSHOT (ss-) — all surfaces =====================
   Wall selectors scoped under .screen-body, phone under .play-body, admin
   under #dash. Tokens only — gold/orange appear exclusively inside gradients
   (grad-num text clips, warm canvas glows); everything flat is off-white. */

/* ============================== PHONE (375x812) =========================== */
.play-body .ss-hud { display: flex; gap: 8px; margin-bottom: 10px; }
.play-body .ss-stat {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 6px 4px 7px;
  text-align: center;
  min-width: 0;
}
.play-body .ss-stat-label {
  display: block;
  font-family: var(--font-narrow);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 1px;
}
.play-body .ss-stat-value { font-family: var(--font-display); font-weight: 900; font-size: 19px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.play-body .ss-stat-value.grad {
  background: var(--grad-num);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.play-body .ss-stat-value.ss-urgent { color: var(--danger); }
.play-body .ss-stat-value.ss-hot { animation: ssHot 0.6s cubic-bezier(.2,.8,.3,1); }
@keyframes ssHot { 0% { transform: scale(1); } 45% { transform: scale(1.22); } 100% { transform: scale(1); } }

.play-body .ss-arena {
  flex: 1;
  position: relative;
  min-height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(var(--tint-orange), 0.07), transparent 55%),
    radial-gradient(100% 60% at 50% 108%, rgba(var(--tint-gold), 0.08), transparent 60%),
    var(--bg-2);
}
.play-body .ss-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}
.play-body .ss-hint {
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
  margin-top: 10px;
  transition: opacity 0.6s ease;
}
.play-body .ss-hint.ss-hint-dim { opacity: 0.35; }

/* Personal recap card. */
.play-body .ss-recap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
}
.play-body .ss-recap-icon { font-size: 56px; }
.play-body .ss-recap-title { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: 34px; }
.play-body .ss-recap-points {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 54px;
  line-height: 1;
  background: var(--grad-num);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* 5 stat cells (shots / hits / accuracy / bullseyes / best combo) — 3-up grid. */
.play-body .ss-recap-rows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; max-width: 330px; margin-top: 4px; }
.play-body .ss-recap-cell {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
}
.play-body .ss-recap-num { font-family: var(--font-display); font-weight: 900; font-size: 24px; }

/* ============================== ADMIN ===================================== */
/* Phone range shares the cards' surfaces and the selected Arena/EWC palette. */
body.phone-styled[data-phone-game='skillshot'] .ss-hud { gap:8px; margin-bottom:12px; }
body.phone-styled[data-phone-game='skillshot'] .ss-stat { padding:10px 4px 12px; background:var(--bg-2); box-shadow:inset 0 1px 0 var(--line-soft); }
body.phone-styled[data-phone-game='skillshot'] .ss-stat:nth-child(2) { background:var(--surface); }
body.phone-styled[data-phone-game='skillshot'] .ss-stat-value { font-size:25px; }
body.phone-styled[data-phone-game='skillshot'] .ss-stat-value.grad { font-size:29px; }
body.phone-styled[data-phone-game='skillshot'] .ss-range-v2 { isolation:isolate; border-color:var(--line); background:var(--bg-2); box-shadow:none; }
.ss-range-v2::before { content:''; position:absolute; inset:0; background:linear-gradient(145deg,var(--surface),var(--bg-2) 65%); pointer-events:none; }
.ss-range-v2::after { content:''; position:absolute; inset:0; background:radial-gradient(ellipse at 50% 105%,rgba(var(--tint-gold),.12),transparent 65%); pointer-events:none; }
.ss-range-v2 .ss-canvas { z-index:1; }
.ss-feedback { position:absolute; z-index:2; left:16px; right:16px; bottom:30%; display:flex; flex-direction:column; align-items:center; gap:4px; text-align:center; pointer-events:none; opacity:0; transform:translateY(8px); }
.ss-feedback.is-visible { animation:ssVerdictIn .18s ease-out both; }
.ss-feedback span { font:800 22px/1.15 var(--font-narrow); color:var(--text); text-transform:uppercase; text-shadow:0 2px 8px var(--bg-2); overflow-wrap:anywhere; }
.ss-feedback strong { font:900 38px/1 var(--font-display); background:var(--grad-num); background-clip:text; -webkit-background-clip:text; color:transparent; filter:drop-shadow(0 2px 6px var(--bg-2)); }
.ss-charge-label { position:absolute; z-index:2; top:16px; left:18px; right:58px; color:var(--text-dim); font:600 12px/1.3 var(--font-body); pointer-events:none; text-shadow:0 2px 6px var(--bg-2); }
.ss-aiming .ss-charge-label { color:var(--text); }
.ss-sound { position:absolute; top:10px; right:10px; z-index:3; display:grid; place-items:center; width:40px; height:40px; padding:10px; color:var(--text-dim); background:var(--bg-2); border:1px solid var(--line); border-radius:10px; cursor:pointer; }
.ss-sound[aria-pressed='true'] { color:var(--text); border-color:var(--text-dim); }
.ss-sound svg { width:100%; height:100%; }
body.phone-styled[data-phone-game='skillshot'] .ss-frenzy-chip { z-index:2; top:56px; font-size:22px; letter-spacing:.02em; }
body.phone-styled[data-phone-game='skillshot'] .ss-hint { font-size:13px; margin-top:10px; }
body.phone-styled[data-phone-game='skillshot'] .ss-hint.ss-hint-dim { opacity:.65; }
body.phone-styled[data-phone-game='skillshot'] .ss-recharge { opacity:.85; }
body.phone-styled[data-phone-game='skillshot'] .ss-recap-icon { width:72px; height:72px; color:var(--text); }
body.phone-styled[data-phone-game='skillshot'] .ss-recap-icon svg { display:block; width:100%; height:100%; }
@keyframes ssVerdictIn { to { opacity:1; transform:translateY(0); } }
@media(prefers-reduced-motion:reduce) { .ss-feedback.is-visible { opacity:1; transform:none; } }
#dash .ss-live .live-stat-row b { font-variant-numeric: tabular-nums; }

/* ===================== PHONE — Frenzy finale ============================== */
.play-body .ss-frenzy-chip {
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 19px;
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
  display: none;
  pointer-events: none;
}
.play-body .ss-frenzy-chip.on { display: block; animation: ssChipPulse 0.9s ease-in-out infinite; }
@keyframes ssChipPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
/* One-shot flash of the play area at frenzy start (class re-added by JS). */
.play-body .ss-arena.ss-frenzy-flash { animation: ssArenaFlash 0.5s ease-out; }
@keyframes ssArenaFlash { 0% { filter: brightness(1); } 25% { filter: brightness(1.7); } 100% { filter: brightness(1); } }
.play-body .ss-arena.ss-frenzy { border-color: rgba(247, 247, 247, 0.35); }

/* ===================== PHONE — shot-cooldown recharge ===================== */
/* Track sits quiet when ready; brightens while recharging. The fill's width
   transition is timed by JS to the round's exact cooldown (grad-warm = the
   energy gradient — meters only, per brand). */
.play-body .ss-recharge {
  height: 4px;
  border-radius: 999px;
  margin-top: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  opacity: 0.45;
  transition: opacity 0.25s ease;
}
.play-body .ss-recharge.ss-cooling { opacity: 1; }
.play-body .ss-recharge-fill {
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: var(--grad-warm);
}

/* The empty-state line is the only instruction on the wall — the one thing
   telling fans what to do — and the decorative target above it rendered
   2.3x taller. */
/* Skillshot-only operator mechanics; shared desk layout lives in admin-ui.css. */
#tab-skillshot .ss-rings { display:flex; flex-wrap:wrap; gap:10px; margin-top:20px; }
#tab-skillshot .ss-rings > span { display:flex; align-items:center; gap:12px; padding:10px 14px; border:1px solid var(--line); border-radius:6px; background:var(--bg); color:var(--text-dim); font-size:12px; }
#tab-skillshot .ss-rings b { color:var(--text); font-variant-numeric:tabular-nums; }
#tab-skillshot .ss-basic-settings { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:center; gap:18px; margin-top:20px; }
#tab-skillshot .ss-toggle { display:flex; align-items:center; gap:10px; line-height:1.5; }
#tab-skillshot .ss-round-detail { display:flex; flex-direction:column; gap:18px; padding-top:20px; }
#tab-skillshot .ss-round-detail p { margin:0; font-size:12px; line-height:1.6; }
#tab-skillshot .ss-frenzy { color:var(--text-dim); }
#tab-skillshot .ss-frenzy strong { color:var(--text); }
#tab-skillshot .ss-shooter-progress small { grid-column:2 / -1; color:var(--text-faint); font-size:10px; }
#tab-skillshot .ss-shooter-progress li[hidden] { display:none; }
#tab-skillshot .ss-shooter-progress strong { font-size:11px; }
@media(max-width:560px) { #tab-skillshot .ss-basic-settings { grid-template-columns:minmax(0,1fr); } }
#tab-skillshot [data-ss-time-fill] { animation-name:ssOperatorRoundProgress; animation-timing-function:linear; animation-fill-mode:both; }
@keyframes ssOperatorRoundProgress { from { width:0; } to { width:100%; } }
/* Arena/EWC audience board. All sizes belong to the 1920x1080 broadcast well. */
.tb-shell .sb-round{display:grid;grid-template-rows:100px minmax(0,1fr);gap:26px}
.tb-shell .sb-head{display:flex;align-items:center;justify-content:space-between;gap:30px}
.tb-shell .sb-title{display:flex;align-items:center;min-width:0;flex:1;height:100px;font:700 80px/1.15 var(--tb-font);overflow-wrap:anywhere}
.tb-shell .sb-clock{display:grid;place-items:center;width:190px;height:100px;flex:none;font:700 96px/1 var(--tb-font);font-variant-numeric:tabular-nums}
.tb-shell .sb-clock svg{width:80px;height:80px;fill:currentColor}
.tb-shell .sb-body{display:grid;grid-template-columns:480px minmax(0,1fr);gap:48px;min-height:0}
.tb-shell .sb-rail{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:32px;min-height:0}
.tb-shell .sb-target{position:relative;width:250px;height:250px;border:16px solid var(--tb-blue);border-radius:50%;display:grid;place-items:center;box-shadow:0 0 0 24px var(--tb-base)}
.tb-shell .sb-target i{position:absolute;width:68%;height:68%;border:12px solid var(--tb-blue);border-radius:50%}
.tb-shell .sb-target i:nth-child(2){width:30%;height:30%;background:var(--tb-blue)}
.tb-shell .sb-target i:nth-child(3){width:300px;height:8px;border:0;border-radius:0;background:var(--tb-blue)}
.tb-shell .sb-hits{width:100%;display:flex;align-items:center;flex-direction:column;gap:16px}
.tb-shell .sb-hits-number{display:flex;justify-content:center;align-items:center;width:100%;height:170px;font:700 140px/1 var(--tb-font);font-variant-numeric:tabular-nums}
.tb-shell .sb-label{display:flex;align-items:center;justify-content:center;text-align:center;width:100%;height:70px;font:600 46px/1.2 var(--tb-font);overflow-wrap:anywhere}
.tb-shell .sb-frenzy{height:92px;display:flex;align-items:center;justify-content:center;width:100%;font:800 62px/1 var(--tb-font);border:3px solid var(--tb-blue);background:var(--tb-base)}
.tb-shell .sb-board{display:grid;grid-template-rows:repeat(8,minmax(0,1fr));gap:12px;min-height:0;position:relative}
.tb-shell .sb-row{display:grid;grid-template-columns:54px minmax(0,1fr) 220px 100px;align-items:center;gap:18px;padding:10px 24px 14px;min-height:0;position:relative;background:var(--tb-surface);border:1px solid var(--tb-border);border-radius:14px;overflow:hidden}
.tb-shell .sb-rank{font:700 38px/1 var(--tb-font);color:var(--tb-muted)}
.tb-shell .sb-name,.tb-shell .sb-points{display:flex;align-items:center;min-width:0;height:100%;font:600 46px/1.15 var(--tb-font);overflow-wrap:anywhere;unicode-bidi:plaintext}
.tb-shell .sb-points{justify-content:flex-end;font-weight:700;font-variant-numeric:tabular-nums}
.tb-shell .sb-combo{text-align:right;font:700 38px/1 var(--tb-font);color:var(--tb-blue)}
.tb-shell .sb-bar{position:absolute;height:8px;bottom:0;left:0;right:0;background:var(--tb-border)}
.tb-shell .sb-bar>span{display:block;height:100%;width:100%;background:var(--tb-blue);transform:scaleX(var(--sb-share,0));transform-origin:left;transition:transform .35s}
.tb-shell .sb-row.is-first{background:var(--tb-correct-top);border-color:var(--tb-blue)}
.tb-shell .sb-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:60px;text-align:center;font:700 64px/1.2 var(--tb-font);overflow-wrap:anywhere;background:var(--tb-base);border-radius:24px}
.tb-shell .sb-winner{width:100%;display:flex;flex-direction:column;gap:20px;padding:24px;background:var(--tb-surface)}
.tb-shell .sb-winner-name{height:120px;display:flex;align-items:center;justify-content:center;text-align:center;font:700 62px/1.1 var(--tb-font);overflow-wrap:anywhere;unicode-bidi:plaintext}
.tb-shell .sb-winner-detail{display:flex;align-items:center;text-align:center;height:120px;font:600 40px/1.25 var(--tb-font);overflow-wrap:anywhere}
.tb-shell .sb-round[data-phase='done'] .sb-target{display:none}
.tb-shell .sb-round.is-frenzy .sb-target{animation:sb-frenzy 1s ease-in-out infinite alternate}
.tb-shell[data-mainboard-layout='ewc26'] :is(.sb-title,.sb-hits-number,.sb-clock){font-family:var(--tb-display);font-weight:900}
.tb-shell[data-mainboard-layout='ewc26'] .sb-row{border-radius:0;background:var(--tb-white);color:var(--tb-bg)}
.tb-shell[data-mainboard-layout='ewc26'] .sb-row :is(.sb-rank,.sb-combo){color:var(--tb-bg)}
.tb-shell[data-mainboard-layout='ewc26'] .sb-row.is-first{box-shadow:inset 0 0 0 4px var(--tb-blue)}
.tb-shell.is-arabic :is(.sb-title,.sb-hits-number,.sb-clock){font-family:var(--tb-font)}
@keyframes sb-frenzy{to{transform:scale(1.06)}}
@media(prefers-reduced-motion:reduce){.tb-shell .sb-target{animation:none!important}.tb-shell .sb-bar>span{transition:none}}
#dash #tab-skillshot :is(.ss-title-row,.ss-header-actions){display:flex;align-items:center;gap:12px;flex-wrap:wrap}
#dash #tab-skillshot .ss-title-row{margin-top:7px}#dash #tab-skillshot .ss-title-row h1{margin:0}
#dash #tab-skillshot .ss-header-actions{justify-content:flex-end}#dash #ssPrimary{min-width:108px}
#dash #tab-skillshot .lfs-close{width:36px;height:36px;min-width:36px;padding:0}
@media(max-width:850px){#dash #tab-skillshot .ss-header-actions{justify-content:flex-start}}
.tb-shell .sb-winner-detail{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;height:160px}
.tb-shell .sb-winner-stat{display:grid;grid-template-rows:80px 64px;gap:16px;min-width:0}
.tb-shell .sb-winner-stat strong{font:700 64px/1 var(--tb-font);text-align:center;font-variant-numeric:tabular-nums}
.tb-shell .sb-winner-stat span{display:flex;justify-content:center;align-items:center;font:600 40px/1.2 var(--tb-font);overflow-wrap:anywhere}

.tb-shell[data-mainboard-layout='ewc26'] .sb-row.is-first{background:var(--tb-bg);color:var(--tb-white);border-color:var(--tb-white)}
.tb-shell[data-mainboard-layout='ewc26'] .sb-row.is-first :is(.sb-rank,.sb-combo){color:var(--tb-white)}
.tb-shell .sb-bar{height:12px}
