.sports-play{width:min(1100px,100%);margin:0 auto;padding:16px;box-sizing:border-box}.sports-heading,.sports-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.sports-heading h1{flex:1;margin:0;font-size:clamp(1.3rem,4vw,2rem)}.sports-play button{min-height:48px;padding:10px 16px;border-radius:16px;touch-action:manipulation}.sports-play button[aria-pressed="true"]{background:#204f65;color:#fff}.sports-play button:focus-visible,.sports-play canvas:focus-visible{outline:3px solid #b14519;outline-offset:3px}.sports-stage{width:100%;height:clamp(240px,52vh,650px);margin-top:12px;overflow:hidden;border-radius:20px;background:#e7f5ef}.sports-stage canvas{width:100%;height:100%;display:block;touch-action:none;user-select:none;-webkit-user-select:none}.sports-note{font-size:.85rem;color:#52646b}.sports-play #sportsStatus{min-height:1.5em}.sports-immersive{position:fixed!important;inset:0!important;z-index:2147483000!important;width:100%!important;max-width:none!important;height:100vh;height:100dvh;display:flex!important;flex-direction:column;overflow:auto;background:#f6fbf8;padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));margin:0!important}.sports-immersive .sports-stage{flex:1;min-height:120px;height:auto}.sports-immersive .sports-note{display:none}.sports-immersive #sportsInstructions{margin:4px 0}.sports-immersive #sportsStatus{margin:4px 0}.sports-immersive #sportsFullscreen{display:none}@media(max-width:480px){.sports-play{padding:8px}.sports-tools{gap:4px}.sports-play button{padding:8px 10px}.sports-stage{height:45vh}}@media(orientation:landscape) and (max-height:500px){.sports-immersive .sports-heading h1{font-size:1.2rem}.sports-immersive button{min-height:44px;padding:6px 10px}.sports-immersive #sportsInstructions{font-size:.8rem}.sports-immersive .sports-stage{margin-top:4px}}@media(prefers-reduced-motion:reduce){.sports-play *{scroll-behavior:auto;transition:none;animation:none}}
/* Immersive play uses every available viewport pixel; controls float above it.
   Browser chrome cannot be hidden on platforms that reject native fullscreen. */
.sports-immersive{inset:auto!important;top:var(--sports-view-top,0px)!important;left:var(--sports-view-left,0px)!important;width:var(--sports-view-width,100vw)!important;height:var(--sports-view-height,100dvh)!important;padding:0!important;overflow:hidden!important;display:block!important}
.sports-immersive .sports-stage{position:absolute;inset:0;width:100%;height:100%!important;min-height:0;margin:0!important;border-radius:0}
.sports-immersive .sports-heading{position:absolute;z-index:2;top:max(6px,env(safe-area-inset-top));left:max(6px,env(safe-area-inset-left));right:max(6px,env(safe-area-inset-right));pointer-events:none;flex-wrap:nowrap}
.sports-immersive .sports-heading button{pointer-events:auto;background:rgba(255,255,255,.88);color:#173b49;border:1px solid rgba(23,59,73,.3);box-shadow:0 1px 5px #0002}
.sports-immersive .sports-heading h1{font-size:clamp(.9rem,2vw,1.15rem);color:#173b49;text-shadow:0 0 3px white,0 0 6px white;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sports-immersive #sportsToolsToggle{position:absolute;z-index:4;left:max(6px,env(safe-area-inset-left));bottom:max(6px,env(safe-area-inset-bottom));background:rgba(255,255,255,.9);color:#173b49}
.sports-immersive .sports-tools{display:none;position:absolute;z-index:3;left:max(6px,env(safe-area-inset-left));bottom:calc(max(6px,env(safe-area-inset-bottom)) + 54px);max-width:min(530px,calc(100% - 12px));max-height:calc(100% - 122px);overflow:auto;box-sizing:border-box;padding:8px;border-radius:16px;background:rgba(255,255,255,.94);box-shadow:0 3px 14px #0002}
.sports-immersive.sports-controls-open .sports-tools{display:flex}
.sports-immersive #sportsInstructions{display:none}
.sports-immersive #sportsStatus{position:absolute;pointer-events:none;z-index:2;right:max(8px,env(safe-area-inset-right));bottom:max(8px,env(safe-area-inset-bottom));max-width:calc(100% - 160px);font-size:.8rem;line-height:1.3;margin:0;padding:3px 6px;border-radius:8px;color:#173b49;background:rgba(255,255,255,.82)}
@media(orientation:landscape) and (max-height:500px){.sports-immersive .sports-heading h1{display:none}.sports-immersive .sports-heading #sportsExit{margin-left:auto}.sports-immersive .sports-tools{max-width:calc(100% - 12px)}.sports-immersive #sportsStatus{font-size:.72rem}}


/* Three-row arcade controls retain room for the board in ordinary page view. */
.sports-play:not(.sports-immersive)[data-game="block-garden"] .sports-stage,.sports-play:not(.sports-immersive)[data-game="garden-snake"] .sports-stage{min-height:390px}
