/* Today's set. Reuses the studio tokens, buttons, wordmarks and app panel from
   styles.css; game identity colors appear only on the set tiles and status marks. */
.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.today-page .header nav a[aria-current=page]{text-decoration:underline;text-decoration-thickness:2px}
.chute{--accent:var(--tile-coral);--accent-edge:var(--tile-coral-edge);--accent-text:var(--studio-focus)}
.paths{--accent:var(--tile-indigo);--accent-edge:var(--tile-indigo-edge);--accent-text:var(--studio-link-paths)}
.clips{--accent:var(--tile-teal);--accent-edge:var(--tile-teal-edge);--accent-text:var(--studio-link-clips)}
.button .button-label,.button .button-label span{font-size:inherit;font-weight:inherit;line-height:inherit}
/* Progress arrives after load: settle into it without animating the defaults away. */
.today:not([data-ready]) *{transition:none!important}

/* Hero: date, title and the set meter. */
.today-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(330px,430px);align-items:start;gap:64px;padding:28px 0 32px}
.today-intro .eyebrow{margin-bottom:12px}
.today-intro h1{font-size:clamp(50px,5.2vw,72px);margin-bottom:14px}
.today-lead{max-width:470px;margin:0;color:var(--muted);font:400 clamp(19px,1.8vw,22px)/1.5 Charis,Georgia,serif;letter-spacing:-.01em}
.today-progress{padding:28px 28px 22px;background:var(--raised);border:1px solid var(--line);border-radius:6px;transition:border-color .2s}
.today[data-state=complete] .today-progress{border-color:var(--ink)}
.set-tiles{display:flex;gap:22px;margin-bottom:22px}
/* One app icon per game, linking to it: greyed with an empty badge until played,
   then full color with a check (done) or half-circle (in progress) badge. */
.set-tile{position:relative;display:flex;flex-direction:column;align-items:center;gap:9px;width:64px;text-decoration:none;color:inherit;border-radius:14px}
.set-icon{display:block;border-radius:13px;transition:transform .15s}
.set-tile img{display:block;width:56px;height:56px;border-radius:13px;filter:grayscale(1);opacity:.45;transition:filter .2s,opacity .2s}
.set-tile[data-state=progress] img,.set-tile[data-state=done] img,.set-tile:hover img,.set-tile:focus-visible img{filter:none;opacity:1}
.set-tile[data-state=unavailable] img{opacity:.2}
.set-tile:hover .set-icon{transform:translateY(-2px)}
.set-tile:focus-visible{outline:none}
.set-tile:focus-visible .set-icon{outline:3px solid var(--coral);outline-offset:3px}
.set-badge{position:absolute;top:38px;right:-1px;display:grid;place-items:center;box-sizing:border-box;width:24px;height:24px;border:2.5px solid var(--raised);border-radius:50%;background:var(--raised);box-shadow:inset 0 0 0 1.5px var(--muted)}
.set-badge svg{width:15px;height:15px;fill:none;stroke:var(--raised);stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;opacity:0}
.set-tile[data-state=unavailable] .set-badge{display:none}
.set-tile[data-state=done] .set-badge{background:var(--ink);box-shadow:none}
.set-tile[data-state=done] .set-badge svg{opacity:1}
.set-tile[data-state=progress] .set-badge{background:linear-gradient(90deg,var(--accent) 50%,var(--raised) 50%);box-shadow:inset 0 0 0 1.5px var(--accent)}
.set-tile:hover .set-name{color:var(--ink);text-decoration:underline;text-underline-offset:3px}
.set-name{color:var(--muted);font-size:11px;font-weight:700;line-height:1;white-space:nowrap}
.set-tile[data-state=done] .set-name{color:var(--accent-text)}
.today[data-state=complete] .set-tile{animation:tile-hop .5s cubic-bezier(.3,.7,.4,1.3) both}
.today[data-state=complete] .set-tile:nth-child(2){animation-delay:.09s}
.today[data-state=complete] .set-tile:nth-child(3){animation-delay:.18s}
@keyframes tile-hop{0%{transform:translateY(0)}45%{transform:translateY(-9px)}100%{transform:translateY(0)}}
.today-title{margin:0 0 4px;font:400 31px/1.15 Charis,Georgia,serif;letter-spacing:-.035em}
.today-note{margin:0 0 20px;color:var(--muted);font-size:14px}
.today-next{width:100%;gap:16px}
.today-next[hidden]{display:none}
.today-apps-link{margin:-4px 0 0}
.today-apps-link a{display:inline-flex;align-items:center;gap:10px;min-height:44px;font-size:14px;font-weight:600}
.today-countdown{margin:14px 0 0;color:var(--muted);font-size:13px;font-variant-numeric:tabular-nums}
[data-today-progress][aria-busy=true] .today-summary{opacity:.75}

/* Game cards: the homepage card shell, with today's boards and status. */
.today-games-section{padding:36px 0 52px;border-top:1px solid var(--line)}
.today-games{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin:0;padding:0;list-style:none}
.today-game{position:relative;display:flex;flex-direction:column;min-width:0;padding:22px;background:var(--raised);border:1px solid var(--line);border-radius:6px;transition:border-color .15s,transform .15s}
.today-game:hover{border-color:var(--ink);transform:translateY(-2px)}
.today-game-top{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.today-game-top img{flex:none;width:44px;height:44px;border-radius:9px}
.today-game h3{margin:0;font:900 26px/1.1 Archivo,Arial,sans-serif;letter-spacing:-.055em}
.today-drop{margin:4px 0 0;color:var(--muted);font-size:12px;font-weight:600;line-height:1.3;font-variant-numeric:tabular-nums}
.today-game-description{margin:0 0 16px;color:var(--muted);font-size:14px;line-height:1.65}
.today-boards{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 20px;padding:0;list-style:none}
.today-boards li{display:inline-flex;align-items:center;gap:6px;min-height:30px;padding:3px 11px;border:1px solid var(--line);border-radius:999px;color:var(--muted);font-size:13px;font-weight:600;line-height:1.3;font-variant-numeric:tabular-nums}
.today-boards li::before{content:'';flex:none;width:7px;height:7px;border:1.5px solid var(--line);border-radius:50%}
.today-boards li[data-state=progress]{border-color:var(--accent);border-style:dashed;color:var(--ink)}
.today-boards li[data-state=progress]::before{border-color:var(--accent);background:linear-gradient(90deg,var(--accent) 50%,transparent 50%)}
.today-boards li[data-state=solved]{border-color:var(--accent);color:var(--ink)}
.today-boards li[data-state=solved]::before,.today-boards li[data-state=shown]::before{content:'✓';width:auto;height:auto;border:0;border-radius:0;font-size:13px;line-height:1}
.today-boards li[data-state=solved]::before{color:var(--accent-text)}
.today-boards li[data-state=shown]::before{color:var(--muted)}
.today-game-foot{display:grid;gap:14px;margin-top:auto}
.today-status{display:flex;align-items:center;gap:9px;margin:0;color:var(--muted);font-size:14px;font-weight:700;line-height:1.4}
.status-icon{flex:none;width:20px;height:20px}
.status-ring{fill:none;stroke:var(--line);stroke-width:1.6}
.status-half{fill:var(--accent);opacity:0}
.status-check{fill:none;stroke:#f8f3ea;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;opacity:0}
.today-game[data-state=progress] .today-status{color:var(--ink)}
.today-game[data-state=progress] .status-ring{stroke:var(--accent)}
.today-game[data-state=progress] .status-half{opacity:1}
.today-game[data-state=done] .today-status{color:var(--accent-text)}
.today-game[data-state=done] .status-ring{fill:var(--accent);stroke:var(--accent)}
.today-game[data-state=done] .status-check{opacity:1}
.today-play{width:100%;gap:12px}
/* One link per card; it covers the whole card so any tap opens the game. */
.today-play::after{content:'';position:absolute;inset:0;border-radius:6px}
.today-play:focus-visible{outline:none}
.today-play:focus-visible::after{outline:3px solid var(--coral);outline-offset:3px}
.today-game:hover .today-play{transform:none}
.today-game[data-state=done] .today-play,.today-game[data-state=unavailable] .today-play{background:transparent;color:var(--ink)}
.today-game[data-state=done]:hover .today-play,.today-game[data-state=unavailable]:hover .today-play{background:var(--deep)}
.today-fineprint{margin:18px 0 0;color:var(--muted);font-size:12px;line-height:1.6}
.today-apps{padding-top:52px}

@media(max-width:1050px){.today-hero{gap:40px}.today-games{gap:14px}.today-game{padding:20px 18px}.today-game h3{font-size:23px}}
@media(max-width:900px){
  .today-hero{grid-template-columns:1fr;gap:22px;padding:24px 0 28px}
  .today-intro h1{font-size:clamp(44px,8vw,60px);margin-bottom:10px}
  .today-progress{max-width:560px}
  .today-games{grid-template-columns:1fr;gap:12px}
  .today-game{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"top top" "desc desc" "boards boards" "status action";column-gap:16px;padding:18px 18px 16px}
  .today-game-top{grid-area:top;margin-bottom:10px}
  .today-game-description{grid-area:desc;margin-bottom:12px}
  .today-boards{grid-area:boards;margin-bottom:14px}
  .today-game-foot{display:contents}
  .today-status{grid-area:status}
  .today-play{grid-area:action;width:auto;min-width:136px;min-height:46px;padding-block:10px}
}
@media(max-width:560px){
  .today-hero{padding:18px 0 22px;gap:18px}
  .today-intro .eyebrow{margin-bottom:8px}
  .today-intro h1{font-size:clamp(40px,11vw,50px);margin-bottom:8px}
  .today-lead{font-size:16px;line-height:1.5}
  .today-progress{padding:18px 18px 16px}
  .set-tiles{gap:18px;margin-bottom:16px}
  .set-tile img{width:50px;height:50px;border-radius:12px}
  .set-badge{top:32px}
  .today-title{font-size:25px}
  .today-note{margin-bottom:16px}
  .today-games-section{padding:24px 0 38px}
  .today-game-top img{width:40px;height:40px}
  .today-game h3{font-size:22px}
  .today-game-description{font-size:14px}
  .today-play{min-width:104px;padding-inline:18px;justify-content:center}
  .today-play>span[aria-hidden]{display:none}
  .today-status{font-size:13px}
  .today-apps{padding-top:38px}
}
@media(max-width:360px){.today-game{grid-template-areas:"top top" "desc desc" "boards boards" "status status" "action action"}.today-play{width:100%;margin-top:12px}}
@media(prefers-reduced-motion:reduce){.today[data-state=complete] .set-tile{animation:none}.today-game,.today-progress,.set-tile img{transition:none}.today-game:hover{transform:none}.set-icon{transition:none}.set-tile:hover .set-icon{transform:none}}
