:root {
  --bg: #071d17;
  --bg-deep: #04120e;
  --panel: #102e24;
  --panel-soft: #15382a;
  --text: #f5ecdb;
  --muted: #d5cbb4;
  --dim: #b8b09d;
  --gold: #e9c57b;
  --gold-deep: #bd8f3e;
  --line: rgba(227, 193, 117, 0.24);
  --serif: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  --page-title-size: clamp(2rem, 2.7vw, 2.8rem);
  --section-title-size: clamp(1.5rem, 2vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid #f4d691; outline-offset: 4px; }
::selection { background: #e9c57b; color: #10271e; }
.shell { width: min(100% - 40px, 1160px); margin-inline: auto; }
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: 8px;
  color: #13281e;
  background: var(--gold);
}
.skip-link:focus { top: 12px; }

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(4, 20, 15, 0.96);
}
.header-inner {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0; text-decoration: none; }
.brand span { font-family: var(--serif); font-size: 1.32rem; font-weight: 700; white-space: nowrap; }
.brand strong { color: var(--gold); font-size: 1.28em; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 18px; }
.main-nav a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 6px 3px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: #fff4d8; }
.main-nav a[aria-current="page"] { box-shadow: inset 0 -2px var(--gold); }
.main-nav .nav-play {
  min-height: 44px;
  padding: 8px 17px;
  border: 1px solid #e8c476;
  border-radius: 9px;
  color: #241803;
  background: linear-gradient(#f5dda1, #d6a756);
  box-shadow: inset 0 1px rgba(255,255,255,.55), 0 4px 16px rgba(0,0,0,.22);
}
.main-nav .nav-play:hover { color: #241803; filter: brightness(1.06); }
.mobile-menu { display: none; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
}
h1, h2, h3, p { overflow-wrap: break-word; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.16; }
h1 { margin: 0 0 22px; font-size: var(--page-title-size); letter-spacing: -0.025em; line-height: 1.08; }
h2 { margin: 0 0 20px; font-size: var(--section-title-size); letter-spacing: -0.02em; }
h3 { margin: 0 0 9px; font-size: 1.28rem; }
p { margin: 0 0 1.1em; }
.lead { max-width: 650px; color: #e6dbc5; font-size: clamp(1.06rem, 1.6vw, 1.28rem); line-height: 1.68; }
.prose { color: var(--muted); font-size: 1.04rem; }
.prose p:last-child { margin-bottom: 0; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 11px 21px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
  text-align: center;
  transition: transform .15s ease, filter .15s ease, background .15s ease;
}
.button:hover { transform: translateY(-2px); filter: brightness(1.07); }
.button-primary { border-color: #efcc83; color: #241803; background: linear-gradient(#f6dda0, #d2a151); box-shadow: 0 8px 20px rgba(0,0,0,.22), inset 0 1px rgba(255,255,255,.55); }
.button-outline { border-color: rgba(234, 199, 124, .58); color: #f6e6c2; background: rgba(12, 43, 31, .8); }
.text-link { display: inline-flex; min-height: 44px; align-items: center; gap: 9px; color: #f0ce8d; font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.text-link:hover { color: #ffe1a5; }

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 45%, rgba(193, 149, 69, .16), transparent 36%),
    radial-gradient(circle at 14% 14%, rgba(46, 121, 81, .3), transparent 32%),
    linear-gradient(135deg, #0a2f22, #062016 60%, #05150f);
}
.hero::after {
  position: absolute;
  right: -120px;
  bottom: -260px;
  width: 700px;
  height: 700px;
  border: 1px solid rgba(235, 196, 112, .1);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.hero-grid {
  display: grid;
  min-height: max(625px, calc(100vh - 82px));
  min-height: max(625px, calc(100svh - 82px));
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 35px;
  padding-block: 80px;
}
.hero-copy { position: relative; z-index: 1; }
.hero-copy .button-row { margin-top: 29px; }
.hero-note { max-width: 575px; margin: 21px 0 0; color: #c1bca7; font-size: .88rem; }
.hero-art { position: relative; display: grid; min-height: 470px; place-items: center; }
.hero-art-ring { position: absolute; width: min(100%, 480px); aspect-ratio: 1; border: 2px solid rgba(240, 202, 122, .33); border-radius: 50%; box-shadow: inset 0 0 0 15px rgba(219, 176, 88, .035), 0 0 0 16px rgba(216, 183, 106, .03), 0 0 85px rgba(0,0,0,.26); }
.hero-art img {
  position: relative;
  display: block;
  width: min(93%, 485px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 22px 28px rgba(0,0,0,.36));
}
.hero-art-caption { position: absolute; right: 0; bottom: 3px; left: 0; color: #d8c696; font-family: var(--serif); font-size: 1.08rem; letter-spacing: .07em; text-align: center; }

.game-modes-section {
  padding-block: clamp(66px, 7vw, 94px);
  border-top: 1px solid rgba(230, 195, 116, .13);
  background: #071f18;
}
.game-modes { scroll-margin-top: 24px; }
.game-modes-heading { margin: 0 auto 32px; text-align: center; }
.game-modes-heading h2 { margin-bottom: 12px; }
.game-modes-heading > p:last-child { margin: 0; color: var(--muted); font-size: 1.05rem; }
.game-mode-grid {
  display: grid;
  max-width: 960px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-inline: auto;
}
.game-mode-card {
  display: grid;
  min-width: 0;
  min-height: 350px;
  grid-template-rows: auto auto minmax(0, 1fr) auto minmax(1.45rem, auto);
  justify-items: center;
  gap: 12px;
  padding: 34px 36px 32px;
  border: 1px solid rgba(233, 197, 123, .24);
  border-radius: 18px;
  background: var(--panel);
  text-align: center;
}
.game-mode-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
  border: 1px solid rgba(233, 197, 123, .32);
  border-radius: 50%;
  color: var(--gold);
  background: #0a281f;
}
.game-mode-icon svg { width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.game-mode-card h3 { margin: 0; color: #fff1d1; font-size: 1.36rem; line-height: 1.2; }
.game-mode-card > p:not(.game-mode-note) { max-width: 38ch; margin: 0; color: var(--muted); font-size: 1.04rem; line-height: 1.62; }
.game-mode-card > .button { min-height: 52px; align-self: end; margin-top: 8px; padding-inline: 24px; }
.game-mode-note { align-self: start; margin: 0; color: var(--dim); font-size: .78rem; line-height: 1.45; }

.section { padding-block: clamp(70px, 8vw, 112px); border-top: 1px solid rgba(230, 195, 116, .1); background: #082219; }
.section-light { background: linear-gradient(150deg, #10372a, #0b2b21); }
.home-main { background: #071d17; }
.home-main > .section {
  border-top-color: rgba(230, 195, 116, .13);
  background: #071f18;
}
.home-main > .section:nth-of-type(even) { background: #0c2b21; }
.home-main > .feature-section::before,
.home-main > .feature-section::after { display: none; }
.two-column { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(32px, 7vw, 110px); }
.section-heading { max-width: 740px; margin-bottom: 34px; }
.section-heading > p:last-child { color: var(--muted); font-size: 1.05rem; }
.step-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); margin: 0 0 25px; padding: 0; list-style: none; }
.step-grid p { margin-bottom: 0; color: var(--muted); }
.feature-section {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background:
    radial-gradient(circle at 8% 12%, rgba(42, 116, 80, .18), transparent 30%),
    radial-gradient(circle at 92% 88%, rgba(201, 156, 72, .1), transparent 29%),
    linear-gradient(145deg, #08251b, #061b15 64%, #071f18);
}
.feature-section::before,
.feature-section::after {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(233, 197, 123, .08);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.feature-section::before { top: -285px; right: -180px; width: 610px; height: 610px; }
.feature-section::after { bottom: -330px; left: -210px; width: 570px; height: 570px; }
.feature-intro { margin-bottom: 36px; }
.feature-heading { max-width: 800px; margin: 0 auto; text-align: center; }
.feature-heading h2 { margin-bottom: 12px; }
.feature-heading > p:last-child { margin: 0; }
.step-grid li {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 242px;
  overflow: hidden;
  flex-direction: column;
  justify-content: flex-start;
  padding: 48px 30px 30px;
  border: 1px solid rgba(233, 197, 123, .2);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(22, 62, 46, .96), rgba(12, 43, 32, .98));
  box-shadow: inset 0 1px rgba(255, 255, 255, .035), 0 20px 40px rgba(0, 10, 7, .24);
  text-align: center;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.step-grid li::before {
  position: absolute;
  top: 0;
  right: 22px;
  left: 22px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #e7bd69 24%, #e7bd69 76%, transparent);
  content: "";
}
.step-grid li::after {
  position: absolute;
  right: -95px;
  bottom: -125px;
  width: 255px;
  height: 255px;
  border: 1px solid rgba(233, 197, 123, .055);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 197, 123, .045), transparent 66%);
  content: "";
  pointer-events: none;
}
.step-grid li > * { position: relative; z-index: 1; }
.step-icon {
  display: inline-block;
  flex: 0 0 auto;
  color: #f2cb7d;
  font-family: Georgia, serif;
  font-size: 1.3rem;
  line-height: 1;
}
.step-grid h3 { display: flex; align-items: center; justify-content: center; gap: 11px; margin: 0 0 14px; color: #fff1d1; font-size: clamp(1.28rem, 1.4vw, 1.38rem); }
.step-grid p { max-width: 35ch; margin-inline: auto; line-height: 1.72; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.feature-showcase { min-width: 0; margin: 0; padding: 0; border: 0; }
.feature-tabs {
  display: grid;
  max-width: 880px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 0 auto 18px;
  padding: 6px;
  border: 1px solid rgba(233, 197, 123, .18);
  border-radius: 999px;
  background: rgba(3, 18, 13, .52);
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
}
.feature-tab {
  appearance: none;
  display: flex;
  min-width: 0;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  color: #d8caa9;
  background: transparent;
  font: inherit;
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.feature-tab[aria-selected="true"] {
  color: #132d22;
  background: linear-gradient(180deg, #f6d992, #dfb65f);
  box-shadow: 0 8px 18px rgba(0, 8, 5, .24);
}
.feature-tab:focus-visible { outline: 3px solid #f4d691; outline-offset: 3px; }
.feature-browser {
  width: 100%;
  max-width: 880px;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid rgba(233, 197, 123, .25);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(17, 57, 42, .94), rgba(5, 27, 20, .98));
  box-shadow: inset 0 1px rgba(255,255,255,.04), 0 28px 65px rgba(0, 10, 7, .32);
}
.feature-stage { min-height: 300px; }
.feature-panel {
  display: grid;
  min-height: 300px;
  grid-template-columns: minmax(120px, .32fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(30px, 5vw, 60px);
  padding: 36px clamp(36px, 6vw, 64px);
}
.feature-panel[hidden] { display: none; }
.feature-emblem {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(240, 199, 115, .88);
}
.feature-emblem svg { width: clamp(5.4rem, 8vw, 7rem); height: clamp(5.4rem, 8vw, 7rem); fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.feature-panel-copy { min-width: 0; }
.feature-panel h3 { margin: 0 0 12px; color: #fff1d1; font-size: clamp(1.35rem, 2.2vw, 1.72rem); line-height: 1.25; }
.feature-panel p { max-width: 52ch; margin: 0; color: var(--muted); font-size: 1.06rem; line-height: 1.75; }
@media (hover: hover) and (pointer: fine) {
  .step-grid li:hover {
    transform: translateY(-6px);
    border-color: rgba(233, 197, 123, .42);
    box-shadow: inset 0 1px rgba(255,255,255,.05), 0 26px 52px rgba(0, 10, 7, .34);
  }
}
.section-preview { background: radial-gradient(circle at 26% 50%, rgba(45, 119, 83, .25), transparent 40%), #061a13; }
.preview-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(36px, 7vw, 105px); }
.preview-table { min-width: 0; margin: 0; padding: clamp(24px, 5vw, 44px); border: 8px solid #3c2819; border-radius: 70px; background: radial-gradient(circle at center, #156043, #0a3b2b 72%); box-shadow: inset 0 0 0 2px #b78e4e, inset 0 0 45px rgba(0,0,0,.35), 0 18px 36px rgba(0,0,0,.3); text-align: center; }
.preview-label { margin-bottom: 27px; color: #e8c98b; font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.preview-cards { display: flex; justify-content: center; gap: clamp(5px, 1.3vw, 13px); }
.preview-cards img { width: min(26%, 116px); height: auto; aspect-ratio: 242 / 340; border: 2px solid #e8dec9; border-radius: 6px; background: white; box-shadow: 0 7px 15px rgba(0,0,0,.35); }
.preview-table figcaption { margin-top: 24px; color: #f1e3c7; font-size: .9rem; }
.preview-grid .button { margin-top: 23px; }
.faq-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(30px, 6vw, 90px); }
.faq-layout > div:first-child > p:not(.eyebrow) { color: var(--muted); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 18px 36px 18px 0; font-weight: 800; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { position: absolute; right: 5px; color: var(--gold); content: "+"; font-size: 1.5rem; font-weight: 400; line-height: 1; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { padding-right: 28px; color: var(--muted); }
.closing { padding-block: 62px; border-top: 1px solid var(--line); background: linear-gradient(105deg, #113c2a, #0a281d); }
.home-main > .closing { border-top-color: rgba(230, 195, 116, .13); background: #0c2b21; }
.closing-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.closing h2 { margin-bottom: 9px; }
.closing p:last-child { margin-bottom: 0; color: var(--muted); }
.site-footer { min-height: 82px; display: flex; align-items: center; padding-block: 0; border-top: 1px solid var(--line); background: var(--bg-deep); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.footer-inner p { margin: 0; color: var(--dim); white-space: nowrap; }
.footer-inner nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 20px; }
.footer-inner a { display: inline-flex; min-height: 32px; align-items: center; }
.footer-inner a { color: var(--muted); text-decoration: none; }
.footer-inner a:hover { color: #fff4d8; }

.rules-hero { padding-block: 52px 44px; border-bottom: 1px solid var(--line); }
.rules-hero,
.news-hero { background: radial-gradient(circle at 85% 25%, rgba(193, 149, 69, .15), transparent 32%), linear-gradient(130deg, #0f3c2c, #08251b); }
.rules-hero h1 { max-width: 900px; margin-bottom: 16px; }
.rules-hero .lead { max-width: 1160px; margin-bottom: 0; }
.rules-hero .button { margin-top: 17px; }
.rules-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); align-items: start; gap: clamp(38px, 6vw, 90px); padding-block: 60px 105px; }
.rules-toc { position: sticky; top: 24px; display: grid; gap: 1px; padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: #103125; }
.rules-toc strong { padding: 5px 10px 11px; color: var(--gold); font-family: var(--serif); }
.rules-toc a { padding: 8px 10px; border-radius: 6px; color: var(--muted); font-size: .91rem; text-decoration: none; }
.rules-toc a:hover { color: #fff2d6; background: rgba(235, 195, 117, .1); }
.rules-article { min-width: 0; }
.rules-article section { padding: 0 0 40px; margin: 0 0 43px; border-bottom: 1px solid var(--line); scroll-margin-top: 20px; }
.rules-article section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.rules-article h2 { font-size: clamp(1.45rem, 1.8vw, 1.85rem); }
.rules-article h3 { color: #f4e7c7; }
.rules-article p, .rules-article li { color: var(--muted); font-size: 1.02rem; }
.rules-table-wrap { overflow-x: auto; }
.rules-table { width: 100%; border-collapse: collapse; background: #103025; }
.rules-table caption { margin-bottom: 10px; color: var(--gold); text-align: left; font-weight: 700; }
.rules-table th, .rules-table td { padding: 13px 17px; border: 1px solid var(--line); text-align: left; }
.rules-table thead { color: #f7e8c9; background: #204836; }
.rules-table tbody th { font-weight: 500; }
.rules-callout { padding: 20px 22px; margin: 20px 0; border-left: 3px solid var(--gold); border-radius: 0 10px 10px 0; color: var(--muted); background: #153a2b; }
.action-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-top: 23px; }
.action-list > div { padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: #103126; }
.action-list p { margin-bottom: 0; }
.example-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin-top: 27px; }
.hand-example { min-width: 0; margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #123629; }
.example-cards { display: flex; justify-content: center; gap: clamp(4px, .8vw, 10px); }
.example-cards img { width: min(30%, 100px); height: auto; aspect-ratio: 242 / 340; border: 2px solid #eee1c9; border-radius: 5px; background: white; box-shadow: 0 6px 12px rgba(0,0,0,.25); }
.hand-example figcaption { display: grid; gap: 4px; margin-top: 16px; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.hand-example figcaption strong { color: #f3d18a; font-family: var(--serif); font-size: 1.22rem; }
.summary-list { padding-left: 22px; }
.summary-list li { margin-bottom: 9px; }

@media (min-width: 720px) {
  .rules-hero { padding-block: 68px 58px; }
}

@media (max-width: 860px) {
  .hero-grid { min-height: 0; grid-template-columns: 1fr; gap: 35px; padding-block: 60px 54px; }
  .hero-art { min-height: 350px; }
  .hero-art img { max-width: 380px; }
  .hero-art-ring { max-width: 360px; }
  .two-column, .faq-layout, .preview-grid { grid-template-columns: 1fr; gap: 28px; }
  .step-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .step-grid li:last-child { grid-column: 1 / -1; min-height: 220px; }
  .feature-panel { grid-template-columns: 120px minmax(0, 1fr); gap: 38px; padding-inline: 46px; }
  .rules-layout { grid-template-columns: 1fr; }
  .rules-toc { position: static; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .rules-toc strong { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .shell { width: min(100% - 32px, 1160px); }
  .header-inner {
    position: relative;
    min-height: 68px;
    justify-content: flex-start;
    padding: 8px 58px 8px 0;
  }
  .brand { justify-content: flex-start; }
  .brand span { font-size: 1.15rem; }
  .main-nav { display: none; }
  .mobile-menu {
    position: absolute;
    top: 50%;
    right: 0;
    display: block;
    transform: translateY(-50%);
  }
  .mobile-menu summary {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--text);
    background: #103226;
    font-size: .78rem;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
  }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .mobile-menu-icon {
    position: relative;
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--gold);
    box-shadow: 0 -6px var(--gold), 0 6px var(--gold);
  }
  .mobile-menu[open] .mobile-menu-icon { background: transparent; box-shadow: none; }
  .mobile-menu[open] .mobile-menu-icon::before,
  .mobile-menu[open] .mobile-menu-icon::after {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--gold);
    content: "";
  }
  .mobile-menu[open] .mobile-menu-icon::before { transform: rotate(45deg); }
  .mobile-menu[open] .mobile-menu-icon::after { transform: rotate(-45deg); }
  .mobile-menu nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    display: grid;
    width: min(280px, calc(100vw - 32px));
    overflow: hidden;
    padding: 8px;
    border: 1px solid rgba(233, 197, 123, .34);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(25, 65, 49, .985), rgba(12, 43, 32, .995));
    box-shadow: 0 22px 50px rgba(0, 0, 0, .5), inset 0 1px rgba(255, 255, 255, .07);
    backdrop-filter: blur(16px) saturate(.9);
    -webkit-backdrop-filter: blur(16px) saturate(.9);
  }
  .mobile-menu nav a {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 7px;
    color: var(--muted);
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: color .15s ease, background .15s ease, box-shadow .15s ease;
  }
  .mobile-menu nav a:hover,
  .mobile-menu nav a[aria-current="page"] {
    color: #fff4d8;
    background: linear-gradient(90deg, rgba(233, 197, 123, .24), rgba(233, 197, 123, .11));
    box-shadow: inset 3px 0 #d8ae5e;
  }
  main { text-align: center; }
  .lead, .section-heading { margin-inline: auto; }
  .button-row { justify-content: center; }
  .hero-grid { padding-block: 53px 45px; }
  .hero-art { min-height: 270px; }
  .hero-art img { width: min(76%, 300px); }
  .hero-art-ring { width: min(85%, 320px); }
  .section { padding-block: 66px; }
  .game-modes-section { padding-block: 62px; }
  .game-mode-grid { max-width: 520px; grid-template-columns: 1fr; grid-auto-rows: 1fr; gap: 16px; }
  .game-mode-card { min-height: 0; padding: 26px 24px; }
  .step-grid, .action-list, .example-grid { grid-template-columns: 1fr; }
  .step-grid li { min-height: 0; padding: 23px; }
  .step-grid li:last-child { grid-column: auto; min-height: 0; }
  .feature-intro { margin-bottom: 28px; }
  .feature-heading { margin-inline: auto; text-align: center; }
  .feature-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 16px; }
  .feature-tab { min-height: 58px; gap: 0; padding: 9px 7px; border-radius: 12px; font-size: .8rem; }
  .feature-browser { border-radius: 18px; }
  .feature-stage, .feature-panel { min-height: 360px; }
  .feature-panel { grid-template-columns: 1fr; align-content: center; gap: 24px; padding: 34px 22px; text-align: center; }
  .feature-emblem svg { width: 5.2rem; height: 5.2rem; }
  .feature-panel h3 { font-size: 1.38rem; }
  .feature-panel p { margin-inline: auto; font-size: 1rem; }
  .preview-table { border-width: 6px; border-radius: 40px; }
  .faq-list summary { padding-inline: 36px; }
  .faq-list details p { padding-right: 0; }
  .site-footer { padding-block: 16px; }
  .closing-inner, .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-inner { gap: 4px; }
  .footer-inner p { order: 2; margin-top: 8px; font-size: .82rem; line-height: 1.5; white-space: normal; text-align: center; }
  .footer-inner nav { width: 100%; order: 1; align-items: center; justify-content: center; gap: 4px 10px; font-size: .8rem; line-height: 1.4; text-align: center; }
  .footer-inner a { min-height: 44px; justify-content: center; }
  .rules-layout { padding-block: 34px 75px; }
  .rules-toc { padding: 12px; }
  .rules-toc a, .rules-table caption, .rules-table th, .rules-table td { text-align: center; }
  .summary-list { padding-left: 0; list-style-position: inside; }
}
@media (max-width: 390px) {
  .button-row { align-items: stretch; }
  .button-row .button { flex: 1 1 100%; }
  .game-mode-card > .button { width: 100%; }
  .feature-stage, .feature-panel { min-height: 410px; }
  .rules-toc { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
  .feature-tab { transition: none; }
}
