/* ── Bowling (party game 4) — SPEC-party-bowling, CONTRACT-bowling-state v2 ─────────────────────────────────────
 * Canvas agents/cto/design/bowling/project (Main, TV-Home, TV-Neon, TV-Single/-Double/-Strike/-Spare/-Split/-Bonus,
 * TV-Win, TV-LegStats/-MatchStats). DS2 brand everywhere (navy stage, Audiowide, gold #ffc93c for the mark that
 * matters); NEON only in the board glow, the lane arrows, the stamps and the Neon Frame skin (.bw-neon). No confetti.
 * Everything that moves stops under prefers-reduced-motion (the states still switch). */
.game--bowling {
  --bw-gold: #ffc93c;
  --bw-blue: #429bfc;
  --bw-brand: #014cfd;
  --bw-grey: #8e98a0;
  --bw-cyan: #00e5ff;
  --bw-pink: #ff2bd6;
  --bw-purple: #b44bff;
  --bw-ink: #00091f;
  /* the shared join screen (derby.css .dy-*) reads Derby's tokens */
  --dy-gold: #ffc93c;
  --dy-blue: #429bfc;
  --dy-grey: #8e98a0;
  --dy-green: #2fd47a;
  color: #d1d5d8;
  font-family: 'Outfit', 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  letter-spacing: 0;
  text-transform: none;
}
.bw-bg { position: absolute; inset: 0; background: linear-gradient(180deg, #001546 0%, #00091f 100%); }
.bw-bg::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--bw-brand); }
.game--bowling[data-scene="lobby"] .bw-bg { background: radial-gradient(ellipse 70% 62% at 50% 40%, #0b2a6e 0%, #03123a 48%, #00091f 100%); }
.bw-scene { position: absolute; inset: 0; z-index: 7; } /* over the header: the blackout beats take the whole screen */
.bw-eye { font-family: var(--dh-font-display); font-size: 20px; letter-spacing: .16em; text-transform: uppercase; color: var(--bw-grey); }
.bw-eye--accent { color: var(--bw-blue) !important; }

/* Header: "BOWLING" + the eyebrow, the join / camera pill right (canvas Main: 60 / 30) */
.bw-head { position: absolute; left: 60px; right: 60px; top: 30px; z-index: 6; display: flex; align-items: center; justify-content: space-between; }
.game--bowling[data-scene="lobby"] .bw-head { left: 72px; right: 72px; top: 40px; }
.bw-head__l { display: flex; align-items: baseline; gap: 28px; min-width: 0; }
.bw-title { font-family: var(--dh-font-display); font-size: 52px; line-height: 1; color: #fff; letter-spacing: .04em; }
.bw-head__eye { white-space: nowrap; }
.bw-pill i.bw-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; display: inline-block; background: #2fd47a; box-shadow: 0 0 0 5px rgba(47, 212, 122, .18); }
.game--bowling[data-scene="band"] .bw-head { opacity: .5; }
.game--bowling[data-scene="stats"] .bw-head, .game--bowling[data-scene="stats"] .bw-bg::before { display: none; }

/* ── Lobby (TV-Home on the locked party join layout) ─────────────────────── */
.bw-photo { position: absolute; inset: 0; display: none; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 9, 31, .66) 0%, rgba(0, 9, 31, .24) 32%, rgba(0, 9, 31, 0) 55%),
    linear-gradient(180deg, #00091f 0%, rgba(0, 9, 31, .88) 10%, rgba(0, 9, 31, .58) 30%, rgba(0, 9, 31, .3) 48%, rgba(0, 9, 31, 0) 56%, rgba(0, 9, 31, 0) 74%, rgba(0, 9, 31, .6) 90%, rgba(0, 9, 31, .88) 100%),
    url("img/bowling/lobby-alley.jpg") -120px 100px / 2100px auto no-repeat; }
.game--bowling[data-scene="lobby"] .bw-photo { display: block; }
.bw-qr svg { width: 380px; height: 380px; display: block; }
.bw-cloth { border-radius: 20px; width: 276px; }
.game--bowling .dy-lseat .dy-av80 { width: 80px; height: 80px; font-size: 28px; }

/* ── The lane scene (canvas Main) ────────────────────────────────────────── */
.bw-board { position: absolute; left: 60px; top: 120px; width: 560px; display: flex; justify-content: center; }
.bw-board__face { position: relative; width: 470px; height: 470px; }
.bw-board__face svg { display: block; }
.bw-num { position: absolute; transform: translate(-50%, -50%); font-family: var(--dh-font-display); line-height: 1; }
.bw-pulse { animation: bw-pulse 1.4s ease-in-out infinite; }
@keyframes bw-pulse { 0%, 100% { opacity: 1 } 50% { opacity: .55 } }
.bw-hit { transform-box: fill-box; transform-origin: center; }
.bw-hit.is-fresh { animation: bw-hitpop .45s ease-out both; }
@keyframes bw-hitpop { 0% { transform: scale(0); opacity: 0 } 40% { transform: scale(1.6); opacity: 1 } 100% { transform: scale(1) } }

.bw-lanewrap { position: absolute; left: 660px; top: 84px; width: 1200px; height: 556px; transform: scale(.88); transform-origin: 50% 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 84%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, #000 0%, #000 84%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
  mask-composite: intersect; }
.bw-lane, .bw-lane__svg { position: absolute; inset: 0; }
.bw-sign { position: absolute; left: 0; right: 0; top: 32px; text-align: center; font-family: var(--dh-font-display); font-size: 30px; line-height: 1; letter-spacing: .12em; color: #fff; }
.bw-arrow { position: absolute; top: 530px; transform: translateX(-50%); font-family: var(--dh-font-display); font-size: 24px; line-height: 1; text-shadow: 0 2px 6px rgba(0, 0, 0, .8); }
.bw-pin { position: absolute; transform: translate(calc(-50% + var(--dx)), -100%) rotate(var(--rot)); transform-origin: 50% 100%; opacity: var(--op); }
.bw-pin__refl { position: absolute; left: 0; top: 100%; transform: scaleY(-1); opacity: .16; }
.bw-pin.is-falling { animation: bw-fall .7s cubic-bezier(.3, .7, .4, 1) both; }
@keyframes bw-fall {
  0% { transform: translate(-50%, -100%) rotate(0deg); opacity: 1 }
  30% { transform: translate(calc(-50% + var(--dx) * .35), -112%) rotate(calc(var(--rot) * .35)); opacity: 1 }
  100% { transform: translate(calc(-50% + var(--dx)), -100%) rotate(var(--rot)); opacity: var(--op) }
}
/* BONUS DARTS: a fresh rack rises out of the deck, row by row (the back row first) */
.bw-pin.is-rising { animation: bw-rise .7s cubic-bezier(.2, .8, .3, 1.2) both; }
@keyframes bw-rise { 0% { transform: translate(-50%, -40%); opacity: 0 } 60% { transform: translate(-50%, -104%); opacity: 1 } 100% { transform: translate(-50%, -100%); opacity: 1 } }

.bw-flash { position: absolute; left: 660px; top: 84px; width: 1200px; height: 490px; pointer-events: none; }
.bw-flash__in { position: absolute; inset: 0; opacity: 0; background: radial-gradient(ellipse 55% 65% at 50% 55%, #ffffff, color-mix(in srgb, var(--c1) 53%, transparent) 40%, transparent 75%); animation: bw-flash .6s ease-out .3s both; }
@keyframes bw-flash { 0% { opacity: 0 } 15% { opacity: .55 } 100% { opacity: 0 } }

.bw-beams { position: absolute; inset: 0; pointer-events: none; }
.bw-beam { position: absolute; left: 30%; top: -80px; width: 220px; height: 1100px; transform-origin: 50% 0; filter: blur(8px);
  background: linear-gradient(180deg, rgba(255, 43, 214, .38), rgba(0, 0, 0, 0)); animation: bw-beam 4s ease-in-out infinite alternate; }
.bw-beam--b { left: 62%; animation-delay: -2s; background: linear-gradient(180deg, rgba(0, 229, 255, .34), rgba(0, 0, 0, 0)); }
@keyframes bw-beam { 0% { transform: rotate(-18deg) } 100% { transform: rotate(18deg) } }

/* The moment, big: neon stamps (strike cyan · double pink · turkey both tubes · spare purple, smaller), calls */
.bw-big { position: absolute; inset: 0; pointer-events: none; z-index: 8; }
.bw-big__in { position: absolute; left: 660px; right: 60px; top: 250px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.bw-big__in--stamp { left: 200px; top: 200px; }
.bw-big__in--bonus { left: 120px; top: 210px; gap: 12px; }
.bw-slam { display: block; }
.bw-stamp { display: inline-block; font-family: 'Monoton', var(--dh-font-display); font-weight: 400; line-height: 1; border-radius: 32px; border-style: solid; white-space: nowrap; color: #fff;
  border-color: var(--c1); transform: rotate(var(--tilt)); background: rgba(7, 4, 26, .55);
  text-shadow: 0 0 6px #fff, 0 0 18px var(--c1), 0 0 42px var(--c1), 0 0 90px var(--c2);
  box-shadow: 0 0 18px var(--c1), 0 0 60px var(--c2), inset 0 0 22px var(--c1); }
.bw-call { display: block; font-family: var(--dh-font-display); font-size: 150px; line-height: 1; color: #fff; white-space: nowrap; text-shadow: 0 6px 0 rgba(0, 9, 31, .6), 0 0 40px rgba(130, 193, 255, .55); }
.bw-call--split { text-shadow: 0 6px 0 rgba(0, 9, 31, .6), 0 0 40px var(--bw-pink); }
.bw-call--neon { color: #82c1ff; text-shadow: 0 0 8px #429bfc, 0 0 34px #429bfc, 0 0 80px #429bfc; }
.bw-call--bonus { font-size: 120px; color: #fff; text-shadow: 0 0 8px var(--bw-pink), 0 0 34px var(--bw-pink), 0 0 80px var(--bw-pink); }
.bw-sub { font-family: var(--dh-font-display); font-size: 30px; letter-spacing: .08em; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .9); background: rgba(0, 9, 31, .6); padding: 8px 22px; border-radius: 12px; white-space: nowrap; }
.bw-big__in.is-fresh .bw-slam { animation: bw-slam .45s cubic-bezier(.2, .8, .3, 1.2) .3s both; }
.bw-big__in.is-fresh .bw-sub { animation: bw-subin .35s ease-out .55s both; }
.bw-big__in--call.is-fresh .bw-slam, .bw-big__in--bonus.is-fresh .bw-slam { animation-delay: 0s; }
.bw-big__in--call.is-fresh .bw-sub, .bw-big__in--bonus.is-fresh .bw-sub { animation-delay: .25s; }
.bw-big__in--stamp.is-fresh .bw-stamp { animation: bw-buzz .5s steps(1) .6s both; }
@keyframes bw-slam { 0% { transform: scale(2.4); opacity: 0 } 60% { transform: scale(.94); opacity: 1 } 100% { transform: scale(1); opacity: 1 } }
@keyframes bw-subin { 0% { transform: translateY(16px); opacity: 0 } 100% { transform: none; opacity: 1 } }
@keyframes bw-buzz { 0%, 15%, 35%, 52%, 70%, 100% { opacity: 1 } 8%, 42%, 62% { opacity: .25 } }
/* The hit: the screen shivers, harder up the crescendo (strike < double < turkey); the spare a light shiver */
.bw-scene.bw-shiverS { animation: bw-shiverS .45s ease-out .3s; }
.bw-scene.bw-shiverM { animation: bw-shiverM .5s ease-out .3s; }
.bw-scene.bw-shiverT { animation: bw-shiverT .6s ease-out .3s; }
@keyframes bw-shiverS { 0% { transform: none } 20% { transform: translate(-6px, 3px) } 40% { transform: translate(5px, -3px) } 60% { transform: translate(-4px, 2px) } 80% { transform: translate(3px, -1px) } 100% { transform: none } }
@keyframes bw-shiverM { 0% { transform: none } 16% { transform: translate(-12px, 5px) } 33% { transform: translate(10px, -5px) } 50% { transform: translate(-7px, 4px) } 66% { transform: translate(5px, -2px) } 83% { transform: translate(-2px, 1px) } 100% { transform: none } }
@keyframes bw-shiverT { 0% { transform: none } 14% { transform: translate(-22px, 10px) } 28% { transform: translate(18px, -9px) } 42% { transform: translate(-13px, 7px) } 57% { transform: translate(9px, -4px) } 72% { transform: translate(-5px, 2px) } 100% { transform: none } }
/* …then the three blackout beats (strike / double / turkey only): the room goes dark with the tube, done by ~0.9 s */
.bw-blackout { position: absolute; inset: 0; pointer-events: none; z-index: 20; }
.bw-blackout__in { position: absolute; inset: 0; background: #000; opacity: 0; animation: bw-blackout .5s steps(1) .6s both; }
@keyframes bw-blackout { 0% { opacity: .88 } 15% { opacity: 0 } 35% { opacity: .88 } 52% { opacity: 0 } 62% { opacity: .88 } 70%, 100% { opacity: 0 } }

/* The bowler and the visit's tiles; PINS DOWN */
.bw-thrower { position: absolute; left: 60px; top: 604px; width: 1800px; display: flex; align-items: center; gap: 28px; z-index: 4; }
.bw-av96 { width: 96px; height: 96px; font-size: 34px; box-shadow: 0 0 0 5px #00091f, 0 0 0 9px var(--bw-brand), 0 0 40px rgba(1, 76, 253, .6); }
.bw-thrower__who { display: flex; flex-direction: column; gap: 6px; width: 300px; }
.bw-thrower__name { font-family: var(--dh-font-display); font-size: 56px; line-height: .95; color: #fff; overflow-wrap: anywhere; }
.bw-thrower__name.is-long { font-size: 38px; }
.bw-thrower__line { font-family: var(--dh-font-display); font-size: 18px; letter-spacing: .14em; color: var(--bw-pink); }
.bw-tiles { display: flex; gap: 12px; }
.bw-tile { width: 208px; height: 92px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-family: var(--dh-font-display); font-size: 40px; }
.bw-tile--thrown { background: rgba(209, 213, 216, .16); color: #fff; }
.bw-tile--gold { background: var(--bw-gold); color: var(--bw-ink); box-shadow: 0 0 30px rgba(255, 201, 60, .6); }
.bw-tile--throw { background: linear-gradient(180deg, #014cfd, #0136b8); color: #fff; animation: bw-throw 1.2s ease-in-out infinite; }
.bw-tile--wait { background: rgba(209, 213, 216, .07); color: rgba(255, 255, 255, .3); }
.bw-tile--bonus, .bw-tile--bonus-throw { background: linear-gradient(180deg, #ff2bd6, #8a12d6); color: #fff; box-shadow: 0 0 30px rgba(255, 43, 214, .6); }
.bw-tile--bonus-throw { animation: bw-throw-pink 1.2s ease-in-out infinite; }
@keyframes bw-throw { 0%, 100% { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35), 0 0 18px rgba(1, 76, 253, .4) } 50% { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6), 0 0 38px rgba(1, 76, 253, .75) } }
@keyframes bw-throw-pink { 0%, 100% { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35), 0 0 18px rgba(255, 43, 214, .4) } 50% { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6), 0 0 38px rgba(255, 43, 214, .75) } }
.bw-tile.is-land { animation: bw-land .45s ease-out both; }
@keyframes bw-land { 0% { transform: scale(.6); opacity: 0 } 40% { transform: scale(1.12); opacity: 1 } 100% { transform: scale(1) } }
/* BONUS DARTS: the bonus tiles drop in from above, 0.35 s apart, each with a pink + cyan burst */
.bw-tile.is-drop { animation: bw-drop .6s cubic-bezier(.2, .8, .3, 1.2) both, bw-burst 1.2s ease-out both; }
@keyframes bw-drop { 0% { transform: translateY(-420px) rotate(-14deg) scale(1.3); opacity: 0 } 70% { transform: translateY(14px) rotate(3deg) scale(1.08); opacity: 1 } 100% { transform: none; opacity: 1 } }
@keyframes bw-burst { 0%, 30% { box-shadow: 0 0 0 0 rgba(255, 43, 214, 0) } 45% { box-shadow: 0 0 0 18px rgba(255, 43, 214, .55), 0 0 90px #00e5ff } 100% { box-shadow: 0 0 0 0 rgba(255, 43, 214, 0), 0 0 30px rgba(255, 43, 214, .5) } }
.bw-down { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; margin-left: auto; }
.bw-down__k { font-family: var(--dh-font-display); font-size: 18px; letter-spacing: .14em; color: var(--bw-grey); }
.bw-down__v { font-family: var(--dh-font-display); font-size: 64px; line-height: 1; color: #82c1ff; text-shadow: 0 0 18px rgba(130, 193, 255, .6); }
.bw-down__v small { font-size: 30px; color: var(--bw-grey); }

/* The scoresheet: a classic alley sheet, one row per bowler, ball boxes + running total per frame */
.bw-sheet { position: absolute; left: 60px; right: 60px; bottom: 24px; z-index: 3; border-radius: 18px; overflow: hidden; background: rgba(0, 9, 31, .82); box-shadow: inset 0 0 0 2px rgba(66, 155, 252, .35), 0 0 30px rgba(1, 76, 253, .18); }
.bw-sheet__row { display: grid; grid-template-columns: 300px repeat(5, minmax(0, 1fr)) 170px; height: var(--bw-row, 56px); border-top: 2px solid rgba(255, 255, 255, .08); }
.bw-sheet__row--head { height: 34px; border-top: 0; background: #122044; font-family: var(--dh-font-display); color: #fff; }
.bw-sheet__row--head > span { display: flex; align-items: center; justify-content: center; font-size: 17px; border-left: 2px solid rgba(0, 9, 31, .5); }
.bw-sheet__row--head .bw-sheet__who { justify-content: flex-start; padding-left: 20px; font-size: 15px; letter-spacing: .16em; border-left: 0; }
.bw-sheet__row--head .bw-sheet__tot { font-size: 15px; letter-spacing: .16em; }
.bw-sheet__hf.is-now { background: rgba(0, 9, 31, .35); }
.bw-sheet__row.is-up { background: rgba(1, 76, 253, .14); box-shadow: inset 4px 0 0 var(--bw-brand); }
.bw-sheet__who { display: flex; align-items: center; gap: 12px; padding-left: 16px; min-width: 0; }
.bw-av36 { width: 36px; height: 36px; font-size: 13px; }
.bw-sheet__row:not(.bw-sheet__row--head) { --av: min(36px, calc(var(--bw-row) - 12px)); }
.bw-sheet__row .bw-av36 { width: var(--av); height: var(--av); }
.bw-sheet__name { font-family: var(--dh-font-display); font-size: 22px; color: #fff; white-space: nowrap; overflow: hidden; }
.bw-sheet__name.is-long { font-size: 17px; }
.bw-sheet__up { font-family: var(--dh-font-display); font-size: 12px; letter-spacing: .12em; color: var(--bw-blue); }
.bw-sheet__f { position: relative; border-left: 2px solid rgba(255, 255, 255, .1); }
.bw-sheet__f.is-now { background: rgba(1, 76, 253, .22); box-shadow: inset 0 0 0 2px var(--bw-brand); }
.bw-boxes { position: absolute; right: 0; top: 0; display: flex; }
.bw-box { width: 32px; height: 26px; display: flex; align-items: center; justify-content: center; font-family: var(--dh-font-display); font-size: 15px; line-height: 1; color: #fff; border-left: 1px solid rgba(255, 255, 255, .14); border-bottom: 1px solid rgba(255, 255, 255, .14); }
.bw-box.is-x { background: var(--bw-gold); color: var(--bw-ink); }
.bw-box.is-spare { background: #82c1ff; color: var(--bw-ink); }
.bw-sheet__score { position: absolute; left: 12px; bottom: 6px; font-family: var(--dh-font-display); font-size: 22px; line-height: 1; color: #fff; }
.bw-sheet__tot { display: flex; align-items: center; justify-content: center; border-left: 2px solid rgba(255, 255, 255, .1); }
.bw-sheet__tot b { font-family: var(--dh-font-display); font-weight: 400; font-size: 32px; line-height: 1; color: #fff; }
.bw-sheet__row.is-up .bw-sheet__tot b { color: var(--bw-gold); }
/* 5–6 bowlers: the rows get shorter, the boxes and the running score smaller */
.bw-sheet[style*="--bw-row:40px"] .bw-box, .bw-sheet[style*="--bw-row:46px"] .bw-box { height: 20px; font-size: 13px; width: 28px; }
.bw-sheet[style*="--bw-row:40px"] .bw-sheet__score, .bw-sheet[style*="--bw-row:46px"] .bw-sheet__score { font-size: 18px; bottom: 4px; }
.bw-sheet[style*="--bw-row:40px"] .bw-sheet__tot b, .bw-sheet[style*="--bw-row:46px"] .bw-sheet__tot b { font-size: 26px; }
.bw-sheet[style*="--bw-row:40px"] .bw-sheet__name { font-size: 19px; }
/* 10 frames (the host's setting): the alley sheet in one row — narrower frames, the Neon Frame (the last) wider for
   its bonus boxes, smaller boxes and running scores */
.bw-sheet__row.is-ten { grid-template-columns: 250px repeat(9, minmax(0, 1fr)) minmax(0, 1.75fr) 140px; }
.bw-sheet__row--head.is-ten > span { font-size: 15px; }
.bw-sheet__row.is-ten .bw-box { width: 26px; height: 22px; font-size: 13px; }
.bw-sheet__row.is-ten .bw-sheet__score { left: 8px; font-size: 19px; }
.bw-sheet__row.is-ten .bw-sheet__name { font-size: 18px; }
.bw-sheet__row.is-ten .bw-sheet__tot b { font-size: 28px; }
.bw-sheet[style*="--bw-row:40px"] .bw-sheet__row.is-ten .bw-box, .bw-sheet[style*="--bw-row:46px"] .bw-sheet__row.is-ten .bw-box { width: 22px; height: 18px; font-size: 12px; }
.bw-sheet[style*="--bw-row:40px"] .bw-sheet__row.is-ten .bw-sheet__score, .bw-sheet[style*="--bw-row:46px"] .bw-sheet__row.is-ten .bw-sheet__score { font-size: 16px; }
/* The strike streak: on the stamp each X of the run lights in turn (double = 2, turkey = 3) */
.bw-sheet__f.is-chain { animation: bw-chain .6s ease-out both; z-index: 1; }
@keyframes bw-chain { 0% { transform: none; filter: none } 35% { transform: scale(1.18); filter: drop-shadow(0 0 18px rgba(255, 201, 60, .95)) brightness(1.4) } 100% { transform: none; filter: none } }

/* ── The Neon Frame skin (TV-Neon): the grande finale, full neon ─────────── */
.game--bowling.bw-neon .bw-bg { background: radial-gradient(ellipse 60% 70% at 62% 30%, #3a0f6e 0%, #14072e 55%, #07041a 100%); }
.game--bowling.bw-neon .bw-bg::before { background: linear-gradient(90deg, #ff2bd6, #00e5ff, #ff2bd6); }
.game--bowling.bw-neon .bw-title { font-family: 'Monoton', var(--dh-font-display); font-size: 56px; color: #ff5fe4; text-shadow: 0 0 6px #ff2bd6, 0 0 22px #ff2bd6, 0 0 48px rgba(255, 43, 214, .7); animation: bw-flick 3.2s steps(1) infinite; }
@keyframes bw-flick { 0%, 92%, 96%, 100% { opacity: 1 } 93%, 95% { opacity: .55 } }
.game--bowling.bw-neon .bw-head__eye { color: #8f86b8; }
.game--bowling.bw-neon .bw-sign { font-size: 36px; color: #ff5fe4; text-shadow: 0 0 8px #ff5fe4, 0 0 26px #ff5fe4; }
.game--bowling.bw-neon .bw-av96 { box-shadow: 0 0 0 5px #07041a, 0 0 0 9px var(--bw-pink), 0 0 40px rgba(255, 43, 214, .6); }
.game--bowling.bw-neon .bw-tile--throw { background: linear-gradient(180deg, #ff2bd6, #a0128f); animation-name: bw-throw-pink; }
.game--bowling.bw-neon .bw-tile--gold { color: #07041a; }
.game--bowling.bw-neon .bw-down__k { color: #a79fd1; }
.game--bowling.bw-neon .bw-down__v { color: var(--bw-cyan); text-shadow: 0 0 18px rgba(0, 229, 255, .6); }
.game--bowling.bw-neon .bw-down__v small { color: #a79fd1; }
.game--bowling.bw-neon .bw-sheet { background: rgba(7, 4, 26, .82); box-shadow: inset 0 0 0 2px rgba(255, 95, 228, .35), 0 0 30px rgba(255, 43, 214, .18); }
.game--bowling.bw-neon .bw-sheet__row--head { background: linear-gradient(90deg, #ff2bd6, #8a2be2 50%, #00b8d4); }
.game--bowling.bw-neon .bw-sheet__row.is-up { background: rgba(255, 43, 214, .14); box-shadow: inset 4px 0 0 var(--bw-pink); }
.game--bowling.bw-neon .bw-sheet__f.is-now { background: rgba(255, 43, 214, .22); box-shadow: inset 0 0 0 2px var(--bw-pink); }
.game--bowling.bw-neon .bw-sheet__up { color: var(--bw-pink); }
.game--bowling.bw-neon .bw-box.is-spare { background: var(--bw-cyan); }
.game--bowling.bw-neon .bw-call--neon:not(.bw-call--bonus) { font-family: 'Monoton', var(--dh-font-display); }
.game--bowling.bw-neon .bw-sub { background: rgba(7, 4, 26, .6); }
.bw-band__behind.is-neon { background: radial-gradient(ellipse 60% 70% at 62% 30%, #3a0f6e 0%, #14072e 55%, #07041a 100%); }

/* ── The bull-off (the party tie bull-off panel, bigger, beside the board with the bull lit) ── */
.bw-bull { position: absolute; left: 700px; right: 60px; top: 150px; height: 430px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; }
.bw-bull .tie-bull { max-width: 1000px; min-width: 760px; padding: 30px 40px; gap: 14px; border-radius: 28px; }
.bw-bull .tie-bull__title { font-size: 34px; font-family: var(--dh-font-display); }
.bw-bull .tie-bull__sub { font-size: 26px; }
.bw-bull .tie-bull__dart { font-size: 30px; }
.bw-bull .tie-bull__dart b { font-family: var(--dh-font-display); font-weight: 400; }
.bw-bull .tie-bull__status { font-size: 30px; font-family: var(--dh-font-display); }
.bw-bull__up { display: flex; align-items: center; gap: 24px; font-family: var(--dh-font-display); font-size: 40px; color: #fff; }
.bw-bull__round { color: var(--bw-gold); }

/* ── The band (gameEnd / won): the X01 legwon overlay over the dimmed lane ── */
.bw-band__behind { position: absolute; inset: 0; opacity: .5; filter: saturate(.85); }
.bw-scene--band { animation: bw-knock .5s ease-out .4s both; }
@keyframes bw-knock { 0% { transform: none } 20% { transform: translate(-16px, 7px) } 40% { transform: translate(13px, -6px) } 60% { transform: translate(-9px, 4px) } 80% { transform: translate(6px, -3px) } 100% { transform: none } }
.bw-band { font-family: var(--dh-font-display); }
.bw-band .legwon__name { text-transform: uppercase; }
.bw-band .legwon__avatar .bw-av-band { width: 100%; height: 100%; font-size: 64px; }
.bw-band .legwon__countdown i { animation-duration: 4s; }

/* ── The stats pages (screens/stats.js) ──────────────────────────────────── */
.bw-stats { position: absolute; inset: 0; }
.ts--bowling .ts__tag--zone { color: #ff5fe4; }

/* ── Pause (the host's): over whatever is up ─────────────────────────────── */
.bw-pause { position: absolute; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; background: rgba(0, 9, 31, .72); backdrop-filter: blur(6px); }
.bw-pause[hidden] { display: none; }
.bw-pause__card { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 48px 72px; border-radius: 32px; background: rgba(11, 13, 17, .78); box-shadow: inset 0 0 0 2px rgba(66, 155, 252, .35), 0 30px 80px rgba(0, 0, 0, .5); }
.bw-pause__icon { display: flex; gap: 18px; }
.bw-pause__icon i { width: 26px; height: 96px; border-radius: 8px; background: #fff; }
.bw-pause__h { font-family: var(--dh-font-display); font-size: 96px; line-height: 1; color: #fff; letter-spacing: .06em; }
.bw-pause__p { font-size: 30px; color: #d1d5d8; text-align: center; max-width: 900px; }
.bw-pause__q { font-family: var(--dh-font-display); font-size: 26px; letter-spacing: .1em; color: var(--bw-gold); }

@media (prefers-reduced-motion: reduce) {
  .game--bowling *, .game--bowling *::before, .game--bowling *::after, .bw-scene { animation: none !important; transition: none !important; }
  .bw-blackout__in, .bw-flash__in { display: none; }
}
