/* Graycells Games on top of site.css: an Apple Arcade-style look. A soft grey page, white panels with soft shadows,
   no outlines. Type is site.css's system font. */

/* One light theme everywhere (it replaces site.css's dark mode). */
:root, :root:not(#x) {
  color-scheme: light;
  --bg: #f5f5f7; --band: #ffffff; --text: #1d1d1f; --muted: #6e6e73; --rule: #d2d2d7; --link: #0071e3;
  --nav: rgba(245, 245, 247, .8); --ink: #1d1d1f; --blue: #0071e3;
  --c-guzhi: #E8871E; --c-uhloud: #7C3AED; --c-layers: #3B82F6; --c-ballpark: #22A35A; --c-sincewhen: #C2479F; --c-duenorth: #EF4444; --c-jargon: #FFE24A;
  --shadow: 0 2px 6px rgba(0, 0, 0, .04), 0 12px 32px rgba(0, 0, 0, .06);
}
/* The footer sits at the bottom of the window even on short pages. */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > * { width: 100%; }
.footer { margin-top: auto !important; }
body { background: var(--bg); color: var(--text); }
.nav { background: var(--nav); border-bottom: 1px solid #e3e3e8; }
.nav .inner { max-width: 1120px; }
.nav .brand { font-weight: 600; }
.hero h1 { font-weight: 700; color: var(--ink); letter-spacing: -.025em; }
.crumbs, .crumbs a { color: var(--muted); }

/* White panels */
.shot img, .section.band > .in, .doc { background: #fff; border-radius: 22px; box-shadow: var(--shadow); }
.hero .icon, .product .appicon { box-shadow: 0 0 0 .5px rgba(0, 0, 0, .12), 0 12px 30px rgba(0, 0, 0, .14); }
.badge { border: 0; color: var(--muted); background: #e8e8ed; }

/* Pill buttons: the first is filled blue, the rest grey, like the App Store. */
.links { gap: 12px; }
.links a { display: inline-block; font-weight: 600; padding: 8px 18px; border-radius: 999px; font-size: 16px; white-space: nowrap;
  color: var(--blue); background: #e8e8ed; transition: background-color .15s; }
.links a:first-child { background: var(--blue); color: #fff; }
.links a:hover { text-decoration: none; background: #dcdce1; }
.links a:first-child:hover { background: #0077ed; }
.links .chev::after { content: ""; }
.links a[data-trailer]::before { content: "▶ "; font-size: .8em; }
.guzhi { --g: var(--c-guzhi); } .uhloud { --g: var(--c-uhloud); } .layers { --g: var(--c-layers); }
.ballpark { --g: var(--c-ballpark); } .sincewhen { --g: var(--c-sincewhen); } .duenorth { --g: var(--c-duenorth); } .jargon { --g: var(--c-jargon); }

/* Home: an Apple Arcade-style grid. Soft grey page, white cards with the trailer still on top, no ink outlines. */
.intro, .games { max-width: 1120px; }
.intro { margin: 0 auto; padding: 56px 24px 8px; }
.intro h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.04; letter-spacing: -.025em; margin: 0; font-weight: 700; color: #1d1d1f; }
.intro .lede { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.3; letter-spacing: -.01em; color: #6e6e73; margin: 14px 0 0; max-width: 640px; }
.games { margin: 0 auto; padding: 36px 24px 72px; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.game { background: #fff; border-radius: 22px; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .04), 0 12px 32px rgba(0, 0, 0, .06); transition: transform .25s ease, box-shadow .25s ease; }
.game:hover { transform: translateY(-4px); box-shadow: 0 4px 10px rgba(0, 0, 0, .05), 0 22px 48px rgba(0, 0, 0, .1); }
.game .art { position: relative; display: block; aspect-ratio: 16 / 9; background: #eee; }
.game .art img { width: 100%; height: 100%; object-fit: cover; }
.game .watch { position: absolute; right: 12px; bottom: 12px; font-size: 13px; font-weight: 600; color: #1d1d1f; letter-spacing: -.005em;
  padding: 7px 13px; border-radius: 999px; background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12); transition: background-color .15s; }
.game .art:hover { text-decoration: none; } .game .art:hover .watch { background: #fff; }
.game .meta { display: flex; gap: 14px; align-items: center; padding: 16px 18px 18px; flex: 1; }
.game .ic { width: 60px; height: 60px; border-radius: 14px; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .12); flex: none; }
.game .txt { flex: 1; min-width: 0; }
.game h2 { font-size: 17px; line-height: 1.25; letter-spacing: -.01em; margin: 0; color: #1d1d1f; }
.game p { font-size: 14px; line-height: 1.3; color: #6e6e73; margin: 2px 0 0; }
.game .plat, .game .when { display: block; font-size: 12px; font-weight: 600; margin-top: 5px; }
.game .plat { color: #86868b; text-transform: uppercase; letter-spacing: .04em; }
/* The date line uses each game's darker brand color, so the small text stays readable on white. */
.game .when { color: var(--g); }
.game.ballpark .when { color: #2a7047; } .game.sincewhen .when { color: #7a3b78; } .game.duenorth .when { color: #b83a22; } .game.guzhi .when { color: #a4560a; }
.game .get { flex: none; background: #f0f0f5; color: #0071e3; font-weight: 700; font-size: 15px; padding: 7px 18px; border-radius: 999px; white-space: nowrap; }
.game .get:hover { background: #e6e6eb; text-decoration: none; }
/* Guzhi, the last card, spans the full row under the daily puzzles: trailer still on the left, details stacked on the
   right. Two columns start at 712px (2 × 320px + gap + padding); below that it's an ordinary card. */
@media (min-width: 712px) {
  .game.guzhi { grid-column: 1 / -1; flex-direction: row; }
  .game.guzhi .art { flex: 0 0 62%; }
  .game.guzhi .art img { position: absolute; inset: 0; }
  .game.guzhi .meta { flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; padding: 22px 24px; }
  .game.guzhi .txt { flex: none; }
  .game.guzhi h2 { font-size: 22px; }
  .game.guzhi p { font-size: 16px; line-height: 1.35; margin-top: 4px; }
  .game.guzhi .when { font-size: 13px; margin-top: 8px; }
  .game.guzhi .get { margin-top: 4px; }
}
@media (max-width: 600px) {
  .intro { padding-top: 36px; }
  .games { grid-template-columns: 1fr; gap: 18px; padding-top: 28px; }
}

/* Inner pages (Guzhi, How to Play, Privacy) */
.hero .icon { border-radius: 28px; }
.hero .soon { font-size: 15px; font-weight: 600; color: #a4560a; margin: 10px 0 0; }
.shot img { border-radius: 20px; }
.section.band { background: transparent; }
.section.band > .in { padding: 34px 30px; }
.doc { margin: 0 auto 64px; padding: 16px 34px 36px; max-width: 760px; }
.doc .card { background: #f5f5f7; }
details { border-color: var(--rule); }

/* Footer: support links, then the copyright line. */
.footer { background: transparent; color: var(--ink); border-top: 1px solid var(--rule); }
.footer .inner { max-width: 1120px; padding: 26px 22px 22px; text-align: center; }
.footer .help { font-size: 15px; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; }
.footer .help a { color: var(--ink); font-weight: 500; }
.footer .help a:hover { color: var(--blue); text-decoration: underline; }
.footer .help .dot { color: var(--muted); }
.footer .row { justify-content: space-between; border-top-color: #e3e3e8; color: var(--muted); font-size: 13px; text-align: left; }
.footer .row a { color: var(--ink); } .footer .row a:hover { color: var(--blue); }
@media (max-width: 480px) { .footer .row { justify-content: center; text-align: center; } }
@media (max-width: 480px) { .footer .help .dot { display: none; } .footer .help { flex-direction: column; align-items: center; } }

@media (prefers-reduced-motion: reduce) { .game, .game .watch, .links a { transition: none; } }
.game h2 a { color: inherit; }
.game h2 a:hover { text-decoration: none; }
