/* Master Rummy — cash lobby visual system (self-hosted fonts) */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/dm-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/dm-sans-600.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/dm-sans-700.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/fraunces-700.woff2") format("woff2");
}

:root {
  --felt: #0a3d32;
  --felt-deep: #072e26;
  --felt-mid: #0f5746;
  --felt-lift: #127a62;
  --gold: #d4b45a;
  --gold-bright: #f0d78c;
  --gold-deep: #a8841a;
  --ink: #f4faf7;
  --text: #14201b;
  --muted: #4a5f56;
  --bg: #eef3ef;
  --bg-deep: #dde8e1;
  --surface: #f7faf8;
  --line: #c9d8cf;
  --line-strong: #a8bfb3;
  --accent: #0b5c4a;
  --accent-hover: #084538;
  --accent-soft: #d5ebe3;
  --warn-bg: #fff5f4;
  --warn-line: #c44;
  --max: 780px;
  --max-wide: 1100px;
  --font: "DM Sans", "Segoe UI", "Noto Sans", sans-serif;
  --font-display: "Fraunces", "Georgia", serif;
  --radius: 12px;
  --shadow: 0 16px 40px rgba(7, 40, 32, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 45% at 10% 0%, rgba(212, 180, 90, 0.18), transparent 50%),
    radial-gradient(ellipse 70% 50% at 100% 10%, rgba(15, 87, 70, 0.16), transparent 55%),
    linear-gradient(180deg, #e8f0eb 0%, var(--bg) 35%, var(--bg-deep) 100%);
  background-attachment: fixed;
}

/* Felt grain + diamond motif */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cpath fill='none' stroke='%230b5c4a' stroke-opacity='0.07' d='M32 4 L60 32 L32 60 L4 32 Z'/%3E%3C/svg%3E"),
    radial-gradient(circle at 50% 0%, rgba(10, 61, 50, 0.06), transparent 55%);
  background-size: 64px 64px, auto;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--gold-deep);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.container-wide {
  width: min(100% - 2rem, var(--max-wide));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(212, 180, 90, 0.28);
  background:
    linear-gradient(180deg, rgba(10, 61, 50, 0.97), rgba(7, 46, 38, 0.96));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  position: relative;
  width: min(100% - 2rem, var(--max-wide));
  margin-inline: auto;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.brand::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  transform: rotate(45deg);
  border-radius: 2px;
  box-shadow: 0 0 0 2px rgba(212, 180, 90, 0.25);
}

.brand span {
  color: var(--gold-bright);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: rgba(244, 250, 247, 0.78);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--gold-bright);
  background: rgba(212, 180, 90, 0.12);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.72rem 1.25rem;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

/* Cash / gold CTA */
.btn-primary {
  background: linear-gradient(180deg, #f0d78c 0%, #d4b45a 45%, #b8922e 100%);
  color: #1a1408;
  border-color: rgba(168, 132, 26, 0.45);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 8px 22px rgba(168, 132, 26, 0.35);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #f6e2a8 0%, #e0c166 45%, #c4a035 100%);
  color: #1a1408;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 10px 26px rgba(168, 132, 26, 0.45);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  border-color: rgba(244, 250, 247, 0.28);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(212, 180, 90, 0.1);
}

/* Outside dark heroes, ghost on light bg */
.section .btn-ghost,
.site-footer .btn-ghost {
  background: rgba(11, 92, 74, 0.04);
  color: var(--text);
  border-color: var(--line-strong);
}

.section .btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #fff;
}

.nav-actions .btn-ghost {
  color: var(--ink);
  border-color: rgba(244, 250, 247, 0.28);
}

/* —— Heroes —— */
.hero {
  padding: 2.5rem 0 2rem;
  position: relative;
  z-index: 1;
}

/* Inner pages: felt strip */
.hero:not(.hero-home) {
  background:
    linear-gradient(135deg, var(--felt) 0%, var(--felt-mid) 55%, #0c4a3c 100%);
  color: var(--ink);
  padding: 2.75rem 0 2.25rem;
  margin-bottom: 0.25rem;
  box-shadow: inset 0 -1px 0 rgba(212, 180, 90, 0.22);
  overflow: hidden;
}

.hero:not(.hero-home)::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 90% 20%, rgba(212, 180, 90, 0.22), transparent 35%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath fill='none' stroke='%23d4b45a' stroke-opacity='0.08' d='M24 2 L46 24 L24 46 L2 24 Z'/%3E%3C/svg%3E");
  background-size: auto, 48px 48px;
  pointer-events: none;
}

.hero:not(.hero-home) .hero-kicker {
  color: rgba(240, 215, 140, 0.85);
}

.hero:not(.hero-home) h1,
.hero:not(.hero-home) .page-title {
  color: #fff;
  max-width: 24ch;
}

.hero:not(.hero-home) .lead {
  color: rgba(244, 250, 247, 0.88);
}

.hero:not(.hero-home) .lead a {
  color: var(--gold-bright);
}

.hero:not(.hero-home) .meta-line {
  color: rgba(244, 250, 247, 0.65);
}

.hero:not(.hero-home) .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
}

.hero:not(.hero-home) .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

.hero-home {
  padding: 3.25rem 0 2.75rem;
  overflow: hidden;
}

.hero-home::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: min(82vh, 680px);
  background:
    radial-gradient(circle at 78% 18%, rgba(240, 215, 140, 0.28), transparent 32%),
    radial-gradient(circle at 12% 80%, rgba(18, 122, 98, 0.45), transparent 40%),
    linear-gradient(145deg, #0c4f40 0%, var(--felt) 42%, #051f1a 100%);
  z-index: 0;
  clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%);
  box-shadow: inset 0 -40px 80px rgba(0, 0, 0, 0.25);
}

.hero-home::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: min(82vh, 680px);
  z-index: 0;
  opacity: 0.35;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath fill='none' stroke='%23d4b45a' stroke-opacity='0.14' d='M28 3 L53 28 L28 53 L3 28 Z'/%3E%3C/svg%3E");
  background-size: 56px 56px;
  clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: end;
  position: relative;
  z-index: 1;
}

.hero-copy {
  color: var(--ink);
  padding-bottom: 1.25rem;
  animation: rise 0.7s var(--ease) both;
}

.hero-home .hero-kicker {
  color: rgba(240, 215, 140, 0.8);
}

.hero-home .brand-hero {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6.5vw, 3.85rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
  color: #fff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.hero-home .brand-hero span {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-home h1 {
  max-width: none;
  color: rgba(244, 250, 247, 0.95);
  font-size: clamp(1.3rem, 2.6vw, 1.65rem);
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.85rem;
}

.hero-home .lead {
  color: rgba(244, 250, 247, 0.86);
  max-width: 34rem;
}

.hero-home .meta-line {
  color: rgba(244, 250, 247, 0.62);
}

.hero-home .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.hero-home .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

.hero-visual {
  display: flex;
  justify-content: center;
  gap: 1rem;
  animation: rise 0.85s var(--ease) 0.12s both;
  padding-bottom: 0.5rem;
}

.hero-visual figure {
  margin: 0;
  width: min(40%, 168px);
  transition: transform 0.45s var(--ease);
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.35));
}

.hero-visual figure:first-child {
  transform: rotate(-6deg) translateY(18px);
}

.hero-visual figure:last-child {
  transform: rotate(5deg) translateY(0);
}

.hero-visual figure:hover {
  transform: rotate(0deg) translateY(-6px) scale(1.03);
  z-index: 2;
}

.hero-visual img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 3px solid rgba(240, 215, 140, 0.45);
  background: var(--felt-deep);
}

.hero-visual figcaption {
  display: none;
}

.hero-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.hero h1,
.page-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 4vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
  max-width: 22ch;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 38rem;
  margin-bottom: 1.35rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.meta-line {
  font-size: 0.875rem;
  color: var(--muted);
}

/* Cash chips under meta */
.meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
  list-style: none;
}

.meta-chips li {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  color: var(--gold-bright);
  background: rgba(7, 46, 38, 0.45);
  border: 1px solid rgba(212, 180, 90, 0.35);
}

.hero:not(.hero-home) .meta-chips li {
  background: rgba(0, 0, 0, 0.2);
}

/* —— Sections —— */
.section {
  padding: 2.15rem 0;
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(11, 92, 74, 0.1);
}

.section h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
  display: block;
  width: 100%;
  max-width: none;
  color: var(--felt);
  padding-bottom: 0.65rem;
  border-bottom: 2px solid rgba(11, 92, 74, 0.12);
  position: relative;
}

.section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 3rem;
  height: 2px;
  border-radius: 0;
  background: linear-gradient(90deg, var(--gold), var(--felt-lift));
}

.section h3 {
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.15rem 0 0.4rem;
}

.section p,
.section li {
  color: var(--muted);
}

.section p + p {
  margin-top: 0.7rem;
}

.section ul:not(.game-list):not(.guide-list):not(.meta-chips):not(.footer-nav),
.section ol {
  margin: 0.7rem 0 0;
  padding-left: 0;
  list-style: none;
}

.section ul:not(.game-list):not(.guide-list):not(.meta-chips) > li,
.section ol > li {
  position: relative;
  padding-left: 1.15rem;
  margin-top: 0.45rem;
}

.section ul:not(.game-list):not(.guide-list):not(.meta-chips) > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 1px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  transform: rotate(45deg);
}

/* —— Game lobby list (aligned) —— */
.game-list {
  list-style: none;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.55rem;
  padding: 0;
}

.game-list > li {
  margin: 0;
  padding: 0;
}

.game-list > li::before {
  display: none;
}

.game-list a {
  display: grid;
  grid-template-columns: minmax(7.5rem, 9.5rem) 1fr auto;
  align-items: center;
  column-gap: 1rem;
  padding: 1rem 1.1rem 1rem 1rem;
  text-decoration: none;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(11, 92, 74, 0.08), transparent 28%),
    var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--felt-mid);
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(7, 40, 32, 0.04);
  transition:
    border-color 0.2s var(--ease),
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    background 0.2s var(--ease);
}

.game-list a::after {
  content: "›";
  color: var(--gold-deep);
  font-size: 1.25rem;
  font-weight: 700;
  opacity: 0.55;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.game-list a:hover {
  color: var(--felt);
  border-color: rgba(11, 92, 74, 0.35);
  border-left-color: var(--gold);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  background:
    linear-gradient(90deg, rgba(212, 180, 90, 0.12), transparent 40%),
    #fff;
}

.game-list a:hover::after {
  opacity: 1;
  transform: translateX(3px);
}

.game-list strong {
  font-family: var(--font);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--felt);
}

.game-list span {
  color: var(--muted);
  font-size: 0.875rem;
  text-align: left;
  justify-self: start;
}

/* —— Tables —— */
.table-wrap {
  overflow-x: auto;
  margin-top: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.35rem 1rem;
  box-shadow: 0 8px 24px rgba(7, 40, 32, 0.05);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  padding: 0.75rem 0.35rem;
  border-bottom: 1px solid var(--line);
}

tr:last-child td {
  border-bottom: 0;
}

th {
  color: var(--felt);
  font-weight: 700;
}

td {
  color: var(--muted);
}

tr:nth-child(even) td {
  background: rgba(11, 92, 74, 0.03);
}

/* —— FAQ —— */
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1.05rem;
  margin-top: 0.55rem;
  background: var(--surface);
  box-shadow: 0 4px 14px rgba(7, 40, 32, 0.04);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.faq details[open] {
  border-color: rgba(212, 180, 90, 0.55);
  box-shadow: 0 8px 22px rgba(7, 40, 32, 0.08);
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--felt);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex-shrink: 0;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 4px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #1a1408;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin-top: 0.55rem;
  color: var(--muted);
}

/* —— Guides —— */
.guide-list {
  list-style: none;
  margin-top: 0.75rem;
  display: grid;
  gap: 0.45rem;
  padding: 0;
}

.guide-list > li {
  margin: 0;
  padding: 0;
}

.guide-list > li::before {
  display: none;
}

.guide-list a {
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  display: grid;
  grid-template-columns: 0.55rem 1fr;
  align-items: center;
  column-gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}

.guide-list a::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 1px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  transform: rotate(45deg);
}

.guide-list a:hover {
  color: var(--felt);
  border-color: rgba(11, 92, 74, 0.35);
  background: #fff;
  transform: translateX(2px);
}

.guide-cat {
  margin-top: 1.5rem;
}

.prose {
  max-width: none;
}

.prose > p,
.prose > .lead,
.prose > ul:not(.game-list):not(.guide-list):not(.meta-chips),
.prose > ol,
.prose > .note,
.prose > .table-wrap,
.prose > .faq,
.prose > .cta-row,
.prose > .meta-line,
.prose > .shot-row {
  max-width: 40rem;
}

.prose .lead {
  margin-top: 0.35rem;
}

.note {
  margin-top: 1rem;
  padding: 0.95rem 1.05rem;
  border-left: 4px solid var(--felt-mid);
  background: linear-gradient(90deg, var(--accent-soft), rgba(255, 255, 255, 0.6));
  color: var(--muted);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.warn {
  border-left-color: var(--warn-line);
  background: var(--warn-bg);
}

/* —— Footer —— */
.site-footer {
  margin-top: 2.5rem;
  padding: 2.25rem 0 2.75rem;
  position: relative;
  z-index: 1;
  color: rgba(244, 250, 247, 0.75);
  font-size: 0.875rem;
  background:
    radial-gradient(circle at 80% 0%, rgba(212, 180, 90, 0.18), transparent 40%),
    linear-gradient(180deg, var(--felt-mid), var(--felt-deep));
  border-top: 2px solid rgba(212, 180, 90, 0.35);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
  list-style: none;
  margin-bottom: 0.85rem;
}

.footer-nav a {
  color: rgba(244, 250, 247, 0.8);
  text-decoration: none;
  font-weight: 600;
}

.footer-nav a:hover {
  color: var(--gold-bright);
}

.age-badge {
  display: inline-block;
  margin-top: 0.65rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid rgba(212, 180, 90, 0.45);
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--gold-bright);
  background: rgba(0, 0, 0, 0.2);
}

.menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(244, 250, 247, 0.28);
  color: #fff;
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  font-family: var(--font);
  font-weight: 700;
  cursor: pointer;
}

.shot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.35rem;
  align-items: flex-end;
}

.shot-row figure {
  margin: 0;
}

.shot-row .shot-phone {
  max-width: 140px;
}

.shot-row .shot-wide {
  max-width: 280px;
  flex: 1 1 220px;
}

.shot-row img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 2px solid rgba(212, 180, 90, 0.4);
  background: var(--felt-deep);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.shot-row figcaption {
  font-size: 0.8rem;
  color: rgba(244, 250, 247, 0.65);
  margin-top: 0.4rem;
}

.hero:not(.hero-home) .shot-row figcaption {
  color: rgba(244, 250, 247, 0.65);
}

.brand-mark {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  border: 2px solid rgba(212, 180, 90, 0.45);
}

/* Download hero extras */
.hero-download .download-brand {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.download-icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(240, 215, 140, 0.5);
}

.hero-download .page-title {
  max-width: 18ch;
  margin-bottom: 0;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .hero-home::before,
  .hero-home::after {
    height: auto;
    inset: 0;
    clip-path: none;
    border-radius: 0 0 28px 28px;
  }

  .hero-visual {
    order: -1;
    padding-top: 0.25rem;
  }

  .hero-visual figure {
    width: min(44%, 160px);
  }

  .game-list a {
    grid-template-columns: 1fr auto;
    row-gap: 0.2rem;
  }

  .game-list strong {
    grid-column: 1;
  }

  .game-list span {
    grid-column: 1;
  }

  .game-list a::after {
    grid-row: 1 / span 2;
    grid-column: 2;
    align-self: center;
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .nav-links.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    background: rgba(7, 46, 38, 0.98);
    border: 1px solid rgba(212, 180, 90, 0.25);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow);
    z-index: 20;
  }

  .menu-toggle {
    display: inline-flex;
  }
}

/* Game collection grid */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.collection-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.15rem 1.2rem;
  text-decoration: none;
  color: var(--text);
  background:
    linear-gradient(165deg, rgba(11, 92, 74, 0.08), transparent 42%),
    var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--felt-mid);
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(7, 40, 32, 0.05);
  transition:
    transform 0.2s var(--ease),
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
  min-height: 100%;
}

.collection-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 180, 90, 0.55);
  box-shadow: var(--shadow);
  color: var(--text);
}

.collection-card--anchor {
  border-top-color: var(--gold);
  background:
    linear-gradient(165deg, rgba(212, 180, 90, 0.14), transparent 45%),
    var(--surface);
}

.collection-tag {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-deep);
  background: rgba(212, 180, 90, 0.16);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.collection-card strong {
  font-size: 1.2rem;
  color: var(--felt);
  font-weight: 700;
}

.collection-meta {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

.collection-card p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
  margin: 0.15rem 0 0;
}

.collection-cta {
  margin-top: 0.55rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
}

.collection-card:hover .collection-cta {
  color: var(--gold-deep);
}

@media (max-width: 900px) {
  .collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .collection-grid {
    grid-template-columns: 1fr;
  }
}

/* Player reviews on game pages */
.review-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.review {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: 0 6px 16px rgba(7, 40, 32, 0.04);
}

.review header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-bottom: 0.55rem;
}

.review header strong {
  color: var(--felt);
  font-size: 0.95rem;
}

.review-meta {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.review-q {
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
}

.review-a {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.review-a a {
  font-weight: 600;
}

/* SEO: breadcrumbs + on-this-page TOC */
.breadcrumbs {
  margin: 0 0 1rem;
  font-size: 0.82rem;
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.35rem;
  margin: 0;
  padding: 0;
  color: rgba(244, 250, 247, 0.7);
}

.hero:not(.hero-home) .breadcrumbs a {
  color: rgba(240, 215, 140, 0.9);
  text-decoration: none;
  font-weight: 600;
}

.hero:not(.hero-home) .breadcrumbs a:hover {
  color: #fff;
  text-decoration: underline;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.35rem;
  opacity: 0.55;
  color: inherit;
}

.breadcrumbs [aria-current="page"] {
  color: #fff;
  font-weight: 700;
}

.page-toc {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 180, 90, 0.28);
  border-radius: 10px;
  max-width: 40rem;
}

.page-toc strong {
  display: block;
  color: var(--gold-bright);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.page-toc ol {
  margin: 0;
  padding-left: 1.1rem;
  columns: 2;
  column-gap: 1.25rem;
}

.page-toc li {
  margin: 0.2rem 0;
  break-inside: avoid;
}

.page-toc a {
  color: rgba(244, 250, 247, 0.9);
  font-size: 0.86rem;
  text-decoration: none;
  font-weight: 600;
}

.page-toc a:hover {
  color: var(--gold-bright);
  text-decoration: underline;
}

@media (max-width: 640px) {
  .page-toc ol {
    columns: 1;
  }
}

.updated-line {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.hero:not(.hero-home) .updated-line {
  color: rgba(244, 250, 247, 0.65);
}
