:root{--paper:#f8f5ed;--ink:#24382e;--muted:#617267;--orange:#df4727;--orange-light:#ffe1ca;--mint:#d3e9db;--yellow:#f8dc78;--lilac:#e6dcf5;--line:#deded2;--white:#fffefa;--radius:24px;font-family:"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,system-ui,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:280px}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}button,input,select{font:inherit}button,a,select,summary{touch-action:manipulation}button{cursor:pointer;color:inherit}button:disabled{cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #216b94;outline-offset:4px}a{color:inherit}button{border:0}h1,h2,h3,p{margin:0}button,a{-webkit-user-select:none;user-select:none}p{line-height:1.85}button svg{pointer-events:none}svg{display:block}.skip-link{position:fixed;top:-100px;left:12px;z-index:100;background:var(--ink);color:white;padding:14px;border-radius:10px}.skip-link:focus{top:8px}.site-header{max-width:1120px;margin:auto;display:flex;justify-content:space-between;align-items:center;padding:26px 32px;gap:14px}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;min-height:44px;font-size:22px;letter-spacing:.04em;font-weight:850}.brand small{font-size:13px;letter-spacing:.03em;margin-left:4px}.brand-mark{width:28px;height:28px;position:relative;display:block;transform:rotate(-8deg)}.brand-mark i{position:absolute;width:13px;height:13px;border-radius:5px;background:var(--orange);left:0;top:0}.brand-mark i:nth-child(2){left:15px;top:4px;border-radius:50%}.brand-mark i:nth-child(3){left:4px;top:15px;background:var(--ink);border-radius:50%}.header-badge{font-size:11px;font-weight:700;white-space:nowrap}.header-badge span{color:#53826a;font-size:9px;margin-right:4px}main{max-width:1060px;margin:auto;padding:0 32px 60px;outline:none}.hero{display:grid;grid-template-columns:1.05fr 1fr;align-items:center;min-height:450px;gap:24px;padding:20px 0 28px}.eyebrow{font-size:12px;font-weight:800;letter-spacing:.11em;display:flex;gap:8px;align-items:center;margin-bottom:18px}.eyebrow:before{content:"";width:18px;height:2px;background:var(--orange)}h1{font-size:clamp(35px,4.4vw,53px);line-height:1.46;letter-spacing:.03em;font-weight:850}.hero h1 .highlight{position:relative;isolation:isolate;white-space:nowrap}.hero h1 .highlight:after{content:"";height:.28em;position:absolute;background:var(--yellow);bottom:.12em;left:0;right:3px;z-index:-1;transform:rotate(-1deg)}.hero-copy{font-size:14px;margin:18px 0 24px;line-height:1.95;color:#4e6054}.primary,.secondary{display:flex;justify-content:center;align-items:center;gap:12px;min-height:56px;padding:14px 24px;border-radius:16px;font-weight:800;text-decoration:none;transition:transform .15s,background .15s}.primary{background:var(--orange);color:white;box-shadow:0 5px 0 #b3331a}.primary:hover{background:#c93c1e}.primary:active{transform:translateY(3px);box-shadow:0 2px 0 #b3331a}.secondary{background:var(--white);border:1px solid var(--line);box-shadow:none}.hero .primary{max-width:330px;font-size:17px}.arrow{margin-left:auto;font-size:22px}.hero-note{margin-top:15px;font-size:11px;color:var(--muted)}.hero-art{position:relative;align-self:stretch;display:flex;align-items:center;justify-content:center}.hero-art svg{width:100%;max-width:430px;overflow:visible}.art-label{position:absolute;bottom:21px;right:19px;background:var(--white);border:1px solid var(--line);padding:8px 14px;border-radius:30px;font-size:11px;transform:rotate(-5deg);box-shadow:0 4px 0 #23382e08}.quick-strip{display:flex;gap:25px;align-items:center;padding:18px 22px;border:1px solid var(--line);border-radius:18px;margin:0 0 40px;font-size:12px;background:#fffefa8f}.quick-strip span{display:flex;gap:7px;align-items:center}.mini-dot{width:16px;height:16px;border-radius:50%;background:var(--mint);display:inline-flex;align-items:center;justify-content:center;font-size:10px;font-weight:800}.quick-strip .safety{margin-left:auto;color:var(--muted);font-size:11px}.section-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.section-top h2{font-size:23px;letter-spacing:.02em}.section-top p{font-size:11px;color:var(--muted)}.filters{border:1px solid var(--line);border-radius:18px;background:var(--white);margin:0 0 26px}.filters summary{padding:16px 20px;min-height:54px;cursor:pointer;font-size:13px;font-weight:800;list-style:none;display:flex;align-items:center;gap:10px}.filters summary:after{content:"＋";margin-left:auto;font-size:21px}.filters[open] summary:after{content:"−"}.filter-content{padding:3px 20px 20px}.filter-fields{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.field{display:block;font-size:11px;font-weight:700}.field select{width:100%;margin-top:7px;min-height:46px;background:var(--paper);border:1px solid var(--line);border-radius:10px;padding:8px 28px 8px 12px;color:var(--ink)}.toggle-row{min-height:48px;display:flex;align-items:center;gap:9px;font-size:13px;font-weight:650}.toggle-row input{accent-color:#2f7253;width:20px;height:20px}.filter-result{font-size:12px;color:var(--muted);line-height:1.7;margin-top:6px}.game-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.game-card{border:1px solid var(--line);border-radius:22px;overflow:hidden;background:var(--white);text-align:left;padding:0;display:flex;flex-direction:column;position:relative;transition:transform .2s,box-shadow .2s}.game-card:hover{transform:translateY(-4px);box-shadow:0 8px 24px #23382e12}.card-art{height:146px;display:flex;justify-content:center;align-items:center;position:relative;overflow:hidden}.card-art svg{width:142px;height:120px}.orange .card-art{background:var(--orange-light)}.mint .card-art{background:var(--mint)}.lilac .card-art{background:var(--lilac)}.yellow .card-art{background:#f7e79f}.recommend-label{position:absolute;top:10px;left:10px;background:var(--ink);color:white;padding:5px 8px;border-radius:6px;font-size:9px;letter-spacing:.04em}.card-body{padding:18px 16px 16px;display:flex;flex-direction:column;flex:1}.card-kicker{font-size:10px;color:var(--muted);margin-bottom:7px;display:flex;justify-content:space-between;gap:5px}.card-body h3{font-size:15px;line-height:1.6;font-weight:800;margin-bottom:5px}.card-body p{font-size:11px;line-height:1.75;color:var(--muted)}.card-bottom{display:flex;justify-content:space-between;align-items:center;padding-top:18px;margin-top:auto;font-size:11px;font-weight:800}.card-arrow{width:27px;height:27px;border-radius:50%;border:1px solid var(--line);display:flex;align-items:center;justify-content:center;font-size:17px}.reason{grid-column:1/-1;margin-top:3px;font-size:12px;color:var(--muted)}.section-note{font-size:11px;color:var(--muted);margin:16px 0 0}.gentle-banner{display:flex;align-items:center;gap:20px;background:var(--mint);border-radius:22px;padding:25px 28px;margin-top:40px}.gentle-icon{font-size:30px;font-weight:800;letter-spacing:-9px;padding-right:9px}.gentle-banner h2{font-size:15px;margin-bottom:3px}.gentle-banner p{font-size:12px;color:#4e6858}.site-footer{max-width:996px;margin:auto;border-top:1px solid var(--line);padding:28px 0 50px;font-size:12px;color:var(--muted)}.footer-tagline{font-size:12px;margin-bottom:16px}.version{font-size:9px;margin-left:8px;border:1px solid var(--line);padding:3px 6px;border-radius:4px}details summary{min-height:44px;cursor:pointer}.site-footer details{margin-top:16px}.site-footer summary{display:flex;align-items:center;font-size:11px}.site-footer summary:before{content:"＋";margin-right:8px}.site-footer details[open] summary:before{content:"−"}.details-body{padding:0 0 14px;max-width:700px}.details-body p{margin-bottom:9px}.fineprint{font-size:11px;line-height:1.8}.text-button{min-height:44px;background:transparent;text-decoration:underline;text-underline-offset:4px;font-size:12px;padding:10px 0}.event-log{padding-left:25px;font-family:ui-monospace,monospace;font-size:10px;line-height:1.8;max-height:220px;overflow:auto;overflow-wrap:anywhere}.game-shell{max-width:620px;margin:0 auto;padding-top:12px}.game-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}.quiet-button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:9px 12px;background:transparent;border-radius:12px;font-size:12px;font-weight:700}.quiet-button:hover{background:#eaece3}.pause-button{background:var(--white);border:1px solid var(--line)}.game-title-line{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:0 0 8px}.game-title-line h1{font-size:26px;line-height:1.5;letter-spacing:.01em}.round-pill{font-size:12px;border-radius:30px;background:white;padding:7px 12px;border:1px solid var(--line);white-space:nowrap;font-weight:700}.game-instruction{font-size:13px;color:var(--muted);margin-bottom:20px}.play-area{border:1px solid var(--line);border-radius:26px;background:var(--white);padding:30px 25px;text-align:center;position:relative;min-height:320px;overflow:hidden}.play-area.tone-orange{background:#fff6ea}.play-area.tone-mint{background:#f0f8f1}.play-area.tone-lilac{background:#f5f0fc}.game-status{font-size:13px;font-weight:750;min-height:28px;line-height:1.8;margin-bottom:20px}.precision-track{height:134px;position:relative;margin:25px 5px 18px;border-radius:18px;background:repeating-linear-gradient(90deg,transparent,transparent calc(10% - 1px),#c5d2bf 10%);border:1px solid #d1dbc7}.target-zone{position:absolute;top:0;bottom:0;left:59%;width:12%;background:#cbe2be;border-left:1px dashed #678b61;border-right:1px dashed #678b61}.target-zone:before{content:"ここ！";position:absolute;top:-31px;font-size:12px;font-weight:800;left:50%;transform:translateX(-50%);white-space:nowrap}.target-center{position:absolute;left:65%;top:0;bottom:0;border-left:2px solid #52724b}.needle{position:absolute;left:0;top:17px;bottom:17px;width:6px;background:var(--orange);border-radius:6px;transform:translateX(-50%);will-change:left}.needle:before{content:"";position:absolute;width:18px;height:18px;background:var(--orange);border-radius:50%;top:-9px;left:-6px}.precision-numbers{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);margin-bottom:22px}.big-action{width:100%;font-size:17px;min-height:62px}.feedback-line{font-size:13px;line-height:1.9;min-height:48px;margin-top:18px}.round-dots{display:flex;justify-content:center;gap:8px;margin-top:24px}.round-dot{width:9px;height:9px;background:#d4ddd1;border-radius:50%}.round-dot.done{background:var(--ink)}.round-dot.active{background:var(--orange)}.game-under-note{font-size:11px;color:var(--muted);text-align:center;line-height:1.8;margin:18px 10px}.memory-scene{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:0 0 22px}.suspect-card{background:white;border:1px solid #cbdcc9;border-radius:16px;padding:15px 4px 10px;min-width:0;display:flex;align-items:center;flex-direction:column;gap:8px;min-height:160px}.suspect-card svg{width:72px;height:58px}.suspect-name{font-size:12px;font-weight:750}.snack{font-size:29px;display:flex;align-items:center;justify-content:center;height:40px}.snack-word{font-size:10px;font-weight:700}.snack svg{width:38px;height:38px}.suspect-card.answer{width:100%;min-height:130px;cursor:pointer}.suspect-card.answer:hover{border-color:#497957;background:#e3f0da}.suspect-card.correct{border:3px solid #346b45;background:#e3f0da;padding:13px 2px 8px}.suspect-card.wrong{border:3px solid #ba4933;padding:13px 2px 8px}.missing-snack{display:flex;gap:10px;justify-content:center;align-items:center;min-height:62px;margin-bottom:16px;font-size:13px;font-weight:800}.missing-snack .snack{height:45px}.memory-countdown{height:4px;background:#dee9d8;border-radius:3px;margin-bottom:20px;overflow:hidden}.memory-countdown i{display:block;height:100%;width:100%;background:#417458}.cue-board{width:100%;height:200px;border:2px solid #cec2e0;border-radius:22px;background:#fffdfa;display:flex;align-items:center;justify-content:center;position:relative;margin-bottom:12px}.cue-board:active{background:#eee7f5}.cue-circle{width:94px;height:94px;border-radius:50%;background:#da462c;box-shadow:0 7px 0 #a8322070}.cue-square{width:87px;height:87px;border-radius:10px;background:#407155;box-shadow:0 7px 0 #284b3960}.cue-wait{font-size:26px;letter-spacing:7px;color:#9e92ab}.cue-caption{font-size:12px;color:var(--muted);min-height:25px}.card-category{display:inline-block;border-radius:30px;background:var(--yellow);font-size:11px;font-weight:800;padding:6px 12px;margin-bottom:20px}.conversation-card{padding:30px 25px;background:#fff7d4;min-height:350px;display:flex;align-items:center;justify-content:center;flex-direction:column}.conversation-card h2{font-size:23px;line-height:1.8;letter-spacing:.03em;max-width:420px}.card-hint{font-size:12px;color:#736941;margin-top:20px;line-height:1.9}.quiz-choices{display:flex;gap:8px;margin:22px 0 0;width:100%}.quiz-choices button{flex:1;min-height:48px;padding:8px 5px;background:white;border:1px solid #d0c492;border-radius:12px;font-size:13px;font-weight:750}.quiz-choices button.correct{background:var(--mint);border:2px solid #47734c}.quiz-choices button.wrong{border:2px solid #b24c35}.answer-explanation{font-size:13px;line-height:1.9;margin-top:20px;font-weight:650}.card-controls{display:flex;gap:12px;margin-top:20px}.card-controls .primary{flex:1}.card-controls .secondary{min-width:90px}.finish-link{display:block;margin:18px auto 0}.result-panel{border:1px solid var(--line);background:var(--white);border-radius:28px;padding:32px 24px;text-align:center}.result-panel h1{font-size:29px;line-height:1.6;letter-spacing:.02em}.result-eyebrow{font-size:12px;font-weight:700;margin-bottom:7px;color:var(--muted)}.result-graphic{width:130px;height:105px;margin:0 auto 15px}.score-display{font-size:62px;font-weight:850;line-height:1.3;margin:15px 0 5px;letter-spacing:-.06em}.score-display small{font-size:18px;letter-spacing:0;margin-left:6px}.result-message{font-size:13px;color:var(--muted);margin-bottom:20px}.score-breakdown{display:flex;justify-content:center;gap:10px;margin-bottom:24px}.score-breakdown span{font-size:11px;padding:8px 10px;border-radius:9px;background:var(--paper)}.result-actions{display:flex;gap:10px}.result-actions>*{flex:1}.next-panel{padding:26px 0 0}.next-panel h2{font-size:17px;margin-bottom:15px}.next-suggestion{display:flex;gap:15px;align-items:center;width:100%;text-align:left;border:1px solid var(--line);border-radius:20px;padding:17px;background:#e1ecd9}.next-symbol{width:55px;height:55px;border-radius:15px;background:var(--white);display:flex;align-items:center;justify-content:center;font-size:28px;flex-shrink:0}.next-info{flex:1}.next-info strong{display:block;font-size:15px;margin-bottom:4px}.next-info p{font-size:11px;line-height:1.7}.next-suggestion .card-arrow{flex-shrink:0;border-color:#92ae8c}.result-home{margin:20px auto 0;display:flex}dialog{border:1px solid var(--line);border-radius:28px;padding:32px 26px;max-width:370px;width:calc(100% - 32px);background:var(--paper);color:var(--ink);text-align:center;box-shadow:0 20px 100px #14251a33}dialog::backdrop{background:#172a2280;backdrop-filter:blur(5px)}.dialog-art{width:66px;height:66px;background:var(--yellow);border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 18px;font-size:26px;font-weight:900}dialog h2{font-size:23px;margin-bottom:10px}dialog p{font-size:13px;margin-bottom:24px}.dialog-actions{display:flex;flex-direction:column;gap:14px}.toast{position:fixed;z-index:100;left:50%;bottom:22px;transform:translate(-50%,20px);padding:14px 20px;max-width:calc(100% - 32px);width:max-content;color:white;background:var(--ink);border-radius:14px;font-size:12px;line-height:1.7;pointer-events:none;opacity:0;transition:.2s}.toast.visible{opacity:1;transform:translate(-50%,0)}.noscript{padding:30px;text-align:center}.float-slow{animation:bob 5s ease-in-out infinite}@keyframes bob{50%{transform:translateY(-8px)}}
@media(min-width:1100px){.site-header{padding-top:28px}.hero{padding-top:10px}.hero-copy{font-size:15px}}
@media(max-width:760px){.site-header{padding:18px 20px}.brand{font-size:20px;gap:8px}.brand small{font-size:11px;margin-left:1px}.header-badge{font-size:9px}.header-badge span{font-size:7px}.site-header .brand-mark{transform:scale(.9)}main{padding:0 20px 40px}.hero{grid-template-columns:1fr .9fr;gap:0;min-height:340px;padding:18px 0 20px}.hero h1{font-size:35px}.hero-copy{font-size:12px;margin:14px 0 19px}.eyebrow{font-size:10px;margin-bottom:14px}.hero .primary{font-size:15px;min-height:54px;padding:12px 18px}.hero-note{font-size:9px;margin-top:14px}.hero-art{align-self:center;margin-left:-15px}.art-label{font-size:9px;bottom:4px;right:0;padding:7px 9px}.quick-strip{gap:18px;margin-bottom:30px;padding:14px 16px;font-size:11px;flex-wrap:wrap}.quick-strip .safety{width:100%;margin:-8px 0 0;font-size:10px}.game-grid{grid-template-columns:repeat(2,1fr);gap:14px}.card-art{height:150px}.card-body h3{font-size:16px}.section-top h2{font-size:21px}.site-footer{margin:0 20px;padding-top:25px}.gentle-banner{padding:22px;gap:16px}.card-body{padding:16px}.reason{font-size:11px}.section-top p{font-size:10px}}
@media(max-width:480px){.site-header{padding:14px 20px 8px}.hero{display:flex;flex-direction:column;align-items:stretch;padding:20px 0 22px;position:relative;gap:0}.hero-text{position:relative;z-index:1}.eyebrow{margin-bottom:12px}.hero h1{font-size:36px;line-height:1.5}.hero-copy{font-size:12px;line-height:1.85;max-width:210px;margin-top:16px;margin-bottom:17px}.hero-art{position:absolute;width:159px;height:172px;right:-13px;top:116px;align-self:auto;margin:0;z-index:0}.hero-art svg{width:171px;max-width:none}.art-label{font-size:8px;bottom:-3px;right:10px;padding:5px 8px;transform:rotate(-5deg)}.hero .primary{max-width:none;width:100%;margin-top:35px;min-height:58px;font-size:17px;position:relative;z-index:2}.hero-note{text-align:center;font-size:10px;margin-top:14px}.quick-strip{margin-bottom:29px;gap:10px 17px;padding:14px}.quick-strip .safety{margin:0;font-size:10px}.section-top{margin-bottom:15px}.section-top h2{font-size:20px}.filters summary{padding:14px 15px;font-size:12px}.filter-content{padding:0 15px 15px}.filter-fields{gap:10px;grid-template-columns:1fr 1fr}.filter-fields .field:first-child{grid-column:1/-1}.field select{font-size:12px}.filters{margin-bottom:19px}.card-art{height:117px}.card-art svg{height:98px;width:116px}.card-body{padding:13px 12px 12px}.card-body h3{font-size:14px;margin-bottom:4px}.card-body p{font-size:10px}.card-kicker{font-size:9px}.card-bottom{padding-top:12px;font-size:10px}.game-grid{gap:12px}.recommend-label{top:8px;left:8px;font-size:8px}.gentle-banner{margin-top:28px;padding:20px 18px;gap:15px}.gentle-banner h2{font-size:14px}.gentle-banner p{font-size:11px}.game-shell{padding-top:17px}.game-toolbar{margin-bottom:20px}.game-title-line h1{font-size:23px}.game-instruction{font-size:12px;margin-bottom:17px}.play-area{padding:28px 18px 24px;border-radius:22px}.precision-track{height:135px;margin-top:27px}.game-status{font-size:12px}.game-under-note{margin:17px 0;font-size:10px}.round-pill{font-size:11px;padding:6px 10px}.memory-scene{gap:7px}.suspect-card{padding:12px 3px 10px;min-height:148px}.suspect-card svg{width:63px;height:54px}.snack svg{width:34px;height:34px}.suspect-name{font-size:11px}.suspect-card.correct,.suspect-card.wrong{padding:10px 1px 8px}.conversation-card h2{font-size:21px}.conversation-card{min-height:335px;padding:28px 22px}.quiz-choices{gap:6px}.quiz-choices button{font-size:12px}.result-panel{padding:26px 18px}.result-panel h1{font-size:26px}.result-actions{gap:8px}.result-actions .secondary{font-size:12px;padding:12px 9px}.score-breakdown{gap:7px}.score-breakdown span{font-size:10px}.next-info strong{font-size:14px}.next-suggestion{padding:15px 12px;gap:11px}.next-info p{font-size:10px}.next-symbol{width:45px;height:45px}.footer-tagline{font-size:11px}}
@media(max-width:350px){.header-badge{font-size:8px}.brand small{font-size:9px}.site-header,main{padding-left:15px;padding-right:15px}.hero h1{font-size:32px}.hero-art{width:132px;right:-6px;top:122px}.hero-copy{font-size:11px;max-width:186px}.quick-strip{gap:10px}.card-body h3{font-size:12px}.game-title-line h1{font-size:20px}.play-area{padding-left:12px;padding-right:12px}.result-actions{flex-direction:column}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}.game-card:hover{transform:none}}

.training-note{font-size:11px;color:#7a4c18;background:#fff0c8;border:1px solid #e0c785;border-radius:10px;padding:10px 12px;margin:0 0 14px;line-height:1.7}
[hidden]{display:none!important}

/* Phase 1 usability refinement: reuse the approved palette and visual language. */
.context-pick{border-left:3px solid #6e9c7f;background:#eaf0e4;border-radius:0 15px 15px 0;padding:15px 16px;margin:-5px 0 23px}
.context-label{font-size:10px;letter-spacing:.03em;color:#506c55;margin-bottom:6px;font-weight:750}
.context-pick-row{display:flex;align-items:center;gap:16px}.context-pick-row>div{flex:1}.context-pick h3{font-size:14px;line-height:1.6;margin:0 0 5px}.context-pick-row p{font-size:11px;line-height:1.75;color:#506453}.context-start{display:flex;gap:8px;align-items:center;justify-content:center;flex-shrink:0;min-width:68px;min-height:46px;padding:10px 12px;border-radius:12px;background:var(--white);border:1px solid #bccfb9;font-size:12px;font-weight:800}
.next-context{display:block;font-size:10px;color:#526b4a;line-height:1.6;margin-bottom:4px}.result-foot-actions{display:flex;align-items:center;justify-content:center;gap:18px;margin-top:20px}.result-foot-actions .text-button{font-size:11px}
@media(max-width:480px){.context-pick{padding:13px 12px;margin-bottom:19px}.context-pick-row{gap:10px}.context-pick h3{font-size:13px}.context-pick-row p{font-size:10px}.context-label{font-size:9px}.context-start{min-width:62px;padding:9px}.next-context{font-size:9px}.next-info strong{font-size:13px}}
/* Existing TREA game cores, inside the approved shared play shell. */
.mastery-area{padding:18px 15px 20px}.mastery-area .game-status{margin-bottom:10px}.mastery-canvas{display:block;width:100%;height:auto;margin:0 auto 14px;border-radius:18px;background:#f6f4ec}.ato-canvas{max-width:440px}.hold-action{touch-action:none;user-select:none;-webkit-user-select:none}.hold-action:disabled{background:#688371;box-shadow:none;opacity:1}.mastery-area .feedback-line{font-size:11px;margin-top:15px;line-height:1.8}.mastery-stage-note{font-size:10px;color:var(--muted);margin:10px 0 14px;line-height:1.7}.tracking-board{position:relative;width:100%;aspect-ratio:380/355;border-radius:18px;background:linear-gradient(#fffdf5 0 66%,#f0e6d2 66%);border:1px solid #d8e1cf;overflow:visible}.tracking-person{position:absolute;transform:translate(-50%,-50%);width:18.95%;height:23.1%;min-width:44px;min-height:50px;padding:0;border:0;background:transparent;display:block;z-index:2}.tracking-person:disabled{opacity:1}.tracking-person .pudding-character{width:100%;height:100%;display:block;overflow:visible}.tracking-person .suspect-halo{fill:transparent;stroke:transparent;stroke-width:3}.tracking-person .spoon,.tracking-person .eating-mouth{display:none}.tracking-person.is-target .spoon,.tracking-person.is-target .eating-mouth{display:block}.tracking-person.is-target .smile{display:none}.tracking-person.is-target{z-index:3}.tracking-person.is-target .suspect-halo{fill:#f3d96630;stroke:#be9528}.tracking-person.is-correct .suspect-halo{fill:#d8ecd0;stroke:#377449}.tracking-person.is-wrong .suspect-halo{fill:#f3d8d0;stroke:#b9523b}.tracking-cue{display:none;position:absolute;bottom:95%;left:50%;transform:translateX(-50%);white-space:nowrap;font-size:10px;font-weight:800;border-radius:5px;padding:2px 5px;color:var(--ink);background:#f9dd79}.tracking-person.is-target .tracking-cue{display:block}.soko-canvas{width:min(100%,calc(52svh * 2 / 3));max-width:340px;touch-action:none;background:#e4ede7;outline-offset:4px}.route-strip{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px;margin:0 0 12px}.route-strip strong{font-size:10px;background:#ffe6a5;border:1px solid #d6b15b;color:#684b17;border-radius:16px;padding:5px 8px}.steering-controls{display:flex;align-items:center;justify-content:space-between;gap:12px}.steering-controls button{width:62px;min-height:48px;border:1px solid #b7c9b8;border-radius:12px;background:var(--white);font-size:25px;font-weight:800;touch-action:none}.steering-controls p{font-size:11px;line-height:1.65}.steering-controls small{font-size:9px;color:var(--muted)}.score-ceiling{font-size:10px;color:var(--muted);margin:0 0 15px}.score-breakdown{flex-wrap:wrap}.rivalry-note{font-size:12px;line-height:1.8;background:#e6efdd;border:1px solid #baceb1;border-radius:12px;padding:12px;margin:0 0 18px}.result-panel h1{font-size:26px}.result-actions .secondary{font-size:12px}
@media(max-width:480px){.mastery-area{padding:16px 12px 18px}.mastery-area .game-status{font-size:11px}.tracking-cue{font-size:9px}.mastery-area .feedback-line{font-size:10px}.route-strip{font-size:9px;gap:5px}.route-strip strong{font-size:9px;padding:5px 6px}.result-panel h1{font-size:23px}.rivalry-note{font-size:11px}.steering-controls p{font-size:10px}.steering-controls button{width:56px}.soko-canvas{width:min(100%,calc(50svh * 2 / 3))}}

/* Compact active-play layout. Canvas backing/physics stay at their logical sizes.
   Keep controls in normal flow: small windows or text zoom may still scroll. */
body:has(.mastery-area){--play-extra:0px}
body:has(.mastery-area):has(.training-note:not([hidden])){--play-extra:60px}
body:has(.mastery-area) .site-header{padding-top:8px;padding-bottom:8px}
body:has(.mastery-area) .game-shell{padding-top:4px}
body:has(.mastery-area) .game-toolbar{margin-bottom:8px}
body:has(.mastery-area) .game-title-line{margin-bottom:4px}
body:has(.mastery-area) .game-instruction{font-size:12px;line-height:1.6;margin-bottom:10px}
body:has(.mastery-area) .training-note{font-size:10px;line-height:1.6;padding:8px 10px;margin-bottom:8px}
.mastery-area{padding-top:12px;padding-bottom:14px;min-height:0}
.mastery-area .game-status{min-height:24px;line-height:1.6;margin-bottom:6px}
.mastery-area .mastery-canvas{height:auto;margin-bottom:10px}
.mastery-area .ato-canvas{width:min(100%,calc(max(150px,100vh - 380px - var(--play-extra,0px)) * 12 / 11));max-width:400px;aspect-ratio:12/11}
.mastery-area .tracking-board{width:min(100%,max(260px,calc((100vh - 410px - var(--play-extra,0px)) * 76 / 71)));margin-inline:auto;aspect-ratio:76/71}
.mastery-area .soko-canvas{width:min(100%,calc(max(150px,100vh - 405px - var(--play-extra,0px)) * 2 / 3));max-width:340px;aspect-ratio:2/3}
@supports(height:100svh){
 .mastery-area .ato-canvas{width:min(100%,calc(max(150px,100svh - 380px - var(--play-extra,0px)) * 12 / 11))}
 .mastery-area .tracking-board{width:min(100%,max(260px,calc((100svh - 410px - var(--play-extra,0px)) * 76 / 71)))}
 .mastery-area .soko-canvas{width:min(100%,calc(max(150px,100svh - 405px - var(--play-extra,0px)) * 2 / 3))}
}
.mastery-area .big-action{min-height:56px;padding-top:12px;padding-bottom:12px}
.mastery-area .feedback-line{min-height:34px;margin-top:8px;line-height:1.7}
.mastery-area .mastery-stage-note{margin-top:8px;margin-bottom:10px}
.mastery-area .route-strip{margin-bottom:8px}
body:has(.mastery-area) .round-dots{margin-top:14px}
body:has(.mastery-area) .game-under-note{margin-top:12px}
/* Optional mode comparison for Ato only; the one-tap start stays unchanged. */
.mode-entry{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:-20px 0 28px;font-size:11px;color:var(--muted)}
.mode-entry .text-button{font-weight:750;white-space:nowrap}
.mode-setup h1{font-size:29px;margin:8px 0 14px}.mode-setup .eyebrow{margin-top:18px}
.mode-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:16px}.mode-fields>.field:first-child:last-child{grid-column:1/-1}
.mode-rules{background:var(--mint);border-radius:18px;padding:17px;margin:16px 0}.mode-rules p{font-size:12px;line-height:1.8}.mode-rules p+p{margin-top:10px}.mode-goal-note{margin:0 0 12px}.mode-begin{margin:20px 0 16px}
.player-results{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}.player-results section{border:1px solid var(--line);border-radius:16px;padding:16px 10px;background:var(--paper)}.player-results h2{font-size:15px}.player-results h2 small{display:block;font-size:11px;font-weight:500;margin-top:5px}.player-results p{font-size:11px}.player-results .player-score{font-size:27px;font-weight:850;margin:10px 0 0}.player-score small{display:block;font-size:10px;font-weight:500}.goal-reference{margin-top:10px;color:var(--muted)}
@media(max-width:480px){.mode-entry{display:block;margin:-13px 0 20px}.mode-entry .text-button{display:block}.mode-fields{gap:10px}.mode-fields select{font-size:12px}.mode-setup h1{font-size:25px}.mode-rules{padding:14px}.result-foot-actions{flex-wrap:wrap;gap:8px 16px}}
/* Optional audience entries. Participant count and relationship are independent. */
.audience-section{margin:0 0 28px}.audience-section .section-top p{font-size:10px}.audience-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.audience-button{position:relative;min-height:108px;text-align:left;padding:18px 15px 16px;border:1px solid var(--line);border-radius:18px;background:var(--white)}.audience-button strong{display:block;font-size:14px;line-height:1.7;padding-right:9px}.audience-button span{display:block;font-size:10px;line-height:1.8;color:var(--muted);margin-top:6px}.audience-button i{position:absolute;right:12px;top:13px;font-style:normal;color:var(--orange)}.audience-button.selected{background:var(--mint);border-color:#7a9d85;box-shadow:inset 0 0 0 1px #7a9d85}.group-options{display:flex;align-items:center;gap:18px;margin-top:14px;padding:15px;border-radius:16px;background:#eeeede}.group-options .field{min-width:115px}.group-options p{font-size:11px;color:var(--muted);line-height:1.8}.preference-reveal{margin-top:20px;padding:14px;border:1px solid #d0c492;border-radius:14px;background:var(--white);width:100%}.preference-reveal p{font-size:12px;line-height:1.8}.quiz-choices button[aria-pressed=true]{outline:2px solid #596c4a;background:#e8f0dd}.card-controls .primary:disabled{background:#748677;box-shadow:none;opacity:.75}
@media(max-width:760px){.audience-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.audience-button{min-height:108px}.audience-section .section-top{align-items:baseline}.audience-section .section-top p{font-size:9px}}
@media(max-width:480px){.audience-grid{gap:10px}.audience-button{padding:15px 12px}.audience-button strong{font-size:12px}.audience-button span{font-size:10px}.group-options{align-items:flex-start;gap:12px}.group-options p{font-size:10px}.group-options .field{min-width:86px}.audience-section{margin-bottom:22px}}
.mode-choice-set{border:0;padding:0;margin:14px 0}.mode-choice-set legend{font-size:11px;font-weight:750;margin-bottom:8px}.mode-choice-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.mode-choice{min-height:52px;padding:12px 8px;border:1px solid var(--line);border-radius:12px;background:var(--white);font-size:12px;font-weight:750}.mode-choice[aria-pressed=true]{background:var(--mint);border-color:#668f73;box-shadow:inset 0 0 0 1px #668f73}.advanced-modes{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:0 2px}.advanced-modes summary{display:flex;align-items:center;min-height:48px;font-size:12px;font-weight:700}.advanced-modes[open]{padding-bottom:12px}
.relay-time{font-size:11px;line-height:1.5;margin:-5px 0 8px;font-variant-numeric:tabular-nums;font-weight:750}.coop-style-option{display:block;margin:4px 0 16px}

/* Relay reserves the visible launch deadline without changing physics or normal play. */
.relay-area .ato-canvas{width:min(100%,calc(max(150px,100vh - 410px - var(--play-extra,0px)) * 12 / 11))}
@supports(height:100svh){.relay-area .ato-canvas{width:min(100%,calc(max(150px,100svh - 410px - var(--play-extra,0px)) * 12 / 11))}}
/* Dedicated two-person path puzzle: static, untimed and tap-only. */
.bridge-area{background:#f2f3e7;border:1px solid #d9e1cd;text-align:left;padding:14px 16px 18px}.team-resources{display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid #d1dac6;padding:0 0 12px;margin-bottom:15px;font-size:12px}.team-resources b{font-size:21px;margin-left:5px}.team-stars{color:#775819}.bridge-role{font-size:20px;line-height:1.5;letter-spacing:.015em;outline:none}.bridge-subtitle{font-size:11px;color:#53674d;line-height:1.7;margin:4px 0 12px}.route-choices{display:grid;gap:10px}.route-choice{display:block;text-align:left;width:100%;padding:12px 14px;border:1px solid #b7cbb2;border-radius:17px;background:#fffefa;min-height:120px;box-shadow:0 3px 0 #d7dfcd}.route-choice:hover{border-color:#587c55;background:#fcfcf0}.route-name{display:flex;justify-content:space-between;align-items:center;font-size:15px;font-weight:800}.route-name b{color:#886419;font-size:13px}.route-note{display:block;font-size:10px;line-height:1.7;color:#596a51}.bridge-mini{display:flex;align-items:center;gap:0;margin:8px 0;height:25px}.mini-island{display:block;background:#789d75;width:31px;height:15px;border-radius:50%}.mini-water{display:block;background:#d2e7e1;width:var(--gap-width);height:23px;border-radius:6px;text-align:center;font:700 11px/23px system-ui;color:#476d69;margin:0 2px}.bridge-mini b{margin-left:auto;font-size:11px;color:#88702e}.bridge-tools{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:12px 0 9px}.bridge-tool{min-height:64px;border:1px solid #b9c7ad;border-radius:14px;background:#fffefa;font-size:13px;font-weight:750;padding:8px}.bridge-tool[aria-pressed="true"]{background:#fff0c5;border:2px solid #94772d;padding:7px}.bridge-tool small{display:block;font-weight:400;font-size:10px;margin-top:4px}.wood-symbol{color:#805e38}.rope-symbol{color:#886d42;font-size:22px;line-height:14px;vertical-align:middle}.bridge-hint{font-size:11px;line-height:1.7;margin-bottom:5px}.bridge-board{display:flex;align-items:center;justify-content:center;padding:24px 2px 14px;min-height:130px;border-radius:18px;background:repeating-linear-gradient(172deg,#d5e9df 0 16px,#e2eee3 17px 23px);overflow:hidden}.bridge-island{display:flex;justify-content:center;align-items:center;width:34px;min-width:22px;height:33px;border-radius:50%;background:#7c9f76;color:#fff8d1;font-size:18px;box-shadow:0 8px 0 #698666}.start-island{font-size:10px;letter-spacing:2px}.bridge-gap{min-width:0;flex:1;max-width:130px}.bridge-slot{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;min-height:77px;border:0;background:transparent;padding:2px;color:#2f5248;touch-action:manipulation}.bridge-slot>span:last-child{font-size:10px;font-weight:700;margin-top:11px}.placed-bridge{display:block;position:relative;height:15px;width:100%;min-width:44px;margin-top:14px}.placed-bridge.empty{height:38px;width:44px;margin-top:0;border:2px dashed #6b9585;border-radius:10px;background:#f6fbef99;color:#366a57;font-size:23px;line-height:30px}.placed-bridge.wood{background:repeating-linear-gradient(90deg,#b78d58 0 12px,#e9cca4 12px 15px);border-block:2px solid #7a623f;border-radius:2px;box-shadow:0 4px 0 #5d745433}.placed-bridge.rope{background:repeating-linear-gradient(90deg,#c79f63 0 8px,#e9d4ae 8px 11px);border-block:2px solid #866d45}.placed-bridge.rope:before{content:"";position:absolute;inset:-18px -2px 6px;border:2px solid #7a6746;border-top:0;border-radius:0 0 50% 50%}.bridge-spend{font-size:11px;line-height:1.7;margin:10px 0}.bridge-spend span{display:block;color:#667259;font-size:10px}.bridge-area .primary{width:100%;min-height:54px;font-size:14px}.bridge-area button[aria-disabled="true"]{opacity:.65}.bridge-area .text-button{display:block;margin:8px auto 0;min-height:44px;font-size:11px}.bridge-message{font-size:11px;color:#98411f;line-height:1.7;margin-top:8px}.bridge-message:empty{display:none}.bridge-ready{font-size:10px;color:#53684c;min-height:17px;line-height:1.7;margin-top:3px}.bridge-preview{font-size:10px;line-height:1.8;border-top:1px solid #d1dac6;margin-top:7px}.bridge-preview summary{cursor:pointer;min-height:44px;padding:12px 0;font-size:11px;font-weight:700}.bridge-preview p{line-height:1.8}.preview-section{margin:9px 0}.bridge-progress{display:flex;align-items:center;justify-content:center;gap:7px;margin:16px 0}.bridge-progress span{display:grid;place-items:center;width:26px;height:26px;background:#e2e7d9;border-radius:50%;font-size:10px;color:#5a6d53}.bridge-progress span.done{background:#457552;color:#fffefa}.bridge-progress i{width:26px;height:2px;background:#c6d3be}.bridge-crossed{text-align:center;padding:18px 0}.bridge-crossed p{font-size:12px;line-height:1.8;margin:10px 0}.bridge-arrived{font-size:38px;color:#9cb797;letter-spacing:4px;margin:0 0 12px}.bridge-arrived span{display:inline-block;font-size:65px;line-height:.7;vertical-align:middle;color:#a78653}.bridge-next-entry{background:#e4ecd9;padding:12px;border-radius:12px}.bridge-crossed .primary{margin-top:20px}.bridge-carry{font-size:15px;font-weight:750;background:#e9efdf;border-radius:15px;padding:14px;margin:18px 0}.bridge-carry small{font-size:10px;font-weight:400}.bridge-journey{display:grid;gap:8px;text-align:left;margin:0 0 15px}.bridge-journey p{font-size:10px;line-height:1.8;padding:10px 12px;border:1px solid var(--line);border-radius:10px}.bridge-journey strong{font-size:12px}.bridge-result>.fineprint{margin-bottom:16px}
@media(max-width:420px){.bridge-area{padding-inline:12px}.bridge-role{font-size:18px}.route-choice{min-height:113px;padding:10px 12px}.bridge-tools{gap:6px}.bridge-tool{font-size:12px}.bridge-island{width:26px}.bridge-slot>span:last-child{font-size:9px}}

.bridge-result{max-width:620px;margin:24px auto}.bridge-result .result-actions{flex-direction:column}.bridge-result .score-display{font-size:48px}

/* Classic-game host. Game modules own their boards; this shell owns interruption. */
.solo-panel{background:var(--white);padding:14px 16px 16px}.solo-board{max-width:440px;margin:0 auto;min-width:0}.solo-controls{max-width:440px;margin:12px auto 0}.solo-status{font-size:12px;line-height:1.65;margin:0 0 12px;text-align:center;min-height:20px}.solo-note{font-size:10px;line-height:1.7;color:var(--muted);text-align:center;margin:10px 0}.solo-result-score{font-size:28px;font-weight:850;line-height:1.5;margin:16px 0}.solo-panel [data-solo-pointer]{touch-action:none;user-select:none;-webkit-user-select:none}.solo-panel button{touch-action:manipulation}.solo-panel svg{max-width:100%}.solo-panel [aria-disabled="true"]{cursor:default}
/* Optional solo difficulty; no extra step on quick start. */
.solo-level-controls{margin:18px 0;padding:18px;border:1px solid var(--line);border-radius:18px;background:var(--white)}
.solo-level-controls>p:first-child,.result-levels>p:first-child{margin:0 0 10px;font-weight:750}
.solo-level-controls>p>span{font-size:12px;color:var(--muted);font-weight:400;margin-left:8px}
.difficulty-choices{display:flex;gap:8px;flex-wrap:wrap}
.difficulty-choices button{flex:1;min-height:48px;min-width:76px;border:1px solid #9da991;border-radius:12px;background:#fffdf7;color:var(--ink);font:inherit;font-size:14px;font-weight:750;touch-action:manipulation}
.difficulty-choices button.selected{background:#315c48;border-color:#315c48;color:white}
.result-levels{margin-top:20px;text-align:left;border-top:1px solid var(--line);padding-top:16px}
.result-levels .difficulty-choices button{font-size:12px}
.card-body .card-level{font-size:12px;line-height:1.6;color:#405a46;min-height:0;margin-top:8px}
/* Game-first difficulty confirmation: each large choice starts immediately. */
.difficulty-menu{max-width:560px;padding-top:4px}
.difficulty-menu>.quiet-button{margin-bottom:8px}
.difficulty-game-art{float:right;width:96px;height:76px;overflow:hidden;margin:0 0 8px 12px;border-radius:16px;background:var(--mint)}
.difficulty-game-art svg{width:96px;height:76px}
.difficulty-menu .eyebrow{margin-bottom:7px;font-size:10px}
.difficulty-menu h1{font-size:26px;line-height:1.5}
.difficulty-game-desc{font-size:12px;color:var(--muted);margin:6px 0 20px}
.difficulty-menu h2{clear:both;font-size:17px;margin-bottom:6px}
.difficulty-current{font-size:12px;color:var(--muted);margin-bottom:14px}
.difficulty-start-list{display:grid;gap:10px;margin-bottom:14px}
.difficulty-start{min-height:78px;padding:14px 18px;border:1px solid #b9c6b4;border-radius:16px;background:var(--white);display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;touch-action:manipulation}
.difficulty-start.selected{border:2px solid #315c48;background:#eaf3e9;padding:13px 17px}
.difficulty-start>span:first-child{display:grid;gap:5px}
.difficulty-start strong{font-size:17px}
.difficulty-start strong small{font-size:10px;margin-left:10px;background:#315c48;color:white;padding:3px 7px;border-radius:12px;vertical-align:middle}
.difficulty-start>span>span{font-size:12px;line-height:1.6;color:#4a6450}
.difficulty-start>span:last-child{font-size:23px}
@media(max-height:700px){.difficulty-game-desc{margin-bottom:12px}.difficulty-start{min-height:72px;padding:11px 15px}.difficulty-start.selected{padding:10px 14px}.difficulty-start-list{gap:8px}.difficulty-current{margin-bottom:10px}}
/* First stop on the optional world-games shelf. */
.world-entry{margin-top:30px;padding:26px 28px;border-radius:22px;border:1px solid #d1d9c6;background:#f1f0df;display:grid;grid-template-columns:1fr 190px;gap:22px;align-items:center}
.world-entry h2{font-size:24px;margin-bottom:10px}
.world-entry .eyebrow{font-size:10px;margin-bottom:10px}
.world-entry p{font-size:13px;color:#53644c}
.world-entry .fineprint{font-size:11px;margin:10px 0}
.world-entry .secondary{margin-top:12px;width:100%;max-width:320px;background:#fffefa}
.world-entry-art svg{width:190px;height:150px}
.world-entry-art>span{display:block;text-align:center;font-size:12px;font-weight:750;margin-top:5px}
.world-origin{text-align:left;margin-top:20px;border-top:1px solid var(--line);padding-top:8px}
.world-origin summary{font-size:13px;font-weight:750;min-height:48px;display:flex;align-items:center;cursor:pointer}
.world-origin summary:before{content:'＋';margin-right:8px}.world-origin[open] summary:before{content:'−'}
.world-origin p{font-size:12px;line-height:1.8;margin-bottom:8px}
.world-origin a{display:inline-flex;align-items:center;min-height:44px;font-size:12px;text-underline-offset:4px}
@media(max-width:600px){.world-entry{grid-template-columns:1fr 96px;padding:20px 18px;gap:10px}.world-entry h2{font-size:20px}.world-entry-art svg{width:96px;height:100px}.world-entry .secondary{font-size:12px;padding:12px}.world-entry-art{align-self:start;margin-top:45px}}
/* Keep both power and shot controls in the play-height budget; tiny views may scroll. */
.solo-panel .wg-surface{max-width:min(330px,max(180px,calc(100svh - 485px)))}
/* Local 2/3-player world game: short setup, clear handover, retained individual boards. */
.world-mode-menu{max-width:620px;margin:auto}.world-mode-menu h2{font-size:17px;margin:24px 0 12px}.world-mode-menu>p{line-height:1.7}.world-mode-menu>.primary{margin:16px 0;width:100%}.world-mode-menu details{margin:22px 0;font-size:13px;line-height:1.8}.world-level-copy{font-size:13px;min-height:2.8em}.world-score-strip{display:flex;justify-content:center;gap:8px;margin:8px 0 12px;flex-wrap:wrap;font-size:12px}.world-score-strip>span{padding:6px 10px;border:1px solid #c5d2c0;border-radius:12px;background:#f7f8ee}.world-score-strip>span.current{border:2px solid #496b4d;background:#e8f0df;padding:5px 9px}.world-score-strip small{font-size:10px;margin-left:4px}.world-handoff{text-align:center;padding:28px 20px}.world-handoff h2{font-size:26px;margin:10px 0}.world-handoff p{line-height:1.8}.world-handoff .primary{margin:18px auto;min-height:54px}.world-final-scores{display:grid;gap:10px;margin:24px 0}.world-final-scores p{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:15px;border:1px solid #c6d3c1;border-radius:14px;background:#f5f7eb}.world-final-scores b{font-size:27px}.world-final-scores small,.world-final-scores span{font-size:12px}.world-entry-copy>.secondary{margin:5px 6px 5px 0}body:has(#world-scores) .solo-panel .wg-surface{max-width:min(330px,max(180px,calc(100svh - 525px)))}

/* Shared two-player shell. Board rules/art live in isolated duel modules. */
.duel-panel{padding:14px;overflow:hidden}
.duel-players{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 10px}
.duel-player{display:flex;justify-content:space-between;align-items:center;gap:6px;padding:10px 12px;border:2px solid #D9DDCF;border-radius:12px;background:#FFFDF6;color:#435645;font-size:13px}
.duel-player.is-current{border-color:#345F49;background:#E1EDE0}
.duel-player strong{font-size:16px;white-space:nowrap}
.duel-player span{font-size:12px}
.duel-status{min-height:1.5em;text-align:center;font-weight:700;margin:6px 0 12px}
.duel-board{width:100%;overflow:auto;overscroll-behavior:contain}
.duel-final-board{margin:16px 0;text-align:left;overflow:auto}
.duel-final-board summary{padding:12px;min-height:44px;cursor:pointer;font-weight:700}
@media(max-width:420px){.duel-panel{padding:8px}.duel-player{padding:8px 6px;flex-direction:column;gap:2px}}
/* Shared scores add a row above the board; keep the held action reachable. */
.solo-panel .ss-surface{max-width:min(330px,max(220px,calc(100svh - 535px)))}
/* Shared-board turn notice: silent, readable, and never a press target. */
.ss-turn-notice{border:2px solid #75937b;border-radius:16px;padding:14px 10px;background:#e8efd9;text-align:center;max-width:360px;margin:0 auto}
.ss-turn-notice>strong{display:block;font-size:clamp(25px,5vw,34px);line-height:1.3;color:#294d38}.ss-turn-notice>strong>span{font-size:1.2em}
.ss-turn-notice>p{font-size:12px;line-height:1.6;margin-top:6px;color:#435c45}

/* Tower-only compact shell: preserve the adopted home and other game layouts. */
body:has(.tower-host) .site-header{padding-top:8px;padding-bottom:8px}
body:has(.tower-host) .game-shell{padding-top:4px}
body:has(.tower-host) .game-toolbar{margin-bottom:8px}
body:has(.tower-host) .game-title-line{margin-bottom:4px}
body:has(.tower-host) .game-title-line h1{font-size:22px;line-height:1.4}
body:has(.tower-host) .game-instruction{font-size:12px;line-height:1.5;margin-bottom:8px}
body:has(.tower-host) .duel-panel{padding:8px}
body:has(.tower-host) .duel-players{margin-bottom:6px}
body:has(.tower-host) .duel-player{flex-direction:row;padding:6px;gap:4px}
body:has(.tower-host) .duel-player strong{font-size:14px}
body:has(.tower-host) .duel-player span{font-size:11px}
body:has(.tower-host) .duel-status{font-size:12px;line-height:1.5;min-height:18px;margin:4px 0 8px}

.group-pig-entry{padding:16px;margin:0 0 20px;border:1px solid var(--line);border-radius:18px;background:var(--white)}.group-pig-entry p{font-size:13px;margin:0 0 10px}.group-pig-entry p span{color:var(--muted);font-size:11px}.group-pig-entry .fineprint{font-size:11px;margin:9px 0 0}

/* Public entry: useful before deferred scripts mount; no timers or new requests. */
.entry-loading{min-height:280px;padding:clamp(24px,6vw,56px) 0}.entry-loading h1{font-size:clamp(24px,5vw,38px);line-height:1.5}.entry-loading a{display:inline-flex;align-items:center;min-height:44px;text-underline-offset:3px}
