/* Project polish using unslop by Damir Sokolovsky (https://heydamir.design/unslop), CC BY 4.0. */
:root{--bg:#17140f;--fg:#d6cebf;--surface:#221e19;--mute:#aaa193;--line:#39342d;--inv:#17140f;--red:#e8665a;--tv-control-radius:10px;--tv-panel-radius:16px;--tv-focus:#ff8070;color-scheme:dark}
*{box-sizing:border-box}
html{scroll-behavior:auto;scroll-padding-top:112px}
body{min-height:100vh;margin:0;display:flex;flex-direction:column;background:var(--bg);color:var(--fg);font:400 20px/1.45 "Golos Text",sans-serif;-webkit-font-smoothing:antialiased}
body>.wrap{width:100%;max-width:1600px;margin:0 auto;padding-inline:5vw;min-height:100vh;display:flex;flex:1;flex-direction:column}
body.legal-app>.legal-wrap{width:100%;max-width:1600px;margin:0 auto;padding-inline:5vw;min-height:100vh;display:flex;flex:1;flex-direction:column}
body.legal-app>.legal-wrap>main{flex:1;min-width:0;max-width:1000px;padding-block:32px 40px}
body>.wrap>main,body>main{flex:1;min-width:0;padding-block:32px}
body>main{padding-inline:5vw}
body[data-tv-view="home"] main,body[data-tv-view="how"] main,body[data-tv-view="story"] main{padding-block:0}
body::before,body::after{display:none!important}
body .tv-top{position:sticky;top:0;z-index:90;min-height:88px;margin:0!important;padding:20px 0!important;gap:24px;border-bottom:1px solid var(--line);background:var(--bg);box-shadow:none}
body>.tv-top{padding-inline:5vw!important}
body .tv-top .logo{font:600 28px/1 "Unbounded",sans-serif;letter-spacing:-.03em;gap:12px}
body .tv-top .logo img{width:32px;height:auto}
body .tv-top nav{display:flex;align-items:center;justify-content:center;gap:8px;margin:0!important;padding:0;flex-wrap:nowrap}
body .tv-top nav a{position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 16px;border:0;border-radius:8px;background:transparent;color:var(--mute);font:500 18px/1.3 "Golos Text",sans-serif;text-decoration:none;box-shadow:none}
body .tv-top nav a[aria-current="page"]{background:transparent;color:var(--fg)}
body .tv-top nav a[aria-current="page"]::after{content:"";position:absolute;bottom:2px;left:16px;right:16px;height:2px;background:var(--red);border-radius:0}
body .tv-top .account-entry{min-height:48px;padding:12px 16px;border:1px solid var(--line);border-radius:var(--tv-control-radius);font:500 18px/1.3 "Golos Text",sans-serif;background:transparent;color:var(--fg);box-shadow:none}
body .btn,body button:not(.game),body input:not([type="checkbox"]):not([type="radio"]),body select,body textarea{border-radius:var(--tv-control-radius);font-family:"Golos Text",sans-serif;letter-spacing:0;box-shadow:none}
body .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:52px;padding:12px 24px;border:1px solid var(--fg);background:var(--fg);color:var(--inv);font-size:20px;line-height:1.25;font-weight:500;text-decoration:none;white-space:normal;text-align:center}
body .btn.ghost{background:transparent;color:var(--fg);border:1px solid #766c5d;box-shadow:none}
body .btn:hover{opacity:1;filter:none}
body button:not(.game){min-height:48px;font-size:20px;font-weight:500}
body :is(a,button,summary,input,select,textarea,[tabindex]):focus{outline:3px solid var(--tv-focus)!important;outline-offset:4px!important}
body .tv-top :is(a,button):focus{outline-offset:0!important}
body .tv-top nav a:focus{background:var(--surface);color:var(--fg)}
body .btn:focus{outline-offset:4px!important}
body [disabled]{cursor:default}
body input:not([type="checkbox"]):not([type="radio"]),body select,body textarea{padding:12px 16px;border:1px solid #62594b;background:var(--bg);color:var(--fg);font-size:20px;line-height:1.4;min-height:52px}
body input[type="checkbox"]{width:20px;height:20px;accent-color:var(--red)}
body main>h1{font:500 clamp(28px,3vw,42px)/1.2 "Unbounded",sans-serif!important;letter-spacing:-.025em;margin:0 0 24px!important}
body main>p{font-size:20px;line-height:1.5;margin:0 0 20px}
body .tv-footer{margin:32px 0 0;padding:24px 0;min-height:80px;border-top:1px solid var(--line);background:transparent;gap:24px;box-shadow:none}
body>.tv-footer{padding-inline:5vw}
body .tv-footer .logo{margin:0;gap:8px;font:600 22px/1.2 "Unbounded",sans-serif;color:var(--fg)}
body .tv-footer .logo img{width:28px;height:auto}
body .tv-footer nav{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px 24px;margin:0;padding:0}
body .tv-footer nav a{display:inline-flex;align-items:center;min-height:40px;font:400 16px/1.4 "Golos Text",sans-serif;text-decoration:none;color:var(--mute)}
body .tv-footer nav a:hover,body .tv-footer nav a:focus{color:var(--fg);text-decoration:underline;text-underline-offset:4px}
/* The approved content illustrations remain the prominent visual elements. */
body .home-intro{margin-block:24px 32px}
body .intro-copy,body .intro-answer{border-radius:24px}
body .intro-answer{border-width:2px}
body .intro-answer .intro-line{max-width:none}
body .shared-clue{border-radius:24px 0 24px 0}
body .home-story{gap:32px;padding-block:24px 32px}
body .story-series,body .detail-series{font-weight:400;letter-spacing:0}
body .story-actions{gap:12px}
body .story-actions .story-price{font-size:18px;color:var(--mute)}
body .how-heading{padding:24px 0 28px}
body .how-heading h1{font-weight:500;line-height:1.25;letter-spacing:-.025em}
body .how-heading p{max-width:70ch;font-size:20px;line-height:1.45;color:var(--mute);margin:12px 0 0}
body .how-grid{gap:32px 28px;padding-bottom:32px}
body .how-scene{border-color:var(--line);border-radius:12px}
body .how-step .step-copy{padding-top:20px}
body .step-title{gap:12px;margin-bottom:12px}
body .how-step .number{font-size:17px;color:var(--mute);font-variant-numeric:tabular-nums}
body .how-step h2{font-weight:500;line-height:1.35}
body .how-step p{font-size:19px;line-height:1.45;color:var(--mute)}
body .how-step:focus{border-radius:12px}
body .story-detail{padding-block:24px 32px;gap:40px}
body .detail-facts{gap:8px 24px;margin-block:24px}
body .detail-actions{gap:12px}
body .story-features{padding-block:24px;gap:24px}
body .story-feature h2{font-weight:500;font-size:20px}
body .story-feature p{font-size:18px;line-height:1.45}
body .detail-bottom{padding-block:0 24px}
body #games.single .game,body #games .game{border-color:var(--line);border-radius:var(--tv-panel-radius);box-shadow:none}
body .game .game-copy{padding:24px}
body .game .game-summary{font-weight:400}
body .game .game-hint{font-weight:500;border-color:var(--line)}
body .game .product-price{font-weight:500;font-variant-numeric:tabular-nums}
/* Account navigation is a quiet tab row, separate from the content panel. */
body[data-tv-view="account"] #accountIdentity{margin-bottom:24px}
body[data-tv-view="account"] #accountIdentity p{font-size:18px;line-height:1.45;color:var(--mute)}
body[data-tv-view="account"] #accountNav{gap:8px;margin:0 0 24px;padding:0 0 12px;border-bottom:1px solid var(--line)}
body[data-tv-view="account"] #accountNav button{min-height:48px;padding:12px 16px;border:0;background:transparent;border-radius:8px;font:500 18px/1.25 "Golos Text",sans-serif;color:var(--mute)}
body[data-tv-view="account"] #accountNav button[aria-current="true"]{background:var(--surface);color:var(--fg)}
body[data-tv-view="account"] main>section{padding:24px;background:var(--surface);border:1px solid var(--line);border-radius:var(--tv-panel-radius)}
body[data-tv-view="account"] section.with-cover{grid-template-columns:160px minmax(0,1fr);gap:32px;align-items:center}
body[data-tv-view="account"] .cover{width:160px;height:auto;max-height:240px;aspect-ratio:2/3;object-fit:contain;border-radius:8px}
body[data-tv-view="account"] h2{font:500 clamp(24px,2.4vw,32px)/1.25 "Unbounded",sans-serif;letter-spacing:-.025em;margin:0 0 16px}
body[data-tv-view="account"] .f-kicker{font:400 18px/1.4 "Golos Text",sans-serif;text-transform:none;letter-spacing:0;color:var(--red);margin-bottom:12px}
body[data-tv-view="account"] section p{font-size:20px;line-height:1.45;margin-bottom:20px}
body[data-tv-view="account"] .account-legal{font-size:16px;line-height:1.5}
body[data-tv-view="account"] .row{gap:12px}
body[data-tv-view="account"] .tv-entry p{font-size:22px;max-width:44ch}
body[data-tv-view="legal"] main{max-width:100%;padding-block:32px 40px}
body[data-tv-view="legal"] main>section{padding:0;margin:0 0 32px;border:0;border-radius:0;background:transparent;max-width:1000px}
body[data-tv-view="legal"] main h2{font:500 24px/1.35 "Unbounded",sans-serif;letter-spacing:-.02em;margin:0 0 16px}
body[data-tv-view="legal"] main :is(p,li){font-size:20px;line-height:1.6;max-width:78ch;color:var(--fg)}
body[data-tv-view="legal"] main p{margin:0 0 16px}
body dialog{border:1px solid #62594b;border-radius:var(--tv-panel-radius);padding:32px;background:var(--surface);color:var(--fg);box-shadow:none;font-family:"Golos Text",sans-serif}
body dialog::backdrop{background:#000c}
body dialog h2{font:500 28px/1.3 "Unbounded",sans-serif;margin:0 0 24px;letter-spacing:-.02em}
body dialog p{font-size:22px;line-height:1.45}
body dialog .actions{gap:12px}
body dialog button{padding:12px 24px;border:1px solid #766c5d;background:transparent;color:var(--fg)}
body .tv-phone-dialog .phone-content{gap:32px}
body .tv-phone-dialog canvas{border-radius:8px}
body[data-tv-view="pairing"] main{width:100%;max-width:1400px;margin:auto;padding:32px 5vw}
body[data-tv-view="pairing"] .brand{font:600 24px/1.2 "Unbounded",sans-serif;letter-spacing:-.025em}
body[data-tv-view="pairing"] h1{max-width:26ch;font:500 clamp(28px,3.2vw,42px)/1.2 "Unbounded",sans-serif!important;margin:32px 0 24px!important;letter-spacing:-.025em}
body[data-tv-view="pairing"] p{font-size:22px;line-height:1.45;margin:0 0 24px;color:var(--mute)}
body[data-tv-view="pairing"] .row{gap:40px;align-items:center;margin-top:32px;flex-wrap:nowrap}
body[data-tv-view="pairing"] #qr{width:224px;height:224px;flex:none;border:12px solid white;border-radius:8px}
body[data-tv-view="pairing"] #code{font:500 clamp(36px,4.8vw,64px)/1.2 "Golos Text",sans-serif;letter-spacing:.08em;font-variant-numeric:tabular-nums;color:var(--fg);margin-bottom:24px}
body[data-tv-view="pairing"] #tvStatus:empty{display:none}
body[data-tv-view="pairing"] button{padding:12px 24px;border:1px solid var(--fg);background:var(--fg);color:var(--inv)}
/* No decorative motion in the TV shell; iframe gameplay is independent. */
body *,body *::before,body *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
body .rv,body .rv.in{opacity:1!important;transform:none!important}
body .glow,body .glow-floor{display:none!important}
@media(max-width:1100px){body .tv-top{gap:16px}body .tv-top .logo{font-size:24px}body .tv-top .logo img{width:28px}body .tv-top nav{gap:4px}body .tv-top nav a{font-size:17px;padding-inline:12px}body .tv-top nav a[aria-current="page"]::after{left:12px;right:12px}body .tv-top .account-entry{font-size:17px;padding-inline:12px}body #accountNav button{font-size:17px!important;padding-inline:12px!important}body[data-tv-view="account"] section.with-cover{grid-template-columns:132px 1fr;gap:24px}body[data-tv-view="account"] .cover{width:132px;max-height:198px}body[data-tv-view="account"] section p{font-size:18px}body[data-tv-view="account"] .f-kicker{font-size:16px}body .detail-actions .btn{font-size:18px}body .tv-footer nav{gap:8px 20px}body .tv-footer nav a{font-size:16px}}
@media(max-width:850px){body .tv-top{flex-wrap:wrap;gap:12px;padding-block:16px!important}body .tv-top nav{order:3;flex-basis:100%;justify-content:space-between}body .tv-top nav a{font-size:16px;padding-inline:8px}body .tv-footer{align-items:flex-start}body .tv-footer nav{justify-content:flex-start}body[data-tv-view="pairing"] .row{gap:24px;flex-wrap:wrap}body[data-tv-view="pairing"] #qr{width:200px;height:200px}}
@media(max-width:600px){body{font-size:18px}body .tv-top .logo{font-size:24px}body .btn{font-size:18px;padding-inline:20px}body main>h1{font-size:28px!important}body .tv-footer .logo{font-size:20px}body .tv-footer nav{gap:8px 16px}body[data-tv-view="account"] section.with-cover{grid-template-columns:96px minmax(0,1fr);gap:20px}body[data-tv-view="account"] .cover{width:96px;max-height:144px}body[data-tv-view="account"] main>section{padding:20px}body[data-tv-view="account"] h2{font-size:24px}}

/* Tactile focus: the game's paper controls and subtle inset selection, without colored glows. */
body .btn:not(:disabled){box-shadow:inset 0 1px 0 #ffffff38,inset 0 -2px 0 #00000024,0 2px 0 #00000040}
body .btn.ghost:not(:focus){box-shadow:inset 0 1px 0 #ffffff0b,0 2px 0 #00000030}
body :is(a,button,summary,input,select,textarea,[tabindex]):focus{outline:2px solid #e8dfd0!important;outline-offset:4px!important}
body .btn:focus,body button:not(.game):not(:disabled):focus,body .tv-top nav a:focus,body .tv-top .account-entry:focus,body[data-tv-view="account"] #accountNav button:focus{
 background:#e4dccf;color:#17140f;border-color:#eee7db;
 box-shadow:inset 0 1px 0 #ffffffa6,inset 0 -1px 0 #00000016,0 4px 0 #8d8273,0 8px 12px #00000040;
 outline:2px solid #e8dfd0!important;outline-offset:4px!important;transform:none;
}
body .tv-top nav a:focus,body .tv-top .account-entry:focus,body[data-tv-view="account"] #accountNav button:focus{outline:none!important}
body .tv-top nav a:focus::after{display:none}
body .btn:not(:disabled):hover{background:#e4dccf;border-color:#e4dccf;color:#17140f}
body .btn.ghost:not(:focus):hover{background:#302a22;color:var(--fg);border-color:#9a8e7c}
body .btn:not(:disabled):active,body button:not(.game):not(:disabled):active,body .tv-top nav a:active{box-shadow:inset 0 2px 3px #00000024,0 1px 0 #8d8273}
body #games .game:focus{background:var(--surface);color:var(--fg);border-color:#c5bba9;outline:2px solid #e8dfd0!important;outline-offset:4px!important;box-shadow:inset 0 1px 0 #ffffff12,0 4px 0 #0f0d0a,0 8px 14px #00000040}
body input:focus,body select:focus,body textarea:focus{border-color:#c5bba9;box-shadow:inset 0 2px 3px #00000030}
/* Only remote focus is emphasized; do not leave a red marker on the previous page link. */
body .tv-top nav a[aria-current="page"]::after{display:none!important}
/* Catalog details has a local ID color rule; explicitly preserve contrast in every state. */
body dialog #detailsLink{background:transparent;color:#d6cebf;border:1px solid #766c5d;box-shadow:inset 0 1px 0 #ffffff0b,0 2px 0 #00000030}
body dialog #detailsLink:hover:not(:focus){background:#302a22;color:#d6cebf;border-color:#9a8e7c}
body dialog #detailsLink:focus{background:#e4dccf;color:#17140f;border-color:#eee7db;box-shadow:inset 0 1px 0 #ffffffa6,inset 0 -1px 0 #00000016,0 4px 0 #8d8273,0 8px 12px #00000040;outline:2px solid #e8dfd0!important;outline-offset:4px!important}
