/* Printed-atlas shell. Intentionally scoped away from the game/map surface. */
@font-face{font-family:Public Sans;src:url('./fonts/public-sans.ttf') format('truetype');font-weight:100 900;font-display:swap}
:is(.header,.topbar,#home-screen,#home,.play-panel,.sidebar,.footer,body>footer){font-family:'Public Sans',sans-serif;color:#292e29}
:is(.header,.topbar){background:#f6f0df;border-bottom:1px solid #9b9a85;min-height:86px;height:auto;padding:20px clamp(18px,4vw,60px);gap:24px}
:is(.header,.topbar) .brand{font-family:'Public Sans',sans-serif;font-size:32px;letter-spacing:-.04em;font-weight:750;color:#283e32}
:is(.header,.topbar) .brand span{color:#a14936}
.topbar .brand-mark{display:none}
.header .header-actions .quiet{background:transparent;border:0;border-radius:0;box-shadow:none;padding:10px 0;min-height:44px;text-decoration:none}
#home-screen .area-card::after{display:none}
:is(.header-actions,.topbar nav){display:flex;align-items:center;gap:24px;margin-left:auto}
:is(.header-actions,.topbar nav) :is(a,button){font-family:inherit;background:transparent;border:0;border-radius:0;box-shadow:none;padding:10px 0;min-height:44px;color:#404539;font-size:13px;font-weight:550;text-decoration:none;white-space:nowrap}
:is(.header-actions,.topbar nav) :is(a,button):hover{color:#9b3e2d;text-decoration:underline;text-underline-offset:6px}
:is(#home-screen,#home){padding:42px clamp(18px,4vw,60px) 64px;background:#f6f0df;max-width:1480px;margin:auto}
.home-inner{max-width:none}
.home-head{display:flex;align-items:baseline;justify-content:space-between;gap:24px;margin:0 0 32px;padding-bottom:20px;border-bottom:1px solid #9b9a85}
:is(#home-screen,#home) h1{margin:0;color:#292e29;font-size:clamp(32px,4vw,48px);font-weight:550;line-height:1.1;letter-spacing:-.035em}
:is(#home-screen,#home) .home-tabs{display:flex;justify-content:flex-start;background:none;border:0;border-radius:0;box-shadow:none;padding:0;margin:0;gap:28px;width:auto}
:is(#home-screen,#home) .home-tabs button{font:600 15px 'Public Sans',sans-serif;min-width:0;min-height:44px;padding:10px 0;border:0;border-bottom:2px solid transparent;border-radius:0;background:none;box-shadow:none;color:#5b6052}
:is(#home-screen,#home) .home-tabs button[aria-pressed=true]{background:none;box-shadow:none;color:#a14936;border-bottom-color:#a14936}
:is(#home-screen,#home) .area-grid{gap:36px 28px;grid-template-columns:repeat(3,minmax(0,1fr))}
:is(#home-screen,#home) .area-card{display:grid;grid-template-rows:auto 190px auto;min-height:0;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible;position:relative}
:is(#home-screen,#home) .area-card h2{grid-row:1;position:static;transform:none;max-width:none;align-self:start;margin:0;padding:0 0 12px;background:none;color:#292e29;border-radius:0;box-shadow:none;text-align:left;font-size:20px;font-weight:550;line-height:1.25;white-space:normal;letter-spacing:-.025em}
:is(#home-screen,#home) :is(.area-map,.card-map){grid-row:2;position:relative;inset:auto;width:100%;height:190px;padding:12px 20px;opacity:1;background-color:#b3d3d0;border:1px solid #9ba99b}
#home-screen[data-group=learn] .area-card{background:transparent}
#home-screen[data-group=learn] .area-map{opacity:1}
:is(#home-screen,#home) :is(.home-modes,.card-modes){grid-row:3;position:static;margin:10px 0 0;display:grid;gap:0}
:is(#home-screen,#home) :is(.home-mode,.card-modes button){font-family:inherit;min-height:44px;border:0;border-bottom:1px solid #c8c4b0;border-radius:0;box-shadow:none;background:transparent;padding:11px 0;color:#303d32;font-size:13px;transform:none;justify-content:space-between}
#home-screen .home-mode::before{display:none}
:is(#home-screen,#home) :is(.home-mode,.card-modes button):hover{background:#eae7d7;color:#923d2e;transform:none}
:is(#home-screen,#home) :is(.home-mode span,.card-modes button){font-weight:500;text-align:left}
:is(#home-screen,#home) :is(.home-mode strong,.card-modes strong){font-size:14px;font-weight:650;font-variant-numeric:tabular-nums;color:#365c42}
#home .card-content{display:contents}
#home .card-content h2{padding-right:86px}
#home .card-content small{position:absolute;right:0;top:4px;padding:0;margin:0;background:none;font-size:11px;color:#5b6052;border-radius:0}
:is(.play-panel,.sidebar){background:#f6f0df;border-right:1px solid #aaa68f}
:is(.play-panel,.sidebar) :is(button,input,select){font-family:inherit}
:is(.play-panel,.sidebar) label:not(.mode){font-size:12px;font-weight:650;letter-spacing:.035em}
:is(.play-panel,.sidebar) select{background:#faf7ed;border:1px solid #b3b09c;border-radius:0;box-shadow:none;font-size:15px;color:#292e29;padding:12px 10px}
:is(.play-panel,.sidebar) :is(.mode-groups,.group-tabs){background:none;padding:0;border-radius:0;border-bottom:1px solid #bab6a1;gap:22px}
:is(.play-panel,.sidebar) :is(.mode-groups,.group-tabs) button{background:none;border:0;border-bottom:2px solid transparent;border-radius:0;box-shadow:none;padding:12px 0;font-size:15px;font-weight:600;color:#5b6052;flex:initial}
:is(.play-panel,.sidebar) :is(.mode-groups,.group-tabs) button[aria-pressed=true]{color:#a14936;border-bottom-color:#a14936;background:none;box-shadow:none}
.play-panel .mode,.sidebar .mode-list button{border:0;border-bottom:1px solid #d7d0bb;border-radius:0;padding:13px 6px;margin:0;background:transparent;box-shadow:none;min-height:46px}
.play-panel .mode:has(input:checked),.sidebar .mode-list button.active{background:#e8e7d6;color:#283e32;border-color:#d7d0bb}
.play-panel .mode:hover,.sidebar .mode-list button:hover{background:#efebdc}
.play-panel .mode strong,.sidebar .mode-list button{font-size:14px;font-weight:550}
.play-panel .mode input{accent-color:#46614b}
:is(.play-panel,.sidebar) :is(.restart,.text-button,#sound){border-radius:0;box-shadow:none;font-size:13px}
.play-panel .restart{background:#faf7ed;border:1px solid #b3b09c}
:is(.play-panel,.sidebar) :is(.best,.mode-score,.mode-list strong){font-variant-numeric:tabular-nums}
:is(.footer,body>footer){background:#f6f0df;border-top:1px solid #c8c4b0;color:#5b6052;font-size:11px;padding:18px clamp(18px,4vw,60px)}
:is(.header,.topbar,#home-screen,#home,.play-panel,.sidebar) ::selection{background:#dfd6b7;color:#292e29}
:is(.header,.topbar,#home-screen,#home,.play-panel,.sidebar) :is(button,a,input,select):focus-visible{outline:2px solid #9b3e2d;outline-offset:3px}
@media(max-width:900px){:is(#home-screen,#home) .area-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){:is(.header,.topbar){min-height:72px;padding:12px 18px;gap:12px}:is(.header,.topbar) .brand{font-size:28px}:is(.header-actions,.topbar nav){gap:14px}:is(.header-actions,.topbar nav) :is(a,button){font-size:12px}:is(#home-screen,#home){padding:28px 18px 40px}.home-head{flex-direction:row;align-items:baseline;gap:12px;margin-bottom:26px;padding-bottom:16px}:is(#home-screen,#home) .home-tabs{gap:18px}:is(#home-screen,#home) .home-tabs button{font-size:14px}.sidebar{border-right:0}.play-panel .mode strong{font-size:13px}}
@media(max-width:480px){:is(#home-screen,#home) .area-grid{grid-template-columns:1fr;gap:30px}:is(#home-screen,#home) .area-card:first-child{grid-column:auto}:is(#home-screen,#home) h1{font-size:30px}.header .brand svg{display:none}:is(.header-actions,.topbar nav){gap:12px}}
