@font-face{font-family:Rounded;src:url('assets/rounded.ttf');font-weight:700;font-display:swap}
:root{--ink:#252036;--muted:#6e657e;--purple:#5b32a8;--dark:#26173f;--lime:#def49d;--paper:#f6f4fa;--line:#e5e0ed;--lavender:#eae1f7}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:'Hiragino Sans','Yu Gothic',sans-serif;font-size:15px;line-height:1.85}h1,h2,h3,.brand,.primary,.route b{font-family:Rounded,'Hiragino Maru Gothic ProN',sans-serif;font-weight:700}a{color:var(--purple);text-underline-offset:4px}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button,.primary{border:0;border-radius:12px;min-height:44px;padding:10px 18px;background:var(--lavender);color:var(--purple);font-weight:700}button:hover{background:#dfd0f4}a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #9d67e8;outline-offset:4px}[hidden]{display:none!important}.skip{position:fixed;top:-100px;z-index:100;background:white;padding:12px}.skip:focus{top:0}.app-header{height:88px;position:sticky;top:0;z-index:30;display:flex;align-items:center;justify-content:space-between;padding:0 36px;background:#fff;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:22px;text-decoration:none;color:var(--purple)}.brand img{object-fit:contain;width:68px;height:32px}.brand>span{font-size:10px;letter-spacing:.16em;line-height:1.6;border-left:1px solid var(--line);padding-left:22px}.brand b{font-size:16px;letter-spacing:.04em}.header-right{display:flex;gap:24px;align-items:center}.ticket{font-size:11px;letter-spacing:.06em;color:var(--muted)}.print{font-size:11px;background:var(--paper)}.sidebar{position:fixed;top:88px;bottom:0;width:236px;padding:32px 20px;overflow-y:auto;background:white;border-right:1px solid var(--line)}.sidebar nav{display:flex;flex-direction:column;gap:3px}.sidebar a{display:flex;gap:15px;align-items:center;min-height:44px;padding:8px 14px;color:var(--muted);text-decoration:none;font-size:13px;border-radius:10px}.sidebar a span{font-size:10px;opacity:.7}.sidebar a[aria-current]{background:var(--purple);color:#fff}.sidebar a:hover:not([aria-current]){background:var(--paper)}.sidebar .home-link{margin-bottom:22px;color:var(--ink);font-weight:700}.sidebar p{font-size:10px;margin:28px 14px;color:var(--muted)}main{margin-left:236px;padding:32px 40px 60px;max-width:1600px}#home{max-width:1160px;margin:auto}.welcome{position:relative;background:var(--dark);color:white;display:grid;grid-template-columns:1.2fr 1fr;min-height:390px;border-radius:28px;overflow:hidden}.welcome-copy{padding:44px 0 44px 42px;z-index:2}.eyebrow{font-size:10px;letter-spacing:.19em;font-weight:700;color:var(--purple)}.welcome .eyebrow{color:#bca4e0}.welcome h1{font-size:clamp(28px,3.1vw,46px);letter-spacing:.01em;line-height:1.5;margin:20px 0 14px;word-break:keep-all;overflow-wrap:normal}.welcome h1 span{color:var(--lime)}.welcome p{font-size:14px;line-height:1.9;color:#d9cde9;margin-bottom:26px}.primary{display:inline-flex;align-items:center;gap:26px;background:var(--purple);color:white;text-decoration:none;min-height:50px}.primary:hover{background:#48218f;color:white}.welcome .primary{background:var(--lime);color:#342248;box-shadow:0 4px 0 #97ae66}.welcome-art{position:relative;display:grid;place-items:end center;min-width:0}.welcome-art img{position:relative;width:100%;height:360px;object-fit:contain;z-index:1;filter:drop-shadow(0 16px 15px #110b2080);animation:arrive .6s ease-out both}.orbit{position:absolute;width:380px;height:380px;border-radius:50%;background:#6c42ae;left:0;bottom:-90px}.art-label{position:absolute;right:22px;top:28px;font-family:Rounded;font-size:10px;letter-spacing:.1em;transform:rotate(8deg);background:white;padding:9px 15px;color:var(--purple);border-radius:20px;z-index:3}.route{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:24px 0 42px}.route>a{display:flex;align-items:center;gap:14px;color:var(--ink);text-decoration:none;padding:18px 0}.route>a>span{background:var(--lavender);color:var(--purple);width:40px;height:40px;display:grid;place-items:center;border-radius:50%;font-size:12px;flex:none}.route b{font-size:19px}.route small{display:block;color:var(--muted);font-size:11px}.route i{margin-left:auto;color:var(--purple);font-style:normal}.section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.section-title h2{font-size:23px;margin:0}.section-title>span{font-size:11px;color:var(--muted)}.recipes{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.recipe{text-decoration:none;color:var(--ink);min-width:0}.recipe-art{aspect-ratio:1.5;border-radius:16px;padding:20px;position:relative;overflow:hidden;transition:transform .2s}.recipe:hover .recipe-art{transform:translateY(-4px)}.recipe-art b{font-family:Rounded;line-height:1.45;font-size:clamp(13px,1.4vw,20px);position:relative;z-index:1}.thumb{background:var(--purple);color:white;display:flex;align-items:center}.thumb span{color:var(--lime);position:absolute;font-size:80px;right:-3px;bottom:-30px}.seminar{background:var(--lime);color:#332048}.seminar small{display:block;font-size:7px;letter-spacing:.07em;margin-bottom:8px}.seminar i{position:absolute;width:90px;height:90px;border-radius:50%;background:#aac874;right:-28px;bottom:-30px}.diagram{display:flex;align-items:center;justify-content:center;gap:7px;background:#e7dff3}.diagram span{display:grid;place-items:center;background:white;border-radius:8px;padding:12px 8px;font-size:12px;font-weight:700;color:var(--purple)}.diagram i{font-style:normal;font-size:12px}.material{background:#d3e8fa}.material .landscape{position:absolute;left:-10%;width:70%;height:100%;top:55%;background:#9e88bd;transform:rotate(35deg);border-radius:15px}.material .landscape:after{content:'';position:absolute;background:#674988;left:85%;top:-40%;width:100%;height:120%;border-radius:15px}.material>i{position:absolute;right:24px;top:10px;font-style:normal;font-size:34px;color:#fff}.recipe-label{position:relative;padding:14px 2px}.recipe-label h3{margin:0;font-size:16px}.recipe-label p{font-size:11px;color:var(--muted);margin:4px 0}.recipe-label>span{position:absolute;right:4px;top:17px;color:var(--purple)}.library{display:flex;justify-content:space-between;align-items:center;margin-top:36px;padding:30px 0;border-top:1px solid var(--line)}.library h2{font-size:21px;margin:6px 0}.library nav{display:flex;gap:20px}.library nav a{font-size:13px;text-decoration:none;padding:14px 0}.library nav a span{margin-left:10px}.home-note{font-size:11px;color:var(--muted)}.chapter{max-width:900px;margin:0 auto;background:white;border-radius:24px;padding:40px 48px}.chapter-heading{margin-bottom:30px}.chapter h1{font-size:32px;line-height:1.5;word-break:keep-all;overflow-wrap:anywhere;margin:10px 0 20px}.chapter h2{font-size:22px}.chapter h3{font-size:21px;line-height:1.6;margin:38px 0 16px;scroll-margin-top:112px}.chapter p,.chapter li{line-height:1.95}.chapter li{margin:8px 0}.table-wrap{overflow:auto;margin:24px 0;border-radius:12px;background:var(--paper)}table{border-collapse:collapse;font-size:13px;min-width:650px;width:100%}th,td{padding:14px 18px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line)}th{background:var(--lavender);color:#41296b}td:first-child{font-weight:700;min-width:130px}.prompt{border-radius:14px;background:#f5f1fb;margin:22px 0;overflow:hidden}.prompt-top{display:flex;align-items:center;justify-content:space-between;padding:12px 18px;gap:14px}.prompt-top span{font-size:12px;color:var(--muted)}.copy{background:white;font-size:12px}.prompt summary{cursor:pointer;min-height:48px;padding:10px 20px;font-weight:700;color:var(--purple);font-size:13px}.prompt pre{margin:0;padding:20px;background:#faf8fd;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.95}.prompt code{font:inherit}.chapter>pre{overflow:auto;background:var(--paper);padding:20px;border-radius:12px;font-size:12px}.next{display:flex;justify-content:space-between;align-items:center;text-decoration:none;padding:20px 0;margin-top:40px;border-top:1px solid var(--line);font-weight:700}.notice{font-size:12px;color:var(--muted)}.brief-form,.tool{padding:28px;border-radius:20px;background:var(--paper);margin:24px 0 32px}.form-title{margin-bottom:24px}.form-title h2{margin:0}.form-title span{font-size:12px;color:var(--muted)}label{display:block;font-size:13px;font-weight:700;margin-bottom:18px}input,textarea,select{width:100%;display:block;background:white;color:var(--ink);border:1px solid #c9c0d7;border-radius:9px;min-height:48px;padding:10px 12px;margin-top:8px;font-size:15px}textarea{resize:vertical;min-height:90px}input::placeholder,textarea::placeholder{color:#766c83}.row{display:grid;grid-template-columns:1fr 1fr;gap:20px}#brief-output{min-height:320px}.gate-row{border-top:1px solid var(--line);padding-top:14px}.gate-row h4{font-size:15px;margin:14px 0 0}.gate-row .notice{margin:4px 0 16px}.gate-row .row{grid-template-columns:145px 1fr}.status{background:var(--lavender);padding:18px;border-radius:12px;font-weight:700;font-size:14px}.actions{margin-top:20px}.demos{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin:24px 0}figure{margin:0}figcaption{font-size:12px;color:var(--muted);margin-top:9px}.mini{aspect-ratio:16/9;padding:22px;background:#ede7f5;display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden}.mini b{font-size:22px;line-height:1.4;font-family:Rounded}.mini small{font-size:11px;margin-top:8px}.mini.split{display:grid;grid-template-columns:1fr .7fr;align-items:center;gap:10px}.object{background:var(--purple);color:white;padding:20px 5px;border:6px solid white;font-size:11px;text-align:center;transform:rotate(-6deg)}.mini.compare{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:12px}.compare-before,.compare-after{padding:12px 6px;background:white;display:flex;flex-direction:column}.compare-before b{font-size:12px;font-weight:400}.compare-after b{font-size:17px}.compare-after small{font-size:9px}.mini.steps{flex-direction:row;align-items:center;gap:6px;padding:12px}.steps span{background:white;padding:16px 9px;font-size:12px}.steps em{font-style:normal}.product,.type-good,.good{background:#192536;color:white}.sheet{background:white;color:#192536;padding:16px;font-size:12px;margin-top:16px}.type-bad b{font-size:14px;font-weight:400;line-height:1.2}.type-good small,.good small{color:#f5d85b}.bad{border:7px double #aa85cd;text-align:center}.bad b{color:var(--purple);text-shadow:2px 2px #efd968}.bad .ribbons{font-size:10px;display:flex;justify-content:space-between;margin-top:10px}.palette{display:grid;grid-template-columns:140px 1fr;gap:22px;align-items:center;margin:16px 0}.swatches{display:flex;height:80px;border-radius:12px;overflow:hidden}.swatches span{flex:1}.palette p{font-size:12px;margin:0}.mobile-menu{display:none}footer{margin-left:236px;padding:20px 40px 32px;color:var(--muted);font-size:11px;display:flex;justify-content:space-between}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:80;background:var(--dark);color:white;padding:12px 24px;border-radius:12px;font-size:13px;max-width:90vw}.toast:empty{display:none}@keyframes arrive{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@media(min-width:1500px){main{margin-right:auto}}@media(max-width:1150px){.sidebar{width:208px;padding:25px 12px}main,footer{margin-left:208px}main{padding:26px}.welcome-copy{padding:30px}.welcome{min-height:340px}.welcome-art img{height:310px}.welcome h1{font-size:29px}.recipes{grid-template-columns:repeat(2,1fr)}.recipe-art{aspect-ratio:1.8}.recipe-art b{font-size:22px}.library{align-items:flex-start;flex-direction:column}.route{gap:16px}.route>a{gap:8px}.route small{font-size:10px}.chapter{padding:30px}}
@media(max-width:800px){.sidebar{display:none}.app-header{height:74px;padding:0 20px}.header-right{gap:10px}.ticket{display:none}.brand{gap:12px}.brand>span{padding-left:12px}.brand b{font-size:13px}.brand img{width:58px}.print{font-size:10px;padding:8px 12px}main{margin:0;padding:20px 20px 80px}footer{margin:0;padding:16px 20px 100px}.welcome h1{font-size:34px}.welcome-art img{height:330px}.mobile-menu{display:block;position:fixed;right:18px;bottom:calc(18px + env(safe-area-inset-bottom));z-index:50}.mobile-menu>summary{display:flex;align-items:center;gap:24px;background:var(--purple);color:white;border-radius:999px;padding:14px 24px;min-height:52px;cursor:pointer;box-shadow:0 5px 0 #361467;font-family:Rounded;font-size:12px;list-style:none}.mobile-menu>summary::-webkit-details-marker{display:none}.mobile-menu nav{position:absolute;bottom:70px;right:0;width:280px;background:white;box-shadow:0 12px 60px #26173f33;border-radius:18px;padding:12px;max-height:calc(100dvh - 160px);overflow:auto}.mobile-menu nav a{display:flex;gap:18px;min-height:44px;align-items:center;padding:6px 14px;text-decoration:none;color:var(--muted);font-size:13px}.mobile-menu nav a[aria-current]{background:var(--lavender);color:var(--purple);border-radius:8px}.mobile-menu nav a span{font-size:10px}.chapter{padding:28px}.chapter h1{font-size:27px}}
@media(max-width:540px){main{padding:16px 16px 50px}.app-header{padding:0 16px}.brand b{font-size:11px}.brand>span{font-size:8px}.brand img{width:52px}.welcome{display:block;min-height:0;border-radius:22px}.welcome-copy{padding:30px 24px 0}.welcome h1{font-size:30px;line-height:1.5;margin:16px 0 12px}.welcome .eyebrow{font-size:9px}.welcome p{font-size:13px;margin:12px 0 22px}.welcome .primary{font-size:13px;min-height:48px}.welcome-art{height:245px;margin-top:12px}.welcome-art img{height:265px;width:90%;object-position:center bottom}.orbit{width:300px;height:300px;left:calc(50% - 150px);bottom:-100px}.art-label{right:22px;top:16px;font-size:9px}.route{gap:8px;margin:20px 0 26px}.route>a{flex-direction:column;align-items:flex-start;gap:10px;padding:10px 4px}.route b{font-size:18px}.route small{font-size:11px;max-width:90px;line-height:1.6;margin-top:3px}.route i{display:none}.route>a>span{width:30px;height:30px;font-size:10px}.section-title{display:block}.section-title h2{font-size:22px}.section-title>span{font-size:10px}.recipes{gap:16px 12px}.recipe-art{aspect-ratio:1.2;padding:15px}.recipe-art b{font-size:15px}.seminar small{font-size:6px}.recipe-label h3{font-size:15px}.recipe-label p{font-size:11px}.recipe-label>span{display:none}.diagram{gap:4px}.diagram span{font-size:10px;padding:10px 7px}.diagram i{font-size:9px}.library{margin-top:24px;padding-top:24px}.library nav{gap:24px}.library nav a{font-size:12px}.library h2{font-size:22px}.chapter{padding:24px 20px;border-radius:18px}.chapter h1{font-size:25px}.chapter h3{font-size:20px}.chapter p,.chapter li{font-size:14px}.chapter ul,.chapter ol{padding-left:1.3em}.brief-form,.tool{padding:18px;margin-left:-8px;margin-right:-8px}.row,.gate-row .row{grid-template-columns:1fr;gap:0}input,textarea,select{font-size:16px}.form-title h2{font-size:21px}.demos{grid-template-columns:1fr}.mini{padding:22px}.mini b{font-size:24px}.palette{grid-template-columns:100px 1fr;gap:14px}.palette b{font-size:13px}.palette p{font-size:11px}.prompt-top{padding:10px 12px}.prompt-top span{font-size:10px}.chapter .next{font-size:13px}.toast{bottom:90px}.home-note{font-size:10px}.type-bad b{font-size:14px}.compare-before b{font-size:12px}.compare-after b{font-size:17px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{.app-header,.sidebar,.mobile-menu,.welcome,.route,.recipes,.library,.toast,.copy,.primary,.brief-form,.next,.skip{display:none!important}body,main,.chapter{background:white;margin:0;padding:0}#home{display:none!important}.chapter[hidden]{display:block!important}.chapter{break-before:page;border-radius:0}details>pre{display:block!important}details>summary{display:none}.chapter h1{font-size:24pt}table{min-width:0;font-size:9pt}.table-wrap{overflow:visible}.prompt pre{font-size:9pt}.chapter p,.chapter li{font-size:10pt}.demos{grid-template-columns:1fr 1fr}footer{margin:0;padding:16px 0}.tool{background:white}*{-webkit-print-color-adjust:exact;print-color-adjust:exact}}

h1[tabindex="-1"]:focus,h3[tabindex="-1"]:focus{outline:none}
.route{background:#eee8f6;border-radius:18px;padding:4px 20px}.route small{color:#594c6d}.route>a>span{background:white}.route>a{padding:18px 0}
@media(max-width:800px){body{height:100vh;height:100svh;display:flex;flex-direction:column;overflow:hidden}.app-header{flex:none;position:relative}main{flex:1;min-height:0;overflow-y:auto;padding-bottom:32px}.mobile-menu{position:relative;right:auto;bottom:auto;flex:none;width:100%;height:calc(76px + env(safe-area-inset-bottom));background:white;padding:10px 18px calc(14px + env(safe-area-inset-bottom));box-shadow:0 -1px 0 var(--line)}.mobile-menu>summary{width:120px;margin-left:auto;justify-content:space-between}.mobile-menu nav{right:18px;bottom:calc(76px + env(safe-area-inset-bottom))}footer{display:none}}
@media(max-width:540px){.welcome-art img{height:240px}.route{grid-template-columns:1fr;gap:0;padding:8px 18px}.route>a{flex-direction:row;align-items:center;gap:14px;padding:14px 0}.route>a:not(:last-child){border-bottom:1px solid #dcd2e8}.route b{font-size:18px}.route small{max-width:none;font-size:12px;line-height:1.6}.route i{display:block;margin-left:auto}.route>a>span{width:32px;height:32px}}
@media print{body{height:auto;display:block;overflow:visible}main{overflow:visible}.mobile-menu,.route{display:none!important}footer{display:flex}}

/* Design workshop as a game: map → practice → saved learning progress. */
body{background:#f1ecfa;background-image:radial-gradient(#c8b6e3 .8px,transparent .8px);background-size:24px 24px}
.app-header{height:76px;margin:16px 24px 0;border-radius:40px;border:2px solid #fff;box-shadow:0 5px 0 #d9cce9;padding:0 28px;top:12px}
.sidebar{top:115px;bottom:20px;left:24px;width:210px;border:0;border-radius:24px;padding:20px 12px;background:#fff9;backdrop-filter:blur(8px)}
.sidebar .home-link{margin-bottom:4px}.sidebar a{color:#5a4871}.sidebar a.cleared:after{content:'✓';margin-left:auto;color:#33600b}.sidebar a[aria-current].cleared:after{color:var(--lime)}
main{margin-left:252px;padding:28px 32px 60px}.welcome{border:3px solid #fff;box-shadow:0 8px 0 #d6c5eb;background:#43217a;min-height:375px}.welcome h1{font-size:clamp(28px,3vw,42px)}.welcome-art img{height:345px}.welcome-copy{padding-left:34px}.welcome .primary{border:2px solid #efffc6}.primary,button{transition:transform .15s,box-shadow .15s}.primary:active,button:active{transform:translateY(3px)}.welcome-art img{animation:arrive .6s ease-out both}.chapter{border:2px solid white;box-shadow:0 7px 0 #ddd1ec}.chapter-heading{position:relative;border-bottom:2px solid #e9e0f3;padding-bottom:20px}.chapter-heading:after{content:'';position:absolute;right:0;top:0;width:64px;height:64px;background:url('assets/character.png') center/contain no-repeat}.chapter-heading h1{padding-right:48px}.chapter .eyebrow{background:var(--lime);padding:6px 12px;border-radius:8px;display:inline-block}.chapter h1{margin-bottom:12px}.quest-hud{padding:16px 12px 10px;font-size:11px;color:#594a6a}.quest-hud>div{display:flex;justify-content:space-between}.quest-hud progress{width:100%;height:10px;accent-color:var(--purple)}.quest-hud small{font-size:10px}.header-right{gap:10px}.sound{font-size:10px;padding:8px 12px;background:#efe9f6}.quest-link{font-weight:700!important;color:var(--purple)!important}.stage-clear{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:24px 0 0}.stage-clear button{box-shadow:0 3px 0 #c6b3df}.stage-clear button[aria-pressed=true]{background:var(--lime);color:#344a18}.stage-clear small{font-size:11px;color:var(--muted)}.chapter:not([hidden]){animation:pageIn .3s ease-out}.quest-lab{max-width:1000px}.coach{display:flex;gap:18px;align-items:center;background:#f1ebf8;border-radius:20px;padding:8px 20px;margin-bottom:20px}.coach img{object-fit:contain}.coach p{margin:0;font-size:14px}.case-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:32px 0 18px}.case-tabs button{font-size:13px;background:#eee8f6}.case-tabs button[aria-pressed=true]{background:#5b32a8;color:white;box-shadow:0 3px 0 #321465}.mission-step{display:grid;grid-template-columns:38px 1fr;gap:16px;margin:30px 0}.mission-step>span{width:36px;height:36px;display:grid;place-items:center;border-radius:50%;background:var(--purple);color:white;font-weight:700}.mission-step>div{min-width:0}.mission-step h3{margin:0 0 14px}.case-art{display:block;width:100%;height:auto;border-radius:14px}.small-preview{width:320px;max-width:100%;display:block;border-radius:10px}.quest-checks{margin:20px 0}.quest-checks label{display:flex;align-items:center;gap:12px;min-height:44px;margin:4px 0;font-size:13px}.quest-checks input{width:22px;height:22px;min-height:0;margin:0;accent-color:var(--purple);flex:none}.case-status{font-weight:700;color:#4d3077}.help-box{background:#f6f3fa;border-radius:12px;padding:16px}.help-box summary{cursor:pointer;font-weight:700;min-height:44px;display:flex;align-items:center}.fix-gallery{margin-bottom:40px}.fix-card{margin:24px 0 36px}.fix-card figcaption{margin-bottom:14px}.fix-card figcaption b{display:block;font-family:Rounded;font-size:19px;color:var(--ink)}.fix-card figcaption span{display:block;margin-top:4px;font-size:13px}.fix-pair{display:grid;grid-template-columns:1fr 1fr;gap:14px}.fix-pair img{width:100%;display:block;border-radius:10px}.fix-pair small{display:block;font-size:10px;letter-spacing:.1em;margin-bottom:7px}.route{box-shadow:0 4px 0 #dacee9}.route>a>span{border:2px solid white;box-shadow:0 3px 0 #d3c3e9}.recipe-art{box-shadow:0 4px 0 #d8c9e9}footer{margin-left:252px}@keyframes pageIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(max-width:1150px){main{padding:24px;margin-left:246px}.welcome{grid-template-columns:1.2fr 1fr}.welcome-copy{padding:30px 0 24px 26px}.welcome h1{font-size:28px}.welcome-art img{height:300px}.header-right .print{display:none}}
@media(max-width:800px){.app-header{height:68px;margin:10px 12px 6px;padding:0 16px;top:0}.header-right .print{display:none}.sound{font-size:9px;padding:8px;min-width:76px}.brand{gap:10px}.brand>span{padding-left:10px}.brand b{font-size:11px}main{margin:0;padding:18px 16px 32px}.welcome{min-height:0}.chapter{padding:28px}.mobile-menu{display:flex;align-items:center;gap:12px;padding-left:22px}.mobile-menu .quest-hud{width:calc(100% - 150px);padding:0}.mobile-menu .quest-hud small{display:none}.mobile-menu>summary{margin-left:auto}.mobile-menu[open] nav{display:block}.mobile-menu:not([open]) nav{display:none}.mobile-menu .quest-hud{display:block}.stage-clear{align-items:flex-start;flex-direction:column}.chapter-heading:after{width:54px;height:54px}.welcome h1{font-size:34px}}
@media(max-width:540px){.welcome{display:block}.welcome-copy{padding:28px 24px 0}.welcome h1{font-size:29px}.welcome-art{height:228px}.welcome-art img{height:235px}.chapter{padding:24px 18px}.chapter h1{font-size:24px}.mission-step{grid-template-columns:28px 1fr;gap:10px}.mission-step>span{width:28px;height:28px;font-size:12px}.coach{padding:10px;gap:10px}.coach img{width:68px;height:80px}.coach p{font-size:12px}.case-tabs{display:grid;grid-template-columns:1fr 1fr}.case-tabs button{padding:10px 8px}.fix-pair{grid-template-columns:1fr;gap:12px}.fix-card{margin-bottom:36px}.brand img{width:42px}.brand b{font-size:10px}.brand>span{font-size:7px}.app-header{padding:0 12px}.chapter-heading h1{padding-right:35px}.chapter-heading:after{width:40px;height:40px}.mission-step .prompt-top span{font-size:10px}.mission-step .prompt-top{padding:8px}.mission-step .copy{padding:8px 12px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
@media print{body{background:white}.stage-clear,.case-tabs,.quest-hud,.help-box{display:none!important}.case[hidden]{display:block!important}.chapter-heading:after{display:none}#lab[hidden]{display:block!important}.chapter{box-shadow:none}.fix-pair{grid-template-columns:1fr 1fr}.fix-card,.mission-step{break-inside:avoid}}

.mobile-progress{display:none}.example-note{font-size:12px;color:var(--muted);margin:-8px 0 20px}.example-note summary{cursor:pointer;min-height:36px;display:flex;align-items:center}.exercise-path{display:flex;gap:8px;margin:18px 0 24px}.exercise-path button{flex:1;font-size:13px;padding:8px 12px}.exercise-path button[aria-pressed=true]{background:var(--purple);color:white}.exercise-actions{display:flex;justify-content:space-between;gap:12px;margin-top:24px}.exercise-actions .primary{margin-left:auto}.fix-card figcaption a{display:inline-block;font-size:12px;min-height:44px;padding-top:8px}.mission-step h3{scroll-margin-top:120px}
@media(max-width:800px){.mobile-progress{display:block;position:fixed;bottom:calc(12px + env(safe-area-inset-bottom));left:20px;width:165px;z-index:55;pointer-events:none}.mobile-progress .quest-hud{padding:0}.mobile-progress small{display:none}.mobile-menu>summary{margin-left:auto}.mission-step h3{scroll-margin-top:20px}}
@media(max-width:540px){.exercise-path{gap:5px}.exercise-path button{font-size:11px;padding:8px 4px}.exercise-actions button{font-size:12px;padding:10px 12px}.quest-lab .chapter-heading{margin-bottom:20px}.quest-lab .chapter-heading p{margin-bottom:0}}
@media print{.mobile-progress,.exercise-path,.exercise-actions{display:none!important}.mission-step[hidden]{display:grid!important}}

.fix-card figcaption span{font-size:14px}.quest-lab .notice{font-size:13px}

.image-showcase{margin:36px 0 44px}.image-showcase>h2{font-size:24px}.image-showcase>figure{margin:24px 0 36px}.image-showcase img,.layout-examples img,.photo-pair img{display:block;width:100%;height:auto;border-radius:14px}.image-showcase figcaption{display:flex;align-items:baseline;gap:16px;margin-top:12px}.image-showcase figcaption b{font-size:17px;color:var(--ink);flex:none}.image-showcase .prompt{margin-top:14px}.layout-examples{display:grid;gap:28px}.layout-examples figcaption{font-size:14px}.photo-pair{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:24px 0}.photo-pair figcaption{font-size:13px}.recipe-art:has(.recipe-photo){padding:0;aspect-ratio:16/9}.recipe-photo{width:100%;height:100%;object-fit:contain;display:block}#home .image-showcase>figure:not(:first-of-type){display:none}#home .image-showcase .prompt{display:none}#home .image-showcase>h2{font-size:23px}
@media(max-width:800px){.photo-pair{grid-template-columns:1fr}.image-showcase figcaption{display:block}.image-showcase figcaption span{display:block;margin-top:5px}.image-showcase>h2{font-size:21px}}

/* First visit: one clear path; reference material stays available on demand. */
.nav-library{margin-top:20px}.nav-library summary{cursor:pointer;padding:12px 14px;font-size:13px;color:var(--muted);min-height:44px}.sidebar .nav-library a{font-size:12px;padding-left:20px}.home-reassurance{display:block;font-size:12px;margin-top:20px;color:#ded2f2}.home-preview{display:grid;grid-template-columns:1.1fr 1fr;gap:28px;align-items:center;margin:32px 0}.home-preview img{width:100%;border-radius:16px;display:block}.home-preview h2{font-size:23px}.home-preview p{color:var(--muted);font-size:14px}.home-library{padding:18px 0;border-top:1px solid var(--line)}.home-library summary{cursor:pointer;min-height:44px;font-weight:700;display:flex;align-items:center}.home-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:12px}.home-shortcuts a{padding:14px;background:white;border-radius:12px;text-decoration:none}.stage-clear{display:none}.chapter-purpose{font-size:14px;color:var(--muted);margin:10px 0}.return-practice{font-size:12px}.lesson{border-bottom:1px solid var(--line);padding:8px 0}.lesson>summary{cursor:pointer;min-height:52px;display:flex;align-items:center;gap:12px}.lesson>summary:before{content:'＋';color:var(--purple);flex:none}.lesson[open]>summary:before{content:'−'}.lesson>summary h3{margin:10px 0;font-size:18px}.lesson[open]{padding-bottom:18px}.start-path{display:flex;gap:10px;scroll-margin-top:110px}.start-path button{flex:1;padding:10px;font-size:14px}.start-path button[aria-pressed=true]{background:var(--purple);color:white;box-shadow:0 4px 0 #321b52}.start-coach{display:flex;align-items:center;gap:16px;margin:18px 0}.start-coach img{object-fit:contain;flex:none}.start-coach p{font-size:14px;background:#f0e9f7;border-radius:16px;padding:12px 18px;margin:0}.start-example{display:block;width:100%;height:auto;border-radius:16px}.start-next{display:flex;margin:24px 0 0 auto}.action-instruction{font-size:14px;font-weight:700;color:var(--purple)}.quiet-back{display:inline-block;margin-top:30px;font-size:13px}.starter-result{font-weight:700;color:var(--purple)}.starter-finish{padding:24px;background:#f0f8df;border-radius:20px}.guided .chapter-heading:after{display:none}.guided .chapter-heading h1{padding:0}.guided .chapter-heading{margin-bottom:22px}.guided .chapter-heading p{margin:0;font-size:14px}.guided h2{font-size:23px}.guided .help-box{padding:10px 18px}.guided .help-box p{font-size:14px}
@media(max-width:800px){.start-path{scroll-margin-top:16px}.mobile-menu .nav-library summary{font-size:13px}.mobile-menu nav{max-height:calc(100dvh - 160px)}}
@media(max-width:540px){.home-preview{grid-template-columns:1fr;gap:8px;margin:24px 0}.home-preview h2{font-size:20px}.home-preview p{font-size:13px;margin-bottom:8px}.home-shortcuts{grid-template-columns:1fr}.start-path{gap:6px}.start-path button{font-size:12px;padding:10px 6px}.start-coach{gap:10px}.start-coach img{width:48px;height:60px}.start-coach p{padding:10px 12px;font-size:12px}.guided h2{font-size:20px}.action-instruction{font-size:12px}.guided .chapter-heading h1{font-size:23px}.lesson>summary h3{font-size:17px}.home-reassurance{font-size:11px}.welcome h1{font-size:28px}}
@media print{.lesson>summary:before,.start-path,.start-next,.return-practice,.quiet-back{display:none!important}.lesson>*{display:block!important}.guided[hidden],[data-start-panel][hidden]{display:block!important}}

.guided .chapter-heading{padding-bottom:12px;margin-bottom:16px}.guided .chapter-heading p{display:none}.guided .chapter-heading h1{font-size:26px}.guided .start-coach{margin:16px 0}.guided .prompt{margin:16px 0}.guided .start-example{margin-top:22px}.example-choice,.fix-choice{border-bottom:1px solid var(--line)}.example-choice>summary,.fix-choice>summary{min-height:64px;cursor:pointer;display:flex;align-items:center;gap:12px;font-family:Rounded;font-size:18px;padding:12px 0}.example-choice>summary:before,.fix-choice>summary:before{content:'＋';color:var(--purple)}.example-choice[open]>summary:before,.fix-choice[open]>summary:before{content:'−'}.example-choice>summary span{font:12px 'Hiragino Sans',sans-serif;color:var(--muted);margin-left:auto}.example-choice>figure{margin:8px 0 24px}.fix-choice .fix-card{margin-top:4px}.starter-finish{animation:arrive .4s ease-out}
@media(max-width:540px){.guided .chapter-heading h1{font-size:22px}.guided h2{font-size:19px}.example-choice>summary{font-size:16px}.example-choice>summary span{font-size:10px}.guided .prompt-top{flex-wrap:wrap}.guided .prompt-top .copy{background:var(--purple);color:white}}
@media print{.example-choice>*,.fix-choice>*{display:block!important}}

body:has(#home:not([hidden])) .sidebar nav>a:not(.home-link):not(.quest-link){display:none}.guided [data-start-panel="0"]>.start-next{margin:16px 0 22px auto;background:var(--lavender);color:var(--purple)}

/* Tactile play: small choices, direct feedback, a tangible finish. */
body:has(#home:not([hidden])) .sidebar{display:none}body:has(#home:not([hidden])) main{margin:0 auto;max-width:1280px;width:100%;padding:32px 40px 60px}body:has(#home:not([hidden])) footer{margin:0 auto;max-width:1280px}.welcome{min-height:465px;grid-template-columns:1.2fr 1fr;box-shadow:0 9px 0 #d1c1e5}.welcome-copy{padding:50px 0 44px 48px}.welcome h1{font-size:clamp(32px,3.8vw,48px);line-height:1.5}.welcome-art img{height:425px}.orbit{width:460px;height:350px;left:0;bottom:-110px;border-radius:50% 50% 0 0;background:#7551b0}.character-says{position:absolute;top:40px;right:30px;z-index:3;padding:12px 20px;border-radius:24px 24px 4px 24px;background:white;color:#48306b;font-family:Rounded;font-size:12px;transform:rotate(4deg)}.welcome .primary{font-size:16px;min-height:56px;padding:14px 26px;box-shadow:0 5px 0 #98ad65}.primary:hover,.demo-toggle:hover{filter:brightness(1.035);transform:translateY(-2px)}.primary:active,.demo-toggle:active{transform:translateY(3px);box-shadow:none}.try-design{display:grid;grid-template-columns:.85fr 1.3fr;gap:40px;align-items:center;padding:36px 0 28px}.try-copy h2{font-size:29px;line-height:1.5;margin:12px 0}.try-copy>p{font-size:14px;color:var(--muted)}.demo-toggle{background:var(--purple);color:white;border:2px solid white;box-shadow:0 4px 0 #c9b6e4;min-height:52px;display:flex;align-items:center;gap:24px}.demo-feedback{min-height:48px;max-width:330px}.try-image{position:relative;isolation:isolate;overflow:hidden;border-radius:20px;border:5px solid white;box-shadow:0 6px 0 #d9cce9}.try-image img{display:block;width:100%;height:auto}.try-image .clean-design{position:absolute;inset:0;opacity:0;clip-path:inset(0 100% 0 0);transition:clip-path .45s cubic-bezier(.2,.8,.2,1),opacity .15s}.is-clean .clean-design{opacity:1;clip-path:inset(0 0 0 0)}.demo-label{position:absolute;bottom:12px;right:12px;background:#fff;padding:5px 12px;border-radius:8px;font-size:11px;color:#35234c;box-shadow:0 2px 8px #35234c18}.welcome-art.happy img{animation:coachHappy .7s ease-out}.start-path{position:relative;padding-bottom:4px}.start-path button{border:2px solid white;box-shadow:0 3px 0 #d4c5e8;border-radius:16px}.start-path .step-passed:after{content:' ✓';color:inherit}.start-path button[aria-pressed=true]{box-shadow:0 5px 0 #351766;background:#6335b1}.start-coach p{position:relative;background:#fff;border:2px solid #e5d9f1;box-shadow:0 3px 0 #e8dff2}.start-coach p:before{content:'';position:absolute;left:-8px;top:18px;width:12px;height:12px;background:white;border-left:2px solid #e5d9f1;border-bottom:2px solid #e5d9f1;transform:rotate(45deg)}[data-start-panel]:not([hidden]){animation:panelEnter .28s ease-out}.guided{background:#fffdfa}.work-preview{background:#f4f0f8;border-radius:18px;padding:20px;margin:22px 0}.upload-label{margin:0 0 8px}.upload-label span{display:block;font-size:16px}.upload-label small{display:block;font-size:11px;color:var(--muted);font-weight:400;margin-top:5px}#work-image{border:0;background:transparent;font-size:12px;padding:0;min-height:40px}#work-image::file-selector-button{border:0;border-radius:10px;padding:12px 16px;background:#e4d7f4;color:#452276;font-weight:700;margin-right:10px;cursor:pointer}.upload-notice,.upload-error{font-size:12px!important;margin:8px 0 0!important}.upload-error{color:#a12424}.upload-error:empty{display:none}.your-image{margin:18px 0 0}.your-image img{display:block;width:320px;max-width:100%;height:auto;border-radius:8px}.your-image button{font-size:12px;margin-top:12px}.quest-checks label{background:#f6f2fb;border:2px solid transparent;border-radius:14px;padding:12px 14px;margin:10px 0;transition:background .18s,border-color .18s}.quest-checks label:has(input:checked){border-color:#b1d16d;background:#f1f8e3}.starter-finish{position:relative;text-align:center;background:#f1f8df;border:3px solid white;box-shadow:0 6px 0 #d3dfb9;padding:34px 28px;margin-top:26px;overflow:hidden}.starter-finish .eyebrow{background:none}.clear-emblem{margin:0 auto 16px;display:grid;place-items:center;width:76px;height:76px;background:#dcf38e;color:#4a296c;font-size:44px;border-radius:50%;border:4px solid white;box-shadow:0 5px 0 #b4c97c}.starter-finish h2{font-size:29px;line-height:1.5;margin:10px 0}.starter-finish>p{font-size:14px}.reflection{text-align:left;margin-top:24px}.reflection textarea{background:#fffefb;min-height:84px;font-weight:400}.save-achievement{display:block;margin:0 auto 22px;font-size:13px}.starter-finish .primary{display:inline-flex}.celebrate .clear-emblem{animation:medalPop .7s cubic-bezier(.2,.9,.25,1.2)}.home-library{margin-top:14px}.guided h2:focus{outline:none}@keyframes panelEnter{from{opacity:.3;transform:translateY(10px)}to{opacity:1;transform:none}}@keyframes coachHappy{0%,100%{transform:translateY(0) rotate(0)}35%{transform:translateY(-14px) rotate(-3deg)}65%{transform:translateY(0) rotate(2deg)}}@keyframes medalPop{0%{transform:scale(.4) rotate(-24deg);opacity:0}65%{transform:scale(1.12) rotate(7deg)}100%{transform:scale(1);opacity:1}}
@media(max-width:800px){body:has(#home:not([hidden])) main{padding:18px 16px 32px}.welcome-copy{padding:34px 0 28px 28px}.welcome h1{font-size:32px}.welcome-art img{height:350px}.welcome{min-height:380px}.character-says{right:18px;top:25px;font-size:10px}.try-design{gap:24px}.try-copy h2{font-size:25px}.starter-finish h2{font-size:25px}}
@media(max-width:540px){.welcome{display:block;min-height:0}.welcome-copy{padding:26px 22px 0}.welcome h1{font-size:28px;margin:12px 0}.welcome p{font-size:12px;margin:12px 0 18px}.welcome .primary{font-size:14px;min-height:52px}.welcome-art{height:215px;margin-top:0}.welcome-art img{height:222px}.character-says{top:20px;right:14px;font-size:9px;padding:9px 12px}.orbit{width:310px;height:280px;left:calc(50% - 155px);bottom:-125px}.home-reassurance{font-size:10px;margin-top:14px}.try-design{grid-template-columns:1fr;gap:16px;padding:28px 0 10px}.try-copy h2{font-size:25px;line-height:1.45;margin:8px 0}.try-copy h2 br{display:none}.try-copy>p{font-size:13px;margin:8px 0 14px}.demo-feedback{min-height:0!important;font-size:12px!important}.demo-toggle{width:100%;justify-content:space-between;min-height:50px}.try-image{border-width:4px;border-radius:16px}.work-preview{padding:16px}.starter-finish{padding:24px 16px}.starter-finish h2{font-size:23px}.quest-checks label{font-size:12px;padding:12px 10px}.start-path button{font-size:11px;padding:10px 5px}.reflection{font-size:12px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{.try-design,.work-preview,.save-achievement{display:none!important}.starter-finish{box-shadow:none}}

.starter-finish h2{scroll-margin-top:150px}@media(max-width:800px){.starter-finish h2{scroll-margin-top:70px}}

.home-steps{display:flex;gap:20px;list-style:none;margin:0 0 28px;padding:0;color:#fff;font-size:14px}.home-steps li{display:flex;align-items:center;gap:7px}.home-steps b{display:grid;place-items:center;background:#fff;color:var(--purple);border-radius:50%;width:25px;height:25px;font-size:12px}.achievement-art{margin:22px auto;max-width:420px}.achievement-art img{width:100%;height:auto;display:block;border-radius:12px;border:3px solid white}.achievement-art figcaption{font-size:12px}.add-finish-image{font-size:12px;margin:6px auto 0}.welcome-copy>p{margin-bottom:20px}
@media(max-width:540px){.home-steps{gap:10px;font-size:11px;margin-bottom:20px}.home-steps b{width:21px;height:21px;font-size:10px}.home-steps li{gap:5px}.welcome-copy>p{margin-bottom:14px}.welcome-art{height:200px}.welcome-art img{height:210px}}

/* Opening → title → menu. The application remains inert until START. */
#game-shell{display:contents}.opening-active{overflow:hidden!important}.game-opening{position:fixed;inset:0;width:100vw;height:100vh;height:100dvh;z-index:200;background:#26133f;color:white;overflow:hidden}.opening-film,.title-screen{position:absolute;inset:0}.opening-film{background:#241239}.film-scene{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;opacity:0;pointer-events:none;padding:6vw;text-align:center}.film-scene p{font-family:Rounded;font-size:clamp(28px,4vw,60px);line-height:1.5;margin:20px 0}.scene-one{background:#eff1dc;color:#39245b}.scene-one img{width:110px;filter:none}.scene-two{background:#402479}.film-example{position:relative;width:min(66vw,900px);border:8px solid white;border-radius:22px;overflow:hidden;box-shadow:0 18px 60px #160b3c88}.film-example img{display:block;width:100%}.film-clean{position:absolute;inset:0;clip-path:inset(0 100% 0 0)}.scene-two p{font-size:clamp(22px,3vw,40px)}.scene-three{background:#dfeebb;color:#382052}.scene-three>img{height:62%;width:auto;object-fit:contain;filter:drop-shadow(0 14px 15px #7a698133)}.skip-opening{position:absolute;right:32px;top:max(28px,env(safe-area-inset-top));color:white;background:#302045d9;border:1px solid #ffffff66;z-index:10;min-width:104px;border-radius:100px;letter-spacing:.13em;font-size:12px}.skip-opening span{margin-left:12px}.film-progress{height:4px;background:#ffffff22;position:absolute;bottom:0;left:0;width:100%;z-index:9}.film-progress i{display:block;background:#d9f28e;width:0;height:100%}.playing .scene-one{animation:sceneOne 6.6s linear both}.playing .scene-two{animation:sceneTwo 6.6s linear both}.playing .scene-three{animation:sceneThree 6.6s linear both}.playing .film-clean{animation:filmReveal 6.6s ease-in-out both}.playing .film-progress i{animation:filmProgress 6.6s linear both}.title-screen{background:#e7ddf6;isolation:isolate;color:#462475}.title-brand{position:absolute;left:5vw;top:max(34px,env(safe-area-inset-top));width:95px;z-index:5}.title-landscape{position:absolute;inset:0;z-index:-1;overflow:hidden;background:radial-gradient(ellipse at 60% 40%,#f7f0ff 0%,#e7ddf6 65%)}.title-landscape span{position:absolute;width:130vw;height:55vh;left:-15vw;bottom:-31vh;border-radius:50%;background:#cbb6e7;transform:rotate(-5deg)}.title-landscape span:nth-child(2){background:#def19f;left:30vw;bottom:-26vh;transform:rotate(-18deg)}.title-landscape span:nth-child(3){width:70vw;height:70vw;left:-45vw;bottom:auto;top:-35vw;border:70px solid #ffffff55;background:transparent}.title-copy{position:absolute;top:25%;left:9%;z-index:4}.title-copy>span{font-family:Rounded;font-size:clamp(16px,2.6vw,32px);letter-spacing:.22em}.title-copy h1{font-size:clamp(50px,7.9vw,116px);line-height:1.02;letter-spacing:-.04em;margin:16px 0 20px;color:#512788;text-shadow:0 3px #fff,0 6px #d4c4e9}.title-copy p{font-family:Rounded;font-size:clamp(13px,1.6vw,20px);letter-spacing:.15em}.title-character{position:absolute;right:7%;bottom:11%;width:43%;height:76%;display:grid;place-items:center}.title-character>img{height:100%;max-width:100%;object-fit:contain;position:relative;z-index:2;filter:drop-shadow(0 20px 15px #70519030);animation:titleArrive .7s ease-out both}.title-platform{position:absolute;bottom:5%;width:80%;height:12%;background:#baa4d9;border-radius:50%;filter:blur(10px)}.title-controls{position:absolute;left:9%;bottom:10%;z-index:5;display:flex;align-items:flex-start;flex-direction:column;gap:16px}.press-start{position:relative;overflow:hidden;background:#58309b;color:white;border:3px solid white;border-radius:100px;padding:18px 34px;box-shadow:0 7px 0 #b6a0d5;min-height:68px;font-size:21px;letter-spacing:.14em;font-family:Rounded}.press-start span{margin-left:24px;font-size:16px}.press-start:after{content:'';position:absolute;top:-50%;height:200%;width:40px;background:#ffffff66;transform:translateX(-180px) rotate(20deg);animation:startShine 3s ease-in-out infinite;pointer-events:none}.press-start:hover{background:#6b3fad}.press-start:active{transform:translateY(5px);box-shadow:0 2px 0 #b6a0d5}.replay-opening{background:transparent;min-height:44px;color:#715783;padding:8px 4px;font-size:11px;text-decoration:underline;text-underline-offset:4px}.replay-opening:hover{background:transparent;color:#422362}.game-opening.entering{animation:openGate .42s ease-in both;pointer-events:none}.menu-screen{display:grid;grid-template-columns:1.15fr 1fr;grid-template-rows:auto 1fr;column-gap:80px;padding:34px 48px 40px;background:#fdfbff;border:3px solid white;border-radius:32px;box-shadow:0 7px 0 #dccded;min-height:580px}.menu-heading h1{font-size:52px;line-height:1.2;margin:10px 0;color:var(--purple);letter-spacing:.08em}.menu-heading p{margin:8px 0 24px;font-size:14px;color:var(--muted)}.menu-choices{display:flex;flex-direction:column;gap:12px;align-items:stretch}.menu-choices>a{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 22px;min-height:54px;border-radius:16px;background:#eee6f7;border:2px solid white;box-shadow:0 3px 0 #ddd0ed;color:#4d2b78;font-family:Rounded;font-size:16px;text-decoration:none;transition:transform .15s,background .15s}.menu-choices>a:hover{transform:translateX(5px);background:#e0d2f0}.menu-choices>a.menu-primary{background:var(--purple);color:white;box-shadow:0 4px 0 #c3addf}.menu-choices>a.menu-primary:hover{background:#6c40b3}.menu-choices>a b{font-size:14px}.menu-choices>button{background:none;font-size:11px;color:var(--muted);align-self:flex-start;margin-top:8px}.menu-guide{grid-column:2;grid-row:1/3;height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column}.menu-guide img{width:100%;height:380px;object-fit:contain}.menu-guide p{margin:4px 0 0;background:#fff;border:2px solid #e9dff5;border-radius:20px;padding:14px 24px;font-family:Rounded;font-size:13px;color:var(--purple);text-align:center}@keyframes sceneOne{0%,25%{opacity:1;transform:scale(1)}31%,100%{opacity:0;transform:scale(1.07)}}@keyframes sceneTwo{0%,25%{opacity:0;transform:translateY(20px)}32%,63%{opacity:1;transform:none}69%,100%{opacity:0;transform:scale(1.05)}}@keyframes sceneThree{0%,63%{opacity:0;transform:translateY(20px)}72%,93%{opacity:1;transform:none}100%{opacity:0;transform:scale(1.04)}}@keyframes filmReveal{0%,40%{clip-path:inset(0 100% 0 0)}55%,100%{clip-path:inset(0 0 0 0)}}@keyframes filmProgress{to{width:100%}}@keyframes titleArrive{from{opacity:0;transform:translateY(24px) scale(.94)}to{opacity:1;transform:none}}@keyframes startShine{0%,65%{left:-25%;opacity:0}70%{opacity:1}93%,100%{left:160%;opacity:0}}@keyframes openGate{to{opacity:0;transform:scale(1.055)}}
@media(max-width:800px){.title-copy{left:7%;top:24%}.title-character{right:1%;width:48%;bottom:17%;height:61%}.title-controls{left:7%;bottom:12%}.title-copy h1{font-size:clamp(46px,8.5vw,72px)}.menu-screen{padding:28px;column-gap:24px;min-height:500px}.menu-guide img{height:300px}.menu-choices>a{font-size:14px}.menu-heading h1{font-size:40px}}
@media(max-width:540px){.skip-opening{right:18px;top:max(18px,env(safe-area-inset-top))}.film-example{width:92vw;border-width:4px;border-radius:12px}.film-scene{padding:24px}.film-scene p{font-size:28px}.scene-three>img{height:52%;max-width:90vw}.scene-one img{width:90px}.title-brand{top:max(24px,env(safe-area-inset-top));left:24px;width:72px}.title-copy{top:13%;left:0;width:100%;text-align:center}.title-copy>span{font-size:15px;letter-spacing:.2em}.title-copy h1{font-size:clamp(48px,14vw,68px);margin:8px 0 12px}.title-copy p{font-size:12px;margin:6px 0}.title-character{width:80%;height:40%;right:10%;bottom:20%}.title-character>img{width:100%;height:100%}.title-controls{left:0;bottom:max(5%,env(safe-area-inset-bottom));width:100%;align-items:center;gap:8px}.press-start{font-size:17px;min-height:58px;padding:14px 27px}.press-start span{margin-left:16px;font-size:13px}.replay-opening{font-size:10px}.title-landscape span{height:45vh;bottom:-12vh}.title-landscape span:nth-child(2){bottom:-12vh}.menu-screen{position:relative;display:block;padding:24px 20px;border-radius:24px;min-height:0}.menu-heading h1{font-size:37px;margin:8px 0}.menu-heading{padding-right:78px}.menu-heading p{font-size:12px;margin-bottom:22px}.menu-guide{position:absolute;right:15px;top:16px;height:106px;width:76px;pointer-events:none}.menu-guide img{height:106px;width:76px}.menu-guide p{display:none}.menu-choices{gap:11px}.menu-choices>a{padding:12px 16px;font-size:14px;min-height:52px}.menu-heading .eyebrow{font-size:9px}.menu-choices>button{margin:0}.menu-screen+.try-design{padding-top:30px}}
@media(max-height:550px) and (min-width:541px){.title-copy{top:16%}.title-copy h1{font-size:60px;margin:10px 0}.title-controls{bottom:6%;gap:0}.press-start{min-height:48px;padding:10px 26px;font-size:16px}.title-character{height:80%;bottom:5%}.title-brand{top:18px;width:65px}.title-copy p{font-size:12px}}
@media(prefers-reduced-motion:reduce){.game-opening *{animation:none!important;transition:none!important}.game-opening.entering{animation:none!important}}
@media print{.game-opening{display:none!important}#game-shell{display:contents!important}}
.title-character>img{position:absolute;inset:0;width:100%;height:100%;max-height:100%;min-height:0;object-fit:contain}@media(max-width:540px){.title-character{height:36%;bottom:23%}}

.replay-opening{font-size:13px;padding:10px 8px;color:#624674}@media(max-width:540px){.replay-opening{font-size:12px}}body:has(#home:not([hidden])) .mobile-menu>summary{background:#ece5f4;color:#54317c;box-shadow:0 3px 0 #d7c8e7}

/* Rendered, beat-synchronised opening. Two compositions keep mobile text readable. */
.opening-film{background:#2b134c;isolation:isolate}
.opening-video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#2b134c}
.film-tools{position:absolute;z-index:5;left:max(22px,env(safe-area-inset-left));right:max(22px,env(safe-area-inset-right));bottom:max(28px,env(safe-area-inset-bottom));display:flex;align-items:center;justify-content:space-between;gap:12px}
.film-tools button,.resume-film{font:700 13px/1.3 inherit;font-family:inherit;letter-spacing:.07em;min-height:48px;border:1px solid #ffffff65;background:#241237dc;color:#fff;border-radius:999px;padding:12px 20px;cursor:pointer;backdrop-filter:blur(12px)}
.film-tools .skip-opening{position:static;inset:auto;transform:none;margin:0}
.film-tools button:hover,.resume-film:hover{background:#472484}
.film-tools button:focus-visible,.resume-film:focus-visible{outline:3px solid #d8f052;outline-offset:4px}
.resume-film{position:absolute;z-index:6;left:50%;top:50%;transform:translate(-50%,-50%);white-space:nowrap}
.playing .film-progress i{animation:none!important;transform-origin:left;transform:scaleX(0);width:100%;transition:transform .2s linear}
@media(max-width:600px){.film-tools{left:14px;right:14px;bottom:max(20px,env(safe-area-inset-bottom))}.film-tools button{font-size:11px;padding:10px 15px}}
@media(min-width:801px) and (min-height:551px){.title-copy{top:22%}.title-copy h1{font-size:clamp(50px,min(7.9vw,12vh),116px)}}

/* ImageGen title art: preserve its full silhouette and keep start controls clear. */
.title-copy{top:17%;left:6%;width:49%;text-align:center}
.title-copy .game-title-logo{margin:0;line-height:0;font-size:0;letter-spacing:0;text-shadow:none}
.game-title-logo img{display:block;width:100%;height:auto;max-height:48vh;object-fit:contain;filter:drop-shadow(0 10px 8px #60329725)}
.title-copy p{margin:4px 0;font-size:clamp(12px,1.3vw,18px)}
@media(min-width:541px){.title-controls{left:6%;width:49%;align-items:center;bottom:8%}}
@media(max-width:540px){.title-copy{top:10%;left:5%;width:90%}.game-title-logo img{max-height:29vh}.title-copy p{font-size:11px}.title-character{height:36%;bottom:23%}}
@media(max-height:550px) and (min-width:541px){.title-copy{top:10%}.game-title-logo img{max-height:48vh}.title-copy p{font-size:11px}.title-controls{bottom:3%;gap:0}}
