:root {
  --bg: #0A0A08;
  --surface: #16130A;
  --text: #FAF7F2;
  --muted: #D6D3D1;
  --primary: #FACC15;
  --secondary: #DC2626;
  --accent: #16A34A;
  --border: rgba(250, 247, 242, 0.12);
  --paper: #F5F0E6;
  --paper-shadow: rgba(0, 0, 0, 0.45);
  --ink-muted: rgba(250, 247, 242, 0.65);
  --shadows-stack: 6px 6px 0 var(--paper-shadow);
  --minimal-radius: 3px;
  --analog-tilt: -0.3deg;
  --craft-serif: Georgia, "Times New Roman", "Palatino Linotype", Palatino, serif;
}

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

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: Georgia, "Times New Roman", "Palatino Linotype", Palatino, serif;
  background: var(--bg);
  background-image:
    linear-gradient(165deg, rgba(250, 202, 21, 0.04) 0%, transparent 45%),
    radial-gradient(ellipse at 20% 0%, rgba(220, 38, 38, 0.06) 0%, transparent 50%),
    linear-gradient(0deg, var(--bg) 0%, #12100A 100%);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 48px,
      rgba(250, 247, 242, 0.015) 48px,
      rgba(250, 247, 242, 0.015) 49px
    );
  opacity: 0.6;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse at center bottom, rgba(250, 202, 21, 0.03) 0%, transparent 60%);
}

.disclosure-banner {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  font-size: 12px;
  color: var(--muted);
  background: rgba(250, 247, 242, 0.06);
  position: relative;
  z-index: 10;
  text-align: center;
  line-height: 1.4;
}

.disclosure-icon {
  flex-shrink: 0;
  font-size: 14px;
}

.disclosure-text {
  max-width: 900px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  height: 60px;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-link img {
  height: 36px;
  width: auto;
}

.nav-desktop {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-desktop a {
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  padding: 6px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 0.2s;
  font-family: Georgia, serif;
}

.nav-desktop a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.burger-btn {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  padding: 6px 12px;
  cursor: pointer;
  font-size: 20px;
  border-radius: 999px;
}

.nav-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
}

.nav-drawer.open {
  display: flex;
}

.nav-drawer a {
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  padding: 10px 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 100%;
  max-width: 280px;
  text-align: center;
}

.nav-drawer a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1999;
  background: rgba(0, 0, 0, 0.5);
}

.drawer-overlay.visible {
  display: block;
}

main {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
}

.site-footer {
  background: var(--surface);
  padding: 48px 24px 32px;
  margin-top: auto;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  box-shadow: 0 -4px 16px var(--paper-shadow);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 28px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

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

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.footer-badges a,
.footer-badges span {
  display: inline-flex;
}

.footer-badges img {
  height: 40px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.footer-disclosure {
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.6;
}

.footer-disclosure a {
  color: var(--primary);
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo img {
  height: 32px;
  width: auto;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.hidden {
  display: none;
}

.modal-box {
  background: var(--surface);
  padding: 32px;
  max-width: 440px;
  width: 100%;
  border-radius: 4px;
  box-shadow:
    4px 4px 0 var(--paper-shadow),
    8px 8px 0 rgba(0, 0, 0, 0.25);
  transform: rotate(-0.3deg);
}

.modal-box h2 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--primary);
}

.modal-box p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-paper {
  padding: 10px 22px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  background: var(--primary);
  color: var(--bg);
  box-shadow: 3px 3px 0 var(--paper-shadow);
  transition: transform 0.15s;
}

.btn-paper:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--paper-shadow);
}

.btn-paper.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 8000;
  background: var(--surface);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 -4px 20px var(--paper-shadow);
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner p {
  font-size: 13px;
  color: var(--muted);
  flex: 1;
  min-width: 200px;
}

.cookie-banner a {
  color: var(--primary);
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.legal-content h1 {
  font-size: 28px;
  margin-bottom: 20px;
  color: var(--primary);
}

.legal-content h2 {
  font-size: 20px;
  margin: 28px 0 12px;
  color: var(--text);
}

.legal-content h3 {
  font-size: 17px;
  margin: 20px 0 10px;
}

.legal-content p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 15px;
}

.legal-content ul {
  margin: 0 0 16px 24px;
  color: var(--muted);
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content a {
  color: var(--primary);
}

.contact-form {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form label {
  font-size: 14px;
  color: var(--text);
  font-family: "Courier New", Courier, monospace;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 14px;
  background: rgba(250, 247, 242, 0.05);
  border: none;
  border-radius: 3px;
  color: var(--text);
  font-family: Georgia, serif;
  font-size: 15px;
  box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.form-error {
  font-size: 13px;
  color: var(--secondary);
  display: none;
}

.form-error.visible {
  display: block;
}

.form-success {
  display: none;
  padding: 20px;
  background: rgba(22, 163, 74, 0.15);
  color: var(--accent);
  border-radius: 3px;
  font-size: 15px;
  box-shadow: 3px 3px 0 var(--paper-shadow);
}

.form-success.visible {
  display: block;
}

.info-cta {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 22px;
  background: var(--primary);
  color: var(--bg);
  text-decoration: none;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  border-radius: 3px;
  box-shadow: 4px 4px 0 var(--paper-shadow);
  transition: transform 0.15s;
}

.info-cta:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--paper-shadow);
}

.page-hero-strip {
  background: var(--surface);
  padding: 40px 24px;
  text-align: center;
  box-shadow: 0 4px 12px var(--paper-shadow);
}

.page-hero-strip h1 {
  font-size: 32px;
  color: var(--primary);
  max-width: 700px;
  margin: 0 auto;
}

.page-hero-strip .typewriter-caption {
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
  letter-spacing: 0.08em;
}

.article-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.article-body p {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 16px;
}

.article-body h2 {
  font-size: 22px;
  color: var(--text);
  margin: 32px 0 14px;
}

.article-body h3 {
  font-size: 18px;
  color: var(--primary);
  margin: 24px 0 10px;
}

.article-body ul {
  margin: 0 0 18px 24px;
  color: var(--muted);
}

.article-body li {
  margin-bottom: 8px;
}

.decor-img {
  max-width: 500px;
  max-height: 320px;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 6px 6px 0 var(--paper-shadow);
}

.decor-wrap {
  max-width: 500px;
  width: 100%;
  overflow: hidden;
}

@media (max-width: 375px) {
  .decor-wrap {
    max-width: 100%;
    overflow: hidden;
  }

  .decor-img {
    max-width: 100%;
    max-height: 220px;
    width: 100%;
    height: auto;
  }

  .info-section {
    overflow-x: hidden;
  }

  .article-body,
  .legal-content,
  .pay-layout,
  .sub-split,
  .mobile-layout,
  .live-body {
    overflow-x: hidden;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

  .burger-btn {
    display: block;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
  }
}
