:root {
  --bg: #f4f6f9;
  --bg-soft: #ffffff;
  --card: #ffffff;
  --text: #141824;
  --muted: #4a5568;
  --accent: #0d4f8b;
  --accent-soft: #e8f1fa;
  --gold-start: #c9a227;
  --gold-end: #e8c547;
  --gold-text: #1a1408;
  --observation: #b8860b;
  --reality: #9a6b00;
  --warning: #8b2942;
  --border: #d8dee9;
  --callout: #fff8e6;
  --callout-border: #e8c96a;
  --shadow: 0 8px 24px rgba(20, 24, 36, 0.06);
  --radius: 12px;
  --container: 1080px;
  --side-pad: 20px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.logo,
.nav-list,
.btn,
.breadcrumb,
.site-footer,
.slot-note {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.container {
  width: min(100% - (var(--side-pad) * 2), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: var(--side-pad);
  top: 1rem;
  z-index: 300;
  background: #fff;
  color: #000;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.nav-wrap {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
  flex: 1 1 auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}

.logo-title {
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo-sub {
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.nav-toggle {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  padding: 0;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.nav-toggle__icon {
  width: 22px;
  height: 22px;
}

.site-nav--desktop {
  display: none;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list--desktop a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  white-space: nowrap;
}

.nav-list--desktop a.active,
.nav-list--desktop a:hover,
.nav-list--desktop a:focus-visible {
  color: var(--text);
}

/* ── Mobile drawer ── */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 240;
  background: rgba(8, 10, 16, 0.55);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 280ms ease;
}

.nav-backdrop.is-visible {
  opacity: 1;
}

.nav-backdrop[hidden] {
  display: block;
  pointer-events: none;
  opacity: 0;
}

.nav-backdrop.is-visible {
  pointer-events: auto;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 250;
  width: min(90vw, 360px);
  max-width: 92%;
  height: 100%;
  height: 100dvh;
  background: #11141c;
  color: #e8ecf3;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.35);
  transform: translateX(100%);
  transition: transform 280ms ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.nav-drawer.is-open {
  transform: translateX(0);
}

.nav-drawer__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo--drawer .logo-title {
  color: #fff;
  font-size: 1rem;
}

.logo--drawer .logo-sub {
  color: rgba(232, 197, 71, 0.85);
  font-size: 0.62rem;
}

.nav-close {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.nav-close svg {
  width: 20px;
  height: 20px;
}

.nav-drawer__ctas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-drawer__ctas .btn {
  min-height: 46px;
  font-size: 0.88rem;
  padding: 0.55rem 0.65rem;
}

.btn-drawer-demo {
  background: transparent;
  color: #e8ecf3;
  border-color: rgba(255, 255, 255, 0.18);
}

.nav-drawer__body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.35rem 0 1.25rem;
  -webkit-overflow-scrolling: touch;
}

.nav-group {
  padding: 0.55rem 0 0;
}

.nav-group + .nav-group {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 0.35rem;
}

.nav-group__label {
  margin: 0;
  padding: 0.45rem 1rem 0.35rem;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(232, 197, 71, 0.75);
}

.nav-group__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-group__list a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 1rem;
  color: rgba(232, 236, 243, 0.82);
  text-decoration: none;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  transition: background 150ms ease, color 150ms ease;
}

.nav-group__list a:hover,
.nav-group__list a:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.nav-group__list a.active {
  background: rgba(232, 197, 71, 0.12);
  color: #f5dc6e;
  box-shadow: inset 3px 0 0 #e8c547;
}

.nav-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  opacity: 0.85;
}

html.nav-open,
html.nav-open body {
  overflow: hidden;
}

@media (min-width: 980px) {
  .nav-wrap {
    min-height: 68px;
  }

  .logo-title {
    font-size: 1.12rem;
  }

  .logo-sub {
    display: none;
  }

  .nav-toggle,
  .nav-backdrop,
  .nav-drawer {
    display: none !important;
  }

  .site-nav--desktop {
    display: block;
    flex: 0 1 auto;
  }

  .nav-list--desktop {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.1rem 0.85rem;
  }
}

main {
  padding: 1rem 0 6rem;
}

.breadcrumb {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.bc-sep {
  margin: 0 0.35rem;
  opacity: 0.5;
}

.hero {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.hero h1 {
  margin: 0 0 0.65rem;
  line-height: 1.2;
  font-size: clamp(1.65rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
}

.lead {
  font-size: 1.08rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.section {
  margin-top: 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow);
}

.section h2 {
  margin: 0 0 0.65rem;
  line-height: 1.3;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
}

.content-slot,
.media-slot {
  min-height: 0.5rem;
}

.slot-note {
  margin: 0;
  padding: 0.75rem 1rem;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.figure {
  margin: 1rem 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #eef2f7;
}

.img-placeholder {
  min-height: 180px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-family: "Segoe UI", sans-serif;
  font-size: 0.9rem;
  background: linear-gradient(135deg, #e8edf4, #dfe6ef);
}

figcaption {
  padding: 0.65rem 0.85rem;
  font-size: 0.88rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 44px;
  padding: 0.65rem 1.15rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-start) 0%, var(--gold-end) 100%);
  color: var(--gold-text);
  box-shadow: 0 4px 14px rgba(201, 162, 39, 0.35);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-secondary {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0;
  border: 1px solid var(--border);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Segoe UI", sans-serif;
  font-size: 0.92rem;
}

th,
td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  background: #eef2f7;
  font-weight: 600;
}

.callout {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  background: var(--callout);
  border: 1px solid var(--callout-border);
  border-radius: 8px;
}

.faq-list {
  display: grid;
  gap: 0.65rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 2rem 0 1.5rem;
  margin-top: 2rem;
}

.trust-strip {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--accent-soft);
  border-radius: var(--radius);
  font-size: 0.92rem;
}

.trust-strip p {
  margin: 0.35rem 0;
}

.footer-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.footer-col h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin: 0.25rem 0;
}

.footer-col a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.footer-legal a {
  font-size: 0.88rem;
  text-decoration: none;
}

.footer-copy {
  margin: 1rem 0 0;
  font-size: 0.85rem;
}

.muted {
  color: var(--muted);
}

.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 180;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 68px;
  padding: 0.55rem var(--side-pad);
  padding-bottom: calc(0.55rem + env(safe-area-inset-bottom, 0px));
  background: rgba(17, 20, 28, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
}

.mobile-cta .btn {
  flex: 1;
  min-height: 48px;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.65rem 0.75rem;
}

.mobile-cta .btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #f0f3f8;
  border-color: rgba(255, 255, 255, 0.16);
}

.back-to-top {
  position: fixed;
  right: var(--side-pad);
  bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  z-index: 170;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow);
}

.back-to-top[hidden] {
  display: none;
}

.mobile-cta[hidden] {
  display: none;
}

@media (max-width: 979px) {
  main {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (min-width: 980px) {
  main {
    padding-bottom: 2.5rem;
  }

  .mobile-cta {
    display: none;
  }

  .back-to-top {
    bottom: 1.5rem;
  }
}

@media (min-width: 980px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .footer-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 979px) {
  body {
    overflow-x: hidden;
  }
}

/* ── Brand signature components (Phase 8) ── */

.sig-label {
  display: block;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
  color: inherit;
  opacity: 0.85;
}

.editor-observation,
.worth-knowing,
.reality-check,
.players-miss,
.before-you-play,
.quick-verdict,
.warning-card {
  margin: 1.15rem 0;
  padding: 0.9rem 1rem 0.9rem 1.1rem;
  border-radius: 8px;
  font-size: 0.98rem;
}

.editor-observation p,
.worth-knowing p,
.reality-check p,
.players-miss p,
.before-you-play p,
.quick-verdict p,
.warning-card p {
  margin: 0;
}

.editor-observation {
  background: #fffbf0;
  border-left: 4px solid var(--observation, #b8860b);
  color: #3d3420;
}

.worth-knowing {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  color: #1a3050;
}

.reality-check {
  background: #fff8e6;
  border-left: 4px solid var(--reality, #9a6b00);
  color: #3d3010;
}

.players-miss {
  background: #f0f4fa;
  border-left: 4px solid #5a7aa8;
  color: #1e2d42;
}

.before-you-play {
  background: #eef8f0;
  border-left: 4px solid #2d7a4a;
  color: #1a3324;
}

.quick-verdict {
  background: #f5f5f8;
  border: 1px solid var(--border);
  border-left: 4px solid var(--text);
  color: var(--text);
}

.warning-card {
  background: #fdf5f7;
  border-left: 4px solid var(--warning, #8b2942);
  color: #4a1f2d;
}

.related-links {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
  line-height: 1.55;
}

.related-links li {
  margin-bottom: 0.45rem;
}

.page-nav {
  margin: 1.25rem 0 0;
  padding: 0.85rem 1rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.page-nav-label {
  margin: 0 0 0.5rem;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-nav ul {
  margin: 0;
  padding-left: 1.1rem;
  columns: 2;
  column-gap: 1.5rem;
}

.page-nav li {
  break-inside: avoid;
  margin-bottom: 0.35rem;
}

.mid-cta {
  margin: 1.35rem 0;
  padding: 1rem 1.1rem;
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
}

.intent-cta,
.pre-faq-cta {
  margin: 1.5rem 0;
  padding: 1rem 0 0;
}

.footer-play {
  margin: 1.5rem 0 1rem;
  padding: 1.25rem 1rem;
  text-align: center;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.footer-play p {
  margin: 0 0 0.75rem;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-weight: 600;
}

.mid-cta p {
  margin: 0 0 0.65rem;
}

@media (max-width: 600px) {
  .page-nav ul {
    columns: 1;
  }
}

/* Demo page — inline embed (demo/index.html only) */
.demo-play-section {
  margin-top: 0;
}

.demo-checklist {
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
}

.demo-checklist li {
  margin-bottom: 0.4rem;
}

.demo-embed {
  margin: 1.25rem 0 0.75rem;
  max-width: 100%;
}

.demo-embed__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0c1222;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.demo-embed__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #0c1222;
}

.demo-embed__fallback {
  margin: 0.85rem 0 0;
  text-align: center;
}

.demo-embed__note {
  margin: 0.65rem 0 0;
  font-size: 0.92rem;
}

@media (max-width: 600px) {
  .demo-embed__frame {
    aspect-ratio: 4 / 3;
    min-height: 260px;
  }
}

.faq-item {
  margin-bottom: 1.1rem;
}

.faq-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.summary-card,
.comparison-card {
  margin: 1.15rem 0;
  padding: 1rem 1.15rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.summary-card h3,
.comparison-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
}

.pull-quote {
  margin: 1.25rem 0;
  padding: 0.5rem 0 0.5rem 1.15rem;
  border-left: 3px solid var(--accent);
  font-style: italic;
  color: var(--muted);
}

.pull-quote cite {
  display: block;
  margin-top: 0.45rem;
  font-style: normal;
  font-size: 0.85rem;
  font-family: "Segoe UI", sans-serif;
}
