:root {
  --bg: #0a0a0c;
  --bg-panel: #121218;
  --ink: #f5f5f5;
  --muted: #a8a8b0;
  --gold: #d4a017;
  --gold-soft: #e8c15a;
  --gold-dim: rgba(212, 160, 23, 0.35);
  --line: rgba(255, 255, 255, 0.12);
  --nav-h: 52px;
  --max: 1080px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-soft); text-decoration: none; }
a:hover { color: #fff; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 100;
  background: #000;
  color: #fff;
  padding: 8px 12px;
}

/* —— Nav —— */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: #000;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}
.topnav ul {
  list-style: none;
  margin: 0;
  padding: 0 16px;
  display: flex;
  gap: 8px 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.topnav a {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
}
.topnav a:hover,
.topnav a:focus-visible {
  color: var(--gold-soft);
  outline: none;
}

/* —— Hero —— */
.hero {
  background: #000;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px; /* same inset as .catalog — aligns to game-card edges */
  display: block;
  line-height: 0;
  box-sizing: border-box;
}
.hero img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  object-fit: contain;
  object-position: center center;
  margin: 0;
  background: #000;
}

.tagline {
  text-align: center;
  padding: 18px 16px 8px;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.tagline span { color: var(--gold-soft); margin: 0 0.35em; }

/* —— Catalog —— */
.catalog {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 20px 48px;
}
.catalog h2 {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 28px;
  letter-spacing: 0.06em;
}

.cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: stretch;
  justify-items: center;
}
@media (min-width: 820px) {
  .cols {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.col {
  width: 100%;
  max-width: 320px;
  background: var(--bg-panel);
  border: 1px solid var(--gold-dim);
  border-radius: 10px;
  padding: 22px 18px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.col h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: var(--gold-soft);
  letter-spacing: 0.04em;
}
.col p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1;
}

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 6px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-soft);
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn:hover,
.btn:focus-visible {
  background: var(--gold);
  color: #111;
  outline: none;
}
.btn-solid {
  background: var(--gold);
  color: #111;
}
.btn-solid:hover,
.btn-solid:focus-visible {
  background: var(--gold-soft);
  color: #000;
}

.thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  margin-bottom: 16px;
}
.thumb {
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #1a1a22, #0e0e14);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.25;
}
.thumb strong {
  color: #ddd;
  font-weight: 600;
  font-size: 0.78rem;
}

.badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* —— Contact —— */
.contact {
  background: #08080a;
  border-top: 1px solid var(--gold-dim);
  padding: 48px 20px 56px;
}
.contact-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.contact h2 {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 1.35rem;
  letter-spacing: 0.05em;
}
.contact .lede {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

form {
  display: grid;
  gap: 14px;
  text-align: left;
}
label {
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--gold-soft);
}
input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #14141a;
  color: var(--ink);
  font: inherit;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--gold-dim);
  border-color: var(--gold);
}
textarea { min-height: 120px; resize: vertical; }
.form-actions {
  display: flex;
  justify-content: center;
  margin-top: 6px;
}
.form-note {
  margin: 14px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

footer {
  text-align: center;
  padding: 22px 16px 32px;
  color: #666;
  font-size: 0.8rem;
  border-top: 1px solid var(--line);
}
footer a { color: #888; }

/* —— Icons (gold, match mock) —— */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 0 12px;
  color: var(--gold);
}
.icon svg {
  width: 40px;
  height: 40px;
  display: block;
}
.col .icon {
  margin-bottom: 14px;
}
.contact-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}
.icon-inline {
  width: 28px;
  height: 28px;
  margin: 0;
  flex-shrink: 0;
}
.icon-inline svg {
  width: 26px;
  height: 26px;
}
.btn-send {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.icon-btn {
  width: 16px;
  height: 16px;
  margin: 0;
  color: inherit;
}
.icon-btn svg {
  width: 16px;
  height: 16px;
}

/* —— Stacked catalog (Games → Apps → Books) —— */
.catalog-stack {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 16px 40px;
  box-sizing: border-box;
}
.catalog-stack .block {
  margin: 0 0 28px;
  padding: 20px 12px 24px;
  background: transparent;
  border: none;
  border-radius: 0;
  text-align: center;
  border-bottom: 1px solid var(--gold-dim);
}
.block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  margin-bottom: 8px;
}
.block-head .icon { margin: 0; }
.block-head h2 {
  margin: 0;
  font-size: 1.4rem;
  color: var(--gold);
  letter-spacing: 0.05em;
}
.block-lede {
  margin: 0 auto 20px;
  max-width: 36rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.block-foot {
  margin: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.game-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  text-align: left;
}
@media (min-width: 640px) {
  .game-grid { grid-template-columns: 1fr 1fr; }
}
.game-card {
  display: flex;
  flex-direction: column;
  padding: 0 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0e0e14;
  color: inherit;
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
}
.game-card:hover,
.game-card:focus-visible {
  border-color: var(--gold);
  color: inherit;
  outline: none;
  transform: translateY(-2px);
}
.game-card-art {
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, #1c1c28, #0a0a10);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  color: var(--gold-soft);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px;
  text-align: center;
}
.game-card h3 {
  margin: 12px 14px 6px;
  font-size: 1.05rem;
  color: var(--gold-soft);
}
.game-card p {
  margin: 0 14px 10px;
  font-size: 0.88rem;
  color: var(--muted);
  flex: 1;
}
.game-card-cta {
  margin: 0 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
}

/* —— Game detail page —— */
.game-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}
.crumb {
  margin: 0 0 12px;
  font-size: 0.9rem;
}
.game-page h1 {
  margin: 0 0 10px;
  font-size: 1.75rem;
  color: var(--gold-soft);
}
.game-blurb {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.05rem;
}
.game-page h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: 0.04em;
}
.game-vid { margin-bottom: 32px; }
.vid-frame {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--gold-dim);
  background: #000;
}
.vid-frame iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}
.vid-placeholder {
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  background: linear-gradient(160deg, #16161e, #08080c);
}
.vid-placeholder p { margin: 0; }
.muted { color: var(--muted); font-size: 0.85rem; }
.still-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 640px) {
  .still-grid { grid-template-columns: repeat(3, 1fr); }
}
.still {
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  border: 1px dashed var(--gold-dim);
  background: #12121a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
}
.still-note { margin: 12px 0 0; }
.still-note code {
  font-size: 0.8em;
  color: var(--gold-soft);
}

/* —— Google Form embed —— */
.contact-wide {
  max-width: 720px;
}
.form-embed-wrap {
  margin: 0 auto 8px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--gold-dim);
  background: #fff;
}
.form-embed {
  display: block;
  width: 100%;
  min-height: 920px;
  border: 0;
}
.form-actions-gap {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

/* —— Branded form (posts to Google Sheet via Forms) —— */
.brand-form {
  display: grid;
  gap: 14px;
  text-align: left;
}
.other-wrap { margin-top: -4px; }
.form-thanks {
  text-align: center;
  padding: 28px 16px;
  border: 1px solid var(--gold-dim);
  border-radius: 10px;
  background: var(--bg-panel);
  margin-bottom: 8px;
}
.thanks-title {
  margin: 0 0 8px;
  color: var(--gold-soft);
  font-size: 1.25rem;
  font-weight: 600;
}
.form-thanks p { margin: 0; color: var(--muted); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— Catalog cards with image slots —— */
.card-art {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, #1c1c28, #0a0a10);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.card-art-label {
  position: relative;
  z-index: 1;
  color: var(--gold-soft);
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  padding: 8px;
  pointer-events: none;
}
.card-art:has(img) .card-art-label {
  display: none;
}
.g-code {
  color: var(--gold);
  font-weight: 700;
  margin-right: 0.25em;
}
.game-grid-8 {
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .game-grid-8 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .game-grid-8 { grid-template-columns: 1fr 1fr 1fr 1fr; }
}
.game-grid-3 {
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .game-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}
.app-card {
  cursor: default;
}
.app-card:hover {
  transform: none;
}
.books-art {
  width: 100%;
  max-width: 100%;
  margin: 0 auto 16px;
  border-radius: 10px;
  border: 1px solid var(--gold-dim);
  aspect-ratio: auto;
  height: auto;
  overflow: hidden;
}
.books-montage.card-art {
  border-bottom: none;
  display: block;
  position: relative;
}
.books-montage.card-art img {
  position: static;
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  background: #000;
}
.still img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* responsive shell */
html, body { width: 100%; overflow-x: hidden; }
.topnav { width: 100%; }
.game-card h3 {
  margin: 12px 10px 14px;
  text-align: center;
  font-size: 1.02rem;
  color: var(--gold-soft);
  letter-spacing: 0.03em;
  font-weight: 700;
}
.game-card p { display: none; }
.game-card-cta { display: none; }
.contact { padding-left: 16px; padding-right: 16px; }
@media (max-width: 639px) {
  .game-grid-8, .game-grid-3 { grid-template-columns: 1fr 1fr; gap: 10px; }
}
@media (min-width: 640px) and (max-width: 959px) {
  .game-grid-8 { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

/* Dual Threat — same card size as other games */
.mashup-card {
  grid-column: span 1;
}
.mashup-art {
  aspect-ratio: 16 / 9;
}
.mashup-titles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  padding: 14px 12px 16px;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.03em;
}
.mashup-titles a {
  color: var(--gold-soft);
}
.mashup-titles a:hover {
  color: #fff;
}
.mashup-sep {
  color: var(--gold);
  opacity: 0.7;
}


/* —— Books accordion —— */
.accordion-wrap { max-width: 100%; margin: 8px auto 16px; padding: 0; }
.acc-btn {
  width: 100%; background: #1a1a1a; color: var(--gold-soft);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 14px 18px; font-size: 1rem; font-weight: 700;
  text-align: left; cursor: pointer; margin-bottom: 6px;
  display: flex; justify-content: space-between; align-items: center;
  letter-spacing: 0.06em;
}
.acc-btn:hover { background: #22222c; border-color: var(--gold-dim); }
.acc-btn.open { border-color: var(--gold); }
.acc-panel {
  display: none; background: #0e0e14; padding: 16px; margin: 0 0 10px;
  border-radius: 8px; border: 1px solid var(--line);
}
.acc-panel.open { display: block; }
.book-grid { display: flex; flex-wrap: wrap; gap: 16px; justify-content: flex-start; }
.book-item { width: 120px; text-align: center; }
.book-item img {
  width: 120px; height: 180px; object-fit: cover;
  border: 1px solid #333; background: #222; display: block; border-radius: 4px;
}
.book-title { color: var(--muted); font-size: 0.7rem; margin-top: 6px; line-height: 1.3; }
.chevron { font-size: 0.85rem; transition: transform 0.2s; color: var(--gold); }
.acc-btn.open .chevron { transform: rotate(180deg); }
.cookie-note {
  max-width: 42rem; margin: 14px auto 0; font-size: 0.78rem;
  line-height: 1.45; color: var(--muted); opacity: 0.9;
}

.site-pitch {
  text-align: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 20px 2px;
  color: var(--gold-soft);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.4;
}
.site-subhead {
  text-align: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-style: italic;
  letter-spacing: 0.06em;
  line-height: 1.4;
}
