/* Stumpflare / floodlight presentation. Layout and effects only; match rules live in index.html. */
@font-face{font-family:Rush Display;src:url('vendor/fonts/barlow-condensed-800.ttf') format('truetype');font-style:normal;font-weight:700 900;font-display:swap}
:root{--night:#080f1c;--panel:rgba(9,20,35,.92);--chalk:#f6f3eb;--amber:#ffd078;--teal:#6ce5c0;--muted:#a2b2c5;--line:rgba(178,199,218,.18);--display:'Rush Display','Arial Narrow',Impact,sans-serif;--ui:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
body{-webkit-font-smoothing:antialiased}
button,select{transition:background-color .18s,border-color .18s,box-shadow .18s,transform .18s}
button:focus-visible,summary:focus-visible,select:focus-visible{outline:3px solid var(--teal);outline-offset:4px}
.screen{box-sizing:border-box;background:radial-gradient(ellipse at 14% 0,rgba(46,94,124,.3),transparent 65%),linear-gradient(125deg,rgba(6,14,25,.96),rgba(8,17,30,.89));padding:32px max(20px,env(safe-area-inset-left)) 32px max(20px,env(safe-area-inset-right));align-items:safe center;scrollbar-color:#40566d #0c1828}
.screen>.card{box-sizing:border-box;gap:20px;margin:auto;min-width:0}
.screen:not(#menu):not(#toss)>.card{padding:28px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(145deg,rgba(23,39,57,.94),rgba(10,22,37,.96));box-shadow:0 24px 90px #0005}
.title,.title.sm{font-weight:800;line-height:.94;letter-spacing:.015em}
.title.sm{font-size:46px}
.tag{font-size:15px;line-height:1.6;margin-top:0;color:var(--muted)}
.how,.note{font-size:14px;line-height:1.7}
.lbl2{font-size:10px;font-weight:700;letter-spacing:.14em;margin-bottom:9px;color:#a9bcd0}
.btn{padding:13px 20px;border-radius:8px;font-size:12px;font-weight:750;letter-spacing:.07em;background:linear-gradient(120deg,#ffe0a0,#ffc268);box-shadow:0 3px 0 #9b6a27}
.btn.ghost{box-shadow:none;background:#ffffff04;border:1px solid #b1cad632;color:#dce7ee}
.btn:hover:not(:disabled){filter:brightness(1.08);transform:translateY(-1px)}
.btn:active:not(:disabled){transform:translateY(1px);box-shadow:none}
.opt{border-radius:7px;font-size:13px;padding:10px 13px;background:#ffffff04;border-color:#b1cad628;line-height:1.3}
.opt.on{color:#ffe2a9;border-color:#ffd078b3;background:linear-gradient(110deg,#ffd07824,#ffd0780a);box-shadow:inset 0 -2px #ffd078}
.opts{gap:7px}.row{gap:9px}
.level{border-radius:10px;border-color:#b1cad628;background:linear-gradient(140deg,#ffffff08,#ffffff02);padding:16px;position:relative;overflow:hidden}
.level .n{font-weight:800}.level .d{font-size:12px;line-height:1.5;color:#aabed0}.level .best{font-size:11px}
.level:hover{background:#24425880;border-color:#6ce5c070;transform:translateY(-2px)}
.level:active{transform:translateY(0)}
#menu{background:radial-gradient(ellipse at 12% 38%,#17445355,transparent 56%),linear-gradient(105deg,#07101ef5 20%,#081524b8 62%,#07101edb);padding:40px clamp(24px,6vw,100px)}
#menu>.card{width:min(1120px,100%);display:grid;grid-template-columns:1fr 1.12fr;gap:clamp(32px,6vw,90px);align-items:center}
.menu-hero{position:relative;min-width:0}.eyebrow{display:flex;gap:9px;align-items:center;font-size:9px;font-weight:750;letter-spacing:.18em;color:#bad1d9;margin-bottom:27px}
.live-light{width:6px;height:6px;flex:none;background:var(--teal);border-radius:50%;box-shadow:0 0 12px #6ce5c090}
#menu .title{font-size:clamp(82px,9.8vw,140px);line-height:.81;letter-spacing:-.015em;text-shadow:0 5px 30px #0003}
#menu .title span{display:block;margin-top:6px;background:linear-gradient(130deg,#fff2d5,#ffcb72 70%);background-clip:text;-webkit-background-clip:text;animation:none}
#menu .tag{font-size:clamp(17px,1.8vw,22px);font-weight:450;color:#cfdae3;line-height:1.45;margin-top:25px;letter-spacing:-.025em}
.hero-art{margin:-20px -25px -12px -15px;pointer-events:none}.hero-art svg{display:block;width:100%;max-height:230px;filter:drop-shadow(0 18px 25px #0004)}
.hero-caption{font-size:9px;font-weight:700;letter-spacing:.18em;color:#7893a8}.hero-caption span{color:#c8d5df;margin-left:6px}
.menu-play{min-width:0;padding:26px;border:1px solid #aac8dc29;background:linear-gradient(135deg,#1d3244b8,#0b182ae8);border-radius:18px;box-shadow:0 30px 80px #0004;backdrop-filter:blur(12px)}
.menu-section-label{display:flex;justify-content:space-between;gap:10px;font-size:9px;font-weight:700;letter-spacing:.17em;color:#9eb4c8;margin-bottom:18px}.menu-section-label span{color:var(--teal)}
#menu .levels{gap:10px;grid-template-columns:repeat(2,minmax(0,1fr))}
#menu .level{min-height:96px;gap:5px;padding:15px 16px}
#menu .level .n{font-size:25px;line-height:1.05;letter-spacing:.01em}
#menu .level::after{content:'↗';position:absolute;right:12px;bottom:10px;color:#7c9bb4;font:16px var(--ui)}
#menu .level .d{padding-right:8px}#menu .best{margin:0;min-height:0}
#goQuick{border-radius:10px;background:linear-gradient(110deg,#ffe4ab,#ffc367);box-shadow:0 5px 0 #96642a,0 15px 36px #ffc36714;padding:22px 20px;margin-bottom:7px;min-height:106px;box-sizing:border-box}
#goQuick .n{font-size:39px;font-weight:800;letter-spacing:.015em}
#goQuick .d{font-size:12px;line-height:1.8;font-weight:600}
#goQuick .go{display:grid;place-items:center;width:42px;height:42px;border:1px solid #1a120533;border-radius:50%;font-size:18px}
#goQuick::after{animation-duration:7s;pointer-events:none;opacity:.45}
#menu .menu-play>.row{margin-top:20px;gap:8px}
#menu .menu-play>.row .btn{font-size:10px;padding:10px 12px;letter-spacing:.03em;flex:1;white-space:nowrap}
.menu-footnote{text-align:center;font-size:10px;letter-spacing:.04em;color:#718a9e;margin-top:18px}
#setup .card{width:min(800px,100%);gap:16px}#setup .title{font-size:42px}
.tc{border-radius:10px;min-height:82px;padding:14px;background:linear-gradient(115deg,color-mix(in srgb,var(--kit) 23%,#132338),#132338);border-left-width:4px}
.tc .nm{font-size:25px;font-weight:800}.tc .rt{font-size:11px}.tc .rt b{border-radius:4px;padding:3px 6px}
.setsum{border-style:solid;border-radius:8px;font-size:12px;padding:12px 14px;background:#ffffff03;line-height:1.5}
.condnote,.condline{font-size:12px;line-height:1.6}.setup-actions{background:#0d1b2b;padding-top:14px;bottom:-1px;border-top:1px solid var(--line)}
.screen details{border-top:1px solid var(--line);padding-top:13px}.screen details summary,#setup details summary{font-size:12px;color:#b3c6d5;cursor:pointer;line-height:1.6}.screen details[open] .how{margin-top:12px}
#settings>.card{width:min(790px,100%)}
#settings .setsec{padding:18px;background:#07132166;border:1px solid #adc8d51a;border-radius:12px;gap:15px}
.sechead{font-size:19px;letter-spacing:.05em;border-bottom:0;padding-bottom:0;color:#f1d4a0}
#settings .toggles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
#settings .toggles .btn{min-height:46px;text-align:left;text-transform:none;font-size:12px;padding:12px;letter-spacing:0;line-height:1.5;border-color:#b1cad62e;background:#ffffff03;box-shadow:none}
#settings .toggles .btn[aria-pressed=true]{border-color:#6ce5c05c;background:#6ce5c00c;color:#d2f8e8}
#settings .toggles .btn[aria-pressed=true]::before,#settings .toggles .btn[aria-pressed=false]::before{content:'';display:inline-block;width:7px;height:7px;margin-right:9px;border-radius:50%;background:#607388}
#settings .toggles .btn[aria-pressed=true]::before{background:var(--teal);box-shadow:0 0 8px #6ce5c030}
#settingsBack{min-width:120px}.stats div{border:1px solid var(--line);border-radius:9px;background:#ffffff04;padding:12px}.stats b{font-size:34px}.stats span{font-size:10px;line-height:1.6}.sc{font-size:12px}.sc td{padding:8px 6px}.sc th{font-size:9px}.sc td.how{font-size:11px}.sc tr:nth-child(even){background:#ffffff04}.sc tr.tot{background:#6ce5c00b}.sheet{box-sizing:border-box;border-radius:14px;background:#0d1c2bf5;box-shadow:0 18px 60px #0007}.sheet .sit,.fdesc,.blist .opt .ty{font-size:12px}
#tvbar{font-family:var(--ui);border-color:#afc9d62e;border-radius:9px;box-shadow:0 5px 22px #0003}
#tvbar #scorebar .team{background:#6ce5c0;color:#09231e;font-size:12px;letter-spacing:.08em}
#tvbar #scorebar .runs{font-size:29px;font-weight:800;letter-spacing:.015em}
#tvbar #scorebar .overs,#tvbar #scorebar .need{font-size:12px}
#tvbar #batline{font-size:11px;line-height:1.6}#tvbar .chip{font-size:10px;font-weight:700;border-radius:5px}
#delivery,#nextTag,#replayTag{border:1px solid #b1cad62e;border-radius:6px;font-size:12px;box-shadow:0 4px 15px #0002}
#replayTag{font-family:var(--ui);font-size:11px;letter-spacing:.12em;padding:7px 12px}#replayTag .dot{width:6px;height:6px}
#tvcard .body{border:1px solid #b1cad62e;border-left:0;border-radius:0 8px 8px 0;background:#0a1728ed}#tvcard .t{font-weight:800}#tvcard .s{font-size:12px}
.tools button{border:1px solid #b1cad62e}.shotsel button{box-shadow:inset 0 1px #ffffff13,0 5px 16px #0002;border-width:1px;background:#0b182de6}
.shotsel button.on{box-shadow:inset 0 -3px var(--teal),0 4px 18px #0003}.shotsel button.on[data-k=loft]{box-shadow:inset 0 -3px var(--amber),0 4px 18px #0003}.shotsel button.on[data-k=defend]{box-shadow:inset 0 -3px var(--chalk),0 4px 18px #0003}
#banner .head{font-style:italic;font-weight:800;letter-spacing:-.015em;text-shadow:0 3px #412c15,0 8px 30px #0007}
#banner .line{font-size:13px;line-height:1.6;border:1px solid #ffffff26;border-radius:5px;padding:5px 14px;background:#0b192ce8}
#banner.b6 .head{background:linear-gradient(#fff3ca 12%,#ffd078 55%,#efa13d);background-clip:text;-webkit-background-clip:text;color:transparent;filter:drop-shadow(0 4px 0 #503720);text-shadow:none}
#banner.b4 .head{color:#8cf2cf}#banner.bw .head{color:#ff7d86}#timing{font-size:13px}#comm .txt{font-size:12px;line-height:1.5;border-radius:0 7px 7px 0}#comm .mic{border-radius:7px 0 0 7px}
@media(min-width:721px) and (min-height:461px){#tvbar #scorebar>div{padding:5px 10px}#tvbar #batline{padding:5px 10px}#tvbar #overchips{padding:6px 10px 8px}}
@media(max-width:800px){#menu{padding:28px 22px}#menu>.card{gap:24px;grid-template-columns:.85fr 1.15fr}#menu .title{font-size:84px}.menu-play{padding:18px}.eyebrow{font-size:8px;letter-spacing:.1em}.hero-art{margin:0 -15px}.hero-caption{font-size:8px}#menu .menu-play>.row{flex-wrap:wrap}#menu .menu-play>.row .btn{flex:auto}}
@media(max-width:600px){.screen{padding:20px 14px;align-items:start}.screen:not(#menu):not(#toss)>.card{padding:20px 16px;border-radius:13px;gap:17px}.title.sm{font-size:36px}#setup .title{font-size:36px}#menu{padding:26px 20px}#menu>.card{grid-template-columns:1fr;gap:25px}.eyebrow{margin-bottom:18px;font-size:8px}#menu .title{font-size:76px;line-height:.88}#menu .title span{display:inline;margin-left:8px}#menu .tag{font-size:15px;margin-top:14px;line-height:1.5}#menu .tag br{display:none}#menu .tag br::after{content:' '}.hero-art{position:absolute;right:-8px;bottom:-10px;width:140px;opacity:.7;display:none}.hero-caption{display:none}.menu-play{padding:18px;border-radius:14px}.menu-section-label{font-size:8px;margin-bottom:14px}#menu .level{min-height:85px;padding:13px}#menu .level .n{font-size:23px}#menu .level .d{font-size:11px}#goQuick{padding:18px;min-height:94px}#goQuick .n{font-size:34px}#goQuick .d{font-size:11px}#menu .menu-play>.row .btn{font-size:9px;padding:10px}#menu .menu-play>.row{margin-top:16px}.menu-footnote{margin-top:15px}.tc{padding:10px;gap:8px;min-height:70px}.tc .nm{font-size:21px}.tc .rt{font-size:10px}.opts{gap:6px}.opt{padding:9px 10px;font-size:12px}#settings .setsec{padding:14px}#settings .toggles .btn{font-size:11px;padding:10px}.stats b{font-size:28px}.stats div{padding:10px}.stats span{font-size:9px}#tvbar{max-width:calc(100% - 100px)}#tvbar #scorebar .runs{font-size:22px}#tvbar #scorebar .team{font-size:10px}#tvbar #scorebar .overs,#tvbar #scorebar .need{font-size:10px}#tvbar #batline{font-size:9px;gap:7px}#banner .line{font-size:11px}#comm .txt{font-size:11px}}
@media(max-height:460px){.screen{padding:12px 16px;align-items:start}.screen:not(#menu):not(#toss)>.card{padding:16px;gap:12px}#menu{padding:16px 24px}#menu>.card{grid-template-columns:.8fr 1.2fr;gap:28px;align-items:center}#menu .title{font-size:70px}#menu .title span{display:block;margin-left:0}.eyebrow{margin-bottom:14px;font-size:7px}#menu .tag{font-size:14px;margin-top:16px}.hero-art,.hero-caption,.menu-footnote{display:none}.menu-play{padding:14px}.menu-section-label{margin-bottom:10px;font-size:8px}#menu .levels{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}#menu .level{min-height:56px;padding:9px 11px}#menu .level .n{font-size:20px}#menu .level .d{font-size:9px}#goQuick{min-height:64px;padding:10px 13px;margin-bottom:4px}#goQuick .n{font-size:27px}#goQuick .d{font-size:10px}#goQuick .go{width:30px;height:30px;font-size:13px}#menu .menu-play>.row{margin-top:12px;gap:5px}#menu .menu-play>.row .btn{font-size:8px;padding:8px}.title.sm,#setup .title{font-size:30px}.btn{padding:10px 14px}.tc{min-height:58px}#tvbar #scorebar .runs{font-size:18px}#tvbar #scorebar .team,#tvbar #scorebar .overs,#tvbar #scorebar .need{font-size:9px}#tvbar #batline{font-size:8px}#tvbar .chip{font-size:8px}#delivery,#nextTag{font-size:10px}#banner .line{font-size:10px;padding:3px 10px}#timing{font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Menus own the screen: match tools must not remain clickable through the backdrop. */
#game:has(> .screen:not([hidden])) #mapwrap{visibility:hidden}

@media(max-width:600px) and (min-height:461px){
  #menu .title{font-size:64px}#menu .title span{display:block;margin-left:0}
  .hero-art{display:block;width:165px;top:48px;right:-10px;bottom:auto;opacity:.9}
  #menu .tag{font-size:14px}#menu .menu-play>.row .btn{min-height:40px}
}
.shotsel button.on[data-k=loft]{background:linear-gradient(145deg,#ffe1a0,#efb34d);color:#241c11;border-color:#ffe1a0}
.shotsel button.on[data-k=loft] small{color:#574224}
.batside button{background:#0b182de6;border:1px solid #c1d3e04d;box-shadow:0 3px 12px #0002}
@media(max-height:460px){#menu .levels:has(#goSeries){grid-template-columns:repeat(2,minmax(0,1fr))}#menu .levels:has(#goResume:not([hidden])){grid-template-columns:repeat(3,minmax(0,1fr))}}
/* The toss is a scene, but its instructions need their own solid contrast surface. */
#toss>.card{padding:22px;border:1px solid #b1cad640;border-radius:13px;background:linear-gradient(130deg,#14263af7,#091626f7);box-shadow:0 14px 44px #0005}
#toss.scene>.card{margin:0;width:min(580px,100%);align-self:end;justify-self:start;gap:12px}
#toss.scene .title.sm{font-size:34px}#toss .tag{color:#e3eaf0;font-size:14px;line-height:1.55}
#toss .condline{color:#d4e0e9;line-height:1.6}#toss .condline i{color:#aebfd0}
#toss .btn.ghost{background:#21334a;border-color:#9bafc35c}
@media(max-width:600px){#toss.scene>.card{padding:17px;gap:10px}#toss.scene .title.sm{font-size:28px}#toss .tag{font-size:12px}#toss .condline{font-size:11px}}
@media(max-height:460px){#toss.scene>.card{width:min(470px,65%);padding:13px 16px;gap:8px}#toss.scene .title.sm{font-size:25px}#toss .tag,#toss .condline{font-size:11px}#toss .btn{padding:9px 15px}}

/* Small, short motions: entrances and feedback, with ambient movement confined to the home screen. */
@media(prefers-reduced-motion:no-preference){
  .screen:not([hidden])>.card{animation:panel-arrive .34s cubic-bezier(.2,.7,.25,1) both}
  #menu:not([hidden]) .menu-hero{animation:panel-arrive .5s cubic-bezier(.2,.7,.25,1) both}
  #menu:not([hidden]) .hero-art svg{animation:ball-drift 6s ease-in-out infinite}
  #menu:not([hidden]) .live-light{animation:light-breathe 3.8s ease-in-out infinite}
  #menu:not([hidden]) .hero-caption{animation:caption-arrive .6s .16s both}
  .screen .opt.on{animation:selection-settle .26s ease-out}
  .screen:not([hidden]) .stats>div{animation:panel-arrive .35s both}
  .screen:not([hidden]) .stats>div:nth-child(2){animation-delay:.05s}
  .screen:not([hidden]) .stats>div:nth-child(3){animation-delay:.1s}
  .screen:not([hidden]) .stats>div:nth-child(4){animation-delay:.15s}
  #banner.show:is(.b6,.b4,.bmil) .head{animation:moment-arrive .42s cubic-bezier(.18,.75,.25,1) both}
  #banner.show .line{animation:caption-arrive .3s .1s both}
  #replayTag:not([hidden]){animation:caption-arrive .25s both}
  #tvbar .chip:is(.c4,.c6,.cw){animation:chip-settle .28s cubic-bezier(.2,.75,.3,1) both}
  #tossBtns .btn{animation:panel-arrive .28s both}
  #tossBtns .btn:nth-child(2){animation-delay:.05s}
  @media(hover:hover){
    .opt:hover:not(:disabled),.tools button:hover,.batside button:hover:not(:disabled){transform:translateY(-1px);border-color:#d3e5ef80}
    #goQuick:hover .go{transform:translateX(3px);background:#fff2}
    .tcard:hover .tc svg{transform:translateY(-2px) rotate(-2deg)}
  }
  button:active:not(:disabled){transform:translateY(1px) scale(.985)}
}
#goQuick .go,.tc svg{transition:transform .22s ease,background-color .22s ease}
@keyframes panel-arrive{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:none}}
@keyframes caption-arrive{from{opacity:0}to{opacity:1}}
@keyframes ball-drift{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
@keyframes light-breathe{0%,100%{opacity:.65}50%{opacity:1}}
@keyframes selection-settle{from{box-shadow:inset 0 -2px #ffd078,0 0 0 3px #ffd07818}to{box-shadow:inset 0 -2px #ffd078,0 0 0 0 #ffd07800}}
@keyframes moment-arrive{from{opacity:0;transform:translateY(9px) scale(.96)}to{opacity:1;transform:none}}
@keyframes chip-settle{from{opacity:.45;transform:translateY(3px) scale(.9)}to{opacity:1;transform:none}}
@media(max-width:600px) and (min-height:461px){.hero-art{right:0;margin:0;width:140px}}
/* On portrait phones the dismissal caption owns the lower third. */
@media(max-width:720px) and (orientation:portrait){#game:has(#banner.bw.show) #comm{visibility:hidden}}

/* Keep voice names readable even on narrow phone settings. */
.voice-controls{display:flex;gap:10px;align-items:center;min-width:0}
.voice-controls select{flex:1;min-width:0;width:0;padding:12px;background:#0b1b2a;color:#edf5f7;border:1px solid #adc8d54d;border-radius:8px;font:inherit;font-size:13px}
.voice-controls .btn{flex-shrink:0}
#commentaryVoiceStatus{margin:0;overflow-wrap:anywhere}

/* Stumpflare's vector mark uses the same silhouette as the installed app. */
.hero-art img{display:block;width:100%;height:auto;max-height:220px;object-fit:contain;filter:drop-shadow(0 12px 24px #ffb45c16)}
@media(prefers-reduced-motion:no-preference){#menu:not([hidden]) .hero-art img{animation:ball-drift 6s ease-in-out infinite}}
@media(max-width:600px) and (min-height:461px){.hero-art img{max-height:140px}}
