/* Home and All games: the Daily first, then one coloured tile per game. */
body.home-page{--paper:#f3f2ec;--surface:#fbfaf6;--ink:#111511;--muted:#545d56;--rule:#d9d8cf;--soft:#e8e7e0;--brand:#0b7a3e;--display:"Barlow Condensed","Arial Narrow",Arial,sans-serif;--text:Barlow,Arial,Helvetica,sans-serif;margin:0;background:var(--paper);color:var(--ink);font:16px/1.5 var(--text);color-scheme:light}
html[data-appearance=dark] body.home-page{--paper:#0e110f;--surface:#171c18;--ink:#eef1ec;--muted:#a9b2aa;--rule:#2e3730;--soft:#1b211c;--brand:#0f8a49;color-scheme:dark}
html:has(body.home-page){background:var(--paper)}
.home-page *{box-sizing:border-box;min-width:0}
.home-page [hidden]{display:none!important}
.home-page a{color:inherit;text-decoration:none}
.home-page :is(a,button):focus-visible{outline:3px solid #4379cd;outline-offset:3px}
.home-page .skip{position:absolute;left:-9999px}
.home-page .skip:focus{left:8px;top:8px;z-index:50;background:var(--ink);color:var(--paper);padding:10px 14px;border-radius:10px}
.home-page h1,.home-page h2,.home-page h3{font-family:var(--display);font-weight:800;letter-spacing:-.2px;line-height:1.02;margin:0}
.home-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}

.home-page .site-bar{position:sticky;top:0;z-index:10;display:flex;align-items:center;gap:12px;padding:12px max(16px,calc((100% - 1100px)/2));background:var(--paper);border-bottom:1px solid var(--rule)}
.home-page .wordmark{font:800 30px/1 var(--display);letter-spacing:-.5px;white-space:nowrap}
.home-page .wordmark span{color:var(--brand);letter-spacing:1.5px;margin:0 1px}
html[data-appearance=dark] .home-page .wordmark span{color:#35c374}
.home-page .site-bar nav{display:flex;gap:10px;margin-left:auto}
.home-page .site-bar nav a{min-height:44px;display:flex;align-items:center;padding:0 6px;font-weight:600}
.home-page .site-bar nav a[aria-current]{text-decoration:underline;text-underline-offset:6px}
.home-page main{max-width:1100px;margin:0 auto;padding:20px max(16px,4vw) 0}
@media(min-width:1180px){.home-page main{padding-left:0;padding-right:0}}

/* Today's Daily */
.daily{background:var(--brand);color:#fff;border-radius:24px;padding:22px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"date date" "title title" "squares button" "note note";gap:4px 24px;align-items:center}
.daily-date{grid-area:date;margin:0;font-weight:600;display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px}
.daily-date>span:first-child{opacity:.9}
.daily .streak{background:#ffffff2e;border-radius:99px;padding:3px 10px;font:700 14px/1.2 var(--text);white-space:nowrap}
.daily h2{grid-area:title;font-size:clamp(40px,6vw,60px);margin:0 0 14px}
.daily-squares{grid-area:squares;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;max-width:600px}
.daily-squares .slot{display:flex;flex-direction:column;gap:6px;align-items:stretch}
.daily-squares .slot small{font:600 13px/1.2 var(--text);opacity:.9;text-align:center}
.daily-squares .sq{aspect-ratio:1;max-height:84px;border-radius:12px;border:2px solid #ffffff59;display:grid;place-items:center;color:#fff;font:800 22px var(--display)}
.daily-squares .sq svg{width:26px;height:26px;fill:#fff}
.daily-squares .sq.done{border-color:#ffffffd9;background:var(--c,#ffffff33)}
.daily-squares .sq.next{border-color:#fff;border-width:3px}
.daily-button{grid-area:button;display:inline-flex;align-items:center;justify-content:center;min-height:56px;padding:0 26px;border-radius:14px;background:#fff;color:#111511!important;font:700 18px/1.2 var(--text);white-space:nowrap}
.daily-button:hover{background:#eef1ec}
.daily-note{grid-area:note;margin:12px 0 0;font-weight:600;opacity:.92}
@media(max-width:700px){.daily{grid-template-columns:minmax(0,1fr);grid-template-areas:"date" "title" "squares" "button" "note";padding:18px;border-radius:22px}
.daily h2{margin-bottom:10px}
.daily-squares{max-width:none;margin-bottom:14px;gap:8px}
.daily-squares .slot small{display:none}
.daily-button{width:100%}
}

/* Game tiles */
.home-games{padding:30px 0 10px}
.home-section-heading{display:flex;justify-content:space-between;align-items:baseline;margin:0 0 12px}
.home-section-heading h2{font-size:32px}
.home-section-heading span{color:var(--muted);font-weight:600}
.home-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.home-page .tile{--c:#2b3430;position:relative;display:flex;flex-direction:column;justify-content:space-between;gap:22px;min-height:150px;padding:16px;border-radius:18px;background:var(--c);color:#fff;transition:transform .12s ease}
.home-page .tile:hover{transform:translateY(-2px)}
.home-page .tile-icon{width:34px;height:34px;fill:#fff}
.home-page .tile h3{font-size:27px;color:#fff}
.home-page .tile-hook{display:block;font-size:15px;opacity:.92;margin-top:4px}
.home-page .tile-status:empty{display:none}
.home-page .tile-status{position:absolute;top:14px;right:14px;background:#ffffffeb;color:#111511;border-radius:99px;padding:4px 10px;font:700 13px/1.2 var(--text)}
@media(max-width:900px){.home-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}
@media(max-width:700px){.home-page main{padding-top:14px}
.home-page .tile{min-height:128px;padding:13px;gap:14px;border-radius:16px}
.home-page .tile-icon{width:28px;height:28px}
.home-page .tile h3{font-size:22px}
.home-page .tile-hook{font-size:13.5px}
.home-page .tile-status{top:10px;right:10px;font-size:12px}
.home-page .wordmark{font-size:27px}
}

/* All games page: the same tiles as home, under a page title. */
.games-page h1{font-size:clamp(40px,6vw,56px)}
.games-lede{color:var(--muted);margin:6px 0 20px;font-size:17px}

.home-footer{display:flex;align-items:center;gap:22px;flex-wrap:wrap;margin-top:34px;padding:24px 0 36px;border-top:1px solid var(--rule)}
.home-footer .wordmark{font-size:26px;margin-right:auto}
.home-footer>a:not(.wordmark){min-height:44px;display:flex;align-items:center;font-weight:600}

@media(prefers-reduced-motion:reduce){.home-page *{transition:none!important}}

/* Theme switch in the footer: Auto, Light, Dark. */
.home-page .ui-appearance{display:flex;align-items:center;gap:6px}
.home-page .ui-appearance span{color:var(--muted);font-weight:600;margin-right:4px}
.home-page .ui-appearance button{min-height:40px;padding:0 14px;border:1px solid var(--rule);border-radius:99px;background:transparent;color:var(--ink);font:600 15px/1 var(--text);cursor:pointer}
.home-page .ui-appearance button[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:var(--paper)}
