/* ─── Letterstorm Brand Tokens ─── */
:root {
  --bg:          #210C32;
  --surface:     #1D0A1E;
  --surface-2:   #2A1040;
  --tile-amber:  #D4A853;
  --tile-gold:   #B8860B;
  --cream:       #F5ECD7;
  --cream-muted: #C9B99A;
  --accent:      #F5A623;
  --accent-dim:  #D4881C;
  --valid-green: #4CAF50;
  --invalid-red: #E53935;
  --border:      rgba(212,168,83,0.25);
  --glow:        rgba(245,166,35,0.18);
  --radius:      12px;
  --radius-lg:   20px;
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  background-color: var(--bg);
  color: var(--cream);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── Grid noise overlay ─── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg,   transparent, transparent 55px, rgba(212,168,83,0.03) 56px),
    repeating-linear-gradient(90deg,  transparent, transparent 55px, rgba(212,168,83,0.03) 56px);
  pointer-events: none;
  z-index: 0;
}

/* ─── Layout ─── */
.page { position: relative; z-index: 1; }

.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Nav ─── */
.nav {
  border-bottom: 1px solid var(--border);
  background: rgba(29,10,30,0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--cream);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.nav__logo img {
  height: 32px;
  width: auto;
}

.nav__links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav__links a {
  text-decoration: none;
  color: var(--cream-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s;
}

.nav__links a:hover { color: var(--accent); }
.nav__links a.active { color: var(--accent); }

/* ─── Hero ─── */
.hero {
  text-align: center;
  padding: 72px 24px 56px;
}

.hero__logo {
  max-width: 300px;
  width: 100%;
  margin-bottom: 24px;
  filter: drop-shadow(0 0 32px rgba(245,166,35,0.35));
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--cream);
}

.hero__subtitle {
  margin-top: 12px;
  font-size: 1.125rem;
  color: var(--cream-muted);
  max-width: 480px;
  margin-inline: auto;
}

.hero__badges {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.8125rem;
  color: var(--cream-muted);
  letter-spacing: 0.02em;
}

.badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ─── Tile decoration ─── */
.tile-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 32px 0;
  flex-wrap: wrap;
}

.tile {
  width: 52px;
  height: 52px;
  background: linear-gradient(145deg, #D4A853, #B8860B);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  font-weight: 800;
  color: #5C2A00;
  box-shadow:
    0 2px 0 rgba(0,0,0,0.5),
    0 4px 12px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.2);
  position: relative;
  letter-spacing: 0;
}

.tile__point {
  position: absolute;
  bottom: 4px;
  right: 5px;
  font-size: 0.55rem;
  font-weight: 700;
  color: rgba(92,42,0,0.7);
  line-height: 1;
}

/* ─── Divider ─── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 48px 0;
}

/* ─── Section ─── */
.section { padding: 16px 0 48px; }

.section__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: 20px;
}

/* ─── How to Play steps ─── */
.steps {
  display: grid;
  gap: 14px;
}

.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.step__num {
  width: 44px;
  height: 44px;
  background: linear-gradient(145deg, var(--tile-amber), var(--tile-gold));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 800;
  color: #5C2A00;
  flex-shrink: 0;
  box-shadow: 0 2px 0 rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.15);
}

.step__body h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 4px;
}

.step__body p {
  font-size: 0.875rem;
  color: var(--cream-muted);
  line-height: 1.55;
}

/* ─── FAQ ─── */
.faq { display: grid; gap: 10px; }

details.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

details.faq__item[open] {
  border-color: rgba(212,168,83,0.45);
  box-shadow: 0 0 0 1px rgba(212,168,83,0.12), 0 4px 24px rgba(0,0,0,0.3);
}

details.faq__item summary {
  padding: 18px 20px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--cream);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
}

details.faq__item summary::-webkit-details-marker { display: none; }

details.faq__item summary::after {
  content: "";
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23D4A853'%3E%3Cpath d='M10 13.5a.75.75 0 0 1-.53-.22l-4-4a.75.75 0 1 1 1.06-1.06L10 11.69l3.47-3.47a.75.75 0 1 1 1.06 1.06l-4 4a.75.75 0 0 1-.53.22z'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform 0.2s;
}

details.faq__item[open] summary::after { transform: rotate(180deg); }

.faq__answer {
  padding: 0 20px 18px;
  font-size: 0.875rem;
  color: var(--cream-muted);
  line-height: 1.65;
}

.faq__answer p + p { margin-top: 10px; }

.faq__answer a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(245,166,35,0.3);
}

.faq__answer a:hover { border-color: var(--accent); }

/* ─── Contact card ─── */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}

.contact-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 8px;
}

.contact-card p {
  color: var(--cream-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.1s;
  letter-spacing: 0.01em;
}

.btn:active { transform: scale(0.97); }

.btn--gold {
  background: linear-gradient(160deg, var(--tile-amber), var(--tile-gold));
  color: #2C1A0E;
  box-shadow: 0 2px 0 rgba(0,0,0,0.35), 0 4px 16px rgba(0,0,0,0.3);
}

.btn--gold:hover { opacity: 0.9; }

.btn--outline {
  background: transparent;
  color: var(--cream-muted);
  border: 1px solid var(--border);
}

.btn--outline:hover { color: var(--cream); border-color: rgba(212,168,83,0.5); }

/* ─── Privacy Policy prose ─── */
.prose h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: 6px;
}

.prose .updated {
  font-size: 0.8125rem;
  color: var(--cream-muted);
  margin-bottom: 36px;
  display: block;
}

.prose h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--tile-amber);
  margin: 40px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.prose h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--cream);
  margin: 20px 0 6px;
}

.prose p, .prose li {
  font-size: 0.9375rem;
  color: var(--cream-muted);
  line-height: 1.7;
}

.prose ul, .prose ol {
  padding-left: 20px;
  margin: 10px 0;
}

.prose li { margin-bottom: 6px; }

.prose a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(245,166,35,0.3); }
.prose a:hover { border-color: var(--accent); }

.prose strong { color: var(--cream); font-weight: 600; }

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.875rem;
}

.prose thead { background: var(--surface-2); }

.prose th {
  text-align: left;
  padding: 10px 14px;
  color: var(--tile-amber);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

.prose td {
  padding: 10px 14px;
  color: var(--cream-muted);
  border-bottom: 1px solid rgba(212,168,83,0.1);
  vertical-align: top;
}

.prose tr:last-child td { border-bottom: none; }

.prose .callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 0.875rem;
  color: var(--cream-muted);
}

/* ─── Footer ─── */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
}

.footer__links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
  list-style: none;
}

.footer__links a {
  text-decoration: none;
  font-size: 0.8125rem;
  color: var(--cream-muted);
  transition: color 0.15s;
}

.footer__links a:hover { color: var(--accent); }

.footer__copy {
  font-size: 0.75rem;
  color: rgba(197,185,154,0.45);
}

/* ─── Responsive ─── */
@media (max-width: 520px) {
  .tile { width: 44px; height: 44px; font-size: 1.125rem; }
  .step { grid-template-columns: 38px 1fr; }
  .step__num { width: 38px; height: 38px; font-size: 1rem; }
  .contact-card { padding: 24px 18px; }
}
