:root {
  --ink: #111;
  --paper: #fff8e7;
  --pop: #ffd400;
  --boom: #ff3b1f;
  --you: #e31837;
  --you-ink: #fff;
  --opp: #00338d;
  --opp-ink: #fff;
  --turf: #2f8f3a;
  --turf-2: #2a8034;
  --shadow: 4px 4px 0 var(--ink);
  --dots: radial-gradient(circle, rgba(0,0,0,.16) 1.1px, transparent 1.6px);
  --dots-light: radial-gradient(circle, rgba(255,255,255,.18) 1.1px, transparent 1.6px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--pop) var(--dots) 0 0 / 7px 7px;
  color: var(--ink);
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 500;
  overscroll-behavior: none;
}
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
.bang { font-family: 'Bangers', 'Impact', sans-serif; letter-spacing: .04em; font-weight: 400; }

.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  padding: 10px 16px calc(16px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.loading { margin: auto; font-family: 'Bangers', sans-serif; font-size: 32px; }

/* ---------- top bar ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.logo {
  font-family: 'Bangers', sans-serif; font-size: 28px; line-height: 1; letter-spacing: .03em;
  color: var(--boom); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill;
  text-shadow: 2px 2px 0 var(--ink); text-decoration: none; transform: rotate(-2deg);
}
.chip {
  border: 2.5px solid var(--ink); background: #fff; border-radius: 999px; padding: 4px 10px;
  font-weight: 900; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; text-decoration: none;
  box-shadow: 2px 2px 0 var(--ink); white-space: nowrap;
}
.chip.dark { background: var(--ink); color: var(--pop); }
.toplinks { display: flex; gap: 6px; }

/* ---------- panels & buttons ---------- */
.panel {
  background: var(--paper); border: 3px solid var(--ink); border-radius: 6px; box-shadow: var(--shadow);
  padding: 14px; position: relative;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 3px solid var(--ink); border-radius: 6px; background: #fff; box-shadow: var(--shadow);
  padding: 12px 16px; font-weight: 900; text-transform: uppercase; letter-spacing: .03em; text-decoration: none;
  transition: transform .06s, box-shadow .06s;
}
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn.primary { background: var(--boom); color: #fff; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.muted { opacity: .7; font-size: 13px; }

/* ---------- intro ---------- */
.matchup {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch;
  border: 3px solid var(--ink); border-radius: 6px; box-shadow: var(--shadow); overflow: hidden; min-height: 150px;
}
.side {
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 14px 6px; text-align: center;
  background-image: var(--dots-light); background-size: 6px 6px;
}
.side .abbr { font-family: 'Bangers', sans-serif; font-size: 64px; line-height: .9; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 3px 3px 0 var(--ink); }
.side .city { font-weight: 900; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; margin-top: 4px; }
.side .tag { font-size: 11px; font-weight: 700; opacity: .85; margin-top: 2px; }
.vs {
  background: var(--ink); color: var(--pop); display: flex; align-items: center; justify-content: center;
  font-family: 'Bangers', sans-serif; font-size: 26px; padding: 0 8px; writing-mode: vertical-rl;
}
.bubble {
  background: #fff; border: 3px solid var(--ink); border-radius: 18px; padding: 12px 14px; position: relative;
  font-weight: 700; font-size: 15px; box-shadow: var(--shadow);
}
.bubble::after {
  content: ''; position: absolute; left: 28px; top: -16px; border: 8px solid transparent; border-bottom: 10px solid var(--ink);
}
.pickside { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pickside .btn { flex-direction: column; padding: 14px 8px; gap: 2px; }
.pickside .btn small { font-weight: 700; font-size: 11px; text-transform: none; letter-spacing: 0; }
.rules { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.45; }
.rules li + li { margin-top: 4px; }
h2.bang { margin: 0; font-size: 26px; }

/* ---------- scoreboard ---------- */
.scoreboard {
  display: grid; grid-template-columns: 1fr auto 1fr; border: 3px solid var(--ink); border-radius: 6px;
  box-shadow: var(--shadow); overflow: hidden; background: var(--ink);
}
.sb-team { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px; background-image: var(--dots-light); background-size: 6px 6px; }
.sb-team .abbr { font-family: 'Bangers', sans-serif; font-size: 30px; line-height: 1; }
.sb-team .who { font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; opacity: .9; }
.sb-team .pts { font-family: 'Bangers', sans-serif; font-size: 40px; line-height: 1; }
.sb-team.opp { flex-direction: row-reverse; }
.sb-team.opp .meta { text-align: right; }
.sb-mid { color: var(--pop); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 10px; }
.sb-mid .ot { font-family: 'Bangers', sans-serif; font-size: 24px; line-height: 1; }
.sb-mid .ph { font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: #fff; }

/* ---------- field ---------- */
.field {
  position: relative; aspect-ratio: 440 / 120; border: 3px solid var(--ink); border-radius: 6px; overflow: hidden; box-shadow: var(--shadow);
  background:
    var(--dots) 0 0 / 6px 6px,
    repeating-linear-gradient(90deg, var(--turf) 0 11.3636%, var(--turf-2) 11.3636% 22.7272%);
}
.field .yl { position: absolute; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,.75); transform: translateX(-1px); }
.field .yl.goal { width: 4px; background: #fff; transform: translateX(-2px); }
.field .num { position: absolute; bottom: 4px; transform: translateX(-50%); color: #fff; font-family: 'Bangers', sans-serif; font-size: 18px; text-shadow: 1px 1px 0 var(--ink); }
.field .ez {
  position: absolute; top: 0; bottom: 0; right: 0; width: 9.0909%; display: flex; align-items: center; justify-content: center;
  border-left: 3px solid var(--ink); background-image: var(--dots-light); background-size: 5px 5px;
}
.field .ez span { writing-mode: vertical-rl; font-family: 'Bangers', sans-serif; font-size: 20px; letter-spacing: .1em; }
.field .los { position: absolute; top: 0; bottom: 0; width: 3px; background: #2f7bff; transform: translateX(-1.5px); transition: left .55s cubic-bezier(.3,1.4,.5,1); box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.field .ball {
  position: absolute; top: 50%; width: 30px; height: 19px; margin: -9.5px 0 0 -15px; border-radius: 50%;
  background: #8a4b1f; border: 2.5px solid var(--ink); transition: left .55s cubic-bezier(.3,1.4,.5,1);
  box-shadow: 2px 2px 0 var(--ink);
}
.field .ball::after { content: ''; position: absolute; left: 7px; right: 7px; top: 6px; height: 2px; background: #fff; box-shadow: 0 0 0 0 #fff; }
.field .ball.gone { opacity: 0; }

/* ---------- situation ---------- */
.situation { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dd { font-family: 'Bangers', sans-serif; font-size: 30px; line-height: 1; }
.dd small { display: block; font-family: 'Archivo', sans-serif; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.tdmeter { min-width: 112px; text-align: center; background: var(--ink); color: #fff; border-radius: 6px; padding: 5px 8px; border: 3px solid var(--ink); box-shadow: 3px 3px 0 rgba(0,0,0,.25); }
.tdmeter .lbl { font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--pop); }
.tdmeter .val { font-family: 'Bangers', sans-serif; font-size: 30px; line-height: 1; }
.tdmeter .bar { height: 5px; background: #333; border-radius: 3px; overflow: hidden; margin-top: 3px; }
.tdmeter .bar i { display: block; height: 100%; background: var(--pop); transition: width .4s; }

/* ---------- last play ---------- */
.lastplay { min-height: 76px; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 10px 12px; }
.lastplay .calls { font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; opacity: .75; }
.lastplay .txt { font-weight: 900; font-size: 17px; line-height: 1.2; }
.lastplay.flash { animation: flash .35s; }
@keyframes flash { from { background: var(--pop); } to { background: var(--paper); } }
.tracker { display: flex; gap: 4px; font-size: 18px; min-height: 24px; align-items: center; flex-wrap: wrap; }
.tracker .lbl { font-size: 10px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; margin-right: 4px; }
.need { font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; background: var(--ink); color: var(--pop); padding: 6px 10px; border-radius: 4px; text-align: center; }

/* ---------- play calls ---------- */
.calls-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: auto; }
.call {
  border: 3px solid var(--ink); border-radius: 6px; box-shadow: var(--shadow); background: #fff; text-align: left;
  padding: 10px 11px; min-height: 62px; display: flex; flex-direction: column; justify-content: center;
  transition: transform .06s, box-shadow .06s;
}
.call:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.call b { font-family: 'Bangers', sans-serif; font-weight: 400; font-size: 22px; letter-spacing: .04em; line-height: 1; }
.call span { font-size: 11px; font-weight: 700; opacity: .75; margin-top: 2px; }
.call.off { background: var(--you); color: var(--you-ink); background-image: var(--dots-light); background-size: 6px 6px; }
.call.def { background: var(--paper); }
.call.wide { grid-column: span 2; }
.call:disabled { opacity: .35; cursor: not-allowed; }
.calls-grid.busy .call { pointer-events: none; }

/* ---------- overlays ---------- */
.overlay { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.overlay[hidden] { display: none; }
.overlay .scrim { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.sheet {
  position: relative; width: 100%; max-width: 480px; background: var(--paper); border: 3px solid var(--ink); border-bottom: 0;
  border-radius: 14px 14px 0 0; padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); animation: up .18s ease-out;
}
@keyframes up { from { transform: translateY(40%); opacity: 0; } }
.sheet h3 { margin: 0 0 10px; font-family: 'Bangers', sans-serif; font-weight: 400; font-size: 26px; }
.targets { display: grid; gap: 8px; }
.target {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 10px; text-align: left;
  border: 3px solid var(--ink); border-radius: 6px; box-shadow: 3px 3px 0 var(--ink); background: #fff; padding: 10px 12px;
}
.target:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.target .nm { font-weight: 900; font-size: 17px; }
.target .pos { font-size: 12px; font-weight: 700; opacity: .75; }
.target .wt { grid-row: span 2; font-family: 'Bangers', sans-serif; font-size: 30px; }
.spec { display: inline-block; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; background: var(--ink); color: var(--pop); padding: 2px 6px; border-radius: 3px; margin-left: 4px; }
.sheet .cancel { margin-top: 10px; }

.impact { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; align-self: center; pointer-events: none; }
.impact .burst { position: absolute; width: min(118vw, 560px); height: min(118vw, 560px); animation: pop .42s cubic-bezier(.2,1.6,.4,1) both, spin 6s linear infinite; }
.impact .word {
  position: relative; font-family: 'Bangers', sans-serif; font-size: clamp(54px, 17vw, 92px); line-height: .95; text-align: center;
  color: var(--pop); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 5px 5px 0 var(--ink);
  transform: rotate(-6deg); animation: pop .42s .06s cubic-bezier(.2,1.6,.4,1) both; padding: 0 16px;
}
.impact .sub {
  position: absolute; bottom: 18%; left: 16px; right: 16px; text-align: center; background: #fff; border: 3px solid var(--ink);
  border-radius: 6px; padding: 10px 12px; font-weight: 900; font-size: 17px; box-shadow: var(--shadow); animation: pop .3s .2s both;
  max-width: 440px; margin: 0 auto;
}
@keyframes pop { from { transform: scale(.2) rotate(-14deg); opacity: 0; } }
@keyframes spin { to { rotate: 360deg; } }

.card-center { position: relative; align-self: center; width: calc(100% - 32px); max-width: 440px; text-align: center; animation: pop .3s cubic-bezier(.2,1.5,.4,1) both; }
.card-center .big { font-family: 'Bangers', sans-serif; font-size: 44px; line-height: 1; margin: 2px 0 8px; }
.card-center p { margin: 6px 0 14px; font-weight: 700; }

.shake { animation: shake .45s; }
@keyframes shake {
  10%, 90% { transform: translate(-2px, 1px); }
  20%, 80% { transform: translate(5px, -2px); }
  30%, 50%, 70% { transform: translate(-8px, 3px); }
  40%, 60% { transform: translate(8px, -3px); }
}

/* ---------- final ---------- */
.final-hero { text-align: center; padding: 18px 14px; overflow: hidden; }
.final-hero .big { font-family: 'Bangers', sans-serif; font-size: 72px; line-height: .9; color: var(--pop); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 4px 4px 0 var(--ink); transform: rotate(-4deg); }
.final-hero .score { font-family: 'Bangers', sans-serif; font-size: 36px; margin-top: 10px; }
.final-hero .ot { font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.share-pre { white-space: pre-wrap; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; line-height: 1.5; margin: 0; background: #fff; border: 2px dashed var(--ink); padding: 10px; border-radius: 4px; }
.stat { font-weight: 900; font-size: 18px; text-align: center; }
.stat .bang { font-size: 44px; display: block; line-height: 1; color: var(--boom); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; }
.countdown { font-family: 'Bangers', sans-serif; font-size: 34px; text-align: center; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
.recap { font-size: 14px; margin: 0; padding-left: 18px; line-height: 1.45; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--pop); padding: 10px 16px; border-radius: 6px; font-weight: 900; z-index: 99; }

/* ---------- archive ---------- */
.arch-list { display: grid; gap: 10px; }
.arch-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.arch-item .d { font-weight: 900; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.arch-item .m { font-family: 'Bangers', sans-serif; font-size: 26px; line-height: 1; }
.arch-item .r { font-size: 12px; font-weight: 700; }

@media (min-height: 760px) { .call { min-height: 68px; } }
@media (prefers-reduced-motion: reduce) {
  .shake { animation: none; }
  .impact .burst { animation: pop .2s both; }
  .field .ball, .field .los { transition: none; }
}

/* ---------- v2: account, bosses, locker ---------- */
.chip.icon { padding: 3px 8px; font-size: 15px; line-height: 1.2; }
button.chip { cursor: pointer; }
.kicker { display: flex; margin-top: -2px; }
.boss {
  border: 3px solid var(--ink); border-radius: 6px; box-shadow: var(--shadow); text-align: center; padding: 14px 12px 16px;
  background-image: var(--dots-light); background-size: 6px 6px; position: relative; overflow: hidden;
}
.boss .crown { display: inline-block; background: var(--ink); color: var(--pop); font-weight: 900; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.boss .abbr { font-family: 'Bangers', sans-serif; font-size: 72px; line-height: .95; margin-top: 8px; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 4px 4px 0 var(--ink); }
.boss .label { font-weight: 900; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; }
.boss .line { font-weight: 700; font-size: 14px; margin-top: 8px; }
.signin-cta p { margin: 0 0 10px; font-weight: 700; }
.or { text-align: center; font-weight: 900; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; margin: 12px 0; opacity: .6; }
.acct-form { display: grid; gap: 8px; }
.acct-form input { font: inherit; font-weight: 700; padding: 12px; border: 3px solid var(--ink); border-radius: 6px; background: #fff; width: 100%; }
.acct-form input:focus { outline: 3px solid var(--boom); outline-offset: 1px; }
.err { min-height: 18px; font-weight: 700; font-size: 13px; color: #b3001b; }
.locker { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.trophy {
  border: 3px solid var(--ink); border-radius: 6px; box-shadow: var(--shadow); padding: 12px 10px; text-align: center; min-height: 150px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background-image: var(--dots-light); background-size: 6px 6px;
}
.trophy .abbr { font-family: 'Bangers', sans-serif; font-size: 44px; line-height: 1; -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; text-shadow: 3px 3px 0 var(--ink); }
.trophy .label { font-weight: 900; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.trophy .via { font-size: 11px; font-weight: 700; opacity: .9; }
.trophy.sil { background-color: #2a2a2a; color: #bbb; background-image: var(--dots-light); }
.trophy.sil .abbr { color: #111; -webkit-text-stroke: 0; text-shadow: 0 0 6px rgba(255,255,255,.12); filter: blur(1.5px); }
.trophy.sil .label { color: var(--pop); }

/* ---------- v3: animated field stage, reads, rating colors ---------- */
.app { gap: 8px; }
.stage {
  position: relative; height: clamp(210px, 36dvh, 340px); border: 3px solid var(--ink); border-radius: 6px;
  overflow: hidden; box-shadow: var(--shadow); background: var(--turf); touch-action: manipulation; flex-shrink: 0;
}
.fsvg { display: block; width: 100%; height: 100%; }
.fsvg .tok.has-w { cursor: pointer; }
.fsvg .ez-txt { font-family: 'Bangers', sans-serif; letter-spacing: .3px; opacity: .9; }
.fsvg .yd-num { font-family: 'Bangers', sans-serif; fill: #fff; opacity: .9; }
.fsvg .goal-tag { font-family: 'Archivo', sans-serif; font-weight: 900; fill: #fff; opacity: .8; letter-spacing: .1px; }
.fsvg .tag-txt { font-family: 'Archivo', sans-serif; font-weight: 900; fill: #111; }
.fsvg .pow-txt { font-family: 'Bangers', sans-serif; fill: #111; }
.fsvg .pow-in { transform-box: fill-box; transform-origin: center; animation: powpop .55s cubic-bezier(.2,1.7,.4,1) both; }
@keyframes powpop { 0% { transform: scale(.1) rotate(-20deg); opacity: 0; } 25% { opacity: 1; } 80% { transform: scale(1) rotate(-6deg); opacity: 1; } 100% { transform: scale(1.05) rotate(-6deg); opacity: 0; } }
.readbar {
  position: absolute; left: 6px; right: 6px; top: 6px; background: rgba(17,17,17,.88); color: #fff; border-radius: 4px;
  padding: 5px 8px; font-size: 12px; font-weight: 700; line-height: 1.25; transition: opacity .15s; pointer-events: none;
}
.readbar b { color: var(--pop); text-transform: uppercase; font-size: 10px; letter-spacing: .06em; margin-right: 4px; }
.readbar:empty { display: none; }
.legend {
  position: absolute; left: 6px; bottom: 6px; display: flex; gap: 6px; align-items: center; background: rgba(255,255,255,.9);
  border: 2px solid var(--ink); border-radius: 4px; padding: 2px 6px; font-size: 10px; font-weight: 900; pointer-events: none;
}
.legend span { display: inline-flex; align-items: center; gap: 3px; }
.legend i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--ink); display: inline-block; }
.skiphint {
  position: absolute; right: 6px; bottom: 6px; background: var(--ink); color: var(--pop); font-size: 10px; font-weight: 900;
  text-transform: uppercase; letter-spacing: .06em; padding: 3px 7px; border-radius: 3px; opacity: 0; transition: opacity .15s; pointer-events: none;
}
.stage.playing .skiphint { opacity: 1; }
.stage.playing .readbar, .stage.held .readbar { opacity: 0; }
.stage.playing .legend { opacity: .5; }
.lastplay { min-height: 0; padding: 8px 10px; gap: 2px; }
.lastplay .txt { font-size: 15px; min-height: 18px; }
.lastplay .tracker { font-size: 14px; min-height: 0; margin-top: 2px; }
.call { min-height: 52px; padding: 7px 10px; }
.call b { font-size: 20px; }
@media (min-height: 800px) { .call { min-height: 58px; } }
.situation .dd { font-size: 26px; }
.tdmeter .val { font-size: 26px; }
.target-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: stretch; }
.target .wt { border: 2.5px solid var(--ink); border-radius: 6px; padding: 0 6px; min-width: 46px; text-align: center; color: #111; }
.info {
  width: 44px; border: 3px solid var(--ink); border-radius: 6px; background: #fff; box-shadow: 3px 3px 0 var(--ink);
  font-family: Georgia, serif; font-style: italic; font-weight: 700; font-size: 22px;
}
.popcard { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.35); padding: 16px; }
.popcard .pc-in {
  width: 100%; max-width: 320px; background: var(--paper); border: 3px solid var(--ink); border-radius: 8px; box-shadow: 6px 6px 0 var(--ink);
  padding: 14px; animation: pop .25s cubic-bezier(.2,1.5,.4,1) both;
}
.pc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pc-nm { font-family: 'Bangers', sans-serif; font-size: 28px; line-height: 1; }
.pc-pos { font-weight: 900; font-size: 12px; letter-spacing: .06em; opacity: .7; }
.pc-badge { font-family: 'Bangers', sans-serif; font-size: 30px; border: 3px solid var(--ink); border-radius: 50%; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; color: #111; }
.pc-stars { color: #ffb400; font-size: 20px; letter-spacing: 2px; margin: 6px 0; -webkit-text-stroke: .6px var(--ink); }
.pc-stars span { color: #ddd; }
.popcard p { margin: 8px 0 6px; font-weight: 700; }
.overlay.red .scrim { background: rgba(150,0,0,.62); }
.overlay.red .impact .word { color: #fff; }
@media (max-height: 720px) {
  .stage { height: clamp(170px, 29dvh, 240px); }
  .situation .dd { font-size: 22px; }
  .tdmeter { padding: 3px 6px; min-width: 96px; }
  .tdmeter .val { font-size: 22px; }
  .need { padding: 4px 8px; font-size: 11px; }
  .call { min-height: 46px; padding: 5px 9px; }
  .call b { font-size: 18px; }
  .call span { font-size: 10px; }
  .kicker { display: none; }
}

/* ---------- v4: seven offensive calls: runs / passes / play action + kick, one row each ---------- */
.calls-grid.off7 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.calls-grid.off7 .call { grid-column: span 3; min-width: 0; }
.calls-grid.off7 .call.third { grid-column: span 2; padding: 7px 7px; }
.calls-grid.off7 .call.third b { font-size: clamp(14px, 4.3vw, 17px); letter-spacing: .02em; white-space: nowrap; }
.calls-grid.off7 .call.third span { font-size: 10px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 360px) {
  .calls-grid.off7 .call.third b { font-size: 15px; }
  .calls-grid.off7 .call.third span { display: none; }
}

/* ---------- v5: arcade downs, Tale of the Tape ---------- */
.dd.dod { color: #d7141a; }
.dd.dod small b { background: var(--ink); color: var(--pop); padding: 0 4px; font-weight: 900; }

.overlay.tape-on { align-items: stretch; }
.tape { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--ink); overflow: hidden; cursor: pointer; user-select: none; }
.tt-head { flex: none; text-align: center; color: var(--pop); font-size: clamp(26px, 8vw, 38px); line-height: 1; padding: 10px 0 6px; letter-spacing: .06em;
  -webkit-text-stroke: 1.5px #000; paint-order: stroke fill; text-shadow: 3px 3px 0 #d7141a; }
.tt-side { position: relative; flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: 14px max(12px, calc((100% - 520px) / 2)) 22px; background-image: var(--dots-light); background-size: 7px 7px; }
.tt-side.top { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 26px)); padding-bottom: 34px; }
.tt-side.bot { clip-path: polygon(0 26px, 100% 0, 100% 100%, 0 100%); margin-top: -26px; padding-top: 38px; }
.tt-team { display: flex; align-items: baseline; gap: 8px; }
.tt-side.bot .tt-team { flex-direction: row-reverse; text-align: right; }
.tt-abbr { font-family: 'Bangers', sans-serif; font-size: clamp(40px, 13vw, 58px); line-height: .9; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 3px 3px 0 var(--ink); }
.tt-city { font-weight: 900; text-transform: uppercase; font-size: 13px; line-height: 1.1; letter-spacing: .04em; }
.tt-city small { display: block; font-size: 10px; opacity: .8; letter-spacing: .12em; }
.tt-glabel { font-family: 'Bangers', sans-serif; font-size: 15px; letter-spacing: .1em; margin-bottom: 2px; }
.tt-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tt-card { background: #fff var(--dots) 0 0 / 5px 5px; color: var(--ink); border: 3px solid var(--ink); border-radius: 8px; box-shadow: 3px 3px 0 var(--ink); overflow: hidden; display: flex; flex-direction: column; }
.tt-art { background: var(--tc) var(--dots-light) 0 0 / 5px 5px; border-bottom: 3px solid var(--ink); display: flex; justify-content: center; padding-top: 4px; }
.tt-fig { width: 72%; max-width: 86px; height: auto; display: block; }
.tt-name { font-family: 'Bangers', sans-serif; font-size: clamp(16px, 5vw, 21px); line-height: 1; padding: 4px 5px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .03em; }
.tt-name small { display: block; font-family: 'Archivo', sans-serif; font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-meta { display: flex; justify-content: space-between; align-items: center; gap: 2px; padding: 2px 5px 0; }
.tt-pos { font-size: 10px; font-weight: 900; background: var(--ink); color: #fff; border-radius: 3px; padding: 0 4px; line-height: 15px; white-space: nowrap; }
.tt-stars { font-size: 10px; color: #f0a800; letter-spacing: -.5px; -webkit-text-stroke: .4px #111; white-space: nowrap; }
.tt-stars i { font-style: normal; color: #ddd; -webkit-text-stroke: 0; }
.tt-spec { margin: 4px 5px 5px; align-self: flex-start; font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; background: var(--pop); border: 1.5px solid var(--ink); border-radius: 3px; padding: 0 4px; line-height: 14px; }
.tt-side.two .tt-fig { width: 52%; }
.tt-side.two .tt-spec { display: none; }
.tt-vs { position: absolute; left: 50%; top: 50%; width: 110px; height: 110px; transform: translate(-50%, -50%) rotate(-8deg); z-index: 2; pointer-events: none; }
.tt-vs .burst { position: absolute; inset: 0; width: 100%; height: 100%; }
.tt-vs span { position: absolute; inset: 0; display: grid; place-items: center; font-family: 'Bangers', sans-serif; font-size: 52px; color: #d7141a; -webkit-text-stroke: 2px #111; paint-order: stroke fill; text-shadow: 3px 3px 0 #111; }
.tt-go { position: relative; flex: none; border: 0; border-top: 3px solid #000; background: var(--pop); color: var(--ink); font-size: 24px; letter-spacing: .06em; padding: 8px 0 calc(8px + env(safe-area-inset-bottom)); overflow: hidden; cursor: pointer; }
.tt-go i { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: #d7141a; transform-origin: left; animation: tt-bar linear forwards; }
@keyframes tt-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.tape:not(.still) .tt-side.top { animation: tt-in-l .38s cubic-bezier(.2,.9,.3,1.2) both; }
.tape:not(.still) .tt-side.bot { animation: tt-in-r .38s cubic-bezier(.2,.9,.3,1.2) .08s both; }
.tape:not(.still) .tt-vs { animation: tt-slam .42s cubic-bezier(.3,1.6,.5,1) .42s both; }
.tape:not(.still) .tt-card { animation: tt-pop .3s cubic-bezier(.3,1.6,.5,1) both; }
.tape:not(.still) .tt-side.top .tt-card:nth-child(1) { animation-delay: .55s; } .tape:not(.still) .tt-side.top .tt-card:nth-child(2) { animation-delay: .62s; } .tape:not(.still) .tt-side.top .tt-card:nth-child(3) { animation-delay: .69s; }
.tape:not(.still) .tt-side.bot .tt-card:nth-child(1) { animation-delay: .76s; } .tape:not(.still) .tt-side.bot .tt-card:nth-child(2) { animation-delay: .83s; } .tape:not(.still) .tt-side.bot .tt-card:nth-child(3) { animation-delay: .9s; }
.tape:not(.still) .tt-head { animation: tt-pop .3s ease-out both; }
@keyframes tt-in-l { from { transform: translateX(-105%); } }
@keyframes tt-in-r { from { transform: translateX(105%); } }
@keyframes tt-slam { 0% { transform: translate(-50%, -50%) rotate(-30deg) scale(4); opacity: 0; } 60% { opacity: 1; } 100% { transform: translate(-50%, -50%) rotate(-8deg) scale(1); } }
@keyframes tt-pop { from { transform: scale(.4); opacity: 0; } }
.tape.still .tt-go i { display: none; }
@media (max-height: 620px) { .tt-fig { width: 50%; } .tt-spec { display: none; } .tt-head { padding: 6px 0 2px; } }

/* ---------- v6: chalkboard play diagrams, defensive stars on the tape ---------- */
.call.chalked { position: relative; flex-direction: row; align-items: center; gap: 6px; }
.call.chalked > .ct { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; font-size: inherit; opacity: 1; margin: 0; }
.call.chalked > .ct > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.call .chalk { flex: none; height: 40px; width: 48px; display: block; border-radius: 4px; filter: drop-shadow(1.5px 1.5px 0 rgba(0,0,0,.55)); }
.calls-grid.off7 .call.third.chalked { display: block; padding-right: 7px; }
.calls-grid.off7 .call.third.chalked > .ct { display: block; }
.calls-grid.off7 .call.third.chalked > .ct > span { display: block; max-width: calc(100% - 33px); }
.calls-grid.off7 .call.third .chalk { position: absolute; right: 4px; bottom: 4px; height: 25px; width: 30px; }
@media (max-height: 720px) { .call .chalk { height: 34px; width: 41px; } .calls-grid.off7 .call.third .chalk { height: 22px; width: 26px; } }
@media (max-width: 360px) { .calls-grid.off7 .call.third .chalk { height: 20px; width: 24px; } }
.call:disabled .chalk { opacity: .6; }

.tt-desc { font-size: 8.5px; font-weight: 700; line-height: 1.15; padding: 0 5px 5px; opacity: .85; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tt-side.two { gap: 2px; padding-top: 8px; padding-bottom: 28px; }
.tt-side.two.bot { padding-top: 32px; padding-bottom: 8px; }
.tt-side.two .tt-team { margin-bottom: 1px; }
.tt-side.two .tt-abbr { font-size: clamp(30px, 9vw, 44px); }
.tt-side.two .tt-cards { gap: 6px; }
.tt-side.two .tt-art { padding-top: 2px; border-bottom-width: 2px; }
.tt-side.two .tt-fig { width: 34%; max-width: 46px; }
.tt-side.two .tt-name { font-size: clamp(13px, 4vw, 17px); padding-top: 2px; }
.tt-side.two .tt-name small { display: none; }
.tt-side.two .tt-meta { padding-top: 1px; }
.tt-side.two .tt-spec { display: inline-block; margin: 3px 5px 3px; font-size: 8px; line-height: 12px; }
.tt-side.two .tt-card { border-width: 2.5px; box-shadow: 2px 2px 0 var(--ink); }
.tt-glabel { line-height: 1; }
.tt-group[data-group="def"] .tt-card { background-color: #f4f1e4; }
.tape:not(.still) .tt-group[data-group="def"] .tt-card { animation-delay: 1s !important; }
@media (max-height: 700px) { .tt-side.two .tt-fig { width: 28%; } .tt-desc { display: block; white-space: nowrap; text-overflow: ellipsis; } .tt-head { font-size: 24px; padding: 4px 0 2px; } }
.tt-side.two ~ .tt-vs, .tt-side.two + .tt-vs { width: 78px; height: 78px; }
.tt-side.two ~ .tt-vs span { font-size: 36px; }
.tt-side.two.top { padding-bottom: 34px; }
.tt-meta { overflow: hidden; }
.tt-side.two .tt-stars { font-size: 8.5px; }
.tt-side.two .tt-pos { font-size: 9px; padding: 0 3px; }
.call.chalked > .ct > b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: clamp(16px, 4.8vw, 20px); }
.call .chalk { height: 36px; width: 43px; }
@media (max-height: 720px) { .call .chalk { height: 32px; width: 38px; } }
.calls-grid.off7 .call.third.chalked > .ct > b { font-size: clamp(14px, 4.3vw, 17px); overflow: visible; }
.calls-grid.off7 { gap: 7px; }
.call.chalked { gap: 5px; padding-right: 6px; }
.call .chalk { height: 32px; width: 38px; }
.call.chalked > .ct > span { font-size: 10.5px; }
.calls-grid.off7 .call.third.chalked { padding: 6px 5px; }
.calls-grid.off7 .call.third .chalk { right: 3px; bottom: 3px; height: 22px; width: 26px; }
.calls-grid.off7 .call.third.chalked > .ct > span { max-width: calc(100% - 28px); font-size: 10px; }
@media (max-height: 720px) { .call .chalk { height: 30px; width: 36px; } .calls-grid.off7 .call.third .chalk { height: 20px; width: 24px; } }
@media (max-height: 720px) { .call .chalk { height: 28px; width: 34px; } .call.chalked > .ct > b { line-height: 1; } }

/* ---------- v7: 5-on-5, match play, play trees, venues, pickup ---------- */
.kicker { display: flex; gap: 6px; flex-wrap: wrap; }
.chip.venue { background: var(--boom); color: #fff; }
.modetabs { display: grid; grid-template-columns: 1fr 1fr; border: 3px solid var(--ink); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); background: #fff; flex: none; }
.modetab { text-align: center; padding: 9px 6px; font-family: 'Bangers', sans-serif; font-size: 20px; letter-spacing: .05em; text-decoration: none; line-height: 1; }
.modetab + .modetab { border-left: 3px solid var(--ink); }
.modetab.on { background: var(--ink); color: var(--pop); }

/* Need line: chase math; hot on last possessions and sudden death. */
.need.hot { background: #d7141a; color: #fff; animation: needpulse 1.2s ease-in-out infinite alternate; }
@keyframes needpulse { from { box-shadow: 0 0 0 0 rgba(215,20,26,0); } to { box-shadow: 0 0 0 4px rgba(215,20,26,.35); } }
@media (prefers-reduced-motion: reduce) { .need.hot { animation: none; } }

/* Possession pips */
.tracker { gap: 10px; }
.pips { display: inline-flex; align-items: center; gap: 2px; }
.pip { min-width: 18px; text-align: center; font-size: 14px; line-height: 18px; }
.pip.now { color: var(--boom); font-size: 12px; }
.pip.sd { border-left: 1.5px dashed rgba(0,0,0,.35); padding-left: 2px; }
.final-pips { justify-content: center; flex-direction: column; align-items: center; gap: 4px; }
.final-pips .pip { font-size: 20px; min-width: 28px; line-height: 26px; }
.final-pips .lbl { min-width: 44px; font-size: 12px; }

/* Play tree: category grid (off7) -> three big play buttons with chalk + back */
.calls-grid.sub3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.call.play { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; padding: 7px 5px 8px; min-height: 0; }
.call.play .chalk { width: 100%; max-width: 92px; height: auto; aspect-ratio: 48 / 40; }
.call.play b { font-size: clamp(16px, 4.6vw, 20px); white-space: nowrap; }
.call.play span { font-size: 10.5px; line-height: 1.2; margin: 0; min-height: 2.4em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.call.back { grid-column: 1 / -1; min-height: 0; padding: 6px 10px; background: var(--paper); flex-direction: row; justify-content: center; font-family: 'Bangers', sans-serif; font-size: 17px; letter-spacing: .05em; }
@media (max-height: 700px) { .call.play .chalk { max-width: 70px; } .call.play span { min-height: 0; -webkit-line-clamp: 1; } }

/* Tale of the Tape: full fives, offense and defense, for both sides */
.tt-head small { display: block; font-family: 'Archivo', sans-serif; font-size: 10px; font-weight: 900; letter-spacing: .14em; color: #fff; opacity: .85; margin-top: 2px; }
.tt-side { gap: 4px; padding-left: 10px; padding-right: 10px; }
.tt-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
.tt-card { border-width: 2.5px; border-radius: 6px; box-shadow: 2px 2px 0 var(--ink); border-bottom: 5px solid var(--rc); }
.tt-art { position: relative; padding-top: 2px; border-bottom-width: 2px; }
.tt-fig { width: 78%; }
.tt-rt { position: absolute; right: 2px; top: 2px; font-family: 'Bangers', sans-serif; font-size: 11px; line-height: 13px; min-width: 18px; text-align: center; color: #111; background: var(--rc); border: 1.5px solid #111; border-radius: 3px; }
.tt-name { font-size: clamp(11px, 3.3vw, 15px); padding: 2px 3px 0; letter-spacing: .02em; }
.tt-meta { padding: 1px 3px 0; }
.tt-pos { font-size: 8px; line-height: 12px; padding: 0 3px; }
.tt-stars { font-size: 7px; letter-spacing: -1px; }
.tt-spec { margin: 2px 3px 3px; font-size: 7px; line-height: 11px; padding: 0 3px; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100% - 6px); }
.tt-glabel { font-size: 12px; margin-bottom: 1px; }
.tt-abbr { font-size: clamp(30px, 10vw, 46px); }
.tt-vs { width: 84px; height: 84px; }
.tt-vs span { font-size: 40px; }
.tape:not(.still) .tt-side .tt-card { animation-delay: .5s; }
@media (max-height: 700px) { .tt-fig { width: 58%; } .tt-spec, .tt-stars { display: none; } .tt-glabel { font-size: 11px; } }
@media (max-height: 620px) { .tt-art { display: none; } }

/* Venue art bits */
.spray-txt { font-family: 'Bangers', Impact, sans-serif; letter-spacing: .06em; }
.stencil { font-family: 'Archivo', sans-serif; font-weight: 900; fill: #f2c230; opacity: .55; letter-spacing: .1em; }
.tag-scrawl { font-family: 'Bangers', Impact, sans-serif; letter-spacing: .03em; }
.dog .tail { transform-box: fill-box; transform-origin: 100% 0%; animation: wag .5s ease-in-out infinite alternate; }
@keyframes wag { from { transform: rotate(-14deg); } to { transform: rotate(16deg); } }
.grill .smoke { animation: smoke 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes smoke { 0% { opacity: 0; transform: translateY(.6px) scale(.8); } 40% { opacity: .55; } 100% { opacity: 0; transform: translateY(-1.6px) scale(1.3); } }
@media (prefers-reduced-motion: reduce) { .dog .tail, .grill .smoke { animation: none; } }
.stage[data-venue="backyard"] { background: #3d7f2e; }
.stage[data-venue="lot"] { background: #33353a; }
.tok .num { font-family: 'Bangers', Impact, sans-serif; letter-spacing: .02em; pointer-events: none; }

/* ---------- pickup: the draft ---------- */
.dr-squads { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dr-squad { border: 3px solid var(--ink); border-radius: 8px; box-shadow: var(--shadow); padding: 6px; background-image: var(--dots-light); background-size: 6px 6px; min-width: 0; }
.dr-name { font-family: 'Bangers', sans-serif; font-size: 16px; line-height: 1; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.dr-name span { font-family: 'Archivo', sans-serif; font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; display: block; opacity: .85; }
.dr-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.dr-chip { display: flex; align-items: center; gap: 3px; min-width: 0; background: rgba(0,0,0,.22); border-radius: 3px; padding: 1px 3px; font-size: 10px; font-weight: 900; line-height: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dr-chip i { font-style: normal; font-size: 8px; opacity: .8; min-width: 20px; }
.dr-chip.on { background: var(--rc); color: #111; animation: chipin .3s cubic-bezier(.3,1.6,.5,1); }
@keyframes chipin { from { transform: scale(.4); } }
.dr-status { text-align: center; font-family: 'Bangers', sans-serif; font-size: 22px; letter-spacing: .05em; background: var(--ink); color: #fff; border-radius: 6px; padding: 6px; position: sticky; top: 4px; z-index: 3; box-shadow: var(--shadow); }
.dr-status.you { background: var(--you); color: var(--you-ink); }
.dr-pool { display: flex; flex-direction: column; gap: 8px; }
.dr-group h4 { margin: 0 0 4px; font-family: 'Bangers', sans-serif; font-weight: 400; font-size: 18px; letter-spacing: .06em; }
.dr-group h4 small { font-family: 'Archivo', sans-serif; font-size: 10px; font-weight: 900; text-transform: uppercase; opacity: .6; }
.dr-group.full .dr-card { opacity: .38; filter: grayscale(.8); }
.dr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.dr-card { position: relative; text-align: left; display: flex; flex-direction: column; gap: 1px; min-width: 0; padding: 5px 6px 6px; background: #fff var(--dots) 0 0 / 5px 5px; border: 2.5px solid var(--ink); border-left: 7px solid var(--rc); border-radius: 6px; box-shadow: 2px 2px 0 var(--ink); transition: transform .08s; }
.dr-card:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.dr-card:disabled { cursor: default; }
.dr-card b { font-family: 'Bangers', sans-serif; font-weight: 400; font-size: clamp(15px, 4.5vw, 19px); line-height: 1; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 18px; }
.dr-card small { font-size: 9px; font-weight: 900; text-transform: uppercase; opacity: .65; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dr-num { font-size: 9px; font-weight: 900; opacity: .7; min-height: 11px; }
.dr-rt { position: absolute; right: 4px; top: 4px; font-family: 'Bangers', sans-serif; font-size: 14px; line-height: 16px; min-width: 22px; text-align: center; background: var(--rc); border: 1.5px solid #111; border-radius: 4px; }
.dr-meta { display: flex; align-items: center; justify-content: space-between; gap: 2px; }
.dr-meta em { font-style: normal; font-size: 9px; font-weight: 900; background: var(--ink); color: #fff; border-radius: 3px; padding: 0 4px; line-height: 14px; }
.dr-meta .tt-stars { font-size: 9px; }
.dr-spec { align-self: flex-start; font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; background: var(--pop); border: 1.5px solid var(--ink); border-radius: 3px; padding: 0 3px; line-height: 12px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.dr-card.cpu-eye { outline: 4px solid var(--opp); outline-offset: 1px; }
.dr-card.taken-you { animation: slide-you .26s ease-in forwards; z-index: 2; }
.dr-card.taken-cpu { animation: slide-cpu .26s ease-in forwards; z-index: 2; }
@keyframes slide-you { to { transform: translate(-30%, -140%) scale(.5) rotate(-8deg); opacity: 0; } }
@keyframes slide-cpu { to { transform: translate(30%, -140%) scale(.5) rotate(8deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .dr-card.taken-you, .dr-card.taken-cpu { animation: none; opacity: 0; } }

/* ---------- pickup: the "look who I drafted" card ---------- */
.pk-card { padding: 10px; background: var(--ink); color: #fff; }
.pk-head { text-align: center; font-size: clamp(26px, 8vw, 36px); line-height: 1; color: var(--pop); -webkit-text-stroke: 1px #000; text-shadow: 3px 3px 0 #000; }
.pk-head small { display: block; font-family: 'Archivo', sans-serif; font-size: 10px; font-weight: 900; letter-spacing: .14em; color: #fff; text-shadow: none; -webkit-text-stroke: 0; opacity: .8; margin-top: 4px; text-transform: uppercase; }
.pk-cols { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 6px; align-items: start; margin-top: 8px; }
.pk-col { border: 3px solid #000; border-radius: 8px; padding: 6px; background-image: var(--dots-light); background-size: 6px 6px; min-width: 0; }
.pk-team { font-family: 'Bangers', sans-serif; font-size: 16px; line-height: 1; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-team small { display: block; font-family: 'Archivo', sans-serif; font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.pk-pts { font-size: 54px; line-height: .9; text-align: center; -webkit-text-stroke: 2px #000; paint-order: stroke fill; text-shadow: 3px 3px 0 #000; margin: 4px 0; }
.pk-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.pk-col ul.pk-d { margin-top: 5px; padding-top: 5px; border-top: 2px dashed rgba(0,0,0,.45); }
.pk-col li { display: flex; align-items: center; gap: 4px; background: rgba(0,0,0,.28); border-radius: 3px; padding: 1px 4px; border-left: 4px solid var(--rc); font-size: 11px; line-height: 16px; min-width: 0; }
.pk-col li i { font-style: normal; font-size: 8px; font-weight: 900; opacity: .85; min-width: 26px; }
.pk-col li b { flex: 1; min-width: 0; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-col li span { font-family: 'Bangers', sans-serif; font-size: 13px; }
.pk-vs { align-self: center; font-size: 26px; color: #d7141a; -webkit-text-stroke: 1px #fff; }
.pk-foot { text-align: center; margin-top: 6px; font-weight: 900; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--pop); }
@media (max-height: 700px) { .app { gap: 7px; } .need { padding: 3px 8px; } .lastplay { padding: 6px 10px; } }
@media (max-height: 700px) { .lastplay .tracker { margin-top: 0; min-height: 0; } .lastplay .txt { min-height: 0; } .call.play .chalk { max-width: 58px; } .call.play { padding: 5px 4px 6px; gap: 2px; } }

/* ---------- v8: line score strip, snake draft order ---------- */
.linescore { flex: none; background: var(--ink); color: #fff; border: 3px solid var(--ink); border-radius: 6px; box-shadow: var(--shadow); overflow: hidden; font-variant-numeric: tabular-nums; }
.ls-row { display: grid; grid-template-columns: 44px repeat(var(--rounds), minmax(0, 1fr)) 34px; align-items: stretch; }
.ls-row + .ls-row { border-top: 1px solid rgba(255,255,255,.14); }
.ls-row > span { text-align: center; font-family: 'Bangers', sans-serif; font-size: 16px; line-height: 19px; letter-spacing: .03em; border-left: 1px solid rgba(255,255,255,.1); }
.ls-row > span.ls-t { border-left: 0; font-size: 14px; padding: 0 2px; white-space: nowrap; overflow: hidden; }
.ls-head > span { font-family: 'Archivo', sans-serif; font-size: 9px; font-weight: 900; line-height: 13px; color: rgba(255,255,255,.6); letter-spacing: .06em; }
.ls-head > span.ls-t { background: transparent; }
.ls-row > span.cur { background: rgba(255,212,0,.22); }
.ls-head > span.cur { color: var(--pop); }
.ls-row > span.td { color: var(--pop); }
.ls-row > span.fg { color: #9fd8ff; }
.ls-row > span.sd { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 3px, transparent 3px 6px); }
.ls-row > span.ls-tot { background: var(--pop); color: var(--ink); font-size: 17px; border-left: 2px solid var(--ink); }
.ls-head > span.ls-tot { background: var(--pop); color: var(--ink); }
@media (max-height: 700px) { .ls-row > span { font-size: 14px; line-height: 16px; } .ls-head > span { line-height: 11px; font-size: 8px; } }
.final-hero + .linescore, .pk-card .linescore { margin-top: 0; }
.pk-card .linescore { margin-top: 8px; box-shadow: none; border-color: #000; }

.pickorder { display: flex; justify-content: center; align-items: center; gap: 3px; margin-top: 4px; font-family: 'Archivo', sans-serif; letter-spacing: .04em; }
.pickorder b { font-size: 10px; font-weight: 900; margin-right: 4px; opacity: .85; }
.po { font-size: 9px; font-weight: 900; padding: 0 5px; line-height: 15px; border-radius: 3px; border: 1.5px solid rgba(0,0,0,.5); opacity: .65; }
.po.you { background: var(--you); color: var(--you-ink); }
.po.cpu { background: var(--opp); color: var(--opp-ink); }
.po.now { opacity: 1; outline: 2px solid #fff; outline-offset: 1px; }

/* The game scoreboard IS the line score: team rows, per-round cells, big totals. */
.linescore.board .ls-row { grid-template-columns: 58px repeat(var(--rounds), minmax(0, 1fr)) 46px; }
.linescore.board .ls-row > span { font-size: 19px; line-height: 25px; }
.linescore.board .ls-row > span.ls-t { font-size: 20px; line-height: 25px; display: flex; align-items: center; justify-content: center; gap: 3px; position: relative; }
.linescore.board .ls-t small { font-family: 'Archivo', sans-serif; font-size: 8px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.linescore.board .ls-row > span.ls-tot { font-size: 26px; line-height: 25px; }
.linescore.board .ls-head > span { font-size: 9px; line-height: 13px; }
.linescore.board .ls-head > span.ls-t { color: var(--pop); font-size: 9px; letter-spacing: .04em; justify-content: center; }
.linescore.board .ls-row.ball > span.ls-t::before { content: ''; position: absolute; left: 3px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: #8a4b1f; border: 1.5px solid #fff; }
@media (max-height: 700px) {
  .linescore.board .ls-row > span, .linescore.board .ls-row > span.ls-t { line-height: 22px; font-size: 17px; }
  .linescore.board .ls-row > span.ls-tot { font-size: 22px; line-height: 22px; }
  .linescore.board .ls-head > span { line-height: 11px; }
}
.linescore.board .ls-row.ball > span.ls-t { padding-left: 11px; }
.linescore.board .ls-row.ball > span.ls-t::before { left: 2px; }

/* ---------- v9: Division King ---------- */
.modetabs.three { grid-template-columns: repeat(3, 1fr); }
.modetabs.three .modetab { font-size: clamp(13px, 3.9vw, 18px); padding: 8px 3px; }
.king-hero { text-align: center; background: var(--ink); color: #fff; }
.king-hero .bang { font-size: 44px; color: var(--pop); line-height: 1; -webkit-text-stroke: 1px #000; text-shadow: 3px 3px 0 #000; }
.king-hero p { margin: 8px 0 0; font-weight: 700; }
.king-stats { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; padding: 8px; }
.king-stats b { display: block; font-family: 'Bangers', sans-serif; font-size: 24px; line-height: 1; font-weight: 400; }
.king-stats small { font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.prize-cta { animation: needpulse 1.1s ease-in-out infinite alternate; }

/* Crew card: the current 10 */
.crew { border: 3px solid var(--ink); border-radius: 8px; box-shadow: var(--shadow); padding: 8px; background-image: var(--dots-light); background-size: 6px 6px; }
.crew-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; margin-bottom: 6px; }
.crew-head .bang { font-size: 22px; line-height: 1; }
.crew-head small { font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; opacity: .85; white-space: nowrap; }
.crew-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.crew ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.crew li { display: flex; align-items: center; gap: 4px; background: rgba(0,0,0,.3); color: #fff; border-radius: 3px; padding: 1px 4px; border-left: 5px solid var(--rc); font-size: 11px; line-height: 17px; min-width: 0; }
.crew li i { font-style: normal; font-size: 8px; font-weight: 900; opacity: .85; min-width: 26px; }
.crew li b { flex: 1; min-width: 0; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crew li em { font-style: normal; font-size: 8px; font-weight: 900; text-transform: uppercase; opacity: .7; }
.crew li span { font-family: 'Bangers', sans-serif; font-size: 13px; min-width: 18px; text-align: right; }

/* The ladder: a vertical comic path of division banners */
.ladder { display: flex; flex-direction: column; align-items: stretch; }
.rung-link { width: 0; height: 16px; margin: 0 auto; border-left: 4px dashed var(--ink); }
.rung { border: 3px solid var(--ink); border-radius: 8px; box-shadow: var(--shadow); background: #fff; overflow: hidden; }
.rung-ban { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 8px 12px; background: var(--ink); color: #fff; }
.rung-ban b { font-family: 'Bangers', sans-serif; font-weight: 400; font-size: 24px; letter-spacing: .05em; line-height: 1; }
.rung-ban small { font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; opacity: .8; }
.rung.current .rung-ban { background: var(--boom); }
.rung.cleared .rung-ban { background: #1d6b2c; padding-right: 48px; }
.crown-stamp { position: absolute; right: 8px; top: 50%; transform: translateY(-50%) rotate(12deg); font-size: 26px; filter: drop-shadow(2px 2px 0 #000); }
.rung.locked { background: #bdbdbd; border-style: dashed; box-shadow: none; }
.rung.locked .rung-ban { background: repeating-linear-gradient(-45deg, #5a5a5a 0 8px, #4a4a4a 8px 16px); color: rgba(255,255,255,.55); }
.rung.locked .rung-ban b { filter: blur(.4px); }
.chain { position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(ellipse 7px 4px at center, transparent 55%, rgba(30,30,30,.85) 58%, rgba(30,30,30,.85) 75%, transparent 78%) 0 50% / 14px 10px repeat-x; opacity: .9; }
.rung-teams { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 8px; }
.rung-team { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; border: 2.5px solid var(--ink); border-radius: 6px; padding: 6px 2px 5px; min-width: 0; box-shadow: 2px 2px 0 var(--ink); background-image: var(--dots-light); background-size: 5px 5px; }
.rung-team:disabled { opacity: .5; filter: grayscale(.7); cursor: default; }
.rung-team .rt-abbr { font-size: 22px; line-height: 1; }
.rung-team .rt-city { font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.rung-team .rt-note { font-size: 8px; font-weight: 900; text-transform: uppercase; background: rgba(0,0,0,.35); color: #fff; border-radius: 3px; padding: 0 3px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; min-height: 12px; }
.rung-team.now { outline: 4px solid var(--pop); outline-offset: 1px; animation: needpulse 1.1s ease-in-out infinite alternate; }
.rung-team.beat .stamp { position: absolute; top: 2px; right: 2px; font-family: 'Bangers', sans-serif; font-size: 13px; line-height: 16px; width: 18px; text-align: center; background: #1d6b2c; color: #fff; border: 1.5px solid #000; border-radius: 50%; transform: rotate(-12deg); }

/* Prize screen */
.prize-head { text-align: center; }
.prize-head .bang { font-size: 38px; line-height: 1; -webkit-text-stroke: 1px #000; text-shadow: 3px 3px 0 #000; color: var(--pop); }
.prize-head p { margin: 6px 0 0; font-weight: 700; }
.prize-group h4 { margin: 0 0 4px; font-weight: 400; font-size: 18px; letter-spacing: .06em; }
.prize-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
.prize-card { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 0; padding: 3px 2px 4px; background: #fff var(--dots) 0 0 / 5px 5px; border: 2.5px solid var(--ink); border-bottom: 5px solid var(--rc); border-radius: 6px; box-shadow: 2px 2px 0 var(--ink); }
.prize-card .tt-fig { width: 84%; background: var(--tc); border-radius: 4px; }
.prize-card b { font-family: 'Bangers', sans-serif; font-weight: 400; font-size: clamp(11px, 3.3vw, 15px); line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.prize-card small { font-size: 8px; font-weight: 900; opacity: .7; }
.prize-card .gain { font-size: 8px; font-weight: 900; border-radius: 3px; padding: 0 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.prize-card .gain.up { background: #1d6b2c; color: #fff; }
.prize-card .gain.down { background: #ddd; color: #555; }
.prize-card .dr-spec { font-size: 7px; align-self: center; }
.target.pre { outline: 3px solid var(--pop); }

/* Crown ceremonies */
.crownfx .crown-big { position: absolute; left: 50%; top: -6%; transform: translateX(-50%); font-size: 96px; z-index: 2; filter: drop-shadow(4px 4px 0 #000); animation: crowndrop .7s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes crowndrop { from { transform: translate(-50%, -160%) rotate(-30deg) scale(.4); opacity: 0; } }
.king-card { position: relative; text-align: center; background: var(--ink); color: #fff; overflow: hidden; padding-top: 18px; background-image: repeating-conic-gradient(from 0deg at 50% 18%, rgba(255,212,0,.16) 0 10deg, transparent 10deg 20deg); }
.king-crown { font-size: 84px; line-height: 1; filter: drop-shadow(4px 4px 0 #000); animation: crowndrop .8s cubic-bezier(.3,1.6,.5,1) both, crownbob 2.4s ease-in-out .8s infinite alternate; }
@keyframes crownbob { to { transform: translateY(-6px) rotate(4deg); } }
.king-title { font-size: clamp(44px, 14vw, 64px); line-height: .9; color: var(--pop); -webkit-text-stroke: 2px #000; paint-order: stroke fill; text-shadow: 4px 4px 0 #d7141a; }
.king-games { font-size: 30px; line-height: 1; margin-top: 2px; }
.king-sub { font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; opacity: .85; margin-top: 4px; }
.king-story { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 3px; text-align: left; }
.king-story li { display: grid; grid-template-columns: auto auto 1fr; gap: 8px; align-items: baseline; background: rgba(255,255,255,.08); border-left: 4px solid var(--pop); border-radius: 3px; padding: 3px 8px; font-size: 12px; }
.king-story b { font-family: 'Bangers', sans-serif; font-weight: 400; font-size: 16px; letter-spacing: .04em; }
.king-story span { font-weight: 900; color: var(--pop); }
.king-story em { font-style: normal; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (prefers-reduced-motion: reduce) { .king-crown, .crownfx .crown-big, .prize-cta, .rung-team.now { animation: none; } }

/* ---------- v10: team home fields (themes.js) weather + ambient motion. SVG user units: 1px = 1 yard. ---------- */
.th-snow circle { animation: thfall 9s linear infinite; }
@keyframes thfall { from { transform: translate(0, -18px); } to { transform: translate(3px, 78px); } }
.th-rain line { animation: thrain .8s linear infinite; }
@keyframes thrain { from { transform: translate(0, -10px); } to { transform: translate(-3px, 14px); } }
.th-fog ellipse, .th-breath ellipse { animation: thdrift 26s ease-in-out infinite alternate; }
@keyframes thdrift { from { transform: translateX(-10px); } to { transform: translateX(10px); } }
.th-wind rect { animation: thblow 9s linear infinite; }
@keyframes thblow { from { transform: translate(-30px, 0); opacity: 0; } 10% { opacity: .7; } 90% { opacity: .7; } to { transform: translate(60px, -6px); opacity: 0; } }
.th-fw { transform-box: fill-box; transform-origin: center; animation: thfw 3.6s ease-out infinite; opacity: 0; }
@keyframes thfw { 0% { transform: scale(.1); opacity: 0; } 8% { opacity: 1; } 40% { transform: scale(1.4); opacity: .9; } 60%, 100% { transform: scale(1.6); opacity: 0; } }
.th-smoke { animation: thsmoke 4s ease-in-out infinite; }
@keyframes thsmoke { 0% { transform: translateY(0); } 50% { transform: translateY(-.8px); } 100% { transform: translateY(0); } }
.th-neon { animation: thneon 3s steps(1) infinite; }
@keyframes thneon { 0%, 100% { opacity: .85; } 46% { opacity: .85; } 48% { opacity: .3; } 50% { opacity: .85; } }
.th-train { animation: thtrain 14s linear infinite; }
@keyframes thtrain { from { transform: translateX(-50px); } to { transform: translateX(60px); } }
@media (prefers-reduced-motion: reduce) { .th-wx *, .th-smoke, .th-neon, .th-train, .th-fw { animation: none !important; } .th-fw { opacity: .6; } }
.stage[data-venue^="team:"] { background: #333; }
.stage[data-venue^="team:"] .readbar { background: rgba(10,10,14,.58); backdrop-filter: none; }

/* ---------- v11: Division Champ treatment ---------- */
.tape.champ { background: #050507; }
.tape.champ .tt-head { color: #ffd400; background: linear-gradient(#1a0505, #050507); text-shadow: 0 0 12px rgba(215,20,26,.8), 3px 3px 0 #000; }
.tt-champ { display: block; font-size: 13px; letter-spacing: .16em; color: #ff3b1f; margin-bottom: 2px; text-shadow: none; }
.tt-talk { flex: none; margin: 0 10px 4px; padding: 6px 10px; background: #d7141a; color: #fff; border: 2.5px solid #000; border-radius: 4px; box-shadow: 3px 3px 0 #000;
  font-weight: 900; font-size: 12px; line-height: 1.25; text-align: center; transform: rotate(-1deg); }
.tape.champ .tt-side.bot { filter: saturate(.85) brightness(.72) contrast(1.15); }
.tape.champ .tt-side.bot .tt-card { box-shadow: 0 0 0 2px #d7141a, 3px 3px 0 #000; }
.tape.champ .tt-vs .burst polygon { fill: #d7141a; }
.tape.champ .tt-vs span { color: #ffd400; }
@media (max-height: 700px) { .tt-talk { font-size: 11px; padding: 4px 8px; } .tt-champ { font-size: 11px; } }
.rung-team.champ { border-color: #000; box-shadow: 0 0 0 2px #d7141a, 2px 2px 0 #000; filter: saturate(.9) brightness(.82); }
.rung-team.champ.beat { filter: grayscale(.3); }
.rung-team .champ-crown { position: absolute; top: -9px; left: 50%; transform: translateX(-50%) rotate(-8deg); font-size: 15px; filter: drop-shadow(1px 1px 0 #000); }

/* ---------- v12: the field gets the screen ---------- */
/* Game screen: a full-height column; the stage takes every pixel the strip, the Your Call bar and the menu don't. */
.app.game-screen { height: 100dvh; min-height: 0; overflow: hidden; gap: 6px; }
.app.game-screen .stage { flex: 1 1 auto; height: auto; min-height: 220px; max-height: min(74dvh, 620px); }
.app.game-screen .calls-grid { flex: none; }
.app.game-screen.snapping .calls-grid { display: none; } /* the play: menu folds away, the field grows */
.app.game-screen.snapping .stage { max-height: none; }
@media (max-height: 780px) { .app.game-screen .kicker { display: none; } }

/* Shootout strip: one row, markers per round */
.shoot-wrap { position: relative; flex: none; z-index: 6; }
.shoot { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 4px; background: var(--ink); color: #fff; border: 3px solid var(--ink); border-radius: 6px; box-shadow: var(--shadow); padding: 3px 4px; cursor: pointer; }
.sh-side { display: flex; align-items: center; gap: 5px; min-width: 0; }
.sh-t { font-family: 'Bangers', sans-serif; font-size: 16px; letter-spacing: .04em; line-height: 22px; padding: 0 6px; border-radius: 3px; }
.sh-pts { font-family: 'Bangers', sans-serif; font-weight: 400; font-size: 25px; line-height: 1; min-width: 22px; text-align: center; color: var(--pop); }
.sh-marks { display: flex; gap: 3px; align-items: center; }
.mk { width: 11px; height: 11px; border-radius: 50%; display: inline-block; box-sizing: border-box; flex: none; }
.mk.td { background: #ffd400; border: 1.5px solid #000; box-shadow: 0 0 5px rgba(255,212,0,.7); }
.mk.fg { background: #c7ced6; border: 1.5px solid #000; }
.mk.zero { border: 2px solid rgba(255,255,255,.75); }
.mk.todo { border: 2px solid rgba(255,255,255,.2); }
.mk.skip { background: rgba(255,255,255,.1); }
.mk.live { border: 2.5px solid #ffd400; animation: mkpulse .8s ease-in-out infinite alternate; }
@keyframes mkpulse { from { transform: scale(.85); box-shadow: 0 0 0 0 rgba(255,212,0,.6); } to { transform: scale(1.15); box-shadow: 0 0 0 4px rgba(255,212,0,0); } }
.mk-gap { width: 3px; height: 11px; border-left: 1.5px dashed rgba(255,255,255,.4); margin: 0 1px; }
.sh-rd { font-size: 10px; font-weight: 900; letter-spacing: .06em; color: var(--pop); white-space: nowrap; }
.shoot-grid { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 7; cursor: pointer; animation: tt-pop .18s ease-out; }
@media (prefers-reduced-motion: reduce) { .mk.live { animation: none; } }

/* Your Call bar: down & distance (once), the TD chip, the urgent line, the last play */
.callbar { flex: none; padding: 6px 10px; gap: 2px; min-height: 0; }
.cb-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.cb-dd { font-family: 'Bangers', sans-serif; font-size: 20px; line-height: 1.05; letter-spacing: .03em; min-width: 0; }
.cb-dd small { font-family: 'Archivo', sans-serif; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.cb-dd em { font-style: normal; font-family: 'Archivo', sans-serif; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.cb-dd b { font-family: 'Archivo', sans-serif; font-size: 10px; font-weight: 900; background: var(--ink); color: #ff3b1f; padding: 1px 5px; border-radius: 3px; vertical-align: 2px; }
.cb-dd.dod { color: #d7141a; }
.tdchip { flex: none; font-size: 11px; font-weight: 900; letter-spacing: .04em; background: var(--ink); color: var(--pop); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.tdchip.hot { background: #1d6b2c; color: #fff; }
.cb-hot { font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .03em; background: #d7141a; color: #fff; border-radius: 3px; padding: 2px 7px; }
.callbar .txt { font-size: 14px; line-height: 1.2; min-height: 0; }
.callbar .calls { font-size: 10px; opacity: .65; min-height: 0; }
.callbar .calls:empty { display: none; }

/* ---------- landing ---------- */
.landing { display: flex; flex-direction: column; gap: 12px; }
.hero { position: relative; text-align: center; padding: 26px 8px 18px; border: 3px solid var(--ink); border-radius: 8px; box-shadow: var(--shadow); overflow: hidden;
  background: #1f7a2c repeating-linear-gradient(0deg, transparent 0 18px, rgba(255,255,255,.18) 18px 20px); }
.hero-field { position: absolute; inset: 0; pointer-events: none; }
.hero-field .sl { position: absolute; height: 3px; width: 34%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55)); border-radius: 3px; animation: herosl 2.6s linear infinite; }
.hero-field .sl:nth-child(1) { top: 18%; animation-delay: -.3s; } .hero-field .sl:nth-child(2) { top: 36%; animation-delay: -1.4s; width: 24%; }
.hero-field .sl:nth-child(3) { top: 58%; animation-delay: -2s; } .hero-field .sl:nth-child(4) { top: 74%; animation-delay: -.9s; width: 20%; } .hero-field .sl:nth-child(5) { top: 88%; animation-delay: -1.8s; }
@keyframes herosl { from { transform: translateX(-120%); } to { transform: translateX(420%); } }
.hero-chalk { position: absolute; right: -6px; bottom: -8px; width: 120px; opacity: .55; transform: rotate(-8deg); }
.hero-chalk .chalk { width: 100%; height: auto; }
.hero-chalk path { stroke-dasharray: 60; animation: chalkdraw 3.6s ease-in-out infinite; }
@keyframes chalkdraw { 0% { stroke-dashoffset: 60; } 55%, 100% { stroke-dashoffset: 0; } }
.hero-burst { position: absolute; left: 50%; top: 50%; width: 330px; height: 330px; transform: translate(-50%, -56%); opacity: .95; animation: heroburst 18s linear infinite; }
.hero-burst .burst { width: 100%; height: 100%; }
@keyframes heroburst { to { transform: translate(-50%, -56%) rotate(360deg); } }
.hero-logo { position: relative; margin: 0; font-size: clamp(58px, 19vw, 86px); line-height: .9; color: var(--boom); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 5px 5px 0 var(--ink); transform: rotate(-4deg); animation: logoslam .5s cubic-bezier(.3,1.7,.5,1) both; }
@keyframes logoslam { from { transform: rotate(-4deg) scale(2.4); opacity: 0; } }
.hero-tag { position: relative; margin-top: 10px; display: inline-block; background: var(--ink); color: var(--pop); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; padding: 4px 10px; border-radius: 3px; transform: rotate(1deg); }
.slam { animation: cardslam .42s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes cardslam { from { transform: translateY(26px) scale(.92) rotate(-1.5deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .slam, .hero-logo, .hero-burst, .hero-field .sl, .hero-chalk path { animation: none !important; } }

.hero-card { border: 3px solid var(--ink); border-radius: 8px; box-shadow: var(--shadow); background: var(--paper); overflow: hidden; animation-delay: .05s; }
.hero-card.boss { box-shadow: 0 0 0 3px #d7141a, var(--shadow); }
.hc-label { background: var(--ink); color: #fff; font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; }
.hc-split { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 112px;
  background: linear-gradient(115deg, var(--ca) 0 49.6%, #111 49.6% 50.4%, var(--ch) 50.4% 100%); }
.hc-a, .hc-h { display: flex; flex-direction: column; padding: 10px 12px; }
.hc-a { color: var(--ia); } .hc-h { color: var(--ih); text-align: right; align-items: flex-end; }
.hc-split b { font-weight: 400; font-size: clamp(48px, 15vw, 66px); line-height: .9; -webkit-text-stroke: 2px #111; paint-order: stroke fill; text-shadow: 3px 3px 0 #111; }
.hc-split small { font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.hc-at { font-size: 30px; color: #fff; -webkit-text-stroke: 1.5px #111; paint-order: stroke fill; }
.hc-hook { padding: 8px 12px 0; font-weight: 800; font-size: 14px; line-height: 1.3; }
.hero-card .slam-btn { margin: 10px 12px 12px; width: calc(100% - 24px); font-size: 32px; letter-spacing: .08em; padding: 8px 0 6px; animation: playpulse 1.6s ease-in-out .9s infinite; }
@keyframes playpulse { 0%, 100% { transform: none; } 50% { transform: scale(1.03) rotate(-.6deg); } }
.hc-result { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px 0; }
.hc-result .bang { font-size: 28px; line-height: 1; } .hc-result small { font-size: 10px; font-weight: 900; text-transform: uppercase; opacity: .65; }
.hc-cd { display: flex; align-items: baseline; justify-content: space-between; padding: 6px 12px 12px; }
.hc-cd small { font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.hc-cd .countdown { font-size: 28px; margin: 0; }
.hero-card.none { padding: 16px; text-align: center; } .hero-card.none .hc-head { font-size: 40px; line-height: 1; }

.mode-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode-card { display: flex; flex-direction: column; gap: 3px; padding: 10px; border: 3px solid var(--ink); border-radius: 8px; box-shadow: var(--shadow); background: #fff var(--dots) 0 0 / 6px 6px; text-decoration: none; color: var(--ink); min-width: 0; }
.mode-card:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.mode-card.king { background: var(--ink) var(--dots-light) 0 0 / 6px 6px; color: #fff; }
.mc-title { font-size: 24px; line-height: 1; }
.mode-card.king .mc-title { color: var(--pop); }
.mc-sub { font-size: 11px; font-weight: 700; line-height: 1.25; opacity: .85; }
.mc-status { margin-top: auto; align-self: flex-start; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; background: var(--pop); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 3px; padding: 1px 6px; }
.mc-vis { height: 58px; border-radius: 5px; margin-bottom: 4px; border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; gap: 6px; overflow: hidden; }
.mc-vis.pickup { background: #2f8f3a repeating-linear-gradient(90deg, transparent 0 22px, rgba(255,255,255,.25) 22px 24px); }
.mc-vis .sq { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mc-vis .sq i { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid #111; animation: pdbob 1.4s ease-in-out infinite alternate; }
.mc-vis .sq.a i { background: #1f5fff; } .mc-vis .sq.b i { background: #e8291c; }
.mc-vis .sq i:nth-child(5) { grid-column: span 2; justify-self: center; }
@keyframes pdbob { to { transform: translateY(-3px); } }
.mc-vs { font-size: 18px; color: #fff; -webkit-text-stroke: 1px #111; paint-order: stroke fill; }
.mc-vis.ladder { flex-direction: column-reverse; gap: 2px; padding: 4px 10px; background: #1a1a1f; }
.mc-vis.ladder i { display: block; height: 5px; width: 100%; border-radius: 2px; background: #444; font-style: normal; font-size: 7px; line-height: 5px; text-align: right; }
.mc-vis.ladder i.won { background: #1d6b2c; } .mc-vis.ladder i.now { background: var(--boom); animation: needpulse 1.1s ease-in-out infinite alternate; }
.home-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.home-row .btn { flex: 1 1 auto; padding: 8px 6px; font-size: 13px; }
.streak { display: inline-flex; align-items: baseline; gap: 3px; background: var(--ink); color: #fff; border-radius: 6px; padding: 4px 10px; box-shadow: var(--shadow); font-size: 18px; }
.streak b { font-weight: 400; font-size: 26px; color: var(--pop); line-height: 1; }
.streak small { font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.shoot.many .mk { width: 9px; height: 9px; } .shoot.many .sh-marks { gap: 2px; } .shoot.many .sh-t { padding: 0 4px; font-size: 14px; }
.shoot.lots .mk { width: 7px; height: 7px; } .shoot.lots .sh-pts { font-size: 21px; min-width: 18px; }

/* ---------- v13: TuddyTown polish ---------- */
/* The read lives in the call bar now: the sky band above the field is never covered. */
.cb-read { font-size: 12px; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cb-read b { font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; color: #d7141a; margin-right: 3px; }
.cb-read:empty { display: none; }

/* Flip for it */
.flip { position: relative; z-index: 2; width: min(92vw, 360px); text-align: center; }
.flip-head { font-size: 40px; line-height: 1; color: var(--boom); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; text-shadow: 3px 3px 0 var(--ink); }
.flip-sub { margin: 4px 0 8px; font-weight: 800; font-size: 13px; }
.coin { position: relative; width: 110px; height: 110px; margin: 6px auto 12px; transform-style: preserve-3d; animation: coinidle 2.2s ease-in-out infinite alternate; }
.coin-face { position: absolute; inset: 0; backface-visibility: hidden; filter: drop-shadow(4px 4px 0 #000); }
.coin-face svg { width: 100%; height: 100%; }
.coin-face.t { transform: rotateY(180deg); }
@keyframes coinidle { from { transform: rotateY(-18deg) translateY(0); } to { transform: rotateY(18deg) translateY(-4px); } }
.coin.land-h { animation: flip-h 1.4s cubic-bezier(.2,.7,.3,1) forwards; }
.coin.land-t { animation: flip-t 1.4s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes flip-h { 0% { transform: translateY(0) rotateY(0); } 45% { transform: translateY(-70px) rotateY(1080deg) scale(1.15); } 100% { transform: translateY(0) rotateY(2160deg); } }
@keyframes flip-t { 0% { transform: translateY(0) rotateY(0); } 45% { transform: translateY(-70px) rotateY(1080deg) scale(1.15); } 100% { transform: translateY(0) rotateY(2340deg); } }
.coin.dim { opacity: .35; animation: none; }
.flip-call .btn { font-family: 'Bangers', sans-serif; font-size: 24px; letter-spacing: .06em; }
.flip-alt { margin-top: 8px; font-size: 12px; }
.rps { margin-top: 10px; }
.rps-row { display: flex; justify-content: center; gap: 10px; }
.rps-btn { font-size: 38px; width: 66px; height: 66px; border: 3px solid var(--ink); border-radius: 50%; background: #fff; box-shadow: 3px 3px 0 var(--ink); }
.rps-btn:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.rps-out { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; min-height: 56px; margin-top: 6px; }
.rps-hand { font-size: 44px; } .rps-hand.cpu { transform: scaleX(-1); }
.rps-tie { width: 100%; font-weight: 900; text-transform: uppercase; color: #d7141a; }
@media (prefers-reduced-motion: reduce) { .coin, .coin.land-h, .coin.land-t { animation: none; } }

/* First-time explainer */
.explain { position: relative; z-index: 2; width: min(90vw, 340px); text-align: center; padding-top: 60px; margin-top: 40px; }
.ex-burst { position: absolute; left: 50%; top: -52px; width: 112px; height: 112px; transform: translateX(-50%) rotate(-8deg); }
.ex-burst .burst { width: 100%; height: 100%; }
.ex-burst span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 44px; }
.ex-title { font-size: 34px; line-height: 1; }
.ex-text { margin: 8px 0 14px; font-weight: 800; font-size: 15px; line-height: 1.35; }
.ex-go { font-size: 26px; letter-spacing: .08em; }

/* Profile */
.prof-name { font-size: 36px; line-height: 1; }
.prof-form label { display: block; margin-bottom: 6px; } .prof-form label small { font-size: 10px; font-weight: 800; opacity: .65; }
.prof-form input { flex: 1; min-width: 0; font: inherit; font-weight: 800; padding: 9px 10px; border: 3px solid var(--ink); border-radius: 6px; }
.prof-form .err { color: #d7141a; font-weight: 800; font-size: 12px; margin-top: 4px; }
.prof-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.prof-stats .ps { display: flex; flex-direction: column; gap: 2px; } .prof-stats .bang { font-size: 20px; line-height: 1.05; }
.prof-stats small { font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; opacity: .65; }
.prof-rec { width: 100%; border-collapse: collapse; font-weight: 800; }
.prof-rec td { padding: 5px 2px; border-top: 1.5px solid rgba(0,0,0,.12); }
.prof-rec td.w { color: #1d6b2c; text-align: right; width: 54px; } .prof-rec td.l { color: #d7141a; text-align: right; width: 54px; }
