@font-face{font-family:Manrope;src:url('/assets/Manrope-Variavel.ttf') format('truetype');font-style:normal;font-weight:200 800;font-display:swap}
:root{--green:#203b32;--green-soft:#e8ede5;--cream:#f7f5ee;--paper:#fffef9;--ink:#24382f;--muted:#5d685f;--silver:#c6c9bf;--line:#d5d9ce;--danger:#913e34;--serif:Georgia,'Times New Roman',serif;--sans:Manrope,Arial,sans-serif;--gutter:clamp(20px,4.8vw,76px);--max:1280px;color-scheme:light}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:100px}
body{margin:0;background:var(--cream);color:var(--ink);font-family:var(--sans);font-size:17px;line-height:1.65;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit;color:inherit}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
button,a{touch-action:manipulation}
button{cursor:pointer}
a{color:inherit;text-underline-offset:5px;text-decoration-thickness:1px}
a:hover{text-decoration-color:var(--muted)}
img{display:block;max-width:100%;height:auto}
svg{vertical-align:middle}
button:disabled{cursor:default;opacity:.52}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #758c6d;outline-offset:4px}
[hidden]{display:none!important}
h1,h2,h3,h4,p{margin:0}
h1,h2,h3,h4{font-family:var(--serif);font-weight:400;line-height:1.12;letter-spacing:-.035em;text-wrap:balance}
h1{font-size:clamp(44px,5.4vw,76px)}
h2{font-size:clamp(32px,3.5vw,48px)}
h3{font-size:28px}
p+p{margin-top:16px}
strong{font-weight:700}
small,.small{font-size:13px;line-height:1.6}
ul,ol{padding-left:22px}
::selection{background:#d6dfce;color:var(--green)}
.skip-link{position:fixed;top:12px;left:12px;z-index:100;padding:12px 20px;background:var(--green);color:var(--cream);transform:translateY(-150%)}
.skip-link:focus{transform:none}
.site-header{border-bottom:1px solid var(--line);background:var(--cream)}
.header-inner{max-width:calc(var(--max) + 2 * var(--gutter));margin:auto;min-height:100px;padding:14px var(--gutter);display:flex;align-items:center;justify-content:space-between;gap:28px}
.brand{display:flex;align-items:center;gap:15px;text-decoration:none;flex-shrink:0}
.brand-symbol{width:54px;height:54px;border:1px solid var(--line);display:grid;place-items:center}
.brand-symbol img{width:45px;height:45px}
.brand-wordmark{display:block;font-size:26px;font-weight:500;line-height:1.2;letter-spacing:.17em}
.brand-wordmark>span{display:block;margin-top:6px;font-family:var(--sans);font-size:9px;font-weight:700;letter-spacing:.22em}
.nav{display:flex;align-items:center;gap:clamp(18px,2.8vw,42px);font-size:13px;font-weight:600}
.nav a{min-height:44px;display:inline-flex;align-items:center;text-decoration:none;border-bottom:1px solid transparent;white-space:nowrap}
.nav a:hover,.nav a[aria-current=page],.nav a.active{border-bottom-color:var(--green)}
#app{min-height:calc(100vh - 270px);outline:none}
.page{max-width:calc(var(--max) + 2 * var(--gutter));margin:0 auto;padding:48px var(--gutter) 80px}
.page>section+section{margin-top:72px}
.eyebrow{display:block;font-size:11px;font-weight:700;letter-spacing:.19em;text-transform:uppercase;line-height:1.6}
.muted,.hint,.help,.subtitle,.description{color:var(--muted)}
.intro,.lead{font-size:18px;line-height:1.75;color:var(--muted);max-width:51ch}
.page-heading{max-width:760px;margin-bottom:38px}
.page-heading h1{margin:13px 0 20px;font-size:clamp(40px,5vw,64px)}
.hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);align-items:center;column-gap:clamp(36px,5vw,80px);max-width:calc(var(--max) + 2 * var(--gutter));margin:0 auto;padding:48px var(--gutter) 42px}
#app>.hero~.page{padding-top:24px;padding-bottom:40px}
.hero-copy{padding:22px 0}
.hero .eyebrow{margin-bottom:25px}
.hero h1{max-width:14ch;margin-bottom:25px}
.hero h1 em{font-weight:400}
.hero .intro,.hero .lead,.hero-copy>p{max-width:40ch}
.hero .actions{margin-top:30px}
.hero-media{position:relative;min-width:0;align-self:stretch;min-height:490px;margin:0;padding:0 0 28px}
.hero-media::before{content:'';position:absolute;inset:16px -14px 42px 16px;border:1px solid var(--silver);z-index:-1}
.hero-media>img{width:100%;height:100%;min-height:462px;max-height:610px;object-fit:cover;object-position:48% center}
.hero-caption{display:flex;gap:12px;align-items:center;position:absolute;bottom:0;left:0;right:0;font-size:11px;letter-spacing:.04em;color:var(--muted)}
.hero-caption::before{content:'';width:27px;height:1px;background:var(--silver)}
.hero-note{margin-top:19px;font-size:12px;color:var(--muted)}
.actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.text-link{min-height:44px;display:inline-flex;align-items:center;font-size:13px;font-weight:600;gap:12px;text-decoration:none;border-bottom:1px solid currentColor;line-height:1.5}
.text-link:hover{color:#48624a}
.hero .actions{gap:23px}
.step-number{display:block;margin-bottom:16px;font-size:11px;color:var(--muted);letter-spacing:.1em}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.button,button.primary,button.secondary{border:1px solid var(--green);border-radius:2px;min-height:48px;padding:12px 22px;background:transparent;color:var(--green);display:inline-flex;justify-content:center;align-items:center;gap:15px;text-decoration:none;font-size:13px;line-height:1.6;font-weight:700;letter-spacing:.015em;transition:background-color .18s,color .18s,border-color .18s}
.button.primary,button.primary{background:var(--green);color:var(--cream)}
.button:hover,button.secondary:hover{background:var(--green-soft)}
.button.primary:hover,button.primary:hover{background:#315447}
.button.tertiary,.button.text{border-color:transparent;padding-inline:4px;text-decoration:underline;text-underline-offset:5px}
.button.small{min-height:44px;padding:9px 15px;font-size:12px}
.button.danger{border-color:var(--danger);color:var(--danger)}
.section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;margin-bottom:27px;padding-top:30px;border-top:1px solid var(--line)}
.section-heading .eyebrow{margin-bottom:12px}
.section-heading>p{max-width:37ch;font-size:14px;color:var(--muted)}
.section-heading>a{font-size:13px;white-space:nowrap}
.game-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:27px}
.card{min-width:0;background:var(--paper);border:1px solid var(--line)}
.game-card{position:relative;display:flex;flex-direction:column;overflow:hidden;isolation:isolate}
.game-card-image{width:100%;aspect-ratio:1.65;object-fit:cover;object-position:center}
.game-card-body{padding:27px;display:flex;flex:1;flex-direction:column;align-items:flex-start}
.game-card .game-mark{display:inline-flex;align-items:center;justify-content:center;width:49px;height:49px;margin-bottom:19px;font-size:14px;letter-spacing:.1em;border:1px solid var(--silver);border-radius:50%}
.game-card h3{margin:7px 0 13px;font-size:30px}
.game-card p{font-size:14px;line-height:1.8;color:var(--muted)}
.game-card .card-meta{margin-top:20px}
.card-meta{font-size:10px;line-height:1.7;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.game-card .actions{margin-top:auto;padding-top:22px;width:100%}
.game-card .button{width:100%}
.game-card .eyebrow{font-size:10px}
.mode-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.mode-card{min-width:0;padding:28px 32px 29px 0}
.mode-card+.mode-card{border-left:1px solid var(--line);padding-left:32px}
.mode-card .eyebrow{color:var(--muted);margin-bottom:15px}
.mode-card h3{font-size:27px;margin-bottom:13px}
.mode-card p{font-size:14px;color:var(--muted);max-width:34ch}
.mode-card .button,.mode-card>a{margin-top:20px}
.daily-banner{display:flex;align-items:center;justify-content:space-between;gap:30px;padding:38px 44px;background:var(--green);color:var(--cream)}
.daily-banner .eyebrow{color:#d4ddce;margin-bottom:12px}
.daily-banner h2{font-size:35px;margin-bottom:12px}
.daily-banner p{max-width:57ch;font-size:14px;color:#e5e9df}
.daily-banner .button{flex-shrink:0;background:var(--cream);color:var(--green);border-color:var(--cream)}
.daily-banner .button:hover{background:#e4e9dc}
.daily-banner>div:last-child{display:flex;flex-direction:column;align-items:flex-start;gap:13px;min-width:230px}
.daily-banner .text-link{font-size:11px;color:var(--cream)}
.story-teaser{border-top:1px solid var(--line)}
.story-teaser .eyebrow{margin:16px 0 15px}
.story-teaser h2{font-size:40px;margin-bottom:18px}
.story-teaser>p:not(.eyebrow){font-size:15px;color:var(--muted);max-width:60ch;margin-bottom:14px}
.home-story,.story-strip{display:grid;grid-template-columns:1fr 1.5fr;gap:40px;padding-top:35px;border-top:1px solid var(--line)}
.story-strip p,.home-story p{max-width:64ch;color:var(--muted)}
.footer{max-width:calc(var(--max) + 2 * var(--gutter));margin:0 auto;padding:30px var(--gutter) 38px;display:flex;justify-content:space-between;gap:24px;align-items:center;border-top:1px solid var(--line)}
.footer-brand{font-size:21px;letter-spacing:.2em;text-decoration:none}
.footer p,.footer>a:last-child{font-size:11px;color:var(--muted)}
.footer>a:last-child{text-decoration:none}
.footer>a:last-child span{margin-left:15px}
.notice{position:fixed;z-index:50;bottom:max(24px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);padding:16px 24px;max-width:min(580px,calc(100vw - 32px));background:var(--green);color:var(--cream);border:1px solid #6b8073;box-shadow:0 8px 30px #203b3220;font-size:14px;overflow-wrap:anywhere}
.loading-state{padding-top:110px;padding-bottom:160px}
.loading-state p{font-family:var(--serif);font-size:32px;margin-top:16px}
.loading,.empty-state{padding:40px;text-align:center;border:1px solid var(--line);color:var(--muted)}
.empty-state h2,.empty-state h3{margin-bottom:15px;color:var(--ink)}
.empty-state .actions{justify-content:center;margin-top:22px}
/* Formulários e salas */
form{margin:0}
fieldset{min-width:0;border:1px solid var(--line);padding:24px;margin:0}
legend{font-weight:700;font-size:14px;padding:0 8px}
label,.field{display:block;font-size:13px;font-weight:700}
.field{margin-bottom:22px}
.field>span,.field>label{display:block;margin-bottom:8px}
input:not([type=checkbox]):not([type=radio]),select,textarea{display:block;width:100%;min-width:0;min-height:49px;border:1px solid #a6b0a3;border-radius:2px;background:var(--paper);padding:11px 14px;margin-top:7px;font-size:15px;font-weight:400}
input::placeholder,textarea::placeholder{color:#6a746a;opacity:1}
input:focus,select:focus,textarea:focus{border-color:var(--green)}
input[type=checkbox],input[type=radio]{width:20px;height:20px;margin:0 10px 0 0;accent-color:var(--green);vertical-align:middle}
label:has(input[type=checkbox]),label:has(input[type=radio]){min-height:44px;display:flex;align-items:center;font-weight:500;line-height:1.6}
.field small{display:block;margin-top:7px;font-weight:400;color:var(--muted)}
.form-grid,.room-grid,.two-column{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:30px;align-items:start}
.form-panel,.room-panel,.room-card{padding:32px;border:1px solid var(--line);background:var(--paper)}
.form-panel h2,.room-panel h2,.room-card h2{font-size:30px;margin-bottom:15px}
.form-panel>p,.room-panel>p,.room-card>p{font-size:14px;color:var(--muted);margin-bottom:24px}
.form-panel .actions,.room-panel .actions{margin-top:26px}
.invite-code,.room-code{font-family:var(--serif);font-size:clamp(32px,5vw,48px);letter-spacing:.12em;overflow-wrap:anywhere}
.invite-link{font-size:13px;overflow-wrap:anywhere}
.player-list{list-style:none;padding:0;margin:22px 0}
.player-list li,.player-row{display:flex;justify-content:space-between;align-items:center;gap:15px;border-bottom:1px solid var(--line);padding:14px 0;font-size:14px}
.player-list li:first-child{border-top:1px solid var(--line)}
.player-name{font-weight:700}
.player-status,.badge,.pill{font-size:11px;font-weight:600;padding:4px 10px;background:var(--green-soft);border:1px solid var(--line);border-radius:20px;line-height:1.6}
.error,.form-error{color:var(--danger);font-size:14px}
.success{color:var(--green)}
.notice.error{background:#783d32;color:var(--cream);border-color:#965c50}
.notice.success{color:var(--cream)}
.inline-form{display:flex;align-items:flex-end;gap:12px}
.inline-form .field{flex:1;margin:0}
/* Tabuleiro */
.game-shell{max-width:1120px;margin:0 auto}
.game-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-bottom:23px;border-bottom:1px solid var(--line);margin-bottom:30px}
.game-toolbar .eyebrow{margin-bottom:5px}
.game-toolbar h1{font-size:clamp(27px,3vw,39px)}
.game-toolbar .actions{justify-content:flex-end}
.timer{display:inline-flex;align-items:center;justify-content:center;min-width:78px;padding:9px 15px;border:1px solid var(--silver);font-variant-numeric:tabular-nums;font-size:17px}
.timer.urgent{color:var(--danger);border-color:var(--danger)}
.round-label,.round-count{font-size:12px;letter-spacing:.07em;color:var(--muted)}
.progress{height:3px;background:var(--line);margin:15px 0 30px;overflow:hidden}
.progress>span{display:block;height:100%;background:var(--green)}
.game-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(250px,1fr);gap:28px;align-items:start}
.puzzle-panel{min-width:0;padding:32px;border:1px solid var(--line);background:var(--paper)}
.puzzle-panel h2{font-size:32px;margin-bottom:16px}
.puzzle-panel>p{font-size:15px;color:var(--muted);margin-bottom:24px}
.side-panel{padding:27px;background:#eceee5;border:1px solid var(--line);min-width:0}
.side-panel h2,.side-panel h3{font-size:25px;margin-bottom:18px}
.side-panel p{font-size:14px}
.clue-list{list-style:none;padding:0;margin:0;counter-reset:clue}
.clue-list li{counter-increment:clue;padding:15px 0;border-bottom:1px solid var(--line);font-size:14px;line-height:1.8}
.clue-list li::before{content:counter(clue,decimal-leading-zero);display:inline-block;margin-right:12px;color:var(--muted);font-size:10px;letter-spacing:.08em;font-weight:700}
.clue-list li:first-child{padding-top:0}
.clue-list li:last-child{border-bottom:0}
.slot-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:24px 0}
.slot{min-width:0;border:1px solid var(--line);padding:20px;background:var(--cream)}
.slot h3,.slot h4{font-family:var(--sans);font-size:14px;font-weight:700;letter-spacing:0;line-height:1.5;margin-bottom:4px}
.slot>p,.slot small{font-size:12px;color:var(--muted);margin-bottom:13px}
.slot label{font-size:13px}
.item-grid,.choice-grid,.answer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.item-button,.choice-button,.answer-option{position:relative;border:1px solid #a6b0a3;background:var(--paper);padding:18px;min-height:72px;text-align:left;border-radius:2px;font-size:14px;font-weight:600;line-height:1.6;transition:background-color .18s,border-color .18s}
.item-button:hover,.choice-button:hover,.answer-option:hover{background:var(--green-soft);border-color:var(--green)}
.item-button[aria-pressed=true],.choice-button[aria-pressed=true],.answer-option.selected,.item-button.selected{background:var(--green);border-color:var(--green);color:var(--cream)}
.item-button small,.choice-button small,.answer-option small{display:block;font-weight:400;margin-top:5px}
.sequence,.memory-sequence,.sequence-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:25px 0}
.sequence-item,.memory-item{padding:22px 10px;text-align:center;background:var(--green-soft);border:1px solid var(--line);font-size:14px}
.sequence-item .number,.memory-item .number{display:block;font-family:var(--serif);font-size:30px;margin-bottom:6px}
.chosen-sequence,.selection-tray{padding:20px;border:1px dashed #91a18e;background:var(--cream);margin:20px 0;min-height:68px;font-size:14px}
.puzzle-panel>.actions,.game-shell>.actions{margin-top:26px}
.puzzle-panel>h1{font-size:clamp(32px,3.5vw,47px);margin:13px 0 18px}
.puzzle-panel>h3{font-family:var(--sans);font-size:14px;font-weight:700;letter-spacing:0;margin:25px 0 15px}
.puzzle-panel>.notice{position:static;transform:none;max-width:none;margin-top:23px;padding:18px 20px;background:var(--green-soft);color:var(--green);border:1px solid var(--line);box-shadow:none}
.slot{display:flex;flex-direction:column;gap:5px;align-items:flex-start;text-align:left;font-size:13px}
.slot>span:not(.slot-content){color:var(--muted);font-size:12px}
.slot-content{display:block;border-top:1px solid var(--line);padding-top:10px;margin-top:5px;width:100%;font-weight:600;min-height:33px}
.slot.filled{border-color:var(--green);background:var(--green-soft)}
.slot:hover{border-color:var(--green)}
.choice{padding:22px;text-align:left;display:flex;flex-direction:column;gap:10px;min-height:160px;transition:background-color .18s,border-color .18s}
.choice strong{font-family:var(--serif);font-size:24px;font-weight:400;line-height:1.25}
.choice>span:last-child{font-size:13px;color:var(--muted);line-height:1.8}
.choice:hover{border-color:var(--green);background:var(--green-soft)}
.choice.selected{background:var(--green);color:var(--cream);border-color:var(--green)}
.choice.selected>span:last-child{color:#e0e7da}
.sequence{list-style:none;counter-reset:step;padding:0}
.sequence>li{counter-increment:step;min-width:0;padding:16px 12px;background:var(--green-soft);border:1px solid var(--line);font-size:13px;line-height:1.7}
.sequence>li::before{content:counter(step,decimal-leading-zero);display:block;font-size:11px;letter-spacing:.1em;color:var(--muted);margin-bottom:9px}
.sequence>li .item-button{min-height:100px;width:100%;padding:12px;font-size:12px}
.sequence.reference{grid-template-columns:repeat(2,minmax(0,1fr))}
.sequence.reference>li{min-height:100px;padding:22px}
.answer-sequence{grid-template-columns:repeat(2,minmax(0,1fr))}
.tutorial{font-size:14px;padding:20px 22px;background:var(--green-soft);border-left:2px solid var(--green);margin:25px 0}
.consent{margin-top:20px;font-size:13px}
.result-checks{list-style:none;padding:0;margin:25px 0}
.result-checks li{display:flex;align-items:flex-start;gap:12px;padding:13px 0;border-bottom:1px solid var(--line);font-size:14px}
.result-checks li>strong{margin-left:auto;white-space:nowrap}
.instructions,.help-panel{padding:22px 25px;background:var(--green-soft);border-left:2px solid var(--green);font-size:14px;margin:20px 0}
details{border-bottom:1px solid var(--line);padding:15px 0;font-size:14px}
summary{min-height:44px;display:flex;align-items:center;font-weight:700;cursor:pointer}
details>p,details>ul{margin:12px 0 15px;color:var(--muted)}
.waiting{padding:28px 0;font-family:var(--serif);font-size:25px}
.result-panel{max-width:800px;padding:45px;margin:0 auto;border:1px solid var(--line);background:var(--paper)}
.result-panel h1,.result-panel h2{margin:13px 0 20px}
.result-score{font-family:var(--serif);font-size:clamp(62px,10vw,100px);line-height:1.1;margin:24px 0;letter-spacing:-.06em}
.result-score small{font-family:var(--sans);font-size:13px;letter-spacing:0;margin-left:10px}
.checks,.check-list{list-style:none;padding:0;font-size:14px;margin:20px 0 30px}
.checks li,.check-list li{padding:10px 0;border-bottom:1px solid var(--line)}
.story-card{padding:28px;background:var(--green-soft);margin:25px 0}
.story-card h3{margin-bottom:12px}
.story-card p{font-size:14px}
/* Placar e história */
.ranking-tabs,.tabs{display:flex;flex-wrap:wrap;gap:8px;margin:24px 0}
.ranking-tabs button,.tabs button{min-height:44px;padding:10px 18px;background:transparent;border:1px solid var(--line);font-size:13px}
.ranking-tabs button[aria-selected=true],.tabs button[aria-selected=true],.tabs button.active{background:var(--green);color:var(--cream);border-color:var(--green)}
.ranking-table,table{width:100%;border-collapse:collapse;text-align:left;font-size:14px;background:var(--paper)}
th{font-size:10px;text-transform:uppercase;letter-spacing:.1em;font-weight:700;background:#e9ede3}
th,td{padding:16px 20px;border-bottom:1px solid var(--line)}
th:first-child,td:first-child{width:70px}
th:last-child,td:last-child{text-align:right;font-variant-numeric:tabular-nums}
tr.me,tr[data-me=true]{background:var(--green-soft);font-weight:700}
.table-wrap{overflow:auto;border:1px solid var(--line)}
.table-scroll{overflow:auto;border:1px solid var(--line);margin-top:24px}
.ranking-table tbody th{font-family:var(--sans);background:transparent;font-size:14px;letter-spacing:0;text-transform:none;line-height:1.6}
.ranking-table .is-me{background:var(--green-soft)}
.ranking-table .is-me th{font-weight:800}
.ranking-note{margin-top:20px;font-size:13px;color:var(--muted)}
.story-page{max-width:1000px}
.story-page .page-heading{max-width:760px;margin-bottom:48px}
.story-page>section{padding:30px 0 0;border-top:1px solid var(--line)}
.story-page>section h2{margin:12px 0 20px;font-size:36px}
.story-page>section>p:not(.eyebrow){max-width:68ch;line-height:1.9;color:var(--muted)}
blockquote{margin:30px 0;padding:20px 0 20px 25px;border-left:2px solid var(--silver);font-family:var(--serif);font-size:23px;line-height:1.6;max-width:42ch}
blockquote cite{display:block;margin-top:12px;font-family:var(--sans);font-size:13px;font-style:normal;color:var(--muted)}
.story-chapters{display:grid;gap:30px}
.story-chapter{display:grid;grid-template-columns:100px minmax(0,1fr);gap:30px;padding:30px 0;border-top:1px solid var(--line)}
.story-chapter .game-mark{font-family:var(--serif);font-size:40px;letter-spacing:-.03em}
.story-chapter h2{font-size:32px;margin-bottom:15px}
.story-chapter p{max-width:67ch;color:var(--muted)}
dialog{max-width:min(550px,calc(100% - 32px));max-height:85vh;overflow:auto;padding:32px;border:1px solid var(--line);background:var(--cream);color:var(--ink)}
dialog::backdrop{background:#203b3266}
dialog h2{font-size:32px;margin-bottom:18px}
dialog .actions{margin-top:25px}
/* Tablet, celular e telas dobráveis: nenhuma ação depende de hover. */
@media(min-width:1440px){.hero{column-gap:85px}.hero-media{min-height:520px}.hero-copy{padding-right:20px}}
@media(max-width:1050px){.header-inner{gap:20px}.nav{gap:19px;font-size:12px}.hero{gap:35px}.hero-media{min-height:420px}.hero-media>img{min-height:392px}.hero h1{font-size:60px}.game-grid{gap:18px}.game-card-body{padding:22px}.game-card h3{font-size:27px}.mode-card{padding-right:22px}.mode-card+.mode-card{padding-left:22px}.game-layout{grid-template-columns:minmax(0,1.45fr) minmax(230px,1fr)}.puzzle-panel{padding:25px}}
@media(max-width:800px){.header-inner{padding-top:16px;padding-bottom:0;flex-wrap:wrap;gap:10px}.brand-symbol{width:43px;height:43px}.brand-symbol img{width:37px;height:37px}.brand-wordmark{font-size:23px}.brand-wordmark>span{font-size:8px}.nav{width:100%;justify-content:space-between;gap:12px}.nav a{min-height:48px}.page{padding-top:32px}.hero{column-gap:28px}.hero h1{font-size:50px}.hero-media{min-height:390px}.hero-media>img{min-height:362px}.hero .intro,.hero-copy>p{font-size:16px}.hero .actions .button{padding-inline:17px}.game-grid{grid-template-columns:1fr}.game-card{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1fr)}.game-card-image{aspect-ratio:auto;height:100%;min-height:270px}.game-card-body{padding:25px}.game-card .game-mark{width:38px;height:38px;margin-bottom:10px;font-size:11px}.game-card h3{margin-top:2px}.game-card .actions{padding-top:16px}.mode-card h3{font-size:24px}.mode-card p{font-size:13px}.section-heading{align-items:flex-start}.daily-banner{padding:30px}.daily-banner h2{font-size:31px}.game-layout{grid-template-columns:1fr}.side-panel{order:-1}.side-panel .clue-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:25px}.clue-list li:first-child{padding-top:15px}.form-grid,.room-grid{gap:20px}.form-panel,.room-panel,.room-card{padding:25px}.footer{flex-wrap:wrap}.footer p{flex:1}.footer>a:last-child{width:100%}}
@media(max-width:600px){:root{--gutter:24px}h1{font-size:48px}.page{padding-bottom:55px}.page>section+section{margin-top:48px}.header-inner{padding-top:15px}.brand{gap:11px}.nav{gap:9px;font-size:11px}.nav a{min-height:47px}.hero{grid-template-columns:1fr;padding:23px var(--gutter) 26px;row-gap:20px}.hero-copy{padding:14px 0 7px}.hero .eyebrow{margin-bottom:20px}.hero h1{max-width:14ch;font-size:clamp(44px,12.7vw,57px);margin-bottom:23px}.hero .intro,.hero-copy>p{max-width:35ch;font-size:16px}.hero .actions{margin-top:25px}.hero-media{min-height:0;margin-right:9px;padding-bottom:27px}.hero-media>img{height:300px;min-height:0;max-height:none;object-position:center 55%}.hero-media::before{inset:12px -9px 39px 12px}.hero-caption{font-size:10px}.hero-note{font-size:11px}.section-heading{flex-direction:column;gap:16px;padding-top:26px;margin-bottom:22px}.section-heading h2{font-size:36px}.section-heading>p{font-size:14px}.game-grid{gap:23px}.game-card{display:flex}.game-card-image{height:auto;min-height:0;aspect-ratio:1.7}.game-card-body{padding:25px}.game-card .game-mark{width:43px;height:43px;margin-bottom:16px;font-size:12px}.game-card h3{font-size:31px}.game-card .actions{padding-top:22px}.game-card .card-meta{margin-top:15px}.mode-grid{grid-template-columns:1fr}.mode-card,.mode-card+.mode-card{border-left:0;padding:25px 0}.mode-card+.mode-card{border-top:1px solid var(--line)}.mode-card h3{font-size:28px}.mode-card p{max-width:43ch;font-size:14px}.mode-card .eyebrow{margin-bottom:9px}.daily-banner{align-items:flex-start;flex-direction:column;gap:22px;padding:28px 25px}.daily-banner h2{font-size:32px}.daily-banner .button{width:100%}.daily-banner>div:last-child{width:100%;min-width:0}.home-story,.story-strip{grid-template-columns:1fr;gap:20px}.footer{padding-top:25px;padding-bottom:max(30px,env(safe-area-inset-bottom));gap:12px}.footer-brand{font-size:19px}.footer p{flex:auto;width:100%;font-size:11px}.footer>a:last-child{margin-top:7px}.page-heading{margin-bottom:28px}.page-heading h1{font-size:43px}.page-heading .intro{font-size:16px}.form-grid,.room-grid,.two-column{grid-template-columns:1fr}.form-panel,.room-panel,.room-card{padding:24px}.game-toolbar{align-items:flex-start;gap:14px;flex-wrap:wrap}.game-toolbar>.actions{width:100%;justify-content:flex-start}.game-toolbar h1{font-size:32px}.game-toolbar .button{min-height:44px;padding:9px 14px}.game-layout{gap:20px}.puzzle-panel{padding:23px 20px}.puzzle-panel h2{font-size:29px}.puzzle-panel>p{font-size:14px}.side-panel{padding:23px 20px}.side-panel .clue-list{grid-template-columns:1fr}.clue-list li:first-child{padding-top:0}.slot-grid{grid-template-columns:1fr;gap:12px}.slot{padding:17px}.item-grid,.choice-grid,.answer-grid{grid-template-columns:1fr}.sequence,.memory-sequence,.sequence-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.result-panel{padding:28px 23px}.result-panel h1{font-size:39px}.result-panel .actions>*{width:100%}.story-card{padding:22px}.story-chapter{grid-template-columns:1fr;gap:14px;padding:25px 0}.story-chapter .game-mark{font-size:30px}.story-chapter h2{font-size:30px}th,td{padding:13px 12px;font-size:13px}th{font-size:9px}th:first-child,td:first-child{width:45px}.inline-form{flex-direction:column;align-items:stretch}.inline-form .button{width:100%}.notice{bottom:max(16px,env(safe-area-inset-bottom));padding:14px 19px;font-size:13px}}
@media(max-width:359px){:root{--gutter:18px}.hero h1{font-size:50px}.brand-wordmark{font-size:21px}.nav{font-size:10px;gap:7px}.hero .actions{align-items:stretch}.hero .actions .button{width:100%}.hero-media>img{height:255px}.game-card-body{padding:22px}}
@media(horizontal-viewport-segments:2){.hero,.game-layout{column-gap:max(40px,calc(env(viewport-segment-left 1 0,0px) - env(viewport-segment-right 0 0,0px) + 32px))}.page{max-width:100%}.hero-copy{padding-right:16px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}
@media(forced-colors:active){.button,.card,.slot,.side-panel,.puzzle-panel{border:1px solid CanvasText}.item-button[aria-pressed=true]{outline:3px solid Highlight}.game-card-image{forced-color-adjust:none}}

/* Route headings receive programmatic focus. Interactive controls keep their visible indicator. */
h1[tabindex="-1"]:focus{outline:none}
.hero-media{padding-bottom:0}
.hero-media::before{bottom:13px}
.hero .hero-copy .card-meta{margin-top:16px;font-size:13px}

@media(horizontal-viewport-segments:2){
  :root{--gutter:24px}
  body{width:env(viewport-segment-width 0 0,540px);margin-inline:0}
  .header-inner,.footer{flex-wrap:wrap}
  .nav{width:100%;justify-content:space-between;gap:10px}
  .hero,.game-layout,.game-grid,.mode-grid{grid-template-columns:1fr}
  .hero{row-gap:24px}
  .hero h1{font-size:clamp(44px,10vw,58px)}
  .hero-media{min-height:0;margin-right:10px}
  .hero-media>img{height:320px;min-height:0}
  .game-card{display:flex}
  .game-card-image{height:auto;min-height:0;aspect-ratio:1.7}
  .mode-card,.mode-card+.mode-card{padding:20px 0;border-left:none}
  .mode-card+.mode-card{border-top:1px solid var(--line)}
  .daily-banner,.section-heading{align-items:flex-start;flex-direction:column}
  dialog{inset-inline:24px auto;margin-inline:0;max-width:calc(env(viewport-segment-width 0 0,540px) - 48px)}
}
@media(vertical-viewport-segments:2){
  html{overflow:hidden}
  body{height:env(viewport-segment-height 0 0,540px);overflow:auto;overscroll-behavior:contain}
  dialog{inset-block:24px auto;margin-block:0;max-height:calc(env(viewport-segment-height 0 0,540px) - 48px)}
}

/* The information used to make a move stays readable at game scale. */
.game-shell .puzzle-panel>p:not(.eyebrow,.card-meta),
.game-shell .clue-list>li,.game-shell .item-button,.game-shell .choice>span:last-child,
.game-shell .slot>span:not(.slot-content),.game-shell .sequence>li{font-size:17px}
.game-shell .slot strong,.game-shell .slot-content{font-size:17px}
.game-shell .clue-list>li .button{margin:8px 0 0}
@media(vertical-viewport-segments:2){
  #feedback{bottom:auto;top:calc(env(viewport-segment-height 0 0,540px) - 100px)}
}
