/* Home: arranges the shared labels. The Today label is the signature surface. */
.block:first-of-type, main > .continue:not([hidden]) { margin-top: var(--s5); }
.continue[hidden] + .today { margin-top: var(--s5); }

.today-label { position: relative; display: grid; gap: var(--s3); padding: var(--s3); background: var(--label); border: var(--keyline); border-radius: var(--r);
  box-shadow: 6px 6px 0 var(--vermilion); }
.today-main { display: grid; grid-template-columns: 112px 1fr; gap: var(--s3); align-items: center; text-decoration: none; }
.today-mat { border: var(--keyline); border-radius: var(--r); }
.today-mat img { border-width: 2px; }
.today-text { display: grid; gap: 2px; }
.today-kicker { font: 800 var(--t-sm)/1.2 var(--ui); color: var(--ink-soft); }
.today-title { font: 400 var(--t-2xl)/1 var(--display); --twin: var(--turmeric); }
.today-gotd { display: grid; grid-template-columns: 48px 1fr; gap: var(--s3); align-items: center; padding-top: var(--s3); border-top: 2px dashed var(--ink); text-decoration: none; }
.today-gotd img { width: 48px; height: 48px; border: 2px solid var(--ink); border-radius: 2px; }
.today-gotd span { display: grid; line-height: 1.25; }
.today-gotd .muted { font-size: var(--t-xs); font-weight: 600; }
.today-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }
.today-streak { font-weight: 800; }
.today-foot .btn { flex: 1 1 auto; max-width: 260px; }
.today-mat { position: relative; }
.today-stamp { position: absolute; right: 6px; top: 6px; }
.today-stamp[hidden] { display: none; }

.colls { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .colls { grid-template-columns: repeat(2, 1fr); } }

.coll { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: var(--s3); align-items: center; padding: var(--s3);
  background: var(--label); border: var(--keyline); border-radius: var(--r); box-shadow: var(--off) var(--off) 0 var(--indigo); text-decoration: none;
  transition: transform var(--release), box-shadow var(--release); }
.coll:active { transform: translate(var(--off), var(--off)); box-shadow: 0 0 0 var(--indigo); transition: transform var(--press), box-shadow var(--press); }
.coll-thumbs { grid-row: span 2; display: flex; }
.coll-thumbs img { width: 44px; height: 44px; border: 2px solid var(--ink); border-radius: 2px; background: #fff; }
.coll-thumbs img + img { margin-left: -14px; }
.coll-title { font: 800 var(--t-md)/1.2 var(--ui); }
.coll-line { font-size: var(--t-sm); color: var(--ink-soft); line-height: 1.3; }

.random { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); padding: var(--s4); border: 2px dashed var(--ink); border-radius: var(--r); }
.random-line { font: 400 var(--t-xl)/1.1 var(--display); }
.about-short { color: var(--ink-soft); }

@media (min-width: 900px) {
  .today-label { grid-template-columns: 1.4fr 1fr; align-items: center; padding: var(--s4) var(--s5); }
  .today-main { grid-template-columns: 160px 1fr; }
  .today-gotd { border-top: 0; border-left: 2px dashed var(--ink); padding: 0 0 0 var(--s4); }
  .today-foot { grid-column: 1 / -1; }
}

/* Round 1 review */
.lede-line { margin-top: var(--s4); font: 600 var(--t-md)/1.35 var(--ui); color: var(--ink-soft); max-width: 60ch; }
.lede-line + .continue:not([hidden]), .lede-line + .continue[hidden] + .today { margin-top: var(--s4); }
.band-n { font-weight: 600; opacity: .8; }
.cats .band a, .block > .band > a { display: inline-flex; align-items: center; min-height: 44px; }
.today-foot .btn { flex: 1 1 100%; max-width: none; }
.today-gotd { grid-template-columns: 56px 1fr auto; min-height: 56px; }
.today-gotd img { width: 56px; height: 56px; }
.today-go { font-weight: 800; padding: 4px 12px; border: var(--keyline); border-radius: var(--r); background: var(--label); box-shadow: 3px 3px 0 var(--c); }
.random { margin-top: var(--s5); }
@media (min-width: 900px) {
  .today-label { grid-template-columns: 1fr 1fr; }
  .today-gotd { grid-template-columns: 96px 1fr auto; }
  .today-gotd img { width: 96px; height: 96px; }
  .today-gotd b { font: 400 var(--t-xl)/1.1 var(--display); }
  .today-foot .btn { flex: 0 1 auto; min-width: 260px; }
  /* one shelf pattern: every category is a single line (decision 2) */
  .cats .strip { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 150px; overflow: hidden; }
  .cats .strip > :nth-child(n+6) { display: none; }
  /* Today: Play sits under the title, the game of the day takes the right half (R2-5) */
  .today-foot { grid-column: 1; }
  .today-gotd { grid-column: 2; grid-row: 1 / span 2; }
}
@media (min-width: 1100px) {
  .colls { grid-template-columns: repeat(6, 1fr); }
  .colls .coll-lead { grid-column: span 3; grid-row: span 2; align-content: center; }
  .colls .coll:not(.coll-lead) { grid-column: span 3; }
  .coll-lead .coll-thumbs img { width: 72px; height: 72px; }
  .coll-lead .coll-title { font: 400 var(--t-xl)/1.1 var(--display); }
}

@media (min-width: 1100px) { .cats .strip > :nth-child(n+6) { display: flex; } .cats .strip > :nth-child(n+8) { display: none; } }
/* Continue playing beside Today on desktop when there is history (decision 9) */
@media (min-width: 1100px) {
  .top-pair { display: grid; grid-template-columns: 2fr 1fr; column-gap: var(--s6); align-items: start; }
  .top-pair:has(> .continue[hidden]) { grid-template-columns: 1fr; }
  .top-pair > .today { order: -1; }
  .top-pair > .continue .strip { grid-auto-flow: row; grid-template-columns: 1fr; overflow: visible; margin: 0; padding: 2px 6px 10px 2px; }
  .top-pair > .continue .strip > :nth-child(n+4) { display: none; }
  .top-pair > .continue .label { display: grid; grid-template-columns: 72px 1fr; grid-template-rows: auto 1fr; }
  .top-pair > .continue .label-mat { grid-row: span 2; border-bottom: 0; border-right: var(--keyline); padding: 4px; }
  .top-pair > .continue .label-title { padding-top: 10px; }
  .top-pair > .continue .stamp { display: none; }
}

/* Round 4: collections show one framed screenshot; Continue playing is a compact list on every screen size */
.coll-thumbs img { width: 64px; height: 64px; border: 2px solid var(--ink); }
.coll-thumbs { padding: 4px; background: var(--c); border: 2px solid var(--ink); border-radius: 2px; }
.coll-lead .coll-thumbs img { width: 96px; height: 96px; }
.continue .strip { grid-auto-flow: row; grid-template-columns: 1fr; grid-auto-columns: auto; overflow: visible; margin: 0; padding: 2px 6px 10px 2px; scroll-snap-type: none; }
.continue .strip > :nth-child(n+4) { display: none; }
.continue .label { display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto 1fr; }
.continue .label-mat { grid-row: span 2; border-bottom: 0; border-right: var(--keyline); padding: 4px; }
.continue .label-title { padding-top: 8px; }
.continue .label .stamp { display: none; }

/* Category chips under the tagline on phones and tablets (wide screens have the categories in the header) */
.chips { display: flex; gap: 8px; margin: var(--s3) calc(-1 * var(--gutter)) 0; padding: 2px var(--gutter) 6px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 2px 12px 0; border: var(--keyline); border-radius: var(--r); background: var(--label);
  box-shadow: 3px 3px 0 var(--c); font-weight: 800; text-decoration: none; white-space: nowrap; }
@media (min-width: 900px) { .chips { display: none; } }
/* Desktop: a shorter Today label, so the first screen shows more games */
@media (min-width: 1100px) {
  .today-label { padding: var(--s3) var(--s4); row-gap: var(--s2); }
  .today-main { grid-template-columns: 104px 1fr; }
  .today-gotd { grid-template-columns: 72px 1fr auto; }
  .today-gotd img { width: 72px; height: 72px; }
}
