/* Home: the lobby's layout and art direction, rendered statically so the page
   works without JavaScript. Colours come from the design tokens in site.css;
   each design swaps the artwork through CSS, so the right image loads first. */

body.home { background: var(--bg); color: var(--ink); }
body.home main { max-width: none; margin: 0; padding: 0; min-height: 0; }
body.home .site-header {
  max-width: none; margin: 0; padding: 16px max(40px, calc((100vw - 1560px) / 2 + 40px));
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--ink) 9%, transparent), color-mix(in srgb, var(--ink) 2%, transparent)),
    color-mix(in srgb, var(--bg) 52%, transparent);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  backdrop-filter: blur(24px) saturate(170%);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--ink) 12%, transparent), 0 12px 34px rgba(0, 0, 0, .22);
}
body.home .brand { font-size: 32px; }
body.home .brand span { font-size: 8px; }
body.home nav { gap: 22px; }
body.home nav .button { padding: 10px 18px; border-radius: 3px; }
body.home footer { padding: 28px 40px 34px; }
body.home footer .design-picker { margin-top: 22px; }

.home-wrap { max-width: 1560px; margin: 0 auto; padding: 0 40px; }

/* At-a-glance strip: five facts, no prose. */
.home-strip { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--line); }
.home-strip div { padding: 18px 22px 16px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.home-strip div:first-child { border-left: 0; padding-left: 0; }
.home-strip b { font-size: 27px; line-height: 1.1; letter-spacing: -.02em; }
.home-strip span { font-size: 10px; text-transform: uppercase; letter-spacing: .17em; color: var(--dim); }

/* Featured game: the lobby hero, full bleed. */
.home-hero { border-bottom: 1px solid var(--line); }
.home-hero .home-wrap { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); align-items: center; gap: 48px; padding-top: 40px; padding-bottom: 40px; }
.home-hero-copy { max-width: 660px; }
.home-hero-art { width: 100%; }
.home-hero-art img { display: none; width: 100%; height: auto; }
html[data-design='industrial'] .home-hero-art img[data-for='industrial'],
html[data-design='club'] .home-hero-art img[data-for='club'],
html[data-design='arcade'] .home-hero-art img[data-for='arcade'] { display: block; }
.home-kicker { margin: 0 0 10px; font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); }
.home-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.home-hero-name { margin: 0 0 14px; font-size: clamp(64px, 9vw, 136px); line-height: .88; letter-spacing: -.035em; text-transform: uppercase; color: var(--ink); }
.home-tag { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink); max-width: 48ch; }
.home-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin: 22px 0 0; }
.home-cta { display: inline-block; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 700; font-size: 17px; padding: 14px 24px; border-radius: 3px; }
.home-cta:hover { background: var(--accent); color: var(--accent-ink); filter: brightness(1.08); }
.home-link { color: var(--link); font-size: 14px; text-decoration: none; }
.home-link:hover { text-decoration: underline; }
.home-facts { display: flex; flex-wrap: wrap; gap: 30px; margin: 26px 0 0; padding: 16px 0 0; border-top: 1px solid color-mix(in srgb, var(--line) 80%, transparent); }
.home-facts div { display: flex; flex-direction: column; gap: 3px; }
.home-facts dt { font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: var(--dim); }
.home-facts dd { margin: 0; font-size: 18px; font-weight: 600; }

/* What this is: the original home copy, kept in two dense columns. */
.home-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; padding: 44px 0 40px; border-bottom: 1px solid var(--line); }
.home-intro h2 { margin: 0 0 12px; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.05; letter-spacing: -.025em; color: var(--ink); }
.home-lead { margin: 0; font-size: 17px; line-height: 1.6; color: var(--dim); max-width: 52ch; }
.home-claims { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-content: start; }
.home-claims h3 { margin: 0 0 8px; font-size: 18px; color: var(--ink); }
.home-claims p { margin: 0 0 8px; font-size: 14px; line-height: 1.6; color: var(--dim); }
.home-claims a { font-size: 13px; text-decoration: none; color: var(--link); }
.home-claims a:hover { text-decoration: underline; }

/* Catalogue: four cards, the lobby's grid. */
.home-catalogue { padding: 40px 0 10px; }
.home-head { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.home-head h2, .home-specs h2, .home-guide h2 { margin: 0; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.02em; color: var(--ink); }
.home-head p { margin: 0; font-size: 13px; color: var(--dim); }
.home-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.home-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); }
.home-art { display: block; aspect-ratio: 1.845; background: var(--bg) center / cover no-repeat; }
.home-card-body { display: flex; flex-direction: column; gap: 8px; padding: 15px 16px 16px; flex: 1; }
.home-card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.home-card-top h3 { margin: 0; font-size: clamp(22px, 2vw, 28px); line-height: 1; letter-spacing: -.02em; text-transform: uppercase; }
.home-card-top h3 a { color: var(--ink); text-decoration: none; }
.home-card-top h3 a:hover { color: var(--accent); }
.home-card-top span { font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: var(--dim); }
.home-card-body p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--dim); }
.home-mini { display: flex; gap: 18px; margin: 0; padding: 8px 0 0; border-top: 1px solid var(--line); }
.home-mini div { display: flex; flex-direction: column; gap: 2px; }
.home-mini dt { font-size: 9px; letter-spacing: .13em; text-transform: uppercase; color: var(--dim); }
.home-mini dd { margin: 0; font-size: 13px; font-weight: 600; color: var(--ink); }
.home-play { margin-top: auto; padding-top: 10px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--accent); }

/* Per-design artwork. */
.home-art[data-art='updraft'] { background-image: url('/designs/industrial/updraft.webp'); }
.home-art[data-art='minefield'] { background-image: url('/designs/industrial/minefield.webp'); }
.home-art[data-art='dice-duel'] { background-image: url('/designs/industrial/dice-duel.webp'); }
.home-art[data-art='plinko'] { background-image: url('/designs/industrial/plinko.webp'); }
html[data-design='club'] .home-art[data-art='updraft'] { background-image: url('/designs/club/updraft.webp'); }
html[data-design='club'] .home-art[data-art='minefield'] { background-image: url('/designs/club/minefield.webp'); }
html[data-design='club'] .home-art[data-art='dice-duel'] { background-image: url('/designs/club/dice-duel.webp'); }
html[data-design='club'] .home-art[data-art='plinko'] { background-image: url('/designs/club/plinko.webp'); }
html[data-design='arcade'] .home-art[data-art='updraft'] { background-image: url('/designs/arcade/updraft.webp'); }
html[data-design='arcade'] .home-art[data-art='minefield'] { background-image: url('/designs/arcade/minefield.webp'); }
html[data-design='arcade'] .home-art[data-art='dice-duel'] { background-image: url('/designs/arcade/dice-duel.webp'); }
html[data-design='arcade'] .home-art[data-art='plinko'] { background-image: url('/designs/arcade/plinko.webp'); }

/* Specifications. */
.home-specs { padding: 40px 0 8px; overflow-x: auto; }
body.home table { max-width: none; margin: 14px 0 0; font-size: 13px; }
body.home caption { padding-bottom: 10px; font-size: 12px; }
body.home td, body.home th { padding: 11px 12px; }
body.home th { color: var(--ink); }
body.home td { color: var(--dim); }

/* Platform tiles. */
.home-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 44px 0 8px; }
.home-band a { display: block; padding: 18px 0 0; border-top: 2px solid var(--accent); text-decoration: none; }
.home-band b { font-size: 11px; letter-spacing: .16em; color: var(--accent); }
.home-band h3 { margin: 6px 0 6px; font-size: 18px; color: var(--ink); }
.home-band p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--dim); }

/* Reading index. */
.home-guide { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr); gap: 48px; padding: 44px 0 20px; border-top: 1px solid var(--line); margin-top: 36px; }
.home-guide h2 { margin: 0 0 10px; }
.home-guide p { font-size: 14px; line-height: 1.6; color: var(--dim); max-width: 44ch; }
.home-guide ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.home-guide li { border-bottom: 1px solid var(--line); }
.home-guide li a { display: block; padding: 11px 0; font-size: 14px; line-height: 1.35; text-decoration: none; color: var(--ink); }
.home-guide li a:hover { color: var(--accent); }
.home-note { margin: 28px 0 0; padding: 16px 0 44px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.6; color: var(--dim); text-transform: none; max-width: 90ch; }

/* Club: paper, green ink, serif headings, warmer rules. */
html[data-design='club'] body.home .home-hero-name,
html[data-design='club'] body.home h2,
html[data-design='club'] body.home .home-card-top h3 { font-family: Georgia, "Times New Roman", serif; text-transform: none; letter-spacing: -.03em; }
html[data-design='club'] body.home .home-card { border-color: #c9c6b4; }
html[data-design='club'] body.home .home-card-body { background: #fbf9f1; }
html[data-design='club'] body.home .home-strip b { font-family: Georgia, serif; }
html[data-design='club'] body.home .home-cta { background: #17483b; color: #fffaf0; }

/* Arcade: near-black, orange, rounded panels. */
html[data-design='arcade'] body.home .home-card,
html[data-design='arcade'] body.home .home-cta { border-radius: 8px; }
html[data-design='arcade'] body.home .home-card { overflow: hidden; border-color: #2b302b; }
html[data-design='arcade'] body.home .home-art { border-radius: 0; }
html[data-design='arcade'] body.home .home-card-top h3 { text-transform: none; }
html[data-design='arcade'] body.home .home-band a { border-top-color: #ff601c; }
html[data-design='arcade'] body.home .home-strip b { color: #ff8d54; }

@media (max-width: 1200px) {
  .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-intro { grid-template-columns: 1fr; gap: 30px; }
  .home-guide { grid-template-columns: 1fr; gap: 24px; }
  .home-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  body.home .site-header { padding: 14px 22px; }
  body.home .brand { font-size: 26px; }
  .home-wrap { padding: 0 22px; }
  body.home footer { padding: 24px 22px 30px; }
  .home-strip { grid-template-columns: repeat(3, 1fr); }
  .home-strip div:nth-child(4) { border-left: 0; padding-left: 0; }
  .home-hero .home-wrap { grid-template-columns: 1fr; gap: 26px; padding-top: 30px; padding-bottom: 34px; }
  .home-hero-copy { max-width: 100%; }
  body.home .home-hero-name { font-size: clamp(56px, 12vw, 96px); }
  .home-facts { gap: 20px; }
}
@media (max-width: 700px) {
  .home-strip { grid-template-columns: repeat(2, 1fr); }
  .home-strip div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .home-strip div:last-child { grid-column: 1 / -1; border-left: 0; padding-left: 0; }
  body.home .home-hero-name { font-size: clamp(52px, 15vw, 76px); }
  .home-grid { grid-template-columns: 1fr; }
  .home-claims { grid-template-columns: 1fr; }
  .home-band { grid-template-columns: 1fr; gap: 18px; }
  .home-guide ul { grid-template-columns: 1fr; }
  .home-facts { gap: 16px; }
  .home-facts dd { font-size: 16px; }
}
