/* drlewicki.com · games.css · Dr. Lewicki's Roblox games (Dec 2026)
   Load on every page after tokens.css and site.css (and grades35.css, study.css where used):
   the /games/ page, the Play on Roblox bands on the K-2 and Grades 3-5 hubs, the small game card
   on song pages, and the Games tab in the header. Same house: ink lines, hard shadows, no new font. */

/* ---------- 1. header tab and page skin ---------- */
.nav a[href="/games/"] { --tab: var(--tangerine); }
.sec-games, body:has(.site-head .nav a[href="/games/"][aria-current="page"]) { --band: var(--tangerine); }

/* ---------- 2. shared bits ---------- */
.game-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.game-meta li { padding: 4px 9px 3px; background: var(--white); border: 2px solid var(--ink); border-radius: var(--r-xs); font: 800 .82rem/1.2 var(--f-body); }
.game-meta li:first-child { background: var(--c, var(--lemon)); }
.game-learn { margin: 0; padding: 10px 12px; background: var(--paper); border: 2px dashed var(--ink); border-radius: var(--r-xs); line-height: 1.45; }
.game-learn b { display: block; margin-bottom: 2px; font: 800 .74rem/1.2 var(--f-body); letter-spacing: .12em; text-transform: uppercase; }
.song-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0; }
.song-chips > span { font: 800 .74rem/1.2 var(--f-body); letter-spacing: .12em; text-transform: uppercase; margin-right: 2px; }
.song-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 12px; background: var(--white); border: 2px solid var(--ink); border-radius: 999px; color: var(--ink); font: 700 .9rem/1.2 var(--f-body); text-decoration: none; }
.song-chip::before { content: "♪"; font-weight: 800; }
.song-chip:hover { background: var(--lemon); }
.btn.play { gap: 8px; }
.play-note { margin: 0; color: var(--ink-2); font-size: .86rem; line-height: 1.4; }
.play-note a { color: var(--ink); }
/* one accent per kind of game (the first chip and the card's top edge) */
[data-kind="education"] { --c: var(--lemon); } [data-kind="tycoon"] { --c: var(--sky); } [data-kind="idle"] { --c: var(--grass); }
[data-kind="obby"] { --c: var(--bubblegum); } [data-kind="survival"] { --c: var(--sunflower); } [data-kind="strategy"] { --c: var(--lilac); }

/* ---------- 3. the /games/ page ---------- */
.games-top .lead { font-size: 1.15rem; }
.heads-up { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin: 0; padding: 10px 14px; background: var(--white); border: var(--line) solid var(--ink); border-radius: var(--r-xs); font-weight: 700; max-width: 78ch; }
.heads-up b { font-weight: 800; }
.game-feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; align-items: start; padding: clamp(18px, 2.5vw, 30px); background: var(--white); border: var(--line-lg) solid var(--ink); border-radius: var(--r-xs); box-shadow: var(--pop-lg); }
.gf-art { display: grid; gap: 12px; margin: 0; }
.gf-art > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: var(--line) solid var(--ink); border-radius: var(--r-xs); }
.gf-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gf-strip img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 2.5px solid var(--ink); border-radius: var(--r-xs); }
.gf-info { display: grid; gap: 14px; align-content: start; justify-items: start; }
.gf-info .k-tag { transform: rotate(-2deg); }
.gf-info h2 { font: 400 clamp(2.2rem, 1.6rem + 2.2vw, 3.4rem)/1 var(--f-comic); letter-spacing: .02em; }
.gf-info .lead { font-size: 1.12rem; }
.gf-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.gf-feats li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 8px; font-weight: 700; }
.gf-feats li::before { content: "✓"; display: grid; place-items: center; width: 24px; height: 24px; border: 2px solid var(--ink); border-radius: 50%; background: var(--lemon); font-size: .8rem; font-weight: 800; }
.gf-info .btn-row { margin: 4px 0 0; }

.games-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; align-items: stretch; }
.game-card { display: flex; flex-direction: column; min-width: 0; background: var(--white); border: var(--line) solid var(--ink); border-radius: var(--r-xs); box-shadow: var(--pop); overflow: hidden; }
.game-card > img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: var(--line) solid var(--ink); }
.gc-body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 16px 18px 18px; border-top: 8px solid var(--c, var(--lemon)); }
.gc-body h3 { font: 800 1.35rem/1.15 var(--f-body); letter-spacing: -.01em; }
.gc-body > p { margin: 0; }
.gc-play { margin-top: auto; display: grid; gap: 8px; padding-top: 6px; }
.gc-play .btn { justify-content: center; }

.grownups { margin-top: 12px; }
.gu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 28px; }
.gu-grid h3 { font: 800 1.05rem/1.25 var(--f-body); margin-bottom: 6px; }
.gu-grid p { margin: 0; }
.gu-grid p + p { margin-top: 8px; }

/* ---------- 4. Play on Roblox band on the hubs ---------- */
.play-band { display: grid; grid-template-columns: minmax(260px, .9fr) minmax(0, 1.1fr); gap: 28px; align-items: center; margin-block: 44px; padding: 22px; background: var(--white); border: var(--line) solid var(--ink); border-radius: var(--r-xs); box-shadow: var(--pop); }
.play-band > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: var(--line) solid var(--ink); border-radius: var(--r-xs); }
.pb-copy { display: grid; gap: 12px; justify-items: start; }
.pb-copy h2 { margin: 0; }
.pb-copy p { margin: 0; }
.pb-copy .btn-row { margin: 0; }
/* K-2: three small games for a grown-up and a child */
.play-band.together { grid-template-columns: minmax(0, 1fr); gap: 18px; }
.together-head { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: end; justify-content: space-between; }
.together-head h2 { margin: 0; }
.together-head p { margin: 0; max-width: 60ch; }
.mini-games { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mini-game { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 6px 14px; align-items: center; padding: 12px; background: var(--paper); border: var(--line) solid var(--ink); border-radius: 18px; }
.mini-game img { grid-row: span 3; width: 92px; height: 92px; object-fit: cover; border: var(--line) solid var(--ink); border-radius: 16px; }
.mini-game b { font: 400 1.25rem/1.05 var(--f-comic); letter-spacing: .02em; }
.mini-game span { font-size: .95rem; line-height: 1.35; }
.mini-game a { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; color: var(--ink); text-decoration: underline 2px var(--tomato); text-underline-offset: 3px; }
.together-foot { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 2px dashed var(--rule); }

/* ---------- 5. small game card on song pages (in Next up) ---------- */
.game-mini { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 8px 20px; align-items: center; margin-bottom: 40px; padding: 16px 18px; background: var(--white); border: var(--line) solid var(--ink); border-radius: var(--r-xs); box-shadow: var(--pop); }
.game-mini > img { width: 104px; height: 104px; object-fit: cover; border: var(--line) solid var(--ink); border-radius: var(--r-xs); }
.gm-copy { display: grid; gap: 4px; }
.gm-copy .eyebrow { margin: 0; }
.gm-copy h3 { margin: 0; font: 800 1.3rem/1.15 var(--f-body); }
.gm-copy p { margin: 0; }
.gm-act { display: grid; gap: 6px; justify-items: end; text-align: right; }
.kids .game-mini { border-radius: 18px; }
.kids .game-mini > img { border-radius: 16px; }
.kids .gm-copy h3 { font: 400 1.6rem/1 var(--f-comic); letter-spacing: .02em; }

/* ---------- 6. widths ---------- */
@media (max-width: 980px) {
  .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-feature { grid-template-columns: minmax(0, 1fr); }
  .gu-grid { grid-template-columns: minmax(0, 1fr); }
  .mini-games { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .play-band { grid-template-columns: minmax(0, 1fr); }
  .game-mini { grid-template-columns: 80px minmax(0, 1fr); }
  .game-mini > img { width: 80px; height: 80px; }
  .gm-act { grid-column: 1 / -1; justify-items: stretch; text-align: left; }
  .gm-act .btn { justify-content: center; }
}
@media (max-width: 560px) {
  .games-grid { grid-template-columns: minmax(0, 1fr); }
  .gf-strip { display: none; }
  .gf-info .btn-row .btn { flex: 1 1 100%; justify-content: center; }
  .pb-copy .btn-row .btn { flex: 1 1 100%; justify-content: center; }
  .mini-game { grid-template-columns: 72px minmax(0, 1fr); }
  .mini-game img { width: 72px; height: 72px; }
}
