:root{--bg:#faf8f4;--ink:#24332f;--orange:#ed6b12}
body{background:var(--bg)}
button,a,input{outline-offset:5px}
button:focus-visible,a:focus-visible{outline:3px solid #347d70}
#web-sidebar{display:none}
.web-caption{font-size:12px;font-weight:800;letter-spacing:2px;color:#9b5328}
.web-welcome{display:grid;gap:28px;align-items:center;padding:30px 0}
.web-welcome h1{font-size:clamp(32px,4vw,54px);line-height:1.1;letter-spacing:-1.6px;margin:18px 0}
.web-welcome .lead{max-width:490px;line-height:1.7;margin-bottom:24px}
.web-welcome img{width:min(100%,300px);justify-self:center;filter:drop-shadow(0 22px 26px #b5713722)}
.web-welcome .btn{padding-inline:28px;margin-bottom:18px}
.web-welcome .link{display:block;margin-bottom:18px}
.web-feature-grid{display:grid;gap:16px}
.web-feature-grid .card{display:grid;gap:14px;border:1px solid #e9e5de;box-shadow:0 4px 14px #46382a04}
.web-feature-grid .ic{color:var(--orange)}
.web-local-note{padding:12px 16px;border:1px solid #e2e7df;border-radius:12px;background:#f0f5ee;color:#52614f;font-size:13px}
.hero-card{border:1px solid #f2d5bb;min-height:230px;background:linear-gradient(115deg,#fff0dd,#ffead6);padding:32px}
.hero-card h2{font-size:30px;max-width:65%}
.hero-card .art{width:160px}
.card,.tile{border:1px solid #e8e4dc}
.tile:hover{border-color:#d4a47c;background:#fffcf7}
.btn{box-shadow:0 3px 0 #b64a0c;transition:transform .15s,background .15s}
.btn.soft,.btn.ghost{box-shadow:none}
.btn:hover{filter:brightness(.97)}
.btn:active{transform:translateY(2px)}
.game{max-width:800px;margin:auto}
.ghead{gap:12px}.gt{flex:1}
.intro{max-width:500px!important;width:100%}
.rules{text-align:left;line-height:1.6}
#webPause{color:#876248;font-size:23px}
@media(min-width:900px){
 #web-sidebar{display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0;width:240px;background:#fffefa;border-right:1px solid #e9e5dc;padding:38px 26px;gap:12px}
 #web-sidebar>img{width:185px;margin-bottom:8px}
 .web-tag{font-size:10px;letter-spacing:2px;color:#956d4b}
 #web-sidebar>p{font-size:21px;font-weight:600;line-height:1.5;margin:34px 0}
 #web-sidebar>a{padding:15px;border-radius:12px;text-decoration:none;color:#58615a;font-weight:600}
 #web-sidebar>a:hover{background:#fff0dd;color:#a44b0b}
 .sidebar-bottom{margin-top:auto;font-size:13px;color:#635e54;line-height:1.7}.sidebar-bottom small{font-size:12px}
 body{padding-left:240px}
 #view{max-width:1120px;padding:32px 48px 64px;gap:24px}
 #view.noTab{max-width:1120px}
 #view.full{max-width:800px;padding:24px 36px}
 #tabbar{display:none!important}
 .topbar{padding-bottom:22px;border-bottom:1px solid #e8e4dc}.topbar .logo{height:34px}
 .web-welcome{grid-template-columns:1.4fr 1fr;padding:48px 0}
 .web-feature-grid,.games{grid-template-columns:repeat(3,minmax(0,1fr))}
 .games .tile{flex-wrap:wrap;align-content:start;min-height:190px;padding:24px;gap:18px}.games .tile .tx{flex-basis:65%}.games .tile .tx b{font-size:19px}.games .tile .go{margin-left:auto}
 .home-heading h1{font-size:40px}.hello{max-width:500px}
 .game{min-height:calc(100vh - 48px);border:1px solid #e5dfd4;border-radius:24px;overflow:hidden;background:#fffdf9;box-shadow:0 14px 45px #4d34110a}
 .ghead{padding:24px 28px}.gbody{padding:30px}.gprog{padding-inline:28px}
 .grid9{width:330px;max-width:100%}.pad{max-width:330px;max-height:330px}
 #cf{max-width:600px}.result{max-width:600px;width:100%;margin:auto}
 #overlay{align-items:center;padding:24px}#overlay .sheet{border-radius:24px;max-height:90vh;overflow:auto}
}
@media(max-width:600px){.web-welcome img{grid-row:1;width:170px}.web-welcome{padding:8px 0;gap:8px}.web-welcome h1{font-size:34px}.web-feature-grid{grid-template-columns:1fr}.hero-card{padding:24px}.hero-card h2{font-size:25px}}

/* Spacious browser game workspace */
.game{width:100%}
.web-game-intro{max-width:none!important;display:grid;gap:32px;text-align:left}
.game-overview{padding:28px;border-radius:24px;background:linear-gradient(145deg,#fff0df,#f7f0e6);display:flex;flex-direction:column;align-items:flex-start}
.overview-tag{font-size:11px;letter-spacing:1.6px;text-transform:uppercase;font-weight:800;color:#9a4d22}
.game-overview h1{font-size:clamp(32px,3vw,48px);letter-spacing:-1.8px;line-height:1.12;margin:18px 0 12px}
.overview-skill{font-size:17px;color:#6f695e;margin:0;line-height:1.5}
.game-preview{width:100%;min-height:230px;display:grid;place-items:center;padding:28px 10px}
.preview-lights{width:210px;display:grid;grid-template-columns:repeat(3,1fr);gap:10px;transform:rotate(-6deg)}
.preview-lights span{aspect-ratio:1;border-radius:14px;background:#fffdf9;border:1px solid #eadbca;box-shadow:0 5px 0 #dfcdb9;display:grid;place-items:center;font-weight:800;color:white;font-size:22px}
.preview-lights span.lit{background:#ed771f;border-color:#d86416;box-shadow:0 5px 0 #bc5312}
.preview-directions{display:flex;gap:12px;transform:rotate(-6deg)}
.preview-directions span{width:70px;height:85px;background:white;border-radius:18px;box-shadow:0 6px 0 #e1cdb7;display:grid;place-items:center}
.preview-directions svg{width:42px;fill:#d46621}
.preview-cues{display:flex;align-items:center;gap:22px}.preview-cues img{width:100px;filter:drop-shadow(0 10px 8px #ab76291c)}
.preview-caption{align-self:center;font-size:12px;color:#786b5d;text-align:center}
.overview-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:28px}.overview-chips span{border:1px solid #e3d4c3;padding:8px 11px;border-radius:30px;color:#796348;font-size:11px;background:#fff9f1}
.game-instructions{display:flex;flex-direction:column;justify-content:center;gap:18px;padding:12px 4px}
.game-instructions h2{font-size:28px;letter-spacing:-.8px;margin:0 0 4px}
.web-game-intro .rules{background:transparent;padding:0;gap:0}
.web-game-intro .rules>div{padding:18px 0;border-bottom:1px solid #eee7de;align-items:flex-start;font-size:15px;line-height:1.6;font-weight:400}
.web-game-intro .rules i{display:grid;place-items:center;background:#fff0df;border-radius:10px;width:32px;height:32px;flex-shrink:0;font-size:13px}
.web-game-intro .hint{font-size:13px;text-align:left;color:#6d766e;margin:0;line-height:1.6}
.input-note{text-align:center;font-size:11px;color:#8b8d85;margin:0}
@media(min-width:900px){
 #view.full{max-width:1320px;padding:36px 44px}
 .game{max-width:none;min-height:calc(100vh - 72px);margin:0}
 .ghead{padding:22px 32px}.ghead .gt b{font-size:19px}
 .gprog{padding-inline:32px}.gbody{padding:32px;min-height:510px}
 .web-game-intro{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:clamp(24px,4vw,64px);align-items:stretch}
 .game-overview{padding:36px}.game-instructions{padding:20px 4px}
 .grid9{width:360px}.arrowbox{width:240px}
}
@media(max-width:899px){
 .web-game-intro{gap:20px}.game-overview{padding:24px}.game-preview{min-height:150px;padding:20px 0}.preview-lights{width:145px;gap:7px}.overview-chips{margin-top:18px}.game-instructions{padding:8px 0}.game-overview h1{font-size:32px}
}
.game-instructions h2{text-align:left}
