/* ==========================================================================
   スマートボール ホール (SmartBall) 公式ウェブサイト スタイルシート (C1)
   テーマ：昭和レトロ遊技場の工芸美 × 現代デジタル・ホール
   外部フォント・CDN依存ゼロ / 375px・390px・デスクトップ完全レスポンシブ
   ========================================================================== */

:root {
  --bg-deep: #060f22;
  --bg-navy: #0b1936;
  --bg-navy-elevated: #11244a;
  --bg-navy-glass: rgba(11, 25, 54, 0.92);

  --surface-ivory: #f4efe4;
  --surface-ivory-light: #fbf8f2;
  --surface-ivory-border: #dfd3be;

  --gold-primary: #d4af37;
  --gold-bright: #f5d67b;
  --gold-muted: #8a6816;
  --gold-hairline: rgba(212, 175, 55, 0.32);
  --gold-glow: rgba(212, 175, 55, 0.16);

  --text-on-dark: #f7f4eb;
  --text-on-dark-muted: #b8c4dc;
  --text-on-ivory: #0e1d38;
  --text-on-ivory-muted: #43526d;

  --accent-crimson: #c93b4b;
  --accent-emerald: #1e9e6d;

  --font-display: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "MS PMincho", "Noto Serif JP", serif;
  --font-sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Meiryo", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;

  --container-max: 1180px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-deep: 0 18px 44px rgba(2, 7, 18, 0.5);
  --shadow-card: 0 10px 28px rgba(6, 15, 34, 0.12);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  color: var(--text-on-dark);
  line-height: 1.7;
  letter-spacing: 0.02em;
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold-bright);
  text-decoration: none;
  transition: color 0.18s ease, opacity 0.18s ease;
}

a:hover,
a:focus-visible {
  color: #ffffff;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--gold-primary);
  color: var(--bg-deep);
  padding: 0.5rem 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 9999;
}

.skip-link:focus {
  top: 0.75rem;
}

/* ==========================================================================
   Compact Header & Global Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-navy-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gold-hairline);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0;
  gap: 0.75rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-on-dark);
}

.brand-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1.5px solid var(--gold-primary);
  flex-shrink: 0;
}

.brand-logo-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff;
  line-height: 1.15;
}

.brand-subtitle {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--gold-bright);
  margin-top: 0.1rem;
}

.nav-toggle-btn {
  display: none;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--gold-primary);
  color: var(--gold-bright);
  padding: 0.38rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: wrap;
}

.main-nav a {
  display: inline-block;
  padding: 0.38rem 0.62rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-on-dark-muted);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}

.main-nav a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.main-nav a.is-active {
  color: var(--gold-bright);
  background: rgba(212, 175, 55, 0.14);
  border-color: var(--gold-hairline);
}

/* ==========================================================================
   First-Screen Hero (R68 Visual Direction: Warm Ivory & Navy Editorial)
   Ensures Headline + Subtitle + Status + CTAs + Art visible in 375/390/Desktop
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 2.25rem 0 2.5rem;
  background: linear-gradient(180deg, #f3eee3 0%, #eae2d3 100%);
  color: var(--text-on-ivory);
  border-bottom: 2px solid var(--gold-primary);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 2.25rem;
  align-items: center;
}

.hero-grid > * {
  min-width: 0;
}

.hero-brand-kicker {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-on-ivory);
  letter-spacing: 0.04em;
  margin: 0 0 0.2rem;
}

.hero-brand-sub {
  font-size: 0.8rem;
  color: var(--text-on-ivory-muted);
  margin: 0 0 0.65rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid #b58d22;
  display: inline-block;
}

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(2.25rem, 4.8vw, 3.6rem);
  line-height: 1.16;
  font-weight: 800;
  color: #0b1c38;
  margin: 0 0 0.65rem;
  letter-spacing: 0.01em;
  word-break: keep-all;
}

.hero-lead {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 600;
  color: #1c2e4a;
  margin: 0 0 0.55rem;
}

.hero-status-tag {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #8a6412;
  background: rgba(212, 175, 55, 0.18);
  border: 1px solid rgba(181, 141, 34, 0.45);
  padding: 0.22rem 0.7rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.1rem;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.68rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-navy {
  background: #0b1c38;
  color: #ffffff;
  border: 1px solid #0b1c38;
  box-shadow: 0 6px 16px rgba(11, 28, 56, 0.22);
}

.btn-navy:hover {
  background: #142e58;
  color: #ffffff;
}

.btn-gold {
  background: linear-gradient(135deg, #f5d67b 0%, #d4af37 55%, #b58d22 100%);
  color: #071126;
  border: 1px solid #c99e2c;
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.24);
}

.btn-gold:hover {
  color: #071126;
}

.btn-line {
  background: #06c755;
  color: #ffffff;
  border: 1px solid #05b34c;
}

.btn-line:hover {
  background: #05b34c;
  color: #ffffff;
}

.btn-x {
  background: #141d2e;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-x:hover {
  background: #23314d;
  color: #ffffff;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.65);
  color: #0b1c38;
  border: 1px solid #8a6816;
}

.btn-outline:hover {
  background: #ffffff;
  color: #0b1c38;
}

.btn-outline-dark {
  background: rgba(255, 255, 255, 0.05);
  color: var(--gold-bright);
  border: 1px solid var(--gold-primary);
}

.btn-outline-dark:hover {
  background: rgba(212, 175, 55, 0.16);
  color: #ffffff;
}

.hero-short-notice {
  font-size: 0.82rem;
  color: #33435d;
  margin: 0;
  font-weight: 600;
}

.hero-art-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-art-frame {
  width: 100%;
  max-width: 400px;
  background: #f5efe6;
  border-radius: var(--radius-md);
  border: 1px solid #d5c7b0;
  box-shadow: 0 14px 34px rgba(11, 28, 56, 0.15);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-art-frame img {
  width: 100%;
  max-height: 450px;
  object-fit: contain;
}

.hero-art-caption {
  margin: 0.45rem 0 0;
  font-size: 0.76rem;
  color: #4a5974;
  text-align: center;
}

/* Full-Bleed Desktop Art Showcase Stage (Uses web-hero-desktop-art-r68.webp on Wide Viewport) */
.wide-art-stage {
  position: relative;
  background: #efeae0;
  color: var(--text-on-ivory);
  border-bottom: 1px solid var(--surface-ivory-border);
  overflow: hidden;
}

.wide-art-wrapper {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
}

.wide-art-picture img {
  width: 100%;
  height: auto;
  display: block;
}

.wide-art-overlay {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 52%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 3.5rem;
}

/* ==========================================================================
   Gameplay Video Stage & Sections (R98 Single Player + R107 16.5s Media)
   ========================================================================== */
#gameplay-preview {
  scroll-margin-top: 52px;
}

.gameplay-stage-card {
  max-width: 1080px;
  margin: 0 auto 2.5rem;
  background: linear-gradient(180deg, rgba(16, 33, 68, 0.96) 0%, rgba(7, 16, 35, 0.98) 100%);
  border: 1.5px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-deep);
  scroll-margin-top: 72px;
}

.player-top-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 1rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--gold-hairline);
}

.player-badge-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  min-width: 0;
}

.player-test-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  color: #071126;
  background: linear-gradient(135deg, #f5d67b 0%, #d4af37 100%);
  padding: 0.18rem 0.65rem;
  border-radius: 999px;
  letter-spacing: 0.03em;
}

.player-machine-label {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
}

.player-switchers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.player-switch-group {
  display: inline-flex;
  align-items: center;
  background: rgba(4, 10, 23, 0.78);
  border: 1px solid var(--gold-hairline);
  border-radius: var(--radius-sm);
  padding: 0.22rem;
  gap: 0.22rem;
  flex-wrap: wrap;
}

.player-switch-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-bright);
  padding: 0 0.45rem;
  letter-spacing: 0.04em;
}

.player-pill {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-on-dark-muted);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.36rem 0.72rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  line-height: 1.25;
}

.player-pill:hover,
.player-pill:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.player-pill.is-active {
  background: rgba(212, 175, 55, 0.22);
  color: var(--gold-bright);
  border-color: var(--gold-primary);
}

.player-viewport-wrap {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 10px;
  border-radius: 16px;
  background: linear-gradient(160deg, #2b3954 0%, #091224 50%, #3a2e14 100%);
  border: 2px solid var(--gold-primary);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  transition: max-width 0.2s ease;
  scroll-margin-top: 72px;
}

.gameplay-stage-card[data-active-orientation="vertical"] .player-viewport-wrap {
  max-width: 420px;
}

.player-screen {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #000000;
  aspect-ratio: 16 / 9;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gameplay-stage-card[data-active-orientation="vertical"] .player-screen {
  aspect-ratio: 9 / 16;
}

.smartball-video-el {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
  display: block;
  cursor: pointer;
}

.player-controls-bar {
  max-width: 960px;
  margin: 1rem auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  background: rgba(4, 10, 23, 0.68);
  border: 1px solid var(--gold-hairline);
  border-radius: var(--radius-sm);
}

.player-action-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.player-ctrl-btn {
  padding: 0.5rem 0.9rem;
  font-size: 0.82rem;
}

.player-status-readout {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gold-bright);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 0.32rem 0.7rem;
  border-radius: 4px;
}

.player-caption-panel {
  max-width: 960px;
  margin: 1.15rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(212, 175, 55, 0.22);
}

.player-caption-main {
  margin: 0 0 0.95rem;
  font-size: 0.88rem;
  color: var(--text-on-dark-muted);
  line-height: 1.65;
}

.player-timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.55rem 0.85rem;
}

.player-timeline-list li {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.65rem;
  font-size: 0.8rem;
  line-height: 1.45;
}

.timeline-time {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--gold-bright);
  background: rgba(212, 175, 55, 0.14);
  padding: 0.1rem 0.42rem;
  border-radius: 4px;
  flex-shrink: 0;
}

.timeline-text {
  color: var(--text-on-dark);
}

.player-detail-cta {
  margin-top: 1.1rem;
  display: flex;
  justify-content: flex-end;
}

.gameplay-features-grid {
  margin-top: 1.75rem;
}

.section-dark {
  padding: 4rem 0;
  background: var(--bg-navy);
  border-bottom: 1px solid var(--gold-hairline);
}

.section-deep {
  padding: 4rem 0;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--gold-hairline);
}

.section-ivory {
  padding: 4rem 0;
  background: var(--surface-ivory-light);
  color: var(--text-on-ivory);
  border-bottom: 1px solid var(--surface-ivory-border);
}

.section-header {
  max-width: 760px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-kicker {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 0.45rem;
}

.section-ivory .section-kicker {
  color: #8c6a10;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  margin: 0 0 0.75rem;
  line-height: 1.35;
}

.section-desc {
  font-size: 0.96rem;
  color: var(--text-on-dark-muted);
  margin: 0;
}

.section-ivory .section-desc {
  color: var(--text-on-ivory-muted);
}

.page-hero {
  padding: 2.5rem 0 2.2rem;
  background: linear-gradient(180deg, #050d1d 0%, #0d1e40 100%);
  border-bottom: 1px solid var(--gold-hairline);
}

.breadcrumb {
  font-size: 0.8rem;
  color: var(--text-on-dark-muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.breadcrumb a {
  color: var(--gold-bright);
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  margin: 0 0 0.6rem;
  color: #ffffff;
}

.page-lead {
  font-size: 0.96rem;
  color: var(--text-on-dark-muted);
  max-width: 760px;
  margin: 0;
}

/* ==========================================================================
   Cards & Machine Grid
   ========================================================================== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.machines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.hall-card {
  background: linear-gradient(180deg, rgba(17, 36, 74, 0.92) 0%, rgba(8, 19, 42, 0.96) 100%);
  border: 1px solid var(--gold-hairline);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.ivory-card {
  background: #ffffff;
  border: 1px solid var(--surface-ivory-border);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  color: var(--text-on-ivory);
  box-shadow: var(--shadow-card);
}

.ivory-card h3 {
  font-family: var(--font-display);
  margin-top: 0;
  color: var(--text-on-ivory);
}

.machine-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #0f2145 0%, #071229 100%);
  border: 1px solid var(--gold-hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-deep);
}

.machine-card.is-verified {
  border: 1.5px solid var(--gold-primary);
}

.machine-visual-wrap {
  position: relative;
  background: radial-gradient(circle at 50% 40%, #1c3568 0%, #060f22 100%);
  padding: 2.4rem 1.25rem 1.1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid var(--gold-hairline);
}

.machine-visual-wrap img {
  height: 260px;
  width: auto;
  object-fit: contain;
}

.machine-code-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.85rem;
  background: rgba(6, 15, 34, 0.9);
  border: 1px solid var(--gold-primary);
  color: var(--gold-bright);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-sm);
}

.machine-status-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
}

.badge-verified {
  background: rgba(30, 158, 109, 0.22);
  color: #6bf0b8;
  border: 1px solid #23b57d;
}

.badge-in-progress {
  background: rgba(212, 175, 55, 0.18);
  color: var(--gold-bright);
  border: 1px solid var(--gold-hairline);
}

.machine-body {
  padding: 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.machine-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0 0 0.5rem;
  color: #ffffff;
}

.machine-desc {
  font-size: 0.92rem;
  color: var(--text-on-dark-muted);
  margin: 0 0 1rem;
  flex: 1;
}

.machine-verify-note {
  font-size: 0.78rem;
  color: #c9d6ea;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold-primary);
}

/* ==========================================================================
   Screenshots, FAQ & Legal Documents
   ========================================================================== */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.screenshot-card {
  background: #091631;
  border: 1px solid var(--gold-hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.screenshot-img-wrap {
  background: #040a17;
  padding: 0.85rem;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.screenshot-img-wrap img {
  max-height: 330px;
  width: auto;
  border-radius: 8px;
}

.screenshot-meta {
  padding: 1.1rem;
}

.screenshot-tag {
  display: inline-block;
  font-size: 0.7rem;
  color: var(--gold-bright);
  border: 1px solid var(--gold-hairline);
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.4rem;
}

.screenshot-meta h3 {
  font-size: 1rem;
  margin: 0 0 0.4rem;
  color: #ffffff;
}

.screenshot-meta p {
  font-size: 0.84rem;
  color: var(--text-on-dark-muted);
  margin: 0;
}

.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--surface-ivory-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  color: var(--text-on-ivory);
}

.faq-category-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  background: #efe6d2;
  color: #6e520c;
  padding: 0.12rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.4rem;
}

.faq-question {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  margin: 0 0 0.55rem;
  color: #0e1c36;
}

.faq-answer {
  margin: 0;
  font-size: 0.93rem;
  color: var(--text-on-ivory-muted);
}

.legal-document {
  max-width: 860px;
  margin: 0 auto;
  background: #ffffff;
  color: var(--text-on-ivory);
  border: 1px solid var(--surface-ivory-border);
  border-radius: var(--radius-md);
  padding: 2.25rem 2.5rem;
  box-shadow: var(--shadow-card);
  overflow-wrap: anywhere;
}

.legal-document h2 {
  font-family: var(--font-display);
  font-size: 1.28rem;
  color: #0b1936;
  border-bottom: 2px solid var(--gold-primary);
  padding-bottom: 0.4rem;
  margin-top: 2rem;
  margin-bottom: 0.9rem;
  scroll-margin-top: 7rem;
}

.legal-document h2:first-of-type {
  margin-top: 0;
}

.legal-document h3 {
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 1.7rem 0 0.7rem;
  color: #0b1936;
}

.legal-document p,
.legal-document li {
  color: #2c3a52;
  font-size: 1rem;
  line-height: 1.9;
}

.legal-document a {
  color: #174f82;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-toc {
  background: #f7f2e7;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
}

.legal-toc ol {
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
}

.legal-toc a {
  display: block;
  padding: 0.3rem 0;
}

.legal-detail {
  padding-left: 0.85rem;
  border-left: 2px solid #e7d8b5;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
}

.info-table th,
.info-table td {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--surface-ivory-border);
  text-align: left;
  vertical-align: top;
  font-size: 0.92rem;
}

.info-table th {
  width: 28%;
  font-weight: 700;
  color: #0b1936;
  background: #f7f2e7;
}

.info-table td {
  color: #25334a;
  background: #ffffff;
}

/* ==========================================================================
   Site Footer
   ========================================================================== */
.site-footer {
  background: #040a17;
  border-top: 2px solid var(--gold-hairline);
  padding: 3.2rem 0 2.2rem;
  color: var(--text-on-dark-muted);
  font-size: 0.86rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-heading {
  font-family: var(--font-display);
  color: var(--gold-bright);
  font-size: 0.98rem;
  margin: 0 0 0.85rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 0.85rem;
}

.footer-links a {
  color: var(--text-on-dark-muted);
}

.footer-links a:hover {
  color: var(--gold-bright);
}

.footer-support {
  overflow-wrap: anywhere;
  font-size: 1rem;
}

.footer-support a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-disclaimer {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: #8fa0be;
}

.legal-preview-notice {
  padding: 0.8rem 1rem;
  text-align: center;
  background: #fff4cf;
  color: #493600;
  font-size: 1rem;
}

/* ==========================================================================
   Responsive Design (375px / 390px Mobile & Tablet)
   ========================================================================== */
@media (max-width: 960px) {
  .hero-grid,
  .grid-3,
  .grid-2,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-section {
    padding: 0.9rem 0 1.15rem;
  }

  .hero-grid {
    gap: 0.75rem;
  }

  .hero-brand-kicker {
    font-size: 0.8rem;
    margin-bottom: 0.1rem;
  }

  .hero-brand-sub {
    font-size: 0.74rem;
    margin-bottom: 0.3rem;
    padding-bottom: 0.25rem;
  }

  .hero-title {
    font-size: 1.95rem;
    margin-bottom: 0.25rem;
  }

  .hero-lead {
    font-size: 0.92rem;
    margin-bottom: 0.35rem;
    line-height: 1.45;
  }

  .hero-status-tag {
    font-size: 0.76rem;
    margin-bottom: 0.55rem;
    padding: 0.15rem 0.5rem;
  }

  .cta-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.45rem;
    margin-bottom: 0.45rem;
  }

  .cta-group .btn {
    padding: 0.5rem 0.4rem;
    font-size: 0.78rem;
    width: 100%;
    white-space: nowrap;
  }

  .hero-short-notice {
    font-size: 0.74rem;
    line-height: 1.4;
  }

  .hero-art-frame {
    max-width: 220px;
  }

  .hero-art-frame img {
    width: 100%;
    height: auto;
    max-height: 260px;
  }

  #gameplay-preview {
    padding: 0.9rem 0 2rem;
    scroll-margin-top: 52px;
  }

  #gameplay-preview .section-header {
    margin: 0 auto 0.75rem;
  }

  #gameplay-preview .section-kicker {
    font-size: 0.68rem;
    margin-bottom: 0.15rem;
  }

  #gameplay-preview .section-title {
    font-size: 1.15rem;
    line-height: 1.28;
    margin-bottom: 0.25rem;
  }

  #gameplay-preview .section-desc {
    font-size: 0.78rem;
    line-height: 1.42;
  }

  /* Tightened mobile player outer padding so 375/390 vertical video fills container width */
  .gameplay-stage-card {
    margin-left: -0.65rem;
    margin-right: -0.65rem;
    padding: 0.7rem 0.35rem;
    margin-bottom: 1.5rem;
    border-width: 1px;
    border-radius: var(--radius-md);
  }

  .player-top-bar {
    gap: 0.55rem;
    padding-bottom: 0.65rem;
    margin-bottom: 0.7rem;
  }

  .player-machine-label {
    font-size: 0.9rem;
  }

  .player-switchers {
    width: 100%;
    gap: 0.4rem;
  }

  .player-switch-group {
    width: 100%;
    justify-content: space-between;
  }

  .player-pill {
    flex: 1;
    text-align: center;
    padding: 0.34rem 0.38rem;
    font-size: 0.72rem;
  }

  .gameplay-stage-card[data-active-orientation="vertical"] .player-viewport-wrap {
    max-width: 100%;
    padding: 2px;
    border-width: 1.5px;
    border-radius: 12px;
  }

  .gameplay-stage-card[data-active-orientation="landscape"] .player-viewport-wrap {
    max-width: 100%;
    padding: 4px;
    border-width: 1.5px;
    border-radius: 12px;
  }

  .player-screen {
    border-radius: 8px;
  }

  .player-controls-bar {
    padding: 0.55rem;
    gap: 0.5rem;
    margin-top: 0.7rem;
  }

  .player-action-buttons {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
  }

  .player-ctrl-btn {
    width: 100%;
    padding: 0.44rem 0.35rem;
    font-size: 0.74rem;
    white-space: nowrap;
  }

  .player-status-readout {
    width: 100%;
    text-align: center;
    font-size: 0.72rem;
  }

  .player-caption-panel {
    margin-top: 0.85rem;
    padding-top: 0.75rem;
  }

  .player-caption-main {
    font-size: 0.8rem;
    line-height: 1.52;
  }

  .player-timeline-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.4rem;
  }

  .player-timeline-list li {
    font-size: 0.75rem;
    padding: 0.38rem 0.55rem;
  }

  .player-detail-cta .btn {
    width: 100%;
  }

  .wide-art-overlay {
    position: static;
    width: 100%;
    padding: 1.5rem 1.25rem;
    background: #efeae0;
  }

  .nav-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
  }

  .main-nav {
    display: none;
    width: 100%;
    padding-top: 0.6rem;
  }

  .main-nav.is-open {
    display: block;
  }

  .header-main {
    flex-wrap: wrap;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav a {
    display: block;
    padding: 0.55rem 0.8rem;
  }

  .legal-document {
    padding: 1.5rem 1.15rem;
  }

  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
  }
}

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