@font-face { font-family: 'Anton'; src: url(fonts/anton.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Oswald'; src: url(fonts/oswald.woff2) format('woff2'); font-weight: 200 700; font-display: swap; }
:root { --acc: #8fd3ff; --acc2: #d6efff; --gold: #ffcf5a; --ink: #eef2fb; --mut: #9aa6c2; --gz: #33e27a; --red: #ff4a3d;
  --st: env(safe-area-inset-top, 0px); --sb: env(safe-area-inset-bottom, 0px); --sl: env(safe-area-inset-left, 0px); --sr: env(safe-area-inset-right, 0px); }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #04060b; color: var(--ink); font-family: 'Oswald', system-ui, sans-serif; overflow: hidden; overscroll-behavior: none; }
body { position: fixed; inset: 0; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
#app { position: absolute; inset: 0; }
#c { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hidden { display: none !important; }
button { font-family: inherit; color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

/* ---------- HUD ---------- */
#hud { position: absolute; inset: 0; pointer-events: none; }
.hud-top { position: absolute; top: calc(var(--st) + 10px); left: calc(var(--sl) + 10px); right: calc(var(--sr) + 10px); display: flex; align-items: stretch; justify-content: flex-end; gap: 8px; padding-left: 52px; }
.icon-btn { pointer-events: auto; position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255,255,255,.18); background: rgba(8,12,24,.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-size: 14px; letter-spacing: -2px; }
.hitter { flex: 1; min-width: 0; padding: 4px 10px; border-radius: 10px; background: linear-gradient(rgba(14,20,36,.88), rgba(6,9,18,.88)); border: 1px solid rgba(255,255,255,.12); display: flex; flex-direction: column; justify-content: center; }
.h-name { font-family: 'Anton', sans-serif; font-size: 19px; letter-spacing: .04em; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-sub { font-size: 11px; letter-spacing: .18em; color: var(--acc); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-box { min-width: 64px; padding: 4px 8px 5px; border-radius: 10px; background: linear-gradient(#11182b, #070a14); border: 1px solid rgba(255,255,255,.14); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 6px 18px rgba(0,0,0,.45); text-align: center; }
.board-box .lbl { font-size: 10px; letter-spacing: .2em; color: var(--mut); }
.board-box .val { font-family: 'Anton', sans-serif; font-size: 28px; line-height: 1.05; color: #fff; font-variant-numeric: tabular-nums; }
.board-box.hr .val { color: var(--gold); text-shadow: 0 0 12px rgba(255,200,80,.5); }
.board-box.bonus .val { color: var(--gz); animation: blink .5s steps(2) infinite; }
@keyframes blink { 50% { opacity: .5; } }
.hud-row2 { position: absolute; top: calc(var(--st) + 66px); left: calc(var(--sl) + 12px); right: calc(var(--sr) + 12px); display: flex; justify-content: space-between; gap: 8px; font-size: 12px; letter-spacing: .14em; color: #dfe7f7; text-shadow: 0 1px 3px #000, 0 0 8px #000; }
#hTarget { color: var(--gold); }
#skipBtn { position: absolute; right: calc(var(--sr) + 12px); bottom: calc(var(--sb) + 16px); pointer-events: auto; }
#skipBtn .btn { min-width: 110px; }
#reticle { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; z-index: 3; }
#reticle { --rr: 22px; --rs: 6px; }
#reticle .r-ring { position: absolute; left: calc(-1 * var(--rr)); top: calc(-1 * var(--rr)); width: calc(2 * var(--rr)); height: calc(2 * var(--rr)); box-sizing: border-box; border-radius: 50%; border: 2px solid rgba(255,255,255,.75); box-shadow: 0 0 10px rgba(143,211,255,.55), inset 0 0 8px rgba(143,211,255,.35); transition: transform .12s, border-color .12s; }
#reticle .r-dot { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px #fff; }
#reticle.armed .r-ring { border-color: var(--acc); transform: none; box-shadow: 0 0 16px rgba(143,211,255,.9), inset 0 0 10px rgba(143,211,255,.5); }
#readout { position: absolute; left: 50%; bottom: calc(var(--sb) + 14%); transform: translateX(-50%); display: flex; gap: 6px; pointer-events: none; z-index: 4; }
#readout .rd { min-width: 82px; padding: 5px 10px 6px; border-radius: 10px; background: rgba(6,9,18,.78); border: 1px solid rgba(255,255,255,.14); text-align: center; animation: rdIn .3s ease-out both; }
#readout .rd .k { font-size: 10px; letter-spacing: .2em; color: var(--mut); }
#readout .rd .v { font-family: 'Anton', sans-serif; font-size: 24px; line-height: 1.05; font-variant-numeric: tabular-nums; }
#readout .rd.dist .v { color: var(--gold); }
@keyframes rdIn { from { opacity: 0; transform: translateY(-8px); } }
.hint { position: absolute; left: 0; right: 0; bottom: calc(var(--sb) + 16%); text-align: center; font-size: 15px; letter-spacing: .16em; color: #fff; text-shadow: 0 2px 6px #000; pointer-events: none; animation: hintPulse 1.8s ease-in-out infinite; padding: 0 20px; }
@keyframes hintPulse { 0%,100% { opacity: .45; } 50% { opacity: 1; } }
#timing { position: absolute; left: 0; right: 0; bottom: calc(var(--sb) + 9%); text-align: center; font-size: 14px; letter-spacing: .22em; color: var(--acc2); text-shadow: 0 2px 6px #000; pointer-events: none; }
#callout { position: absolute; left: 0; right: 0; top: 38%; text-align: center; pointer-events: none; font-family: 'Anton', sans-serif; font-size: clamp(38px, 12vw, 72px); letter-spacing: .03em; color: #fff; opacity: 0; text-shadow: 0 0 22px rgba(255,200,80,.85), 0 4px 0 #5a3a00, 0 8px 20px #000; z-index: 4; }
#callout small { display: block; font-size: .36em; letter-spacing: .2em; color: var(--acc2); text-shadow: 0 2px 8px #000; }
#callout.show { animation: callout 1.7s cubic-bezier(.2,.9,.3,1.2) forwards; }
#callout.meh { color: #dfe6f6; font-size: clamp(26px, 8vw, 44px); text-shadow: 0 3px 10px #000; }
@keyframes callout { 0% { opacity: 0; transform: scale(.4); } 14% { opacity: 1; transform: scale(1.08); } 24% { transform: scale(1); } 82% { opacity: 1; } 100% { opacity: 0; transform: scale(1.04) translateY(-14px); } }
#loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: #04060b; letter-spacing: .12em; color: var(--mut); z-index: 50; transition: opacity .5s; }
#loading.out { opacity: 0; pointer-events: none; }
.spinner { width: 38px; height: 38px; border-radius: 50%; border: 3px solid rgba(255,255,255,.15); border-top-color: var(--acc); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- screens ---------- */
.screen { position: absolute; inset: 0; z-index: 10; }
#title { background: radial-gradient(120% 70% at 50% 42%, rgba(4,6,12,.0), rgba(4,6,12,.74) 78%); display: flex; align-items: center; justify-content: center; padding: calc(var(--st) + 56px) calc(var(--sr) + 18px) calc(var(--sb) + 16px) calc(var(--sl) + 18px); }
.title-wrap { width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.logo-wrap { width: min(70vw, 300px); aspect-ratio: 1; display: grid; place-items: center; }
.logo-wrap img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 28px rgba(0,0,0,.7)); animation: logoIn .9s cubic-bezier(.2,.9,.3,1.1) both; }
@keyframes logoIn { from { opacity: 0; transform: translateY(-14px) scale(.94); } }
.menu { width: 100%; display: flex; flex-direction: column; gap: 9px; }
.row { display: flex; gap: 9px; }
.row > * { flex: 1; }
.btn { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 50px; padding: 7px 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.2); background: linear-gradient(#1a2238, #0c1120); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 6px 18px rgba(0,0,0,.5); font-size: 16px; letter-spacing: .1em; text-decoration: none; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn.primary { min-height: 62px; border-color: #d9f1ff; background: linear-gradient(#bfe7ff, #5fb6ef 55%, #2a7fc0); color: #04121f; box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 8px 26px rgba(70,160,230,.45); }
.btn.daily { border-color: rgba(255,207,90,.6); background: linear-gradient(#2b2412, #15110a); }
.btn.daily .b-main em { font-style: normal; font-size: 13px; letter-spacing: .14em; color: var(--gold); margin-left: 6px; vertical-align: middle; }
.btn.small { min-height: 44px; font-size: 14px; }
.btn.ghost { background: transparent; box-shadow: none; }
.btn[disabled] { opacity: .45; }
.b-main { font-family: 'Anton', sans-serif; font-size: 22px; letter-spacing: .06em; line-height: 1.1; }
.btn:not(.primary) .b-main { font-size: 19px; }
.b-sub { font-size: 12px; letter-spacing: .1em; opacity: .82; }
.toggles { gap: 6px; }
.toggles .tog { white-space: nowrap; flex: 1 1 auto; min-width: 0; min-height: 38px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(10,14,26,.6); font-size: 12px; letter-spacing: .02em; padding: 0 5px; }
.tog[aria-pressed="false"] { opacity: .45; text-decoration: line-through; }
.best { text-align: center; font-size: 13px; letter-spacing: .12em; color: var(--mut); min-height: 18px; }
.best b { color: var(--gold); font-weight: 600; }
.gdg-back { position: absolute; z-index: 20; top: calc(var(--st) + 10px); left: calc(var(--sl) + 10px); display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 13px 0 5px; border-radius: 999px; background: rgba(8,12,24,.72); border: 1px solid rgba(255,255,255,.22); color: #e9eefb; text-decoration: none; font-size: 13px; letter-spacing: .12em; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 4px 14px rgba(0,0,0,.4); }
.gdg-back img { width: 28px; height: 28px; object-fit: contain; }
.gdg-back.inline { position: static; align-self: center; margin-top: 4px; }
.gdg-back.inline.top { align-self: flex-start; margin: 0 0 4px; }
.sheet { background: rgba(3,5,10,.6); display: flex; align-items: center; justify-content: center; padding: calc(var(--st) + 12px) calc(var(--sr) + 12px) calc(var(--sb) + 12px) calc(var(--sl) + 12px); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.sheet-card { width: 100%; max-width: 400px; max-height: 100%; overflow: auto; -webkit-overflow-scrolling: touch; touch-action: pan-y; display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 20px; background: linear-gradient(#141b2e, #090d18); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.sheet-card.wide { max-width: 440px; }
.sheet-card h2 { margin: 0; font-family: 'Anton', sans-serif; font-weight: 400; letter-spacing: .06em; font-size: 26px; text-align: center; }
.sheet-card p { margin: 0; color: #c9d2e8; font-size: 15px; line-height: 1.4; text-align: center; }
.setup-lbl { font-size: 11px; letter-spacing: .24em; color: var(--mut); margin-top: 2px; display: flex; justify-content: space-between; align-items: center; }
.link { background: none; border: none; color: var(--acc); font-size: 12px; letter-spacing: .14em; text-decoration: underline; padding: 4px; }
.stepper { display: flex; align-items: center; justify-content: center; gap: 18px; }
.stepper .btn { width: 56px; font-size: 24px; }
#pCount { font-family: 'Anton', sans-serif; font-size: 34px; min-width: 40px; text-align: center; }
.inits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.inits label { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; letter-spacing: .16em; color: var(--mut); }
.inits input { width: 100%; height: 42px; border-radius: 10px; border: 1px solid rgba(255,255,255,.25); background: #0b1120; color: #fff; font-family: 'Anton', sans-serif; font-size: 22px; letter-spacing: .12em; text-align: center; text-transform: uppercase; -webkit-user-select: text; user-select: text; touch-action: manipulation; }
.cpu-list { display: flex; flex-wrap: wrap; gap: 5px; }
.cpu-list span { padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); font-size: 13px; letter-spacing: .04em; }
.cpu-list span i { font-style: normal; color: var(--mut); font-size: 11px; margin-left: 4px; }
.parks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.park { position: relative; text-align: left; padding: 9px 10px; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); background: linear-gradient(#141c30, #0a0f1c); min-height: 64px; display: flex; flex-direction: column; gap: 2px; }
.park .pn { font-family: 'Anton', sans-serif; font-size: 16px; letter-spacing: .04em; }
.park .pd { font-size: 11px; letter-spacing: .06em; color: var(--mut); }
.park.on { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc), 0 0 18px rgba(143,211,255,.25); }
.park-blurb { font-size: 13px; color: #c9d2e8; text-align: center; min-height: 36px; }
.d-date { text-align: center; font-size: 12px; letter-spacing: .3em; color: var(--gold); }
.d-desc { font-size: 15px !important; }
.d-cond { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.d-cond span { padding: 5px 10px; border-radius: 999px; background: rgba(255,207,90,.1); border: 1px solid rgba(255,207,90,.35); font-size: 13px; letter-spacing: .06em; }
.d-status { text-align: center; font-size: 14px; letter-spacing: .08em; color: var(--acc2); min-height: 18px; }
.d-top ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 3px; }
.d-top li { display: flex; gap: 8px; padding: 4px 10px; border-radius: 8px; background: rgba(255,255,255,.04); font-size: 15px; }
.d-top li .r { width: 22px; color: var(--mut); }
.d-top li .n { flex: 1; font-family: 'Anton', sans-serif; letter-spacing: .12em; }
.d-top li .s { color: var(--gold); }
.d-top .empty { text-align: center; color: var(--mut); font-size: 14px; padding: 8px; }
.d-next { text-align: center; font-size: 12px; letter-spacing: .18em; color: var(--mut); }
.u-round { text-align: center; font-size: 13px; letter-spacing: .3em; color: var(--acc); }
.u-name { text-align: center; font-family: 'Anton', sans-serif; font-size: 54px; letter-spacing: .1em; line-height: 1.05; }
.u-note { text-align: center; color: #c9d2e8; font-size: 15px; }
/* bracket */
.st-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.st-table td { padding: 5px 6px; border-bottom: 1px solid rgba(255,255,255,.06); }
.st-table td.r { width: 26px; color: var(--mut); }
.st-table td.n { font-family: 'Anton', sans-serif; letter-spacing: .05em; font-size: 16px; }
.st-table td.n i { font-family: 'Oswald', sans-serif; font-style: normal; font-size: 11px; color: var(--mut); letter-spacing: .1em; margin-left: 6px; }
.st-table td.h { text-align: right; font-family: 'Anton', sans-serif; font-size: 18px; color: var(--gold); width: 44px; }
.st-table td.l { text-align: right; color: var(--mut); width: 64px; font-size: 13px; }
.st-table tr.adv td { background: rgba(143,211,255,.08); }
.st-table tr.adv td.r { color: var(--acc); }
.st-table tr.me td.n { color: var(--acc2); }
.st-table tr.cut td { border-top: 2px dashed rgba(143,211,255,.35); }
.bk { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: center; }
.bk-col { display: flex; flex-direction: column; gap: 10px; }
.bk-lbl { font-size: 10px; letter-spacing: .24em; color: var(--mut); text-align: center; }
.bk-m { border-radius: 12px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03); overflow: hidden; }
.bk-m div { display: flex; justify-content: space-between; gap: 6px; padding: 6px 9px; font-size: 14px; }
.bk-m div + div { border-top: 1px solid rgba(255,255,255,.08); }
.bk-m .s { font-family: 'Anton', sans-serif; color: var(--gold); }
.bk-m .w { background: rgba(143,211,255,.12); }
.bk-m .w .nm { color: #fff; }
.bk-m .nm { font-family: 'Anton', sans-serif; letter-spacing: .04em; color: #c9d2e8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-champ { grid-column: 1 / -1; text-align: center; font-family: 'Anton', sans-serif; font-size: 22px; letter-spacing: .06em; color: var(--gold); }
.res { gap: 8px; }
.res-head { text-align: center; letter-spacing: .36em; color: var(--mut); font-size: 13px; }
.res-big { text-align: center; font-family: 'Anton', sans-serif; font-size: 50px; line-height: 1.02; color: var(--gold); text-shadow: 0 0 22px rgba(255,200,80,.4); }
.res-sub { text-align: center; font-size: 14px; letter-spacing: .1em; color: #c9d2e8; }
.res-btns { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.coach ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.35; color: #dfe6f6; }
.small-p { font-size: 13px !important; color: var(--mut) !important; text-align: left !important; }

@media (orientation: landscape) and (max-height: 520px) {
  #title { padding-top: calc(var(--st) + 12px); }
  .title-wrap { max-width: 780px; flex-direction: row; gap: 24px; align-items: center; }
  .logo-wrap { width: min(70vh, 300px); max-width: 40vw; }
  .menu { max-width: 380px; gap: 7px; }
  .btn.primary { min-height: 52px; }
  .btn { min-height: 42px; }
  .btn.small { min-height: 38px; }
  .b-main { font-size: 19px; }
  .hud-top { justify-content: flex-start; right: auto; width: min(560px, 70vw); }
  .hitter { max-width: 260px; }
  .board-box { min-width: 60px; padding: 2px 8px 3px; }
  .board-box .val { font-size: 22px; }
  .hud-row2 { top: calc(var(--st) + 58px); right: auto; width: min(560px, 70vw); justify-content: flex-start; gap: 18px; }
  #readout { top: auto; bottom: calc(var(--sb) + 14px); left: calc(var(--sl) + 14px); transform: none; }
  #callout { top: 30%; }
  .sheet-card { max-width: 620px; padding: 12px 16px; gap: 7px; }
  .sheet-card.wide { max-width: 680px; }
  .parks { grid-template-columns: repeat(3, 1fr); }
  .inits { grid-template-columns: repeat(8, 1fr); }
  .res-big { font-size: 40px; }
}
body.clean #hud, body.clean #callout, body.clean #hint, body.clean #timing, body.clean #readout, body.clean #reticle, body.clean .screen { display: none !important; }

.sticky-actions { position: sticky; bottom: -16px; margin: 0 -16px -16px; padding: 10px 16px 14px; background: linear-gradient(rgba(9,13,24,0), #090d18 30%); z-index: 2; }
@media (orientation: landscape) and (max-height: 520px) { .sticky-actions { bottom: -12px; margin: 0 -16px -12px; padding: 8px 16px 10px; } }

#reticle .r-sweet { position: absolute; left: calc(-1 * var(--rs)); top: calc(-1 * var(--rs)); width: calc(2 * var(--rs)); height: calc(2 * var(--rs)); box-sizing: border-box; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.55); }
#reticle .r-ring::before, #reticle .r-ring::after { content: ''; position: absolute; background: rgba(255,255,255,.55); }
#reticle .r-ring::before { left: -9px; right: -9px; top: 50%; height: 1px; margin-top: -.5px; clip-path: polygon(0 0, 9px 0, 9px 100%, 0 100%, 0 0, 100% 0, 100% 100%, calc(100% - 9px) 100%, calc(100% - 9px) 0); }
#reticle .r-ring::after { top: -9px; bottom: -9px; left: 50%; width: 1px; margin-left: -.5px; clip-path: polygon(0 0, 100% 0, 100% 9px, 0 9px, 0 0, 0 100%, 100% 100%, 100% calc(100% - 9px), 0 calc(100% - 9px)); }
#timing { letter-spacing: .12em; }
#timing .tm-l1 { font-family: Anton, Oswald, sans-serif; font-size: 26px; letter-spacing: .08em; color: #fff; line-height: 1.1; }
#timing .tm-l1 span { font-family: Oswald, sans-serif; font-size: 13px; letter-spacing: .12em; margin-left: 10px; color: rgba(255,255,255,.75); vertical-align: middle; }
#timing .tm-l1.perf { color: #ffd45a; } #timing .tm-l1.good { color: #8fd3ff; } #timing .tm-l1.bad { color: #ff8a7a; }
#timing .tm-bar { position: relative; width: min(260px, 64vw); height: 8px; margin: 6px auto 16px; border-radius: 4px; background: rgba(0,0,0,.45); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
#timing .tz { position: absolute; top: 0; bottom: 0; border-radius: 4px; }
#timing .tz.e { left: 0; right: 0; background: linear-gradient(90deg, rgba(255,138,122,.35), rgba(255,138,122,0) 30%, rgba(255,138,122,0) 70%, rgba(255,138,122,.35)); }
#timing .tz.g { left: 30%; right: 30%; background: rgba(143,211,255,.35); }
#timing .tz.p { left: 42.4%; right: 42.4%; background: #ffd45a; }
#timing .tm-bar b { position: absolute; top: -4px; width: 3px; height: 16px; margin-left: -1.5px; background: #fff; border-radius: 2px; box-shadow: 0 0 6px #fff; }
#timing .tm-bar em { position: absolute; top: 11px; font-style: normal; font-size: 9px; letter-spacing: .18em; color: rgba(255,255,255,.55); }
#timing .tm-bar .lE { left: 0; } #timing .tm-bar .lL { right: 0; }
#timing .tm-l2 { font-size: 13px; letter-spacing: .22em; color: var(--acc2); }

/* ---------------- v3: difficulty + pick your hitter */
.cpu-note, .diff-note { font-size: 12.5px; line-height: 1.35; color: var(--mut); text-align: center; }
.diffs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 4px; border-radius: 14px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.1); }
.dif { min-height: 40px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--ink); font-family: 'Anton', sans-serif; font-size: 16px; letter-spacing: .08em; text-transform: uppercase; }
.dif.on { background: linear-gradient(#bfe7ff, #5fb6ef 55%, #2a7fc0); color: #04121f; border-color: #d9f1ff; box-shadow: 0 4px 14px rgba(70,160,230,.35); }
.pick-card { max-width: 760px !important; }
.pk-head { text-align: center; display: flex; flex-direction: column; gap: 2px; }
.pk-who { font-size: 11px; letter-spacing: .26em; color: var(--gold); }
.pk-sub { font-size: 12.5px; color: var(--mut); line-height: 1.35; }
.pk-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.pk { position: relative; display: flex; align-items: stretch; gap: 6px; text-align: left; padding: 6px 8px 7px 2px; min-height: 96px; border-radius: 13px; border: 1px solid rgba(255,255,255,.13); background: linear-gradient(160deg, #18213a, #0a0f1c 70%); color: var(--ink); overflow: hidden; }
.pk::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(120% 70% at 0% 0%, rgba(143,211,255,.10), transparent 60%); }
.pk.on { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc), 0 0 20px rgba(143,211,255,.3); background: linear-gradient(160deg, #1f3156, #0c1426 70%); }
.pk.taken { opacity: .38; }
.pk-sil { flex: 0 0 38px; background: url(img/hitter-sil.webp) center bottom / contain no-repeat; filter: brightness(1.35); }
.pk.on .pk-sil { filter: brightness(2) drop-shadow(0 0 6px rgba(143,211,255,.45)); }
.pk-sil.lh { transform: scaleX(-1); }
.pk-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pk-top { display: flex; justify-content: space-between; align-items: baseline; }
.pk-rank { font-size: 10px; letter-spacing: .18em; color: var(--mut); }
.pk-hr { font-family: 'Anton', sans-serif; font-size: 20px; line-height: 1; color: var(--gold); }
.pk-hr small { font-size: 11px; letter-spacing: .1em; color: rgba(255,207,90,.75); }
.pk-name { font-family: 'Oswald', 'Anton', sans-serif; font-weight: 600; font-size: 14.5px; line-height: 1.1; letter-spacing: .01em; overflow-wrap: anywhere; }
.pk-meta { font-size: 9.5px; letter-spacing: .2em; color: var(--acc2); opacity: .8; margin-bottom: 1px; }
.pk-bar { display: flex; align-items: center; gap: 5px; }
.pk-bar i { font-style: normal; font-size: 8.5px; letter-spacing: .14em; color: var(--mut); width: 24px; }
.pk-bar b { flex: 1; height: 5px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; }
.pk-bar b em { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #2a7fc0, #8fd3ff); }
.pk-bar + .pk-bar b em { background: linear-gradient(90deg, #8a6a1c, #ffcf5a); }
.pk-taken { position: absolute; top: 6px; right: 8px; padding: 2px 7px; border-radius: 999px; background: rgba(255,207,90,.2); border: 1px solid rgba(255,207,90,.5); font-size: 10px; letter-spacing: .12em; color: var(--gold); }
.pk.taken .pk-hr { visibility: hidden; }
#pkGo .b-main { font-size: 19px; line-height: 1.05; }
#pkGo[disabled] { opacity: .45; filter: grayscale(.6); }
.d-hitter { text-align: center; font-size: 11px; letter-spacing: .2em; color: var(--mut); display: flex; flex-direction: column; gap: 1px; padding: 6px 10px; border-radius: 12px; background: rgba(143,211,255,.06); border: 1px solid rgba(143,211,255,.2); }
.d-hitter b { font-family: 'Anton', sans-serif; font-weight: 400; font-size: 20px; letter-spacing: .05em; color: var(--ink); }
.d-hitter span { font-size: 11px; color: var(--acc2); }
.d-hitter small { font-size: 10.5px; letter-spacing: .08em; color: var(--mut); }
.u-as { font-size: 13px; color: var(--acc2); letter-spacing: .04em; }
@media (min-width: 560px) { .pk-grid { grid-template-columns: repeat(3, 1fr); } }
@media (orientation: landscape) and (max-height: 520px) {
  .pk-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .pk { min-height: 84px; }
  .pk-sub { display: none; }
  .diffs { padding: 3px; } .dif { min-height: 34px; font-size: 14px; }
}
@media (orientation: landscape) and (max-height: 520px) and (min-width: 900px) { .pk-grid { grid-template-columns: repeat(5, 1fr); } }

/* v3: in portrait the hit readout sits above the timing meter instead of on top of it */
@media (orientation: portrait) { #readout { bottom: calc(var(--sb) + 9% + 100px); } }
#readout .rd .v { white-space: nowrap; }

/* v4: hold to fast-forward the ball flight */
#ff { position: absolute; right: calc(var(--sr) + 14px); top: calc(var(--st) + 98px); padding: 6px 12px 7px; border-radius: 999px; background: rgba(6,9,18,.62); border: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.72); font-size: 11px; letter-spacing: .18em; pointer-events: none; z-index: 5; text-shadow: 0 1px 3px #000; transition: transform .12s ease-out, background .12s; }
#ff.on { font-family: 'Anton', sans-serif; font-size: 22px; letter-spacing: .06em; padding: 4px 14px 5px; color: #fff; background: rgba(255,170,40,.88); border-color: rgba(255,220,150,.9); transform: scale(1.04); box-shadow: 0 4px 18px rgba(0,0,0,.45); }
body.clean #ff { display: none !important; }
@media (orientation: landscape) { #ff { top: calc(var(--st) + 84px); } }

/* garage achievements button (gdg-achievements.js fills the count) */
.btn.ach { flex-direction: row; gap: 8px; }
.btn.ach .gdgach-n { opacity: .75; font-variant-numeric: tabular-nums; }
