.tv-toggle{min-height:42px;padding:8px 13px;border:1px solid #bf98d2;border-radius:8px;background:#2a1738;color:white;font:700 14px Arial,sans-serif;white-space:nowrap}.tv-toggle[aria-pressed=true]{background:#a5e7df;color:#14292b}.tv-scroll[hidden]{display:none!important}.tv-scroll{position:fixed;right:20px;bottom:24px;display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:10px;background:#160e25f5;border:2px solid #c5a8db;border-radius:12px;z-index:10020}.tv-scroll button{min-width:112px;min-height:48px;padding:10px;background:#372146;color:white;border:1px solid #d3b4e3;border-radius:6px;font:700 17px Arial,sans-serif}.tv-mode{scroll-behavior:auto!important;scroll-padding:28px 28px 150px}.tv-mode body{padding-bottom:160px;overflow-y:auto}.tv-mode body.cinema-open{overflow:hidden}.tv-mode button,.tv-mode select,.tv-mode input,.tv-mode summary{min-height:44px}.tv-mode :focus{outline:4px solid #9affed!important;outline-offset:4px;scroll-margin:35px 30px 165px}.tv-mode .cabinet{animation:none;transition:none}.tv-mode .video-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tv-mode .back-to-top{display:none!important}.tv-mode .city-background{background-attachment:scroll}.tv-mode .cinema-open~.tv-scroll,.tv-mode body.cinema-open>.tv-scroll{display:none}.tv-mode .tv-scroll:focus-within{border-color:#9affed}.tv-mode:has(#stage) .tv-scroll{display:none}.tv-mode #stage{height:calc(100vh - 120px)}
@media(max-width:760px){.tv-mode .video-grid{grid-template-columns:1fr}.tv-scroll{right:12px;bottom:12px}.tv-scroll button{min-width:90px;font-size:15px}}
/* Silk needs a reachable header and explicit scrolling of the game menu. */
.game-page .tv-toggle{order:-1;flex-shrink:0}
.tv-mode body.game-page{display:flex;flex-direction:column;height:100vh;height:100dvh;overflow:hidden;padding-bottom:0}
.tv-mode body.game-page>header{display:flex!important;flex-shrink:0;height:auto;min-height:64px;padding:10px 24px}
.tv-mode body.game-page>footer{display:none}
.tv-mode body.game-page>#stage{flex:1;min-height:0;height:auto}
.tv-mode body.game-page>.tv-scroll{display:grid;bottom:16px;right:16px}
.tv-mode #stage .overlay{display:block;overflow-y:auto;padding-bottom:156px;overscroll-behavior:contain}
.tv-mode #stage .briefing{max-height:none;overflow:visible;margin:0 auto}
.tv-mode body.game-page :focus{scroll-margin:20px 20px 156px}
.tv-mode #stage>.tv-scroll{display:grid;position:absolute;bottom:16px;right:16px}
.tv-mode #stage #world:focus{outline:none!important}
.tv-panel-nav{display:none}
.tv-mode #stage .tv-panel-nav{display:flex;gap:8px;margin-bottom:12px;position:sticky;top:0;z-index:2;background:#101a2d;padding:8px 0}
.tv-mode #stage .tv-panel-nav button{width:auto;flex:1;padding:10px 14px;background:#243650;color:#fff;border:1px solid #9eb7ca}
.tv-mode #stage .tv-panel-nav button[aria-pressed=true]{background:#93e4d6;color:#102032}
.tv-mode #stage #overlay .briefing{max-width:850px;padding:16px 24px}
.tv-mode #stage #overlay .briefing>.eyebrow,.tv-mode #stage #brief-copy,.tv-mode #stage #zone-description,.tv-mode #stage #save-note{display:none}
.tv-mode #stage #brief-title{font-size:24px;line-height:1.2;margin:12px 0}
.tv-mode #stage #overlay .mission-select{display:inline-grid;width:48%;margin:6px .7%;vertical-align:top}
.tv-mode #stage #overlay .briefing:not(.tv-settings)>.tools,.tv-mode #stage #overlay .briefing:not(.tv-settings)>.game-help{display:none}
.tv-mode #stage #overlay .briefing.tv-settings>.mission-select,.tv-mode #stage #overlay .briefing.tv-settings>#brief-title{display:none}
.tv-mode #stage #overlay .briefing>#start{margin:0 0 8px;min-height:48px}
.remote-test{position:absolute;inset:0;z-index:10030;display:grid;place-items:center;padding:24px;background:#07101df5;overflow:auto}
.remote-test .briefing{width:min(650px,100%);text-align:center}
.remote-test p{font-size:20px;line-height:1.5}
.remote-test button{min-height:52px}
.tv-mode #stage .overlay{backdrop-filter:none;background:#091124f5}
