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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

main { position: relative; }

a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--link-hover); }
img { max-width: 100%; height: auto; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Compact page intro — game is the star */
.page-intro {
  text-align: center;
  padding: 1.25rem 0 0.5rem;
}

.page-intro h1 {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--text-secondary);
}

.page-intro h1 span { color: var(--text-primary); font-weight: 700; }

/* Info section — collapsed by default feel */
.info-section {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border);
}

.info-toggle-wrap {
  text-align: center;
  margin-bottom: 1.5rem;
}

.info-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.info-toggle:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
}

.info-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.info-panel.open { max-height: 4000px; }

.prose {
  max-width: var(--prose-width);
  margin: 0 auto;
  padding: 0 0.5rem;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: var(--text-primary);
}

.prose h2:first-child { margin-top: 0; }

.prose p { margin-bottom: 0.9rem; color: var(--text-secondary); font-size: 0.95rem; }
.prose ul, .prose ol { margin: 0 0 1rem 1.1rem; color: var(--text-secondary); font-size: 0.95rem; }
.prose li { margin-bottom: 0.4rem; }

.prose .lead {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  line-height: 1.65;
}

.prose .key-point {
  padding: 0.85rem 1rem;
  background: var(--bg-secondary);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  margin: 1rem 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.prose .key-point strong { color: var(--text-primary); }

.tool-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.tool-card {
  display: block;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}

.tool-card:hover {
  border-color: var(--border-accent);
  text-decoration: none;
}

.tool-card h3 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.tool-card p { color: var(--text-muted); font-size: 0.8rem; margin: 0; }

.faq-list { max-width: var(--prose-width); margin: 1.5rem auto 0; }

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.faq-item summary {
  padding: 0.85rem 1rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p {
  padding: 0 1rem 0.85rem;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.55;
}

.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 0.85rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s;
}

.cookie-bar.visible { transform: translateY(0); }
.cookie-bar p { color: var(--text-secondary); font-size: 0.85rem; flex: 1; min-width: 200px; }
.cookie-bar button { padding: 0.45rem 1rem; border-radius: var(--radius-sm); border: none; cursor: pointer; font-weight: 600; font-size: 0.85rem; }
.cookie-accept { background: var(--accent); color: #fff; }
.cookie-decline { background: transparent; color: var(--text-secondary); border: 1px solid var(--border) !important; }

.page-hero { text-align: center; padding: 2rem 0 1.25rem; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(1.75rem, 4vw, 2.25rem); margin-bottom: 0.5rem; }
.page-hero .subtitle { color: var(--text-secondary); font-size: 1rem; max-width: 520px; margin: 0 auto; }

.content-page { padding: 1.5rem 0 3rem; }
.content-page .prose {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.content-page .updated { color: var(--text-muted); font-size: 0.8rem; margin-bottom: 1.25rem; }

.contact-form { display: flex; flex-direction: column; gap: 0.85rem; margin-top: 1.25rem; }
.contact-form label { display: flex; flex-direction: column; gap: 0.3rem; color: var(--text-secondary); font-size: 0.85rem; }
.contact-form input, .contact-form textarea {
  padding: 0.7rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
}
.contact-form button {
  align-self: flex-start;
  padding: 0.7rem 1.4rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
}

.btn-secondary {
  padding: 0.45rem 0.85rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
.btn-secondary:hover { border-color: var(--text-muted); color: var(--text-primary); }

.btn-danger {
  padding: 0.45rem 0.85rem;
  background: transparent;
  color: var(--danger);
  border: 1px solid rgba(248,113,113,0.3);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
.btn-danger:hover { background: rgba(248,113,113,0.1); }
