/* ============================================================
   High Desert Gaming — design system
   Ported from the original site: Righteous display type, Outfit body,
   Space Mono labels, neon orange on near-black, grain, video hero.
   ============================================================ */

:root {
  --bg: #0A0A0A;
  --bg-raised: #161616;
  --bg-card: #1A1A1A;
  --border: #2A2A2A;
  --text: #F0F0F0;
  --text-dim: #999999;
  --text-muted: #666666;
  --accent: #FF6B00;
  --accent-hover: #ff8533;
  --green: #00E676;
  --font-display: 'Righteous', cursive;
  --font-body: 'Outfit', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1400px;
  --radius: 2px;
}
:root[data-theme="light"] {
  --bg: #f6f2ea;
  --bg-raised: #fdfbf6;
  --bg-card: #ffffff;
  --border: #e2dbce;
  --text: #171410;
  --text-dim: #6d675e;
  --text-muted: #99917f;
  --accent: #d95800;
  --accent-hover: #b84a00;
  --green: #0a7d44;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3 { line-height: 1.15; }

/* Grain overlay (original) */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 40px; }
.wrap-narrow { max-width: 680px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 768px) { .wrap { padding: 0 20px; } }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ============ Navigation ============ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 80px;
  padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 10%, transparent);
  transition: all 0.4s var(--ease-out-expo);
}
.site-header.scrolled {
  height: 64px;
  background: color-mix(in srgb, var(--bg) 95%, transparent);
  border-bottom-color: color-mix(in srgb, var(--accent) 25%, transparent);
}
.logo { display: flex; align-items: center; color: var(--accent); transition: opacity 0.3s; }
.logo:hover { opacity: 0.8; }
.hdg-logo { height: 36px; width: auto; display: block; }
.site-footer .hdg-logo { height: 24px; }

.main-nav { display: flex; gap: 32px; align-items: center; }
.main-nav a {
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-dim); font-weight: 500;
  position: relative; transition: color 0.3s;
}
.main-nav a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--accent);
  transition: width 0.3s var(--ease-out-expo);
}
.main-nav a:hover { color: var(--text); }
.main-nav a:hover::after { width: 100%; }
.main-nav a.cta {
  padding: 10px 28px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 11px;
}
.main-nav a.cta:hover { background: var(--accent); color: var(--bg); }
.main-nav a.cta::after { display: none; }

.theme-toggle {
  background: none; border: 1px solid var(--border);
  width: 32px; height: 32px; border-radius: 50%;
  color: var(--text-dim); font-size: 0.9rem; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
  transition: all 0.3s;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
:root[data-theme="light"] .toggle-dark { display: none; }
:root:not([data-theme="light"]) .toggle-light { display: none; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); transition: all 0.3s; display: block; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 960px) {
  .site-header { padding: 0 20px; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; top: 80px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start;
    background: color-mix(in srgb, var(--bg) 98%, transparent);
    padding: 32px 24px; gap: 22px;
    transform: translateY(-130%);
    transition: transform 0.5s var(--ease-out-expo);
    border-bottom: 1px solid var(--border);
    z-index: -1;
  }
  .main-nav.open { transform: translateY(0); }
}

/* ============ Hero (video, original treatment) ============ */
.hero {
  position: relative;
  height: 100vh; min-height: 700px; max-height: 1100px;
  display: flex; align-items: center;
  overflow: hidden;
  background: #0A0A0A;   /* the hero stays cinematic-dark in both themes */
  color: #F0F0F0;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse at 70% 50%, rgba(255,107,0,0.07) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(0,230,118,0.04) 0%, transparent 50%);
}
.hero-bg video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.4;
}
.hero-grid {
  position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(rgba(255,107,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,107,0,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.hero-content { position: relative; z-index: 2; padding: 0 40px; max-width: var(--wrap); margin: 0 auto; width: 100%; }
.hero-label {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 4px; text-transform: uppercase;
  color: #00E676;
  margin-bottom: 24px;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.8s 0.3s var(--ease-out-expo) forwards;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 110px);
  line-height: 1; font-weight: 400;
  margin-bottom: 14px;
  opacity: 0; transform: translateY(30px);
  animation: fadeUp 0.8s 0.5s var(--ease-out-expo) forwards;
}
.hero-title em { font-style: normal; color: #FF6B00; }
.hero-subtitle {
  font-size: clamp(16px, 2vw, 21px);
  color: #999; font-weight: 300;
  max-width: 620px; line-height: 1.6;
  margin-bottom: 40px;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.8s 0.7s var(--ease-out-expo) forwards;
}
.hero .hero-ctas {
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.8s 0.9s var(--ease-out-expo) forwards;
  justify-content: flex-start; margin-top: 0;
}
.hero-scroll {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 2;
  opacity: 0; animation: fadeUp 0.8s 1.2s var(--ease-out-expo) forwards;
}
.hero-scroll span:first-child { font-size: 10px; letter-spacing: 3px; color: #666; text-transform: uppercase; font-family: var(--font-mono); }
.hero-scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, #FF6B00, transparent); }
@media (max-width: 768px) { .hero-scroll { display: none; } }

/* ============ Buttons (original: square, uppercase, letterspaced) ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 36px;
  font-weight: 600; font-size: 13px;
  letter-spacing: 2px; text-transform: uppercase;
  border-radius: var(--radius);
  transition: all 0.3s;
  border: none; cursor: pointer; font-family: inherit;
}
.btn-primary { background: var(--accent); color: #0A0A0A; }
.btn-primary:hover { background: var(--accent-hover); color: #0A0A0A; transform: translateY(-2px); box-shadow: 0 8px 30px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); background: transparent; font-weight: 500; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.hero-ctas { display: flex; gap: 16px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }

/* ============ Sections & headings ============ */
section { padding: 100px 0; }
.section-label, .kicker {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 4px;
  color: var(--green); text-transform: uppercase;
  margin-bottom: 16px; display: block;
}
.kicker::before { content: '// '; }
section h2, .page-head h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 400; line-height: 1.1;
  margin-bottom: 16px;
}
.section-sub { color: var(--text-dim); max-width: 640px; margin: 0 0 40px; font-size: 16px; font-weight: 300; }
.choose-play, .craft, .final-cta, .classic { text-align: left; }
.craft, .final-cta { text-align: center; }
.craft .section-sub, .final-cta .section-sub, .classic .section-sub { margin-left: auto; margin-right: auto; }
.craft, .journal-strip { background: var(--bg-raised); }
.mt { margin-top: 56px; }

/* Page heads (interior pages) */
.page-head {
  padding: 180px 0 72px;
  text-align: center;
  position: relative;
}
.page-head::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--accent) 3%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 3%, transparent) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  pointer-events: none;
}
.page-head > .wrap { position: relative; }
.page-head p, .page-head .sub { color: var(--text-dim); max-width: 640px; margin: 0 auto 8px; font-size: 17px; font-weight: 300; }

/* ============ Cards ============ */
.cards, .classic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  color: var(--text);
  transition: all 0.4s var(--ease-out-expo);
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.4); }
.card:hover::before { opacity: 1; }
.card-hero { border-color: var(--accent); }
.card-hero::before { opacity: 1; }
.card h3 { font-family: var(--font-display); font-size: 22px; font-weight: 400; margin-bottom: 6px; }
.card .descriptor { font-family: var(--font-mono); color: var(--accent); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; }
.card .tagline, .card .players { color: var(--text-dim); font-size: 14px; font-weight: 300; }

.play-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.play-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; display: flex; flex-direction: column; gap: 6px;
  color: var(--text); transition: all 0.4s var(--ease-out-expo);
}
.play-card:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); transform: translateY(-4px); }
.play-name { font-family: var(--font-display); font-size: 17px; }
.play-sub { color: var(--text-dim); font-size: 13px; font-weight: 300; }

/* ============ Feature splits ============ */
.feature-split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.feature-split h2 { text-align: left; }
.feature-split p { color: var(--text-dim); margin-bottom: 16px; font-weight: 300; }
.feature-split .btn { margin-top: 12px; }
.pod-feature { background: var(--bg-raised); }
.pod-diagram { width: 100%; max-width: 340px; color: var(--accent); justify-self: center; }
.inlay-explainer { margin: 64px 0; }
@media (max-width: 820px) { .feature-split { grid-template-columns: 1fr; gap: 32px; } }

/* ============ Game directory & chips ============ */
.game-directory h2 { font-size: 20px; color: var(--accent); text-align: left; margin: 40px 0 16px; }
.game-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.game-list a { color: var(--text); font-weight: 500; font-size: 15px; }
.game-list a:hover { color: var(--accent); }
.badge {
  background: transparent; border: 1px solid var(--accent); color: var(--accent);
  font-family: var(--font-mono); font-size: 9px; font-weight: 700;
  padding: 2px 8px; margin-left: 8px; vertical-align: middle;
  text-transform: uppercase; letter-spacing: 1px; border-radius: var(--radius);
}
.game-chip-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.game-chip-list a {
  display: inline-block; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 9px 18px; color: var(--text); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; font-weight: 500;
  transition: all 0.3s;
}
.game-chip-list a:hover { border-color: var(--accent); color: var(--accent); }

/* ============ Detail pages ============ */
.description { max-width: 720px; margin: 0 auto 40px; color: var(--text-dim); font-weight: 300; font-size: 16px; }
.description p { margin-bottom: 14px; }
.page-hero-image { max-width: 960px; margin: 0 auto 48px; }
.page-hero-image img { width: 100%; border-radius: var(--radius); display: block; border: 1px solid var(--border); }
.recommendation {
  background: var(--bg-card); border: 1px solid var(--border); border-left: 2px solid var(--accent);
  border-radius: var(--radius); padding: 40px; max-width: 720px; margin: 0 auto; text-align: center;
}
.recommendation h2 { font-size: 24px; margin-bottom: 12px; }
.recommendation .btn { margin-top: 20px; }
.disclaimer { max-width: 720px; margin: 40px auto 0; font-size: 12px; color: var(--text-muted); text-align: center; font-weight: 300; }
.callout {
  background: var(--bg-card); border-left: 2px solid var(--accent); border-radius: var(--radius);
  padding: 24px 28px; max-width: 720px; margin: 0 auto 40px;
}
.callout h2 { font-size: 16px; font-family: var(--font-mono); letter-spacing: 2px; text-transform: uppercase; color: var(--green); text-align: left; margin-bottom: 10px; }
.callout p { color: var(--text-dim); font-weight: 300; }
.stage-list { max-width: 520px; margin: 0 auto 40px; color: var(--text-dim); padding-left: 24px; font-weight: 300; }
.stage-list li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.article-body { text-align: left; }
.article-body h2, .article-body h3 { font-size: 22px; margin: 28px 0 10px; color: var(--text); }

/* Spec / comparison tables */
.spec-table { width: 100%; max-width: 760px; margin: 0 auto 40px; border-collapse: collapse; }
.spec-table th, .spec-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); text-align: left; font-size: 14px; }
.spec-table th { font-family: var(--font-mono); color: var(--text-dim); text-transform: uppercase; font-size: 10px; letter-spacing: 2px; }
.compare-scroll { overflow-x: auto; }
.compare-table { max-width: none; min-width: 680px; }
.compare-table td:first-child { font-family: var(--font-mono); color: var(--text-dim); text-transform: uppercase; font-size: 10px; letter-spacing: 2px; }
.compare-table a { font-weight: 600; }
.compare-btn { padding: 9px 20px; font-size: 11px; }

/* FAQ accordions */
.faq-list { max-width: 720px; margin: 0 auto 40px; }
.faq-list.wide { max-width: 820px; }
.faq-list details { border-bottom: 1px solid var(--border); padding: 6px 0; }
.faq-list summary { cursor: pointer; font-weight: 500; padding: 14px 0; font-size: 16px; }
.faq-list summary:hover { color: var(--accent); }
.faq-list p { color: var(--text-dim); padding: 0 0 18px; font-weight: 300; }

/* ============ Forms ============ */
.form-section { padding: 48px 0 96px; }
.lead-form label { display: block; margin-bottom: 18px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-dim); }
.lead-form input, .lead-form select, .lead-form textarea {
  display: block; width: 100%; margin-top: 8px; padding: 13px 16px;
  background: var(--bg-card); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 15px;
  transition: border-color 0.3s;
}
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: none; border-color: var(--accent); }
.lead-form .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lead-form .btn { margin-top: 10px; }
.lead-form .hint { text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-size: 12px; opacity: 0.8; }
.hp { position: absolute !important; left: -9999px !important; height: 0; width: 0; overflow: hidden; }
.notice { padding: 18px 22px; border-radius: var(--radius); margin-bottom: 24px; }
.notice-success { background: color-mix(in srgb, var(--green) 8%, transparent); border: 1px solid var(--green); }
.notice-success h2 { font-size: 20px; text-align: left; margin-bottom: 6px; }
.notice-error { background: rgba(194, 80, 80, 0.1); border: 1px solid #c25050; color: #e8a0a0; }
:root[data-theme="light"] .notice-error { color: #8f2f2f; }
.cart-save-form { border-top: 1px solid var(--border); margin-top: 32px; padding-top: 24px; }
@media (max-width: 640px) { .lead-form .grid-2 { grid-template-columns: 1fr; } }

/* ============ Gallery ============ */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.gallery-item img { width: 100%; border-radius: var(--radius); display: block; border: 1px solid var(--border); }
.gallery-item figcaption { color: var(--text-dim); font-size: 13px; padding-top: 8px; font-weight: 300; }
.gallery-filters { margin-bottom: 32px; }
.gallery-filters .chip-active { border-color: var(--accent); color: var(--accent); }

/* ============ Footer ============ */
.site-footer { border-top: 1px solid var(--border); padding: 72px 0 40px; margin-top: 64px; background: var(--bg-raised); }
.footer-brand { color: var(--accent); margin-bottom: 40px; }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; margin-bottom: 48px; }
.site-footer h4 { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 3px; color: var(--text-muted); margin-bottom: 16px; }
.site-footer .cols a { display: block; color: var(--text-dim); font-size: 14px; padding: 5px 0; font-weight: 300; transition: color 0.3s; }
.site-footer .cols a:hover { color: var(--accent); }
.legal { color: var(--text-muted); font-size: 12px; max-width: 820px; font-weight: 300; }

/* ============ Configurator (/build) ============ */
.build-app { padding: 140px 0 100px; }
.build-head h1 { font-family: var(--font-display); font-weight: 400; text-align: center; margin-bottom: 28px; font-size: clamp(30px, 4vw, 44px); }
.build-progress { list-style: none; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-bottom: 40px; }
.build-progress li {
  padding: 8px 16px; border-radius: var(--radius);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-dim); border: 1px solid var(--border);
}
.build-progress li.active { background: var(--accent); border-color: var(--accent); color: #0A0A0A; }
.build-progress li.done { border-color: var(--accent); color: var(--accent); }
.build-body { display: grid; grid-template-columns: 1.8fr 1fr; gap: 32px; align-items: start; }
.build-panel h2 { font-size: 22px; text-align: left; margin: 28px 0 14px; }
.build-panel h2:first-child { margin-top: 0; }
.step-hint { color: var(--text-dim); margin-bottom: 18px; font-size: 14px; font-weight: 300; }
.build-loading { color: var(--text-dim); font-family: var(--font-mono); font-size: 13px; }

.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 12px; }
.pick-grid.slim { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.pick-card {
  position: relative; text-align: left;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; color: var(--text); cursor: pointer; font-family: inherit;
  transition: all 0.3s;
}
.pick-card:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); transform: translateY(-2px); }
.pick-card.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 8px 30px color-mix(in srgb, var(--accent) 12%, transparent); }
.pick-card h3 { font-family: var(--font-display); font-size: 17px; font-weight: 400; margin-bottom: 4px; }
.pick-descriptor { font-family: var(--font-mono); color: var(--accent); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.pick-sub { color: var(--text-dim); font-size: 13px; font-weight: 300; }
.pick-badge {
  position: absolute; top: -10px; right: 12px;
  background: var(--green); color: #0A0A0A;
  font-family: var(--font-mono); font-size: 9px; font-weight: 700;
  padding: 3px 10px; text-transform: uppercase; letter-spacing: 1px; border-radius: var(--radius);
}

.swatch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 12px; }
.swatch {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px 12px; cursor: pointer; color: var(--text); font-family: inherit; font-size: 12px; text-align: left;
  transition: border-color 0.3s;
}
.swatch.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.swatch-chip { width: 30px; height: 30px; border-radius: var(--radius); flex-shrink: 0; background: #6b4a2f; }
.swatch-chip[data-finish="natural-walnut"] { background: #6b4a2f; }
.swatch-chip[data-finish="espresso-oak"] { background: #3b2a1d; }
.swatch-chip[data-finish="black-ash"] { background: #1c1a18; border: 1px solid #333; }
.swatch-chip[data-finish="honey-maple"] { background: #c08c4d; }
.swatch-chip[data-finish="weathered-grey"] { background: #7d7a74; }

.game-search {
  width: 100%; padding: 13px 16px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); font-family: inherit; font-size: 15px; margin-bottom: 16px;
}
.game-search:focus { outline: none; border-color: var(--accent); }
.game-pick-list { display: flex; flex-wrap: wrap; gap: 8px; }
.game-pill {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 9px 16px; color: var(--text); cursor: pointer; font-family: inherit;
  font-size: 12px; letter-spacing: 1px; text-transform: uppercase; font-weight: 500;
  transition: all 0.3s;
}
.game-pill:hover { border-color: var(--accent); }
.game-pill.selected { background: var(--accent); border-color: var(--accent); color: #0A0A0A; }

.inlay-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 12px; transition: border-color 0.3s; }
.inlay-card.selected { border-color: var(--accent); }
.inlay-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.inlay-head h3 { font-family: var(--font-display); font-size: 16px; font-weight: 400; margin-bottom: 4px; }
.inlay-price { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.inlay-price strong { font-family: var(--font-mono); font-size: 14px; }
.inlay-price .btn { padding: 9px 20px; font-size: 11px; }
.inlay-options { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.inlay-options label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-dim); }
.inlay-options select { display: block; margin-top: 5px; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 10px; font-family: var(--font-body); font-size: 13px; }
.qty-input { width: 64px; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); padding: 7px 8px; font-family: inherit; }
.qty-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-dim); }

.build-summary { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: sticky; top: 100px; }
.build-summary h2 { font-family: var(--font-mono); text-align: left; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--text-dim); margin-bottom: 14px; }
.summary-lines { margin-bottom: 12px; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 13px; border-bottom: 1px solid var(--border); font-weight: 300; }
.summary-line strong { font-family: var(--font-mono); font-weight: 400; }
.summary-line.total { font-size: 16px; border-bottom: none; padding-top: 14px; font-weight: 500; }
.summary-line.deposit { color: var(--accent); border-bottom: none; }
.summary-total .row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.summary-total .row strong { font-family: var(--font-mono); }
.summary-total .row.deposit { color: var(--accent); font-size: 13px; }
.build-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; }
.build-nav .btn { flex: 1; padding: 13px 0; font-size: 12px; }
.review-lines { margin-bottom: 28px; max-width: 560px; }
.review-ctas { display: flex; flex-direction: column; gap: 12px; max-width: 480px; }
.review-ctas .big { padding: 17px 20px; font-size: 12px; }
@media (max-width: 900px) { .build-body { grid-template-columns: 1fr; } .build-summary { position: static; } }

.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.75); display: flex; align-items: center; justify-content: center; z-index: 2000; padding: 20px; }
.modal { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; width: 460px; max-width: 100%; }
.modal h2 { font-size: 22px; text-align: left; margin-bottom: 8px; }
.modal p { color: var(--text-dim); font-size: 14px; margin-bottom: 16px; font-weight: 300; }
.modal label { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-dim); margin-bottom: 16px; }
.modal input { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); font-family: var(--font-body); font-size: 15px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
.modal-actions .btn { padding: 12px 24px; font-size: 12px; }
#save-link { word-break: break-all; font-family: var(--font-mono); font-size: 13px; }

/* ============ Tracker ============ */
.tracker-list { max-width: 680px; margin: 0 auto; }
.tracker-stage { display: flex; gap: 18px; }
.tracker-marker { display: flex; flex-direction: column; align-items: center; }
.tracker-marker .dot {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 12px;
  background: var(--bg-card); border: 2px solid var(--border); color: var(--text-dim); flex-shrink: 0;
}
.tracker-stage.complete .dot { background: var(--accent); border-color: var(--accent); color: #0A0A0A; }
.tracker-stage.in_progress .dot { border-color: var(--accent); color: var(--accent); }
.tracker-marker .line { width: 2px; flex: 1; background: var(--border); min-height: 22px; }
.tracker-stage.complete .line { background: var(--accent); }
.tracker-body { padding-bottom: 30px; flex: 1; }
.tracker-body h3 { font-size: 17px; padding-top: 6px; }
.tracker-body .hint { color: var(--text-dim); font-size: 13px; font-weight: 300; }
.tracker-note { color: var(--text); font-style: italic; margin-top: 8px; }
.tracker-date { color: var(--text-muted); font-family: var(--font-mono); font-size: 11px; margin-top: 4px; }
.tracker-photos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.tracker-photos img { width: 110px; height: 82px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); }

/* ============ Shop ============ */
.shop-card .shop-add { display: flex; gap: 10px; margin-top: 16px; align-items: center; }
.shop-card .btn { padding: 11px 22px; font-size: 11px; }
.mb { margin-bottom: 48px; }

/* Admin/misc leftovers used by public pages */
.hint { color: var(--text-dim); font-size: 13px; font-weight: 300; }

/* Header over the (always-dark) homepage hero: stay dark until scrolled,
   whatever the theme, so light mode doesn't paint a cream bar over the video. */
body.home .site-header:not(.scrolled) {
  background: rgba(10,10,10,0.55);
  border-bottom-color: transparent;
}
body.home .site-header:not(.scrolled) .main-nav a { color: #999999; }
body.home .site-header:not(.scrolled) .main-nav a:hover { color: #F0F0F0; }
body.home .site-header:not(.scrolled) .main-nav a.cta { color: #FF6B00; border-color: #FF6B00; }
body.home .site-header:not(.scrolled) .main-nav a.cta:hover { background: #FF6B00; color: #0A0A0A; }
body.home .site-header:not(.scrolled) .logo { color: #FF6B00; }
body.home .site-header:not(.scrolled) .theme-toggle { border-color: #2A2A2A; color: #999; }

/* Motion safety: never hide hero content from reduced-motion users */
@media (prefers-reduced-motion: reduce) {
  .hero-label, .hero-title, .hero-subtitle, .hero .hero-ctas, .hero-scroll {
    animation: none; opacity: 1; transform: none;
  }
}

/* Hero buttons: the hero is always dark, so pin literal colors there */
.hero .btn-ghost { color: #F0F0F0; border-color: #3a3a3a; }
.hero .btn-ghost:hover { color: #FF6B00; border-color: #FF6B00; }
.hero .btn-primary { background: #FF6B00; color: #0A0A0A; }
.hero .btn-primary:hover { background: #ff8533; }

/* The hidden attribute must always win (display:flex above would override it) */
.modal-backdrop[hidden] { display: none; }

/* ============ Assurance strip (worldwide / warranty / registry) ============ */
.assurance { padding: 0; }
.assurance-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px;
  background: var(--border); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.assurance-item {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg-raised); padding: 26px 28px; color: var(--text);
}
a.assurance-item { transition: background 0.3s; }
a.assurance-item:hover { background: var(--bg-card); }
.assurance-icon {
  font-family: var(--font-mono); font-size: 20px; color: var(--accent);
  width: 44px; height: 44px; flex-shrink: 0; border: 1px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.assurance-item strong { display: block; font-size: 14px; letter-spacing: 0.5px; }
.assurance-item span:not(.assurance-icon) { display: block; color: var(--text-dim); font-size: 12px; font-weight: 300; }

/* ============ Certificate ============ */
.certificate-wrap { padding: 150px 0 90px; }
.certificate { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.cert-border {
  background: var(--bg-card);
  border: 1px solid var(--accent);
  outline: 1px solid var(--border);
  outline-offset: 6px;
  border-radius: var(--radius);
  padding: 56px 48px;
  text-align: center;
}
.cert-brand { color: var(--accent); display: flex; justify-content: center; margin-bottom: 28px; }
.cert-brand .hdg-logo { height: 34px; }
.cert-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 5px; text-transform: uppercase; color: var(--green); margin-bottom: 10px; }
.cert-serial { font-family: var(--font-mono); font-size: clamp(26px, 4vw, 40px); font-weight: 700; letter-spacing: 4px; color: var(--accent); margin-bottom: 26px; }
.cert-photo { margin: 0 auto 26px; max-width: 480px; }
.cert-photo img { border-radius: var(--radius); border: 1px solid var(--border); }
.cert-model { font-family: var(--font-display); font-size: clamp(24px, 3.4vw, 36px); font-weight: 400; margin-bottom: 28px; }
.cert-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; margin-bottom: 28px; }
.cert-meta dt { font-family: var(--font-mono); font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
.cert-meta dd { font-size: 15px; }
.cert-notes { color: var(--text-dim); font-style: italic; margin-bottom: 28px; font-weight: 300; }
.cert-warranty { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 22px 8px; margin-bottom: 24px; }
.cert-warranty-title { font-family: var(--font-mono); font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.cert-warranty p:last-child { color: var(--text-dim); font-size: 13px; font-weight: 300; }
.cert-foot { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); }
.cert-actions { display: flex; gap: 14px; justify-content: center; margin-top: 32px; }
.registry-search .btn { width: 100%; }

@media print {
  body { background: #fff !important; color: #111 !important; }
  body::after, .site-header, .site-footer, .cert-actions, .theme-toggle { display: none !important; }
  .certificate-wrap { padding: 0; }
  .cert-border { border-color: #c85200; outline-color: #ddd; background: #fff; }
  .cert-meta dd, .cert-model { color: #111; }
}

/* ============ Language selector + Google Translate cleanup ============ */
.lang-select {
  width: 100%; max-width: 180px; padding: 9px 12px;
  background: var(--bg-card); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 13px;
}
.gt-holder { position: fixed; left: -9999px; top: 0; }
.goog-te-banner-frame, .skiptranslate iframe { display: none !important; }
body { top: 0 !important; }
font[style] { background: transparent !important; box-shadow: none !important; }

/* ============ Configurator live preview + storefront pass ============ */
.render-stack { position: relative; aspect-ratio: 4/3; background: radial-gradient(ellipse at center, #17130f 0%, #0d0b09 100%); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
:root[data-theme="light"] .render-stack { background: radial-gradient(ellipse at center, #efe9dd 0%, #e2dbcc 100%); }
.render-stack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pick-thumb { width: 100%; height: 84px; object-fit: contain; margin-bottom: 10px; background: rgba(0,0,0,0.25); border-radius: var(--radius); display: block; }
.pick-line { position: absolute; top: 12px; right: 12px; font-family: var(--font-mono); font-size: 9px; letter-spacing: 1px; color: var(--text-muted); border: 1px solid var(--border); padding: 2px 8px; border-radius: var(--radius); }
.build-progress li.skipped { opacity: 0.25; text-decoration: line-through; }
img.swatch-chip { object-fit: cover; }

/* Shop All grid */
.shop-all-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.shop-all-grid .card.featured { grid-column: span 2; border-color: var(--accent); }
.shop-all-grid .card.featured::before { opacity: 1; }
@media (max-width: 560px) { .shop-all-grid .card.featured { grid-column: span 1; } }

/* Popular Builds */
.prebuilt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.prebuilt-card { display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all 0.4s var(--ease-out-expo); }
.prebuilt-card:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); transform: translateY(-4px); }
.prebuilt-card img.cover { width: 100%; height: 190px; object-fit: cover; display: block; }
.prebuilt-body { padding: 22px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.prebuilt-body h3 { font-family: var(--font-display); font-size: 20px; font-weight: 400; }
.prebuilt-body .tagline { font-family: var(--font-mono); color: var(--green); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; }
.prebuilt-body p { color: var(--text-dim); font-size: 13px; font-weight: 300; flex: 1; }
.prebuilt-price { font-family: var(--font-mono); color: var(--accent); font-size: 15px; }
.prebuilt-body .btn { margin-top: 8px; padding: 12px 20px; font-size: 11px; text-align: center; }

/* Reviews strip */
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.review-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.review-stars { color: var(--accent); letter-spacing: 3px; margin-bottom: 10px; font-size: 14px; }
.review-card blockquote { color: var(--text-dim); font-weight: 300; font-size: 14px; margin-bottom: 14px; }
.review-card cite { font-style: normal; font-size: 12px; }
.review-card cite span { color: var(--text-muted); display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 1px; margin-top: 2px; }

/* Gallery strip on home */
.home-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.home-gallery a { display: block; position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.home-gallery img { width: 100%; height: 170px; object-fit: cover; display: block; transition: transform 0.5s var(--ease-out-expo); }
.home-gallery a:hover img { transform: scale(1.04); }

/* Social row */
.social-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.social-row a { font-family: var(--font-mono); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; border: 1px solid var(--border); padding: 12px 26px; border-radius: var(--radius); color: var(--text); transition: all 0.3s; }
.social-row a:hover { border-color: var(--accent); color: var(--accent); }

/* TCG funnel */
.funnel-step { margin-bottom: 64px; }
.funnel-step .step-num { font-family: var(--font-mono); color: var(--accent); font-size: 12px; letter-spacing: 3px; margin-bottom: 8px; display: block; }
.tcg-game-grid { display: flex; flex-wrap: wrap; gap: 10px; }

/* Base finish swatch chips */
.swatch-chip[data-finish="matte-black"] { background: #141414; border: 1px solid #333; }
.swatch-chip[data-finish="matte-white"] { background: #e8e4dd; }
