/* Two Minds — the after-hours puzzle café. */
:root{--cream:#f8f4eb;--paper:#fffdf7;--ink:#28223c;--muted:#6c6478;--line:#e1dcd7;--mint:#d6e8cd;--apricot:#f3b48e;--purple:#ddd5fa;--shadow:0 12px 32px #1713240b;--accent:#d9ef96;--serif:'Iowan Old Style','Palatino Linotype','Book Antiqua',Georgia,serif;--font:'Avenir Next',Avenir,'Segoe UI',sans-serif}
body{background:#201d32;color:#f8f4eb;background-image:radial-gradient(ellipse at 100% 0%,#45415e55,transparent 50%);min-height:100svh}body:before{content:'';position:fixed;inset:0;pointer-events:none;opacity:.09;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='white' filter='url(%23n)' opacity='.5' d='M0 0h180v180H0z'/%3E%3C/svg%3E")}button{transition:transform .2s ease,background .2s ease,box-shadow .2s ease}button:focus-visible,a:focus-visible{outline-color:#a987eb}input:focus-visible,textarea:focus-visible{outline-color:#7250a8}h1:focus{outline:none}.awning{height:4px;background:linear-gradient(90deg,#d9ef96 25%,#bea9f2 25%,#bea9f2 50%,#f3b48e 50%,#f3b48e 75%,#a9d9d9 75%)}.shell{max-width:1160px;padding:0 40px;padding-bottom:env(safe-area-inset-bottom)}.topbar{padding:24px 0 22px;border-bottom:1px solid #ffffff20}.brand{font-size:1.8rem;letter-spacing:-.055em;color:#fbf4e9;gap:11px}.brandmark{background:#d9ef96;color:#201d32;border-radius:50%;height:36px;width:36px;font-size:1.9rem}.brand-dot{color:#d9ef96}.iconbutton{color:#e5dfef;border-color:#ffffff30;font-weight:500;font-size:.875rem;background:#ffffff05}.iconbutton:hover{background:#ffffff12}.home-layout{max-width:none}.entrance{padding:38px 0 32px;gap:30px;justify-content:space-between}.entrance h1{font-size:clamp(2.7rem,5.3vw,4.5rem);line-height:1.04;font-weight:400;letter-spacing:-.055em}.entrance h1 em{color:#d9ef96;font-weight:400}.entrance p{color:#c7bfce;font-size:1rem;margin-top:18px}.eyebrow{font-size:.75rem;letter-spacing:.16em;font-weight:650;margin-bottom:14px}.entrance .eyebrow{color:#dbd4e5}.entrance .eyebrow span{color:#a9a0b7;font-size:.75rem;letter-spacing:.1em}.table-stamp{flex-shrink:0;display:flex;flex-direction:column;align-items:center;justify-content:center;width:154px;height:154px;border:1px solid #d9ef9680;border-radius:50%;outline:1px solid #d9ef9628;outline-offset:7px;color:#d9ef96;transform:rotate(9deg);margin-right:18px}.table-stamp strong{font:italic 4.5rem/1 var(--serif)}.table-stamp span{font-size:.75rem;letter-spacing:.16em;padding:8px}.menu-toolbar{display:flex;align-items:center;gap:24px;margin-bottom:22px;padding:21px 0;border-top:1px solid #ffffff20;border-bottom:1px solid #ffffff20}.settings{flex:1;margin:0;gap:20px}.settingslabel{font-size:.875rem;color:#f7f0e9;display:block}.difficulty-copy{font-size:.875rem;color:#aaa2b8;margin-top:3px}.segmented{background:#14122299;padding:4px;border:1px solid #ffffff14}.segmented button{color:#b8afc7;padding:9px 16px;min-width:88px;min-height:42px}.segmented button[aria-pressed=true]{background:#e8e0f5;color:#302741;box-shadow:0 2px 8px #0003}.primary{background:var(--ink);color:#fffdf7;border-radius:12px;box-shadow:0 4px 0 #120e2040;min-height:52px;font-size:.9375rem}.primary:hover{background:#443954;box-shadow:0 6px 16px #21183125}.quick{width:auto;margin:0;min-width:174px;background:#d9ef96;color:#252331;box-shadow:0 4px 0 #0a081a66}.quick:hover{background:#e7ffac;color:#252331}.continuecard{background:#353045;color:#fff9ef;border:1px solid #847593;border-radius:16px;margin-bottom:24px;padding:19px 22px;box-shadow:0 8px 24px #0b071c30}.continuecard small{color:#cfc5dc}.resumeicon{color:#d9ef96;font-size:1.6rem}.continuecard .tag{background:#d9ef96;color:#252331;padding:8px 14px}.modegrid{gap:18px}.modecard{display:flex;flex-direction:column;align-items:stretch;gap:0;padding:24px 26px;border:0;border-radius:18px;min-height:237px;color:#252334;position:relative;overflow:hidden;box-shadow:0 6px 0 #100d1f66;isolation:isolate}.modecard.symbols{background:#d9ef96}.modecard.word{background:#d6c8f0}.modecard.logic{background:#b6d8dc}.modecard.pattern{background:#f2b18c}.card-top,.card-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px}.modecategory,.card-time{font-size:.75rem;letter-spacing:.1em;font-weight:700}.card-time{white-space:nowrap;opacity:.65}.mode-main{display:flex;align-items:center;justify-content:space-between;gap:18px;flex:1;padding:22px 0}.modecopy{max-width:65%;gap:9px}.modecopy strong{font-size:clamp(1.7rem,2.9vw,2.3rem);line-height:1.03;letter-spacing:-.05em;font-weight:500}.modecopy>span:last-child{color:#3b3549;font-size:.875rem;line-height:1.5;max-width:210px}.card-bottom{padding-top:14px;border-top:1px solid #25233428;font-size:.75rem}.modeplay{display:block;background:#fff9ef99;border:1px solid #25233418;padding:6px 17px;border-radius:30px;font-weight:700;font-size:.875rem}.modecard:hover{transform:translateY(-4px);box-shadow:0 10px 0 #100d1f66}.modecard:active{transform:translateY(1px);box-shadow:0 3px 0 #100d1f66}.puzzle-preview{flex-shrink:0;transform:rotate(7deg);transition:transform .35s;display:flex;gap:5px;font-family:var(--serif);font-weight:500;font-size:1.5rem}.modecard:hover .puzzle-preview{transform:rotate(0deg) scale(1.05)}.preview-symbol{display:grid;grid-template-columns:repeat(3,29px);gap:4px}.preview-symbol>span{display:grid;place-items:center;border:1px solid #28223c25;border-radius:6px;background:#ffffff40;width:29px;height:32px;font-size:1.1rem}.preview-symbol .preview-total{background:#28223c;color:#e5f5b6;font:600 .875rem var(--font)}.preview-word{display:grid;font-size:1.1rem;gap:8px}.preview-word>span{background:#fff7;border:1px solid #28223c18;padding:7px 8px;border-radius:7px}.preview-line{width:20px;height:12px;display:inline-block;border-bottom:2px solid #564776}.preview-logic{gap:3px;transform:rotate(-5deg)}.preview-logic>span{border:1px solid #28223c25;background:#fff6;border-radius:18px 18px 6px 6px;padding:11px 6px;font: .75rem/1.7 var(--font);text-align:center}.preview-logic b{font-size:.875rem}.preview-logic>span:nth-child(2){background:#28223c;color:#b6d8dc}.preview-pattern{display:grid;grid-template-columns:repeat(2,37px);gap:5px;transform:rotate(-8deg)}.preview-pattern>span{border:1px solid #28223c20;background:#fff5;width:37px;height:34px;display:grid;place-items:center;border-radius:7px;font-size:1.3rem}.preview-pattern .preview-unknown{background:#28223c;color:#f2b18c}.home-note{color:#bdb3cb;font-size:.875rem;margin:24px 0 38px;display:flex;align-items:center;justify-content:center;gap:10px}.home-note>span{font:1.6rem var(--serif);color:#d9ef96}.collection-section{border:1px solid #ffffff23;border-radius:20px;padding:25px;background:#ffffff04}.collection-heading{gap:20px}.collection-heading .eyebrow{font-size:.75rem;color:#b5a9c8;margin-bottom:9px}.collection-heading h2{font-size:1.9rem;font-weight:400;letter-spacing:-.035em}.collection-heading p{color:#bcb1c9;font-size:.875rem;margin-top:8px}.solved-count{text-align:right;flex-shrink:0}.solved-count strong{font:3rem/1 var(--serif);display:block;color:#d9ef96}.solved-count span{font-size:.75rem;color:#bcb1c9}.collection{margin-top:22px;gap:16px}.scene{padding:0 0 13px;border:1px solid #ffffff1c;border-radius:12px;overflow:hidden;background:#fff8ec;color:#28223c;text-align:left}.scene.unlocked{background:#fff8ec;border-color:#d9ef96}.scene-image{height:112px;opacity:.55;filter:saturate(.45);background:#fff8ec}.scene-image img{object-fit:cover}.scene-caption{padding:9px 14px 12px}.scene strong{font-size:1.125rem;font-weight:500}.scene small{margin-top:4px;font-size:.75rem;color:#756879}.scene progress{appearance:none;border:0;display:block;height:3px;border-radius:9px;width:calc(100% - 28px);margin:0 14px;background:#dfd7df}.scene progress::-webkit-progress-bar{background:#dfd7df;border-radius:9px}.scene progress::-webkit-progress-value{background:#6b586f;border-radius:9px}.scene progress::-moz-progress-bar{background:#6b586f;border-radius:9px}.save-status{color:#a99fb9;font-size:.75rem;margin-top:22px}footer{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:28px 0;color:#a99fb9;font-size:.75rem}footer>span:first-child{font:italic 1.2rem var(--serif);color:#e0d6e8}
/* Focused play surface. */
body[data-mode=symbol]{--accent:#d9ef96}body[data-mode=word]{--accent:#d6c8f0}body[data-mode=logic]{--accent:#b6d8dc}body[data-mode=pattern]{--accent:#f2b18c}.game-layout{max-width:920px;margin:0 auto}.gamebar{padding:18px 0;color:#f4eee7}.gamebar .back{color:#ded4e8;text-decoration:none;font-weight:600}.clock{gap:10px}.clock>span{font:1.5rem var(--serif);color:#f4eee7}.clock small{color:#bdb2cb;font-size:.75rem}.clock.over>span{color:#d9ef96}.gamehead{margin:10px 0 26px}.gamehead .eyebrow{display:flex;align-items:center;gap:8px;color:var(--accent);font-size:.75rem;letter-spacing:.1em;margin-bottom:12px}.mode-badge{display:inline-grid;place-items:center;width:29px;height:29px;border:1px solid #ffffff2a;border-radius:8px;font-size:.9375rem!important}.gamehead h1{font-size:clamp(2.2rem,5vw,3.2rem);font-weight:400;letter-spacing:-.045em}.gamehead p{color:#c9bfd5;font-size:1rem;max-width:620px;margin-top:12px}.board,.inputtray{color:var(--ink);box-shadow:0 8px 24px #0d091a1a;border:1px solid #ffffff44;border-radius:18px;background:var(--paper);padding:22px}.boardheading{font-size:.875rem;gap:8px;padding-bottom:16px}.tag{background:#eae5f2;font-size:.75rem}.symbolboard .tag{background:#e6edce}.inputtray{margin-top:0;align-self:start}.gridshape{background:#f3f0ea;border:1px solid #e3ded8;border-radius:10px}.gridshape.active{background:#e4edcd;border:2px solid #555f37;box-shadow:0 2px 0 #a2ac87}.gridshape:hover{background:#e8ecdc}.gridtotal{background:#e9eddd;font-size:1.1rem}.symbolcell{height:76px}.gridshape{min-height:70px}.gridshape>span{font-size:1.8rem}.symbollegend{gap:5px}.legendbutton{background:#f3f0e9;border-color:#e0dcd4;border-radius:9px}.legendbutton.active{background:#e6eecc;border-color:#555f37}.numberkey{background:#f8f5ed;border-color:#e2dcd2;min-height:48px;box-shadow:0 2px 0 #e5dfd4}.numberkey.selected{background:#3b3940}.numberkey.used:not(.selected){background:#e8e4dd}.numberkey:hover{background:#e7edcf}.numberkey.selected:hover{background:#3b3940}.smallbutton,.secondary{background:#fffdf7;color:var(--ink);border-color:#d6cedc;font-size:.875rem}.traytools{gap:7px}.traytools .primary{min-width:120px}.trayheading{margin:16px 0 10px}.traytools .smallbutton{padding-inline:10px}.roundmeta{color:#bcb2c9;margin-top:22px}.hintcount{color:#bcb2c9}.support{margin-top:22px}.support>.helper-row>.secondary{background:#ffffff0b;color:#f1e9f5;border-color:#ffffff35}.support details{background:#2b263d;border-color:#ffffff25;color:#e6dfed}.support .hintstep{border-color:#ffffff20}.support .hintstep strong{color:#d9ef96}.support .hintstep p{color:#d0c7da}.notebook p{color:#b9aec6}.notebook textarea{background:#211b30;color:#f7eefc;border-color:#80718e}.notebook textarea::placeholder{color:#a99cb8}.feedback{background:#f4d1a3;color:#4e3422;border-left:3px solid #c9924c}.board p{color:var(--muted)}.wordclue{background:#f0eafa;border-color:#e2d8ec;border-radius:12px;padding:17px}.wordclue.worked{background:#e2ebda}.wordboard{max-width:680px;margin:auto}.wordclue .blank{border-color:#88659f}.answerrow input{border-color:#c7b4d5}.seatingboard .tag{background:#e0eff0}.seat{background:#edf3f2;border-color:#c8dcdd}.seat.active{background:#cde4e5;border-color:#3d5a61;box-shadow:0 3px 0 #a9c4c6}.chip{border-color:#cad4cf;background:#f0f4ec}.chip.selected{background:#28223c}.clueboard .tag{background:#e0eff0}.cluebutton{font-size:.9375rem}.patternsequence{grid-template-columns:repeat(5,1fr);gap:8px}.numbertile{background:#f7ddc9;border-color:#e9cbb5}.numbertile.missing{border-color:#c89a75;background:#fffaf4}.recipenote{background:#f9ecdd}.exclude{background:#faf0e6}.choices{gap:12px}.pauseveil{background:#f8f4eb;color:#28223c;padding:58px 24px}.pauseveil .eyebrow{color:#77658b}.result{max-width:660px;padding:20px 0}.resultseal{width:88px;height:88px;font-size:3rem;background:var(--accent);color:#28223c;box-shadow:0 0 0 10px #ffffff06,0 0 0 11px #ffffff1f;border:0;margin:22px auto 35px}.result>.eyebrow{color:var(--accent);font-size:.75rem}.result h1{font-size:clamp(2.7rem,6vw,3.6rem);font-weight:400;letter-spacing:-.05em}.result>p{color:#beb2ca}.stats{background:#2e293f;border:1px solid #ffffff25;border-radius:16px;padding:23px 8px}.stats>div{border-color:#ffffff20}.stats strong{color:#f8f3e9;font-weight:400;font-size:2.4rem}.stats span{color:#c0b4cf}.result>.primary{background:var(--accent);color:#28223c}.result>.back{color:#d7ccdf}.result details{background:#fffdf7;color:#28223c}.resultcafe{background:#fff5e3;border-radius:16px;overflow:hidden;padding:12px;margin-top:22px}.resultcafe p{color:#665873}.resultcafe .cafeart{max-width:400px;height:120px}.roundrating{border-color:#ffffff25}.roundrating p,.roundrating small{color:#bdb2ca}.roundrating .chip{background:#ffffff0b;border-color:#ffffff30;color:#eee5f5}.roundrating .chip[aria-pressed=true]{background:var(--accent);color:#28223c}dialog{background:#fffaf0;box-shadow:0 30px 120px #07041080}dialog::backdrop{background:#100c24aa;backdrop-filter:blur(10px)}.home-layout,.game-layout,.result{animation:arrive .45s ease-out both}@keyframes arrive{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:850px){body[data-mode=symbol] #playarea{display:grid;grid-template-columns:1.05fr 1fr;align-items:start;gap:22px}body[data-mode=logic] #playarea{display:grid;grid-template-columns:1.1fr 1fr;align-items:start;gap:22px}body[data-mode=logic] .board+.board{margin:0}.game-layout .support{max-width:680px;margin:24px auto}.seatboard{grid-template-columns:repeat(auto-fit,minmax(62px,1fr));gap:6px}.seat{padding:10px 4px}.seat strong{font-size:1.15rem}.seat small{font-size:.75rem}.patternboard{max-width:760px;margin:auto}.patternsequence{grid-template-columns:repeat(9,1fr)}}
@media(max-width:849px){.shell{padding:0 24px}.inputtray{margin-top:16px}.game-layout{max-width:620px}.entrance h1{font-size:3.4rem}.table-stamp{width:125px;height:125px;margin-right:8px}.table-stamp strong{font-size:3.3rem}.table-stamp span{font-size:.75rem;letter-spacing:.08em}.settings{gap:12px}.settingslabel{max-width:150px}.difficulty-copy{display:none}.menu-toolbar{gap:12px}.quick{min-width:155px}.modecard{padding:22px 20px;min-height:236px}.modecopy strong{font-size:1.85rem}.mode-main{gap:8px}.puzzle-preview{scale:.9;transform-origin:right center}.collection-heading h2{font-size:1.6rem}.symbolcell{height:70px}.gridshape{min-height:64px}}
@media(max-width:600px){.shell{padding:0 18px}.topbar{padding:17px 0}.brand{font-size:1.65rem}.brandmark{height:31px;width:31px;font-size:1.7rem}.iconbutton{min-height:42px;padding:8px 12px;font-size:.875rem}.entrance{padding:28px 0 26px;gap:10px}.entrance h1{font-size:clamp(2.1rem,7.7vw,3rem);line-height:1.06}.entrance .eyebrow{font-size:.75rem;letter-spacing:.12em;margin-bottom:12px}.entrance .eyebrow span{font-size:.75rem}.entrance p{font-size:.875rem;max-width:245px;line-height:1.5;margin-top:12px}.table-stamp{display:none}.menu-toolbar{display:grid;grid-template-columns:1fr auto;padding:14px 0;gap:9px;margin-bottom:16px}.settings{display:block}.settings>div:first-child{display:none}.segmented{width:max-content;padding:3px}.segmented button{min-width:67px;min-height:42px;padding:7px 11px;font-size:.875rem}.quick{min-width:0;min-height:48px;padding:10px 14px;font-size:.875rem;gap:7px;border-radius:25px}.modegrid{grid-template-columns:1fr;gap:13px}.modecard{padding:18px 20px;min-height:183px;border-radius:16px}.mode-main{padding:14px 0;gap:10px}.modecopy{max-width:72%;gap:7px}.modecopy strong{font-size:1.95rem}.modecopy>span:last-child{max-width:230px;font-size:.875rem}.card-top .modecategory,.card-time{font-size:.75rem;letter-spacing:.09em}.card-bottom{padding-top:10px;font-size:.75rem}.modeplay{padding:5px 16px;font-size:.75rem}.puzzle-preview{scale:.9}.home-note{font-size:.875rem;align-items:center;line-height:1.6;text-align:left;margin:23px 6px 28px;gap:12px}.home-note>span{font-size:2rem}.collection-section{padding:19px 16px}.collection-heading{align-items:center;gap:12px}.collection-heading .eyebrow{font-size:.75rem;letter-spacing:.12em}.collection-heading h2{font-size:1.5rem;max-width:200px}.collection-heading p{font-size:.875rem;max-width:200px}.solved-count strong{font-size:2.4rem}.solved-count span{display:block;max-width:60px;font-size:.75rem;line-height:1.4}.collection{gap:8px;margin-top:18px}.scene-image{height:74px}.scene-caption{padding:9px 8px}.scene strong{font:500 .9375rem/1.15 var(--serif)}.scene small{font-size:.75rem;line-height:1.5}.scene progress{width:calc(100% - 16px);margin:0 8px}.scene{padding-bottom:10px;border-radius:9px}.save-status{font-size:.75rem}footer{padding:24px 0;font-size:.75rem}.continuecard{padding:15px;gap:10px;margin-bottom:18px}.continuecard strong{font-size:1rem}.continuecard small{font-size:.75rem}.continuecard .tag{font-size:.75rem;padding:7px 10px}.gamebar{padding:15px 0 10px;gap:8px}.gamehead{margin:8px 0 20px}.gamehead h1{font-size:2.3rem}.gamehead p{font-size:.9375rem;line-height:1.5;margin-top:10px}.gamehead .eyebrow{font-size:.75rem;letter-spacing:.09em;margin-bottom:11px}.gamehead .eyebrow span{font-size:.75rem}.clock>span{font-size:1.35rem}.clock small{font-size:.75rem}.board,.inputtray{padding:16px;border-radius:15px}.symbolboard{padding:12px}.symbolcell{height:60px}.gridshape{min-height:56px}.gridshape>span{font-size:1.6rem}.gridshape small{font-size:.75rem}.symboltable{border-spacing:4px}.boardheading{font-size:.875rem;padding-bottom:12px}.boardheading .tag{font-size:.75rem}.trayheading{margin:12px 0 8px}.traytools{gap:6px}.traytools .smallbutton{font-size:.875rem;padding:8px}.traytools .primary{min-width:110px;padding:11px;font-size:.875rem}.numbertray{gap:6px}.numberkey{min-height:46px;font-size:1rem}.legendbutton{gap:6px;min-height:46px}.legendbutton>span{font-size:1.3rem}.roundmeta{font-size:.875rem}.roundmeta>span:last-child{font-size:.75rem}.seatboard{grid-template-columns:repeat(auto-fit,minmax(64px,1fr));gap:6px}.seat{padding:8px 4px;min-height:90px}.seat strong{font-size:1.15rem}.seatnumber,.seat small{font-size:.75rem}.wordclue{font-size:1.1rem;padding:15px 11px}.wordclue .blank{min-width:44px}.cluebutton{font-size:.9375rem}.patternsequence{grid-template-columns:repeat(3,1fr)}.numbertile{min-height:64px}.numbertile>span{font-size:1.75rem}.choice{font-size:1.6rem}.choice small{font-size:.75rem}.result{padding-top:10px}.result h1{font-size:2.6rem}.stats strong{font-size:2rem}.resultcafe .cafeart{height:95px}.result .eyebrow{font-size:.75rem}}
@media(max-width:360px){.shell{padding:0 12px}.modecopy strong{font-size:1.65rem}.modecard{padding:17px}.modecopy{max-width:65%}.puzzle-preview{scale:.8}.symbolboard{padding:8px}.inputtray{padding:12px}.gridshape{min-height:50px}.symbolcell{height:54px}.gridindex{width:14px}.totallabel{width:34px}.gridtotal{font-size:.9375rem}.numbertray{grid-template-columns:repeat(5,1fr)}.card-bottom>span:first-child{font-size:.75rem}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}.modecard:hover{transform:none}.modecard:hover .puzzle-preview{transform:none}}
@media(prefers-contrast:more){body{background:#171320}.gamehead p,.hintcount,.roundmeta,.home-note,.save-status{color:#e3dceb}.modecard .modecopy>span:last-child{color:#28223c}.scene-image{opacity:1;filter:none}}

/* Keep the information needed for a decision beside its controls. */
.clue-reference{display:none}.arrange-jump{margin:0 0 12px;width:100%;background:#e6f0ef;border-color:#bfd5d5}.clueboard,.seatingboard{scroll-margin-top:12px}
@media(min-width:850px){body[data-mode=logic] #playarea{grid-template-columns:1fr 1.12fr}.clueboard{position:sticky;top:16px;max-height:calc(100svh - 32px);overflow:auto}.arrange-jump{display:none}body[data-mode=logic] .clues{gap:1px}body[data-mode=logic] .cluebutton{padding:10px 6px}.gamehead{margin-bottom:18px}}
@media(max-width:849px){
.clue-reference{display:block;position:sticky;top:8px;z-index:4;margin:-4px -4px 16px;padding:11px 13px 10px;border:1px solid #b7cfd1;border-radius:12px;background:#e6f1f0;box-shadow:0 5px 14px #182d3520;color:#263e45}
.reference-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.reference-heading strong{font-size:.875rem}.reference-heading .back{font-size:.875rem;color:#324e57;min-height:36px;padding:4px}.clue-reference #reference-text{color:#263e45;font-size:1rem;line-height:1.4;margin:3px 0 10px;max-height:24svh;overflow:auto}.reference-controls{display:flex;gap:6px;align-items:center}.reference-controls .smallbutton{min-height:44px;padding:8px;font-size:.875rem;border-color:#b6cdd0;background:#f9fcf8}.reference-controls .reference-mark{flex:1}.reference-mark[aria-pressed=true]{background:#cfe3c0;color:#2d4926}.seatingboard{margin-top:16px}.seatingboard .boardheading{padding-bottom:10px}.clueboard .boardnote{font-size:.875rem}.clueboard .clues{gap:0}.clueboard .cluebutton{padding:10px 6px;min-height:46px}.seatassign{padding-top:12px}.seatassign .chiplabel{margin:9px 0 6px}.seatassign .chip{min-height:44px;padding:8px 10px}.seatassign .chips{gap:6px}
}
@media(max-width:600px){
body[data-screen=game] .topbar{padding-block:8px}body[data-screen=game] .brand{font-size:1.4rem}body[data-screen=game] .brandmark{height:27px;width:27px;font-size:1.5rem}.gamebar{padding:10px 0 6px}.gamehead{margin:4px 0 16px}.gamehead h1{font-size:1.9rem}.gamehead .eyebrow{margin-bottom:8px}.gamehead p{margin-top:8px;font-size:.9375rem}.gamehead .mode-badge{width:25px;height:25px}.wordclues{gap:6px}.wordclue{padding:11px 10px;min-height:48px}.wordboard .boardnote{margin-top:8px}.answerform{margin-top:14px}.answerrow input{min-height:48px}.wordboard .boardheading{padding-bottom:10px}.symbolcell{height:54px}.gridshape{min-height:50px}.gridshape>span{font-size:1.45rem}.symboltable{border-spacing:3px}.symbolboard .boardheading{padding-bottom:8px}.inputtray{margin-top:12px}.inputtray .trayheading{margin-top:8px}.inputtray .traytools{margin-top:9px}.inputtray .numberkey{min-height:44px}.inputtray .legendbutton{min-height:44px}.patternsequence{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin:3px 0 12px}.numbertile{min-height:56px;padding:7px 2px;gap:2px;border-radius:9px}.numbertile>span{font-size:1.25rem}.numbertile small{font-size:.75rem}.patternboard .recipenote{font-size:.875rem;padding:10px}.patternboard .choices{gap:8px;margin-top:12px}.patternboard .choice{min-height:52px;padding:8px;font-size:1.4rem}.patternboard .exclude{min-height:44px}.patternboard .traytools{margin-top:10px}
}
@media(max-width:360px){.reference-controls .smallbutton{font-size:.8125rem;padding:7px 6px}.clue-reference{padding:10px}.numbertile>span{font-size:1.125rem}}
@media(max-height:550px){.clue-reference{position:static}.clueboard{position:static;max-height:none;overflow:visible}}
/* Seats must remain in one left-to-right row: position is a puzzle clue. */
.seatboard{grid-template-columns:repeat(var(--seat-count,5),minmax(0,1fr))}
@media(max-width:600px){.seatboard{gap:5px}.seat strong{font-size:.9375rem}.seat small,.seatnumber{font-size:.75rem}.seat{padding:8px 3px}.seatingboard .boardheading{font-size:.875rem}}
/* Seating is one compact work surface, with the current clue directly above it. */
body[data-mode=logic] .game-layout{max-width:760px}body[data-mode=logic] #playarea{display:block}body[data-mode=logic] .seatingboard{margin:0;padding:16px}.seatingboard .clue-reference{display:block;position:static;margin:0 0 12px;padding:10px 12px;background:#e6f1f0;border:1px solid #bdd2d3;border-radius:11px;box-shadow:none;color:#263e45}.reference-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.reference-heading strong{font-size:.875rem}.reference-heading .back{min-height:36px;padding:4px;font-size:.875rem;color:#324e57}.seatingboard #reference-text{color:#263e45;font-size:1rem;line-height:1.4;margin:2px 0 8px;min-height:2.8em;max-height:none;overflow:visible}.reference-controls{display:flex;gap:6px}.reference-controls .smallbutton{min-height:44px;padding:7px 10px;font-size:.875rem;background:#f9fcf8;border-color:#b6cdd0}.reference-controls .reference-mark{flex:1}.reference-controls .reference-mark[aria-pressed=true]{background:#cfe3c0;color:#2d4926}.seatingboard .boardheading{padding:0 0 8px;font-size:.875rem}.seatingboard .seat{min-height:76px;padding:7px 4px;gap:3px}.seatingboard .seatassign{padding-top:10px}.assignment-heading{font-size:.875rem;color:#60566d;margin-bottom:8px}.assignment-row{display:flex;align-items:center;gap:9px;margin:7px 0}.assignment-row .chiplabel{flex:0 0 42px;margin:0;font-size:.875rem}.assignment-row .chips{display:grid;grid-template-columns:repeat(auto-fit,minmax(58px,1fr));flex:1;gap:5px}.assignment-row .chip{padding:7px 5px;min-height:44px;min-width:0;font-size:.875rem;gap:0;flex-direction:column;overflow-wrap:anywhere}.assignment-row .chip small{font-size:.75rem;line-height:1.15}.seatingboard .traytools{margin-top:10px}.clues-dialog{width:calc(100% - 24px);max-width:620px;max-height:85svh;padding:18px;overflow:auto}.clues-dialog .boardheading{padding-bottom:8px}.clues-dialog h2{font-size:1.5rem}.clues-dialog .clues{margin-top:10px;gap:2px}.clues-dialog .cluebutton{padding:10px 5px}.clues-dialog .clues-close{position:sticky;top:0;width:100%;background:#e6f1f0;z-index:1;min-height:44px}.clues-dialog .boardnote{font-size:.875rem;color:#6c6478}.clues-dialog::backdrop{background:#100c24bb}
@media(max-width:600px){body[data-mode=logic][data-screen=game] .shell{padding-inline:12px}body[data-mode=logic] .gamebar{padding-top:5px;padding-bottom:3px}body[data-mode=logic] .gamehead{margin:3px 0 10px}body[data-mode=logic] .gamehead .eyebrow{display:none}body[data-mode=logic] .gamehead h1{font-size:1.65rem}body[data-mode=logic] .gamehead p{font-size:.875rem;margin-top:5px}body[data-mode=logic] .seatingboard{padding:11px}.seatingboard .clue-reference{padding:7px 9px;margin-bottom:10px}.seatingboard #reference-text{font-size:.9375rem;line-height:1.35;margin-bottom:7px}.reference-controls .smallbutton{padding:7px;font-size:.875rem;min-height:44px}.seatingboard .boardheading .tag{padding-block:2px}.seatingboard .seat{min-height:70px;padding:6px 3px}.seatingboard .seat strong{font-size:.9375rem}.seatingboard .seatassign{padding-top:8px}.assignment-heading{margin-bottom:5px}.assignment-row{gap:6px;margin:6px 0}.assignment-row .chiplabel{flex-basis:36px;font-size:.875rem}.assignment-row .chips{grid-template-columns:repeat(auto-fit,minmax(43px,1fr));gap:4px}.assignment-row .chip{padding:6px 2px;font-size:.875rem}.assignment-row .chip small{font-size:.75rem}.seatingboard .traytools{gap:6px;margin-top:8px}.seatingboard .traytools button{min-height:44px}.seatingboard .traytools .primary{padding:9px 12px}.seatingboard .traytools .smallbutton{padding:8px}body[data-mode=logic] .support{margin-top:10px}body[data-mode=logic] .roundmeta{margin:10px 0}body[data-mode=logic] .notebook{margin-top:10px}}
