/* TV landing and guides are operated with a remote, within a single screen. */
.tv-entry-mode{height:100vh;height:100dvh;min-height:0;overflow:hidden;background:#192c2b;color:#fffaf1}.tv-entry-mode #app{height:100%}.tv-entry-mode #app>header{display:none}
.tv-home-screen{height:100%;width:100%;padding:24px 4% 28px;display:grid;grid-template-rows:52px minmax(0,1fr) 170px;gap:20px;box-sizing:border-box;background:radial-gradient(ellipse at 15% 40%,#264d42,#192c2b 72%)}
.tv-home-heading{max-width:none;width:100%;min-height:0;height:52px;padding:0;margin:0;border:0;display:flex;justify-content:space-between;align-items:center}.tv-home-heading img{width:235px;height:auto}.tv-home-heading>span{font-size:15px;color:#d6cbaa}
.tv-home-hero{display:grid;grid-template-columns:1.25fr 1fr;gap:48px;align-items:center;min-height:0}.tv-home-hero .eyebrow{color:#e7c48a}.tv-home-hero h1{font-size:60px;line-height:1.06;letter-spacing:-2px;margin:14px 0 20px}.tv-home-hero>div>p{font-size:18px;line-height:1.5;color:#d6dfd1;margin:0 0 24px}.tv-home-actions{display:flex;gap:12px;flex-wrap:wrap}.tv-home-actions button{min-height:56px;padding:14px 22px;font-size:18px;border-radius:12px}.tv-home-actions>.primary{background:#efba9b;color:#202942;min-width:240px}.tv-home-actions>.outline{border-color:#e7c48a77;color:#fffaf1}
.tv-organizer-card{background:#ffffff08;border:1px solid #e7c48a55;border-radius:22px;padding:26px}.tv-organizer-card h2{font-size:30px;margin:10px 0 12px}.tv-organizer-card p{font-size:15px;color:#d5dece;margin:0}.tv-home-address{font-size:32px;display:block;margin:6px 0 16px;color:#efba9b}.tv-organizer-card ol{font-size:16px;line-height:1.6;padding-left:22px;margin:0 0 10px}.tv-organizer-card .text{padding:7px 0;color:#efba9b;font-size:14px;min-height:36px;text-align:left}
.tv-home-games{min-height:0}.tv-home-games>h2{font:650 18px/1.3 system-ui,sans-serif;letter-spacing:0;margin:0 0 12px;color:#f4dfb3}.tv-home-games>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.tv-home-game{min-height:118px;min-width:0;padding:16px 12px;justify-content:flex-start;text-align:left;background:#fffaf1;color:#203b33;border-radius:16px;gap:12px}.tv-game-icon{display:grid;place-items:center;min-width:48px;width:48px;height:64px;border-radius:8px;background:#e5eadc;color:#b83e2c;font:34px Georgia,serif}.tv-game-uno .tv-game-icon{background:#b83e2c;color:#fffaf1}.tv-game-shanghai .tv-game-icon{background:#d7be7f;color:#203b33}.tv-game-ristiseiska .tv-game-icon{background:#203b33;color:#f6ead2}.tv-home-game>span:last-child{min-width:0}.tv-home-game strong{display:block;font-size:22px}.tv-home-game small{font-size:12px;margin-top:4px;white-space:nowrap}.tv-home-game em{display:block;font:600 12px/1.2 system-ui,sans-serif;color:#81583b;margin-top:10px;white-space:nowrap}
.tv-home-screen button:focus,.tv-guide-dialog button:focus,.tv-code-dialog button:focus,.tv-preview-dialog button:focus{outline:4px solid #ffc76b;outline-offset:4px}
.tv-code-dialog{width:620px;max-width:86vw;border:2px solid #c7ab74;border-radius:20px;background:#fffaf1;color:#203b33;padding:32px}.tv-code-dialog::backdrop,.tv-guide-dialog::backdrop,.tv-preview-dialog::backdrop{background:#071713cc}.tv-code-dialog h2{font-size:36px;margin:0 0 12px}.tv-code-dialog p{font-size:19px;line-height:1.4}.tv-code-dialog label{font-size:18px;margin:20px 0}.tv-code-dialog input{font-size:38px;letter-spacing:10px;min-height:72px;text-transform:uppercase}.tv-code-dialog button{font-size:19px;min-height:52px}.tv-code-dialog .muted{font-size:14px;margin-bottom:0}
.tv-guide-dialog{width:1080px;max-width:92vw;height:calc(100vh - 80px);max-height:640px;border:2px solid #c7ab74;border-radius:22px;background:#fffaf1;color:#203b33;padding:28px;box-sizing:border-box}.tv-guide-dialog[open]{display:flex;flex-direction:column;gap:20px}.tv-guide-heading{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #d7decb;padding-bottom:12px;gap:20px;font-size:20px;font-weight:700}.tv-guide-heading button{font-size:16px}.tv-guide-dialog>section{flex:1;min-height:0}.tv-guide-dialog section h2{font-size:36px;line-height:1.15;margin:10px 0 18px}.tv-guide-dialog section p{font-size:23px;line-height:1.5;color:#203b33;margin:0;white-space:normal}.tv-guide-nav{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #d7decb;padding-top:14px;font-size:17px}.tv-guide-nav button{min-width:180px;min-height:50px;font-size:18px}
.tv-preview-dialog{width:1100px;max-width:94vw;max-height:92vh;overflow:auto;border:2px solid #efba9b;border-radius:20px;background:#fffaf1;color:#203b33;padding:22px}.tv-preview-dialog h2{margin:0 0 7px;font-size:27px}.tv-preview-dialog p{margin:0 0 12px}.tv-preview-dialog h3{margin:8px 0 3px;font-size:17px}.tv-preview-dialog section button{min-height:34px;font-size:13px;padding:7px 9px;margin:3px}.postpone-notice{max-width:520px;width:90%;border:2px solid #bc9a58;border-radius:18px;padding:28px;background:#fffaf1}.postpone-notice h2{font-size:30px}.postpone-notice p{font-size:18px}.postpone-notice>button{width:100%}
@media(max-height:620px){.tv-home-screen{padding:16px 4% 18px;grid-template-rows:40px minmax(0,1fr) 134px;gap:14px}.tv-home-heading,.tv-home-heading img{height:40px;width:auto}.tv-home-hero{gap:28px}.tv-home-hero h1{font-size:43px;margin:10px 0 14px}.tv-home-hero>div>p{font-size:15px;margin-bottom:16px}.tv-home-actions button{font-size:15px;min-height:46px;padding:10px 14px}.tv-home-actions>.primary{min-width:180px}.tv-organizer-card{padding:18px}.tv-organizer-card h2{font-size:24px;margin:8px 0}.tv-organizer-card p,.tv-organizer-card ol{font-size:13px}.tv-home-address{font-size:27px;margin:4px 0 10px}.tv-organizer-card .text{font-size:12px}.tv-home-games>h2{font-size:16px;margin-bottom:9px}.tv-home-game{min-height:95px;padding:12px 9px;gap:8px}.tv-home-game strong{font-size:18px}.tv-home-game small,.tv-home-game em{font-size:10px}.tv-game-icon{min-width:34px;width:34px;height:50px;font-size:26px}.tv-guide-dialog{height:calc(100vh - 44px);padding:20px;gap:12px}.tv-guide-dialog section h2{font-size:28px;margin:8px 0 12px}.tv-guide-dialog section p{font-size:18px;line-height:1.45}.tv-guide-nav{padding-top:10px}.tv-guide-nav button{min-height:42px;font-size:16px}.tv-guide-heading{font-size:17px;padding-bottom:8px}}
.tv-organizer-card .tv-free-friends{font-size:15px;line-height:1.4;margin:10px 0 14px;color:#fffaf1}.tv-free-friends strong{color:#efba9b}@media(max-height:620px){.tv-organizer-card .tv-free-friends{font-size:12px;margin:6px 0 9px}}
#tv-preview-toolbar{position:fixed;top:8px;right:18px;z-index:8000;display:flex;gap:8px;align-items:center;font:14px system-ui,sans-serif}#tv-preview-toolbar button{min-height:44px;padding:9px 13px;background:#142b40;color:#fffaf1;border:1px solid #e7c48a99;border-radius:10px;font:inherit}#tv-preview-toolbar button:focus{outline:4px solid #ffc76b;outline-offset:2px}.tv-preview .tv-home-heading>span,.tv-preview .tv-results-connection{visibility:hidden}.tv-preview .display-mode .room-heading>.row{visibility:hidden}.tv-preview .tv-home-heading{padding-right:330px}

/* Fixed-size game pages keep the TV catalogue usable as new games arrive. */
.tv-home-screen{grid-template-rows:52px minmax(0,1fr) 210px}
.tv-games-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:28px;margin-bottom:8px}.tv-games-heading h2{font:650 18px/1.3 system-ui,sans-serif;color:#f4dfb3;margin:0}.tv-games-pages{display:flex;align-items:center;gap:10px}.tv-games-pages[hidden]{display:none}.tv-games-pages button{min-height:30px;padding:3px 12px;font-size:19px}.tv-games-pages span{font-size:14px;color:#fffaf1}.tv-home-games>.tv-games-heading{display:flex}.tv-home-games>.tv-game-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.tv-game-filters{display:flex;gap:10px;margin-bottom:12px}.tv-game-filters button{font:600 15px system-ui,sans-serif;min-height:36px;padding:7px 18px;border:1px solid #e7c48a66;border-radius:20px;background:#ffffff08;color:#fffaf1}.tv-game-filters button[aria-pressed="true"]{background:#efba9b;border-color:#efba9b;color:#203b33}.tv-games-empty{grid-column:1/-1;color:#fffaf1;font-size:20px}
@media(max-height:620px){.tv-home-screen{grid-template-rows:40px minmax(0,1fr) 174px;gap:12px}.tv-games-heading{margin-bottom:5px;min-height:22px}.tv-games-heading h2{font-size:15px}.tv-game-filters{margin-bottom:8px;gap:8px}.tv-game-filters button{font-size:12px;min-height:30px;padding:5px 14px}.tv-games-pages button{min-height:25px;font-size:16px}.tv-home-game{min-height:91px}.tv-organizer-card{padding:14px}.tv-home-hero h1{font-size:39px;margin:8px 0 10px}.tv-home-hero>div>p{font-size:14px;margin-bottom:12px}}
