/* Bitrealms Studio: shared header, footer, studio home and coming-soon pages.
   Tokens match the Digging Deep page so every game page reads as one site. */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-deep: #0D0816;
  --bg-dark: #181022;
  --bg-mid: #2A1740;
  --bg-light: #3A2056;
  --gold: #FFCD28;
  --gold-light: #FFE066;
  --orange: #FF8C00;
  --diamond: #4DD9FF;
  --white: #F5F0FF;
  --white-dim: #C0B0D8;
  --line: rgba(255, 205, 40, 0.15);
  --font-display: 'Luckiest Guy', cursive;
  --font-body: 'Inter', system-ui, sans-serif;

  /* One accent per game, taken from its own icon. */
  --dd1: #FFCD28;
  --dd1-deep: #FF8C00;
  --dd2: #FF7A45;
  --dd2-deep: #C2361B;
  --om: #5CC2FF;
  --om-deep: #1B5FA8;

  --header-h: 64px;
  --radius: 20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

img { max-width: 100%; }

a { color: var(--gold); }

:focus-visible {
  outline: 3px solid var(--diamond);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ── SKIP LINK ── */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--gold);
  color: var(--bg-dark);
  font-weight: 700;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }

/* ── SITE HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.9);
}

/* The glass sits on a pseudo-element: a backdrop-filter on the header itself would stop
   the mobile dropdown (which hangs below it) from blurring the page behind. */
.site-header::before,
.site-header::after {
  content: '';
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.site-header::before {
  inset: 0;
  background: linear-gradient(180deg, rgba(32, 20, 50, 0.8), rgba(13, 8, 22, 0.76));
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.site-header::after {
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent, var(--gold)) 50%, transparent);
  opacity: 0.35;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header::before { background: rgba(13, 8, 22, 0.97); }
}

.site-nav {
  max-width: 1180px;
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 1px;
  color: var(--gold);
  text-decoration: none;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
  margin-right: auto;
  white-space: nowrap;
  line-height: var(--header-h);
}

.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.nav-links a {
  display: block;
  color: var(--white-dim);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  transition: color 0.2s, background-color 0.2s;
}

.nav-links a:hover { color: var(--white); background: rgba(255, 255, 255, 0.06); }
.nav-links a[aria-current="page"] { color: var(--bg-dark); background: var(--accent, var(--gold)); }

/* The button keeps its "Menu" text as the accessible name; the bars are drawn over it.
   ::before is the middle bar (box-shadows are the outer two); open turns it and ::after into an X. */
.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  font-size: 0;
  color: transparent;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.nav-toggle::before,
.nav-toggle::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  margin: -1px 0 0 -9px;
  border-radius: 2px;
  background: var(--white);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.nav-toggle::before { box-shadow: 0 -6px 0 var(--white), 0 6px 0 var(--white); }
.nav-toggle::after { opacity: 0; }
.nav-toggle:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.22); }
.nav-toggle[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent, var(--gold));
}
.nav-toggle[aria-expanded="true"]::before { box-shadow: none; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"]::after { opacity: 1; transform: rotate(-45deg); }

/* The menu only collapses once JS is there to open it again. */
@media (max-width: 760px) {
  html.js .nav-toggle { display: block; }
  html.js .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.25rem 1.25rem 0.75rem;
    background: rgba(13, 8, 22, 0.9);
    -webkit-backdrop-filter: blur(18px) saturate(170%);
    backdrop-filter: blur(18px) saturate(170%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.9);
  }
  html.js .site-nav.open .nav-links { display: flex; animation: navDrop 0.18s ease-out; }
  html.js .nav-links li + li { border-top: 1px solid rgba(255, 255, 255, 0.06); }
  html.js .nav-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0.25rem;
    border-radius: 0;
    font-size: 1.05rem;
    color: var(--white);
  }
  html.js .nav-links a::after {
    content: '';
    width: 7px;
    height: 7px;
    border: solid var(--white-dim);
    border-width: 2px 2px 0 0;
    transform: rotate(45deg);
    opacity: 0.6;
  }
  html.js .nav-links a:hover { background: none; color: var(--accent, var(--gold)); }
  html.js .nav-links a[aria-current="page"] { background: none; color: var(--accent, var(--gold)); }
  html.js .nav-links a[aria-current="page"]::after {
    width: 8px;
    height: 8px;
    border: 0;
    border-radius: 50%;
    background: var(--accent, var(--gold));
    opacity: 1;
  }
  html:not(.js) .nav-links { width: 100%; padding-bottom: 0.75rem; }
}

@keyframes navDrop {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 380px) {
  .site-nav { padding: 0 1rem; gap: 0.75rem; }
  .site-header .site-brand { font-size: 1.2rem; }
  html.js .nav-links { padding-inline: 1rem; }
}

/* ── SHARED BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 1px;
  line-height: 1.2;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.btn svg { width: 24px; height: 24px; flex-shrink: 0; }

.btn-play {
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: var(--bg-dark);
  box-shadow: 0 6px 30px rgba(255, 205, 40, 0.3);
}
.btn-play:hover { transform: translateY(-2px); box-shadow: 0 10px 40px rgba(255, 205, 40, 0.45); }

.btn-ghost {
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
}
.btn-ghost:hover { border-color: var(--accent, var(--gold)); transform: translateY(-2px); }

/* ── STATUS PILLS ── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
}
.pill::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.pill-live { color: #7CFFA0; background: rgba(124, 255, 160, 0.1); border: 1px solid rgba(124, 255, 160, 0.3); }
.pill-soon { color: var(--accent, var(--gold)); background: rgba(255, 255, 255, 0.05); border: 1px solid currentColor; }

/* ── GAME ICONS ── */
.game-icon {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  flex-shrink: 0;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06);
  object-fit: cover;
}

.accent-dd1 { --accent: var(--dd1); --accent-deep: var(--dd1-deep); }
.accent-dd2 { --accent: var(--dd2); --accent-deep: var(--dd2-deep); }
.accent-om  { --accent: var(--om);  --accent-deep: var(--om-deep); }

/* ── STUDIO HOME: HERO ── */
.studio-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(4rem, 10vw, 7rem) 1.5rem clamp(3rem, 8vw, 5rem);
  background:
    radial-gradient(60% 60% at 20% 30%, rgba(255, 205, 40, 0.12), transparent 70%),
    radial-gradient(50% 55% at 85% 25%, rgba(92, 194, 255, 0.12), transparent 70%),
    radial-gradient(55% 60% at 55% 95%, rgba(255, 122, 69, 0.12), transparent 70%),
    linear-gradient(180deg, var(--bg-dark), var(--bg-mid) 70%, var(--bg-deep));
}

.studio-kicker {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--diamond);
  margin-bottom: 1rem;
}

.studio-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 9vw, 6rem);
  line-height: 1.02;
  letter-spacing: 2px;
  color: var(--gold);
  text-shadow: 3px 3px 0 var(--orange), 6px 6px 0 rgba(0, 0, 0, 0.3);
}

.studio-lede {
  max-width: 40rem;
  margin: 1.25rem auto 0;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--white-dim);
}

.studio-lede strong { color: var(--white); font-weight: 600; }

.hero-icons {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(0.75rem, 3vw, 2rem);
  margin: clamp(2.25rem, 6vw, 3.5rem) 0 0;
  list-style: none;
}

.hero-icons li { position: relative; }
.hero-icons a { display: block; border-radius: 26px; text-decoration: none; }
.hero-icons .game-icon { width: clamp(84px, 18vw, 136px); height: clamp(84px, 18vw, 136px); }
.hero-icons li:nth-child(1) .game-icon { transform: rotate(-6deg); }
.hero-icons li:nth-child(2) .game-icon { transform: translateY(-14px); }
.hero-icons li:nth-child(3) .game-icon { transform: rotate(6deg); }
.hero-icons a:hover .game-icon { transform: translateY(-20px) rotate(0); }
.hero-icons .game-icon { transition: transform 0.3s; }

.hero-icons .icon-tag {
  position: absolute;
  left: 50%;
  bottom: -0.9rem;
  transform: translateX(-50%);
  white-space: nowrap;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bg-dark);
  background: var(--accent, var(--gold));
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: clamp(2.75rem, 6vw, 3.5rem);
}

/* ── STUDIO HOME: SECTIONS ── */
.studio-section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 1.25rem;
  position: relative;
}

.section-head {
  max-width: 1180px;
  margin: 0 auto 2.25rem;
  text-align: center;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 3rem);
  color: var(--gold);
  letter-spacing: 1px;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}

.section-head p { color: var(--white-dim); margin-top: 0.5rem; }

/* ── GAME CARDS ── */
.games-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  list-style: none;
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(58, 32, 86, 0.55), rgba(24, 16, 34, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.4);
}

.game-card-art {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 190px;
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  background:
    radial-gradient(70% 90% at 50% 100%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.game-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.5rem 1.5rem 1.75rem;
  flex: 1;
}

.game-card h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1.1;
  letter-spacing: 1px;
  color: var(--accent);
}

.game-card h3 a { color: inherit; text-decoration: none; }
.game-card h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }

.game-card p { color: var(--white-dim); font-size: 0.97rem; }
.game-card .pill { align-self: flex-start; }

.game-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.game-card-actions .btn { font-size: 0.98rem; padding: 12px 20px; flex: 1 1 auto; }

/* ── STUDIO STRIP ── */
.about-section {
  background: linear-gradient(180deg, var(--bg-deep), var(--bg-dark) 50%, var(--bg-deep));
}

.about-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  align-items: start;
}
.about-grid > * { min-width: 0; }

.about-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  color: var(--gold);
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.about-copy p { color: var(--white-dim); }
.about-copy p + p { margin-top: 0.9rem; }

.fact-list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.fact-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  background: rgba(58, 32, 86, 0.35);
  border: 1px solid var(--line);
}

.fact-list span:first-child { color: var(--white-dim); font-size: 0.9rem; }
.fact-list span:last-child { min-width: 0; overflow-wrap: anywhere; font-weight: 600; text-align: right; }

/* ── FOLLOW STRIP ── */
.follow-section { text-align: center; }

.follow-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  margin-top: 1.5rem;
}

.follow-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s, background-color 0.2s;
}

.follow-links a:hover { border-color: var(--gold); background: rgba(255, 205, 40, 0.06); }

.soon-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 5rem);
  line-height: 1.05;
  letter-spacing: 2px;
  color: var(--accent);
  text-shadow: 3px 3px 0 var(--accent-deep), 6px 6px 0 rgba(0, 0, 0, 0.3);
  margin: 1.75rem 0 1rem;
}

.soon-lede {
  max-width: 38rem;
  margin: 1.25rem auto 0;
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  color: var(--white-dim);
}

.soon-panel {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.panel {
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  background: linear-gradient(160deg, rgba(58, 32, 86, 0.45), rgba(24, 16, 34, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.panel h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 1px;
  color: var(--accent, var(--gold));
  margin-bottom: 0.6rem;
}

.panel p { color: var(--white-dim); }
.panel p + p { margin-top: 0.75rem; }
.panel .follow-links { justify-content: flex-start; margin-top: 1rem; }

.panel-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.panel-row .game-icon { width: 72px; height: 72px; border-radius: 18px; }
.panel-row > div { flex: 1; min-width: 12rem; }

/* ── SITE FOOTER ── */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid rgba(255, 205, 40, 0.1);
  padding: 3rem 1.25rem 2rem;
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 2rem;
}

.footer-brand .site-brand { font-size: 1.5rem; }
.footer-brand p { color: var(--white-dim); font-size: 0.9rem; margin-top: 0.6rem; max-width: 22rem; }

.footer-col h2 {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.footer-col ul { list-style: none; display: grid; gap: 0.4rem; }

.footer-col a {
  color: var(--white-dim);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

.footer-copy {
  max-width: 1180px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  color: var(--white-dim);
  opacity: 0.75;
  text-align: center;
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .games-grid { grid-template-columns: 1fr; max-width: 560px; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .game-card-actions .btn { flex: 1 1 100%; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── BRAND MARK ── */
.site-brand { display: inline-flex; align-items: center; gap: 0.55rem; }
/* Luckiest Guy's ink sits ~0.14em above its line box centre; this lines the wordmark up with the icon. */
.site-brand span { transform: translateY(0.14em); }
.site-brand img { width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0; }
.footer-brand .site-brand img { width: 40px; height: 40px; border-radius: 10px; }

/* ── HOME CARD ART: a real game frame, the game's icon, and a label on development captures ── */
.game-card-art { position: relative; padding: 0; min-height: 0; aspect-ratio: 16 / 10; overflow: hidden; }
.card-shot { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-icon {
  position: absolute;
  left: 14px; bottom: 14px;
  width: 56px; height: 56px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(255, 255, 255, 0.85);
}
.game-card-art .dev-tag { position: absolute; top: 12px; right: 12px; }

.dev-tag {
  display: inline-block;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(13, 8, 22, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* ── UPCOMING GAME PAGES ── */
.game-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 5rem) 1.25rem;
  background: linear-gradient(180deg, var(--bg-dark), var(--bg-mid) 75%, var(--bg-deep));
  background:
    radial-gradient(55% 70% at 75% 30%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%),
    linear-gradient(180deg, var(--bg-dark), var(--bg-mid) 75%, var(--bg-deep));
}

.game-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.game-hero-copy .game-icon { width: 96px; height: 96px; border-radius: 24px; display: block; margin-bottom: 1.25rem; }
.game-hero-copy .soon-title { margin: 0.9rem 0 0; text-align: left; }
.game-hero-copy .soon-lede { margin: 1rem 0 0; color: var(--white); font-weight: 600; max-width: none; }
.game-intro { color: var(--white-dim); margin-top: 0.9rem; max-width: 36rem; }
.game-hero-copy .hero-actions { justify-content: flex-start; margin-top: 2rem; }

.phone-shot {
  position: relative;
  justify-self: center;
  width: min(100%, 300px);
  padding: 10px;
  border-radius: 34px;
  background: #0b0712;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 0 6px color-mix(in srgb, var(--accent) 25%, transparent);
}
.phone-shot img { display: block; width: 100%; height: auto; border-radius: 26px; }
.phone-shot figcaption { position: absolute; bottom: -13px; left: 50%; transform: translateX(-50%); }

.feature-grid {
  max-width: 1100px;
  margin: 0 auto;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.feature-tile {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(58, 32, 86, 0.5), rgba(24, 16, 34, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 3px solid var(--accent);
}
.feature-tile h3 { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 1px; color: var(--accent); margin-bottom: 0.4rem; }
.feature-tile p { color: var(--white-dim); font-size: 0.97rem; }

.previews-section { background: linear-gradient(180deg, var(--bg-deep), var(--bg-dark) 50%, var(--bg-deep)); }

.dev-gallery {
  max-width: 1100px;
  margin: 0 auto;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.dev-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}
.dev-shot figcaption { margin-top: 0.7rem; color: var(--white-dim); font-size: 0.9rem; line-height: 1.5; }
.dev-shot .dev-tag { margin-right: 0.35rem; vertical-align: 1px; }

@media (max-width: 960px) {
  .game-hero-inner { grid-template-columns: 1fr; }
  .phone-shot { width: min(100%, 280px); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dev-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .game-hero-copy .hero-actions .btn { flex: 1 1 100%; }
}

/* Course previews are game-camera views, not phone screens: frame them as a plain card. */
.phone-shot.course-shot { width: min(100%, 340px); border-radius: 22px; padding: 8px; }
.phone-shot.course-shot img { border-radius: 16px; }

/* Narrow phones: gallery captions are ~140px wide, so the badge has to be allowed to wrap. */
.dev-shot .dev-tag { max-width: 100%; white-space: normal; }
@media (max-width: 400px) {
  .dev-gallery { gap: 0.9rem; }
  .dev-shot figcaption { font-size: 0.82rem; }
  .dev-shot .dev-tag { display: table; margin: 0 0 0.35rem; font-size: 0.62rem; }
}

/* Outmarbled: user-approved landscape screenshots, shown without cropping. */
.game-card.accent-om .card-shot { object-fit: contain; }
body.accent-om .phone-shot.course-shot { width: 100%; }
body.accent-om .dev-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.accent-om .dev-shot > a { display: block; border-radius: 16px; }
@media (max-width: 560px) {
  body.accent-om .dev-gallery { grid-template-columns: minmax(0, 1fr); }
}

/* Outmarbled collection preview. */
body.accent-om .collection-shot { max-width: 1100px; margin: 0 auto; }
