/* reaction-tap · fullscreen fit — everything is scoped under html.pip-immersive, so the normal page is
   untouched. Sizes come from js/fullscreen-fit.js (--fs-w / --fs-h / --fs-side on the stage). */
html.pip-immersive .game-wrap.fs-fit { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; overflow-x: hidden; overflow-y: auto; }
html.pip-immersive .game-wrap.fs-fit > * { flex-shrink: 0; }
html.pip-immersive .game-wrap.fs-fit > * { max-width: 100%; }
html.pip-immersive .game-wrap.fs-fit .rt-stage { width: var(--fs-w) !important; height: var(--fs-h) !important; max-width: none !important; max-height: none !important; margin: 0 !important; flex: none; }

html.pip-immersive .game-wrap.fs-fit > .hud { width: var(--fs-w); max-width: 100%; margin: 0; padding-top: 4px; padding-bottom: 4px; }
html.pip-immersive .game-wrap.fs-fit > [role="status"]:empty, html.pip-immersive .game-wrap.fs-fit > #status:empty { display: none; }
html.pip-immersive .game-wrap.fs-fit > [role="status"], html.pip-immersive .game-wrap.fs-fit > #status { margin: 0; min-height: 0; padding: 2px 8px; width: var(--fs-w); text-align: center; font-size: .85rem; }
html.pip-immersive .game-wrap.fs-fit .rt-stage #tap-zone { height: 100% !important; }
html.pip-immersive .game-wrap.fs-fit .rt-modes { width: var(--fs-w); }
/* wide: board left, HUD/controls right */
html.pip-immersive .game-wrap.fs-wide { display: grid; grid-template-columns: var(--fs-w) var(--fs-side); justify-content: center; align-content: center; column-gap: 16px; row-gap: 8px; grid-auto-rows: min-content; }
html.pip-immersive .game-wrap.fs-wide .rt-stage { grid-column: 1; grid-row: 1 / span 12; align-self: center; }
html.pip-immersive .game-wrap.fs-wide > :not(.rt-stage) { grid-column: 2; width: auto; margin: 0; }
html.pip-immersive .game-wrap.fs-wide > .hud { width: auto; }
html.pip-immersive .game-wrap.fs-wide .rt-how, html.pip-immersive .game-wrap.fs-wide .rt-pb, html.pip-immersive .game-wrap.fs-wide .rt-lens { display: none !important; }

/* ---- finish pass: lit pad, state glows, 44px controls in full screen ---- */
#tap-zone[data-s] { background-image: radial-gradient(ellipse at 50% 38%, rgba(255,255,255,0.16), rgba(255,255,255,0) 55%), radial-gradient(circle at 50% 42%, rgba(255,255,255,0.05), rgba(0,0,0,0.34) 82%), repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 2px, rgba(255,255,255,0) 2px 14px); box-shadow: inset 0 0 0 2px rgba(255,255,255,0.1), inset 0 -26px 48px rgba(0,0,0,0.28), 0 6px 18px rgba(15,23,42,0.22); }
#tap-zone[data-s="armed"] { background-color: #991B1B; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.1), inset 0 0 70px rgba(0,0,0,0.45), 0 6px 18px rgba(127,29,29,0.35); }
#tap-zone[data-s="go"] { box-shadow: inset 0 0 0 3px rgba(255,255,255,0.35), inset 0 0 90px rgba(255,255,255,0.28), 0 0 34px rgba(34,197,94,0.55); }
#tap-zone[data-s="decoy"] { box-shadow: inset 0 0 0 2px rgba(255,255,255,0.14), inset 0 0 70px rgba(30,64,175,0.55), 0 6px 18px rgba(29,78,216,0.35); }
#tap-zone[data-s="early"] { box-shadow: inset 0 0 0 2px rgba(255,255,255,0.12), inset 0 0 70px rgba(120,53,15,0.5); }
#tap-zone .rt-big { text-shadow: 0 2px 10px rgba(0,0,0,0.35); }
#tap-zone[data-s="go"] .rt-big { text-shadow: 0 0 18px rgba(255,255,255,0.55); }
.rt-results { box-shadow: 0 10px 30px rgba(15,23,42,0.3); }
.rt-bars i { background-image: linear-gradient(to top, rgba(0,0,0,0.12), rgba(255,255,255,0.22)); }
html.pip-immersive .game-wrap .btn, html.pip-immersive .game-wrap .rt-mode, html.pip-immersive .rt-results .btn { min-height: 44px; }
html.pip-immersive .game-wrap { padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
html.pip-immersive .game-wrap #rt-tip:empty { display: none; }
@media (max-height: 460px) {
  html.pip-immersive .rt-results { padding: 8px; gap: 5px; }
  html.pip-immersive .rt-results .rt-bars { height: 36px; }
  html.pip-immersive .rt-results .rt-grade { font-size: 1.2rem; }
  html.pip-immersive .rt-mode small { display: none; }
}
