*{box-sizing:border-box}body{margin:0;background:#ffe600;color:#25252a;font:16px 'DM Sans',Arial,sans-serif}a{color:inherit}header{padding:22px 5vw;display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}.brand{font:28px 'Barlow',sans-serif;text-decoration:none}nav{display:flex;gap:14px;flex-wrap:wrap}nav a{background:#0054aa;color:#fff;padding:13px 16px;border:4px solid #fff4d6;text-decoration:none;font-weight:900;box-shadow:3px 4px #b9a581}nav a[aria-current]{border-bottom-color:#ed605a}main{max-width:1100px;margin:30px auto;padding:0 24px 60px}h1{font:400 clamp(42px,7vw,80px)/1 'Barlow',sans-serif;margin:20px 0}h2{font:400 32px 'Barlow',sans-serif}button{font:700 15px inherit;cursor:pointer;border:0;background:#0054aa;color:white;padding:13px 18px;min-height:44px}button:disabled{opacity:.5}input,textarea,select{font:inherit;padding:14px;border:2px solid #0054aa;background:#fff9df;color:#25252a;max-width:100%}textarea{width:100%;min-height:190px;resize:vertical}label{display:block;margin:15px 0 8px}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,canvas:focus-visible{outline:3px solid #ed605a;outline-offset:4px}.panel{background:#fff6d9;padding:24px}.muted{font-size:13px;line-height:1.7}.actions{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}.game-layout{display:grid;grid-template-columns:minmax(260px,340px) 1fr;gap:35px;align-items:start}canvas#board{display:block;width:100%;background:#082a45;border:6px solid #fff6d9;touch-action:manipulation}.cash{font:45px 'Barlow',sans-serif;color:#0054aa;margin:10px 0}.controls{display:grid;grid-template-columns:repeat(5,1fr);gap:5px;margin-top:12px}.controls button{padding:12px 5px;font-size:20px}.piece-list{display:flex;gap:8px;flex-wrap:wrap}.piece-list span{padding:7px;border-left:6px solid var(--color);background:#fff9df;font-size:13px}#next{max-width:180px}#status{min-height:25px;font-weight:700}#cloud{width:100%;display:block;background:#fff9df;min-height:350px}#word-list{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}#word-list span{background:#fff6d9;padding:5px 9px;font-size:13px}.form-row{display:flex;align-items:end;gap:20px;flex-wrap:wrap}.form-row input{width:90px}.research-link{display:block;margin-top:30px}.legend{font-size:12px;line-height:1.7}@media(max-width:650px){header{padding:18px}nav{gap:8px}nav a{font-size:12px;padding:10px 7px;border-width:3px}.game-layout{grid-template-columns:1fr}.game-layout>div:first-child{max-width:320px;margin:auto;width:100%}main{padding:0 18px 40px}.cash{font-size:37px}}
.comparison{background:#0054aa;color:white;padding:30px}.comparison h2{margin:10px 0 30px}.compare-inner{display:grid;grid-template-columns:1fr 1fr;gap:35px}.comparison input,.comparison select{width:100%}.amount{font:42px Barlow,sans-serif;margin:18px 0}.foot{font-size:12px;line-height:1.7;margin-top:30px}@media(max-width:650px){.compare-inner{grid-template-columns:1fr}}

h1,h2,h3,.brand,.cash,.amount{font-family:Barlow,Arial,sans-serif;font-weight:900}
@font-face{font-family:Barlow;src:url(assets/fonts/Barlow-Black.ttf) format("truetype");font-weight:900;font-display:swap}@font-face{font-family:Barlow;src:url(assets/fonts/Barlow-Regular.ttf) format("truetype");font-weight:400;font-display:swap}
.embedded body{background:#fff6d9}.embedded header{display:none}.embedded main{margin:0;padding:14px}.embedded main>h1,.embedded main>p:first-child{display:none}.embedded .comparison{padding:15px}.embedded .game-layout{grid-template-columns:210px 1fr;gap:18px}.embedded canvas#board{width:210px;height:420px}.embedded .panel{padding:10px}.embedded .cash{font-size:30px}.embedded .muted,.embedded .legend,.embedded .research-link{display:none}.embedded .game-layout h2{font-size:22px;margin:10px 0}.embedded #next{height:70px;width:105px}.embedded .actions{margin:10px 0}.embedded textarea{min-height:100px}.embedded #cloud{min-height:220px}.embedded main>p{font-size:13px}.embedded .form-row{gap:10px}.embedded label{font-size:13px;margin-top:8px}.embedded input,.embedded textarea{padding:9px}@media(max-width:550px){.embedded .game-layout{grid-template-columns:170px 1fr;gap:8px}.embedded canvas#board{width:170px;height:340px}.embedded .panel{padding:6px}.embedded .cash{font-size:23px}.embedded .actions{gap:5px}.embedded button{font-size:12px;padding:10px 8px}.embedded .game-layout h2{font-size:16px}.embedded .controls button{font-size:18px;padding:8px 2px}.embedded #next-name{font-size:12px}.embedded #status{font-size:12px}}
.embedded .game-layout{grid-template-columns:minmax(130px,calc((100vh - 100px)/2)) 1fr}.embedded canvas#board{width:100%;height:auto;max-height:calc(100vh - 100px)}.embedded .controls button{min-height:36px;padding:7px 3px}.embedded .game-layout .panel{overflow:hidden}

/* Keep the full game and touch controls inside a street-scene frame. */
.embedded main.nertris-main{padding:12px}
.embedded .game-layout{grid-template-columns:minmax(0,min(42%,calc((100dvh - 92px)/2))) minmax(0,1fr);grid-template-rows:auto 44px;gap:10px 14px}
.embedded .game-layout>div:first-child{display:contents}
.embedded canvas#board{grid-column:1;grid-row:1;width:100%;height:auto;max-height:none;aspect-ratio:1/2;border-width:3px}
.embedded .controls{grid-column:1/-1;grid-row:2;margin:0;height:44px}
.embedded .controls button{min-height:44px;padding:6px}
.embedded .game-layout>.panel{grid-column:2;grid-row:1;max-height:calc(100dvh - 92px);overflow:auto}
.embedded .game-layout .panel>p{margin:8px 0}
.embedded .game-layout .actions{margin:8px 0}
.embedded .game-layout .score-note{display:block;font-size:11px;line-height:1.3;margin:8px 0}
.embedded .game-layout .panel>div:first-child{font-size:13px}
.embedded .game-layout .cash{margin:5px 0}
.embedded .game-layout #next-name{margin:4px 0;font-size:12px}
.embedded .game-layout h2{margin:6px 0}
