/* ============================================================
   Cheesy Road — Official Game Guide
   Theme: Sky Blue + Grass Green + Cheese Yellow (from game)
   Mobile-first responsive design
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
  --bg: #1B3A4B;
  --bg-secondary: #1E4256;
  --bg-card: #1F4A5E;
  --bg-card-hover: #245A70;
  --text: #F0F4F8;
  --text-muted: #A0B4C0;
  --primary: #F5C543;
  --primary-light: #F8D76A;
  --primary-dark: #D4A72C;
  --accent: #6BBF59;
  --accent-dark: #4E9940;
  --sky: #4A9ADC;
  --sky-light: #6BB5E8;
  --danger: #E05555;
  --border: rgba(255,255,255,0.12);
  --border-light: rgba(255,255,255,0.08);
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-card: 0 2px 16px rgba(0,0,0,0.25);
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1200px;
  --header-height: 64px;
  --transition: 0.25s ease;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--sky-light); text-decoration: none; transition: color var(--transition); }
a:hover { text-decoration: underline; color: var(--primary-light); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.2em; }
table { border-collapse: collapse; width: 100%; }

body [data-aos="fade-left"][data-aos="fade-left"],
body [data-aos="fade-right"][data-aos="fade-right"] {
  transform: translate3d(0, 24px, 0);
}
body [data-aos="fade-left"][data-aos="fade-left"].aos-animate,
body [data-aos="fade-right"][data-aos="fade-right"].aos-animate {
  transform: none;
}

/* --- Accessibility --- */
.skip-link {
  position: absolute; top: -100px; left: 16px;
  background: var(--primary); color: #1a1a1a;
  padding: 12px 20px; border-radius: var(--radius-sm);
  font-weight: 700; z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 8px; }

*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

@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;
  }
  [data-aos] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* --- Container --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* --- Buttons --- */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: var(--radius-sm);
  font-weight: 700; text-decoration: none; font-size: 1rem;
  transition: transform var(--transition), box-shadow var(--transition);
  border: none; cursor: pointer; text-align: center;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: #1a1a1a; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(245,197,67,0.4); color: #1a1a1a; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(107,191,89,0.3); color: #fff; }
.btn-secondary { background: rgba(255,255,255,0.1); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: rgba(255,255,255,0.15); color: var(--text); }
.btn-small { padding: 6px 12px; font-size: 0.8rem; border-radius: 6px; background: rgba(255,255,255,0.1); color: var(--text-muted); }
.btn-small:hover { background: rgba(255,255,255,0.2); color: var(--text); }
.btn-glow { animation: glow 2s ease-in-out infinite; }
@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(245,197,67,0.4); }
  50% { box-shadow: 0 0 40px rgba(245,197,67,0.7); }
}

/* --- Header --- */
.header {
  position: sticky; top: 0; z-index: 1000;
  display: flex; align-items: center;
  width: 100%; min-height: var(--header-height);
  padding: 10px max(16px, calc((100vw - var(--max-width)) / 2 + 20px));
  background: rgba(27,58,75,0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  gap: 12px;
}
.logo { flex-shrink: 0; order: 1; }
.logo img { border-radius: 8px; }
.header-play-btn {
  order: 2; padding: 10px 18px; font-size: 0.82rem;
  flex-shrink: 0; margin-left: auto; white-space: nowrap;
}

.mobile-menu-toggle {
  order: 3;
  display: flex; flex-direction: column; justify-content: space-between;
  width: 28px; height: 20px; background: none; border: none;
  cursor: pointer; padding: 0; z-index: 1001; flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.mobile-menu-toggle span {
  display: block; width: 100%; height: 3px;
  background: #fff; border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* Mobile: nav is off-screen drawer */
.nav-menu {
  order: 4;
  position: fixed; top: 0; right: 0;
  width: min(82vw, 320px); height: 100vh; height: 100dvh;
  background: var(--bg); padding: 80px 24px 24px;
  clip-path: inset(0 0 0 100%);
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: clip-path 0.3s ease, opacity 0.2s ease, visibility 0s linear 0.3s;
  z-index: 1000;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  box-shadow: -12px 0 30px rgba(0,0,0,0.25);
}
.nav-menu.active {
  clip-path: inset(0);
  opacity: 1; pointer-events: auto; visibility: visible;
  transition: clip-path 0.3s ease, opacity 0.2s ease;
}
.nav-menu a {
  display: block; padding: 16px 0; color: #fff;
  text-decoration: none; font-size: 1.1rem;
  border-bottom: 1px solid var(--border-light);
}
.nav-menu a:hover { color: var(--primary); text-decoration: none; }
body.menu-open::before {
  content: ''; position: fixed; inset: 0;
  background: rgba(0,0,0,0.5); z-index: 999;
}
body.menu-open { overflow: hidden; }

/* Desktop: inline nav between logo and CTA */
@media (min-width: 1024px) {
  .mobile-menu-toggle { display: none; }
  .header { gap: 0; }
  .nav-menu {
    order: 2;
    position: static; width: auto; height: auto;
    padding: 0; display: flex; gap: 12px; align-items: center;
    background: none; flex: 1; justify-content: center;
    overflow: visible; -webkit-overflow-scrolling: auto;
    clip-path: none; opacity: 1; pointer-events: auto; visibility: visible;
    transition: none; box-shadow: none;
  }
  .nav-menu a {
    padding: 8px 0; border: none; font-size: 0.9rem;
    display: inline; color: var(--text); white-space: nowrap;
  }
  .nav-menu a:hover { color: var(--primary); }
  .header-play-btn {
    order: 3; padding: 10px 24px; font-size: 0.9rem; margin-left: 16px;
  }
}

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 12px 0; font-size: 0.85rem; color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }

/* --- Hero --- */
.hero { padding: 48px 0 40px; text-align: center; }
.hero--inner { padding: 32px 0 28px; }
.hero h1 {
  max-width: 920px; margin: 0 auto 12px;
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  font-weight: 800; line-height: 1.15;
}
.hero p { max-width: 760px; margin-left: auto; margin-right: auto; }
.hero__lead { color: var(--text-muted); font-size: 1.08rem; }
.hero-image {
  border-radius: var(--radius); box-shadow: var(--shadow);
  max-width: min(100%, 420px); width: 100%; height: auto; object-fit: cover;
  margin: 24px auto 0;
}
.hero-stats {
  display: flex; gap: 12px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 24px;
}
.stat-card {
  background: var(--bg-card); padding: 12px 20px;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  text-align: center; min-width: 120px;
}
.stat-value { display: block; font-size: 1.3rem; font-weight: 800; color: var(--primary); }
.stat-label { display: block; font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }

/* Desktop hero: split layout */
@media (min-width: 1024px) {
  .hero .container:has(> .hero-content) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    align-items: center;
    gap: 32px;
  }
  .hero-content { flex: 1; min-width: 0; text-align: left; }
  .hero .container:has(> .hero-content) .hero-image {
    max-width: 380px; margin: 0; border-radius: var(--radius);
  }
  .hero-stats { justify-content: flex-start; }
  .hero-cta { justify-content: flex-start; }
  .hero .freshness-badge { margin-bottom: 8px; }
}

/* Legacy simple pages without container wrappers */
#main-content > .breadcrumb:not(:has(.container)):not(.container) {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 20px;
}
#main-content > .hero:not(:has(.container)) {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
#main-content > section:not([class]) {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 20px;
}
#main-content > section:not([class]) h2 {
  color: var(--primary);
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  line-height: 1.25;
  margin-bottom: 10px;
}
#main-content > section:not([class]) p + p { margin-top: 12px; }

/* --- Freshness Badge --- */
.freshness-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 20px;
  background: rgba(255,255,255,0.08); border: 1px solid var(--border);
  font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px;
}
.freshness-badge time { font-weight: 600; color: var(--text); }
.freshness-badge .update-reason { font-style: italic; }

/* --- Sections --- */
.section { padding: 48px 0; }
.section-header {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.section-label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}
.section-title {
  font-size: clamp(1.3rem, 4vw, 2rem); font-weight: 700;
  margin-bottom: 24px;
}

/* --- TOC --- */
.toc {
  background: var(--bg-card); padding: 24px;
  border-radius: var(--radius); border: 1px solid var(--border);
  max-width: var(--max-width); margin: 0 auto; width: calc(100% - 40px);
}
.toc h2 { font-size: 1.1rem; margin-bottom: 12px; color: var(--primary); }
.toc ol { columns: 2; column-gap: 24px; }
.toc li { padding: 4px 0; }
.toc a { color: var(--text); font-size: 0.9rem; }
.toc a:hover { color: var(--primary); }
@media (max-width: 576px) { .toc ol { columns: 1; } }

/* --- Tables --- */
.specs-table-wrapper,
.comparison-table-wrapper,
.table-wrapper {
  max-width: 100%;
  overflow-x: auto;
  margin: 16px 0;
  -webkit-overflow-scrolling: touch;
}
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table th, .specs-table td {
  padding: 12px 16px; text-align: left;
  border-bottom: 1px solid var(--border-light); font-size: 0.9rem;
}
.specs-table th { background: var(--bg-card); font-weight: 600; color: var(--primary); white-space: nowrap; }
.specs-table tr:hover { background: rgba(255,255,255,0.03); }

.comparison-table { width: 100%; }
.comparison-table th, .comparison-table td {
  padding: 12px; text-align: center;
  border-bottom: 1px solid var(--border-light); font-size: 0.9rem;
}
.comparison-table th { background: var(--bg-card); }
.comparison-table .highlight { background: rgba(245,197,67,0.08); font-weight: 700; }
.comparison-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 8px; }
.table-wrapper table { min-width: 640px; }
@media (max-width: 576px) {
  .specs-table,
  .comparison-table {
    min-width: 520px;
  }
}

/* --- Feature List --- */
.feature-list { list-style: none; padding: 0; }
.feature-list li {
  padding: 12px 0; border-bottom: 1px solid var(--border-light);
  line-height: 1.6;
}
.feature-list li:last-child { border-bottom: none; }

/* --- Steps Grid --- */
.steps-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.step-card {
  background: var(--bg-card); padding: 24px; border-radius: var(--radius);
  border: 1px solid var(--border);
}
.step-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); color: #1a1a1a;
  font-weight: 800; font-size: 1.1rem; margin-bottom: 12px;
}
.step-card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.step-card p { font-size: 0.9rem; color: var(--text-muted); }
@media (max-width: 576px) { .steps-grid { grid-template-columns: 1fr; } }

/* --- Zigzag Layout --- */
.zigzag-step {
  display: flex; align-items: center; gap: 2rem; margin-bottom: 2.5rem;
}
.zigzag-step:nth-child(even) { flex-direction: row-reverse; }
.zigzag-step .step-image { flex: 0 0 40%; border-radius: var(--radius); overflow: hidden; }
.zigzag-step .step-image img { width: 100%; height: auto; border-radius: var(--radius); }
.zigzag-step .step-content { flex: 1; }
.zigzag-step h3 { margin-bottom: 8px; color: var(--primary); }
@media (max-width: 768px) {
  .zigzag-step, .zigzag-step:nth-child(even) { flex-direction: column; }
  .zigzag-step .step-image { flex: none; width: 100%; }
}

/* --- Timeline --- */
.timeline { position: relative; padding-left: 40px; }
.timeline::before {
  content: ''; position: absolute; left: 15px; top: 0; bottom: 0;
  width: 2px; background: var(--primary); opacity: 0.3;
}
.timeline-item { position: relative; margin-bottom: 2rem; padding-left: 20px; }
.timeline-item::before {
  content: ''; position: absolute; left: -32px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--primary); border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--primary);
}
.timeline-item h3 { margin-bottom: 6px; font-size: 1.05rem; }
@media (max-width: 768px) {
  .timeline { padding-left: 30px; }
  .timeline::before { left: 10px; }
  .timeline-item::before { left: -26px; }
}

/* --- Bento Grid --- */
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bento-card {
  background: var(--bg-card); padding: 20px; border-radius: var(--radius);
  border: 1px solid var(--border);
}
.bento-card img { border-radius: var(--radius-sm); margin-bottom: 12px; }
.bento-card h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--primary); }
.bento-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }
.bento-large { grid-column: span 2; grid-row: span 2; }
.bento-wide { grid-column: span 2; }
@media (max-width: 768px) {
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .bento-large, .bento-wide { grid-column: span 1; grid-row: span 1; }
}
@media (max-width: 480px) { .bento-grid { grid-template-columns: 1fr; } }

/* --- Split Screen --- */
.split-screen {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border);
}
.split-left { background: var(--bg-card); padding: 2rem; }
.split-left h3 { color: var(--primary); margin-bottom: 8px; margin-top: 16px; }
.split-left h3:first-child { margin-top: 0; }
.split-right { background: var(--bg-secondary); padding: 1rem; overflow: hidden; }
.split-right img { width: 100%; height: auto; }
@media (max-width: 768px) {
  .split-screen { grid-template-columns: 1fr; }
}

/* --- Gallery --- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-grid figure {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); transition: transform var(--transition);
}
.gallery-grid figure:hover { transform: scale(1.02); }
.gallery-grid img { width: 100%; height: 200px; object-fit: cover; }
.gallery-grid figcaption {
  padding: 10px 12px; font-size: 0.8rem; color: var(--text-muted);
  background: var(--bg-card);
}
@media (max-width: 768px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gallery-grid { grid-template-columns: 1fr; } }

/* --- Casino Card --- */
.casino-card {
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden; margin-bottom: 16px;
}
.casino-card--recommended { border-color: var(--primary); border-width: 2px; }
.casino-badge {
  background: var(--primary); color: #1a1a1a; padding: 4px 16px;
  font-size: 0.8rem; font-weight: 700; display: inline-block;
}
.casino-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border-light);
}
.casino-header img { height: 40px; width: auto; }
.casino-rating { color: var(--primary); font-weight: 600; }
.stars { letter-spacing: 2px; }
.casino-body { padding: 20px; }
.casino-details { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0; }
.casino-pros h4, .casino-cons h4 { font-size: 0.9rem; margin-bottom: 8px; }
.casino-pros h4 { color: var(--accent); }
.casino-cons h4 { color: var(--danger); }
.casino-pros ul, .casino-cons ul { font-size: 0.85rem; color: var(--text-muted); }
.casino-pros li, .casino-cons li { padding: 3px 0; }
.casino-cta { display: block; text-align: center; margin-top: 16px; }
@media (max-width: 576px) { .casino-details { grid-template-columns: 1fr; } }

/* --- Calculator --- */
.calculator-container {
  background: var(--bg-card); padding: 24px; border-radius: var(--radius);
  border: 1px solid var(--border);
}
.calculator-inputs {
  display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap;
  margin-bottom: 20px;
}
.input-group { flex: 1; min-width: 120px; }
.input-group label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 6px; }
.input-group input {
  width: 100%; padding: 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg);
  color: var(--text); font-size: 1.1rem; font-weight: 600;
}
.calculator-result { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.result-item {
  flex: 1; min-width: 120px; padding: 16px; background: var(--bg);
  border-radius: var(--radius-sm); text-align: center;
}
.result-label { display: block; font-size: 0.8rem; color: var(--text-muted); }
.result-value { display: block; font-size: 1.4rem; font-weight: 800; color: var(--primary); margin-top: 4px; }
.result-warning .result-value { color: var(--danger); }
.calculator-disclaimer { font-size: 0.8rem; color: var(--text-muted); font-style: italic; }

/* --- Warning Box --- */
.warning-box {
  background: rgba(224,85,85,0.1); border: 1px solid rgba(224,85,85,0.3);
  border-left: 4px solid var(--danger); padding: 16px 20px;
  border-radius: var(--radius-sm); margin-bottom: 24px;
  font-size: 0.95rem; line-height: 1.7;
}
.warning-box--critical { background: rgba(224,85,85,0.15); }

/* --- Strategy Cards --- */
.strategy-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.strategy-card {
  background: var(--bg-card); padding: 24px; border-radius: var(--radius);
  border: 1px solid var(--border);
}
.strategy-card h3 { color: var(--primary); margin-bottom: 8px; }
@media (max-width: 576px) { .strategy-cards { grid-template-columns: 1fr; } }

.strategy-detail { margin-bottom: 24px; }
.strategy-meta {
  background: var(--bg-card); padding: 20px; border-radius: var(--radius);
  border: 1px solid var(--border);
}
.strategy-tag {
  display: inline-block; padding: 4px 12px; border-radius: 20px;
  font-size: 0.8rem; font-weight: 700; margin-bottom: 8px;
}
.strategy-tag--safe { background: rgba(107,191,89,0.2); color: var(--accent); }
.strategy-tag--medium { background: rgba(245,197,67,0.2); color: var(--primary); }
.strategy-tag--danger { background: rgba(224,85,85,0.2); color: var(--danger); }

/* --- Myths Grid --- */
.myths-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.myth-card {
  background: var(--bg-card); padding: 20px; border-radius: var(--radius);
  border: 1px solid var(--border);
}
.myth-card h3 { color: var(--danger); font-size: 1rem; margin-bottom: 8px; }
.myth-card p { font-size: 0.9rem; color: var(--text-muted); }
@media (max-width: 768px) { .myths-grid { grid-template-columns: 1fr; } }

/* --- Author Box --- */
.author-box {
  display: flex; gap: 20px; align-items: center;
  background: var(--bg-card); padding: 24px; border-radius: var(--radius);
  border: 1px solid var(--border); margin-bottom: 24px;
}
.author-photo { border-radius: 50%; width: 80px; height: 80px; object-fit: cover; flex-shrink: 0; }
.author-info strong { display: block; font-size: 1.1rem; }
.author-info span { display: block; font-size: 0.85rem; color: var(--text-muted); }
.author-socials { display: flex; gap: 12px; margin-top: 8px; }
.author-socials a { font-size: 0.85rem; color: var(--sky-light); }
@media (max-width: 480px) {
  .author-box { flex-direction: column; text-align: center; }
  .author-socials { justify-content: center; }
}

/* --- Pros/Cons --- */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.pros, .cons {
  padding: 20px; border-radius: var(--radius);
}
.pros { background: rgba(107,191,89,0.08); border: 1px solid rgba(107,191,89,0.2); }
.cons { background: rgba(224,85,85,0.08); border: 1px solid rgba(224,85,85,0.2); }
.pros h4 { color: var(--accent); margin-bottom: 12px; }
.cons h4 { color: var(--danger); margin-bottom: 12px; }
.pros li, .cons li { padding: 4px 0; font-size: 0.9rem; }
@media (max-width: 576px) { .pros-cons { grid-template-columns: 1fr; } }

/* --- Final Rating --- */
.final-rating {
  text-align: center; padding: 24px; background: var(--bg-card);
  border-radius: var(--radius); border: 2px solid var(--primary);
  margin-top: 24px;
}
.rating-score { font-size: 3rem; font-weight: 800; color: var(--primary); }
.rating-score small { font-size: 1.2rem; color: var(--text-muted); }
.rating-summary { color: var(--text-muted); margin-top: 8px; font-size: 0.95rem; }

/* --- FAQ --- */
.faq-container { max-width: 800px; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin-bottom: 8px; overflow: hidden;
}
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; cursor: pointer; background: var(--bg-card);
  transition: background var(--transition);
}
.faq-question:hover { background: var(--bg-card-hover); }
.faq-question h3 { font-size: 0.95rem; font-weight: 600; margin: 0; flex: 1; }
.faq-icon {
  font-size: 1.4rem; font-weight: 300; color: var(--primary);
  transition: transform 0.3s; flex-shrink: 0; margin-left: 12px;
}
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  padding: 0 20px;
}
.faq-answer p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-item.active .faq-answer { max-height: 500px; padding: 0 20px 20px; }

/* --- Promo Code --- */
.promo-code-box {
  background: var(--bg-card); padding: 24px; border-radius: var(--radius);
  border: 2px dashed var(--primary); text-align: center;
}
.promo-code-display {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.promo-code-value {
  max-width: 100%;
  font-size: clamp(1.25rem, 7vw, 2rem); font-weight: 800; color: var(--primary);
  letter-spacing: clamp(1px, 0.7vw, 3px); padding: 8px 20px;
  background: var(--bg); border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow-wrap: anywhere;
}
.promo-code-warning { font-size: 0.85rem; color: var(--danger); margin-top: 12px; }
@media (max-width: 480px) {
  .promo-code-display .copy-code { width: 100%; }
}

/* --- Bonus Breakdown --- */
.bonus-breakdown {
  background: var(--bg); padding: 16px; border-radius: var(--radius-sm);
  margin: 16px 0; border: 1px solid var(--border);
}
.bonus-breakdown h4 { color: var(--primary); margin-bottom: 8px; }

/* --- Numbered Steps --- */
.numbered-steps { padding-left: 1.5em; }
.numbered-steps li { padding: 8px 0; line-height: 1.6; }

/* --- Mistakes --- */
.mistakes-list { display: flex; flex-direction: column; gap: 16px; }
.mistake-card {
  background: var(--bg-card); padding: 20px; border-radius: var(--radius);
  border: 1px solid var(--border); border-left: 4px solid var(--danger);
}
.mistake-card h3 { color: var(--danger); margin-bottom: 8px; font-size: 1rem; }

/* --- Glossary --- */
.glossary-list { list-style: none; padding: 0; }
.glossary-item { padding: 16px 0; border-bottom: 1px solid var(--border-light); }
.glossary-item dt { font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.glossary-item dd { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* --- Internal Links Box --- */
.internal-links-box {
  background: var(--bg-card); padding: 24px; border-radius: var(--radius);
  border: 1px solid var(--border);
}
.internal-links-box h3 { color: var(--primary); margin-bottom: 12px; }
.internal-links-box li { padding: 6px 0; }

/* --- Update History --- */
.update-history {
  margin: 24px auto; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; max-width: var(--max-width);
}
.update-history summary {
  padding: 12px 20px; background: var(--bg-card);
  cursor: pointer; font-weight: 600; font-size: 0.95rem;
}
.update-history summary:hover { background: var(--bg-card-hover); }
.update-history .changelog { list-style: none; padding: 16px 20px; margin: 0; }
.update-history .changelog li {
  padding: 8px 0; border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
}
.update-history .changelog li:last-child { border-bottom: none; }
.update-history .changelog time { font-weight: 600; min-width: 100px; display: inline-block; }

/* --- Affiliate Disclosure --- */
.affiliate-disclosure { font-size: 0.8rem; color: var(--text-muted); margin-top: 16px; }

/* --- Footer --- */
.footer {
  background: #132A36; border-top: 2px solid var(--primary);
  padding: 48px 0 24px; margin-top: 48px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px; margin-bottom: 32px;
}
.footer-col p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }
.footer-col h4 { color: var(--primary); margin-bottom: 12px; font-size: 0.95rem; }
.footer-col nav { display: flex; flex-direction: column; gap: 6px; }
.footer-col nav a { color: var(--text-muted); font-size: 0.85rem; }
.footer-col nav a:hover { color: var(--primary); }
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.trust-badges {
  display: flex; gap: 16px; justify-content: center;
  align-items: center; flex-wrap: wrap;
  padding: 20px 0; border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 20px;
}
.trust-badges img { height: 40px; width: auto; opacity: 0.7; transition: opacity var(--transition); }
.trust-badges img:hover { opacity: 1; }

.disclaimer {
  text-align: center; padding: 16px; font-size: 0.8rem;
  color: var(--text-muted); line-height: 1.6;
  background: rgba(224,85,85,0.05); border-radius: var(--radius-sm);
  margin-bottom: 16px;
}
.disclaimer a { color: var(--sky-light); }

.copyright { text-align: center; font-size: 0.75rem; color: var(--text-muted); }

/* --- Mobile Sticky CTA --- */
.mobile-sticky-cta {
  position: fixed; bottom: -100px; left: 0; right: 0;
  background: var(--bg); border-top: 2px solid var(--primary);
  padding: 10px 16px; z-index: 998;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; transition: bottom 0.3s ease;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
}
.mobile-sticky-cta.visible { bottom: 0; }
.sticky-cta-text strong { display: block; font-size: 0.85rem; }
.sticky-cta-text span { font-size: 0.75rem; color: var(--text-muted); }
.btn-sticky-cta { padding: 10px 20px; font-size: 0.85rem; white-space: nowrap; }
@media (min-width: 769px) { .mobile-sticky-cta { display: none; } }

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(19,42,54,0.98); padding: 16px 20px;
  z-index: 10000; border-top: 2px solid var(--primary);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
  transform: translateY(100%); opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
}
.cookie-banner--visible { transform: translateY(0); opacity: 1; }
.cookie-content {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.cookie-text { flex: 1; min-width: 250px; }
.cookie-text p { margin: 0; line-height: 1.5; font-size: 0.85rem; }
.cookie-text a { color: var(--primary); }
.cookie-buttons { display: flex; gap: 12px; }
@media (max-width: 768px) {
  .cookie-content { flex-direction: column; text-align: center; }
  .cookie-buttons { width: 100%; flex-direction: column; }
  .cookie-buttons button { width: 100%; }
}

/* --- Error Page (404) --- */
.error-page {
  min-height: 100vh; display: flex; align-items: center;
  justify-content: center; text-align: center; padding: 20px;
}
.error-content h1 { font-size: 120px; color: var(--primary); line-height: 1; }
.error-actions { display: flex; gap: 16px; justify-content: center; margin: 24px 0; flex-wrap: wrap; }

/* --- Contact Form --- */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.9rem; margin-bottom: 6px; font-weight: 600; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-card);
  color: var(--text); font-size: 0.95rem; font-family: inherit;
}
.form-group textarea { resize: vertical; }
.form-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 12px; }

/* --- Demo Container --- */
.demo-container {
  background: var(--bg-card); border-radius: var(--radius);
  border: 2px solid var(--primary); text-align: center;
  padding: 40px 20px; margin: 24px 0;
}
.demo-placeholder { position: relative; display: inline-block; }
.demo-placeholder img { border-radius: var(--radius); max-width: 400px; }
.demo-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 12px; }

/* --- Scroll Progress (native CSS) --- */
@supports (animation-timeline: view()) {
  .scroll-progress {
    position: fixed; top: 0; left: 0; width: 100%;
    height: 3px; background: var(--primary);
    transform-origin: left; z-index: 9999;
    animation: progressBar linear;
    animation-timeline: scroll();
  }
  @keyframes progressBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* ============================================================
   INLINE Q&A BLOCK — mid-content FAQ with linked answers
   ============================================================ */
.qa-block {
  margin: 2.5rem 0;
  padding: 1.75rem;
  background: linear-gradient(135deg, rgba(107, 191, 89, 0.08) 0%, rgba(74, 154, 220, 0.06) 100%);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
}
.qa-block__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.qa-block__header::before {
  content: '❓';
  font-size: 1.25rem;
}
.qa-block__item {
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border-light);
}
.qa-block__item:last-child { border-bottom: 0; padding-bottom: 0; }
.qa-block__question {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 0.5rem;
  line-height: 1.35;
}
.qa-block__answer {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.6;
  margin: 0;
}
.qa-block__answer a {
  color: var(--sky-light);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(107, 181, 232, 0.4);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.qa-block__answer a:hover {
  color: var(--primary);
  text-decoration-color: var(--primary);
}

/* ============================================================
   FOOTER — topic-grouped layout (cheeseroad differentiator)
   ============================================================ */
.footer--topic-grouped .footer__col-title {
  color: var(--primary);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}
