/* Lucky Reel Guide — shared tokens & resets */
:root {
  --grey-blue-50: #f5f7fa;
  --grey-blue-100: #e8eef5;
  --grey-blue-200: #d0dbe8;
  --grey-blue-300: #a8bdd4;
  --slate-blue: #4a6fa5;
  --slate-blue-deep: #3a5a88;
  --charcoal: #2c333a;
  --charcoal-soft: #3d454e;
  --amber: #d4a017;
  --amber-soft: #e8b84a;
  --amber-tint: #fbf4e3;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow-soft: 0 8px 28px rgba(44, 51, 58, 0.08);
  --shadow-inner: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --font-display: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", monospace;
  --max: 1120px;
  --age-bar-h: 2.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--grey-blue-50);
  padding-bottom: var(--age-bar-h);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--slate-blue);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--charcoal);
  margin: 0 0 var(--space-4);
}

p {
  margin: 0 0 var(--space-4);
}

ul, ol {
  margin: 0 0 var(--space-4);
  padding-left: 1.25rem;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.section-rule {
  width: 3rem;
  height: 3px;
  background: var(--amber);
  border: 0;
  border-radius: 2px;
  margin: var(--space-6) auto;
  display: block;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.85em;
  letter-spacing: 0.02em;
}

/* Age notice bar — persistent, non-modal */
.age-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--charcoal);
  color: var(--grey-blue-100);
  font-size: 0.8rem;
  line-height: 1.4;
  padding: 0.55rem 1rem;
  text-align: center;
}

.age-bar a {
  color: var(--amber-soft);
  text-decoration: underline;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: calc(var(--age-bar-h) + 0.75rem);
  z-index: 999;
  max-width: 28rem;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--grey-blue-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: var(--space-5);
  display: none;
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-banner p {
  font-size: 0.9rem;
  margin-bottom: var(--space-4);
}

.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* Site header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--grey-blue-200);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--charcoal);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  color: var(--slate-blue);
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav-toggle {
  display: none;
  background: var(--grey-blue-100);
  border: 1px solid var(--grey-blue-200);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--charcoal);
  cursor: pointer;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  align-items: center;
}

.site-nav a {
  color: var(--charcoal-soft);
  font-size: 0.92rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--slate-blue);
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: var(--space-4);
  }

  .site-nav.is-open {
    display: flex;
  }

  .header-inner {
    flex-wrap: wrap;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.7rem 1.25rem;
  background: var(--amber);
  color: var(--charcoal);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.12s ease;
}

.btn:hover {
  background: var(--amber-soft);
  text-decoration: none;
  color: var(--charcoal);
}

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

.btn-secondary {
  background: transparent;
  color: var(--slate-blue);
  border: 1.5px solid var(--slate-blue);
}

.btn-secondary:hover {
  background: var(--grey-blue-100);
  color: var(--slate-blue-deep);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }

  .btn:active {
    transform: none;
  }
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--grey-blue-100);
  color: var(--charcoal-soft);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
}

.badge-amber {
  background: var(--amber-tint);
  color: #8a6808;
}

.badge-slate {
  background: #e3ebf5;
  color: var(--slate-blue-deep);
}

/* Stars */
.stars {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--amber);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.stars span {
  color: var(--grey-blue-300);
}

/* Soft card shell */
.soft-card {
  background: var(--white);
  border: 1px solid var(--grey-blue-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft), var(--shadow-inner);
}

/* Footer */
.site-footer {
  background: var(--charcoal);
  color: var(--grey-blue-200);
  padding: var(--space-7) 0 var(--space-6);
  margin-top: var(--space-8);
  position: relative;
  overflow: hidden;
}

.site-footer a {
  color: var(--amber-soft);
}

.site-footer .footer-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1.4fr 1fr 1fr;
}

@media (max-width: 720px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr;
  }
}

.site-footer h3 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: var(--space-3);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.site-footer .footer-note {
  font-size: 0.85rem;
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-mark {
  position: absolute;
  right: 5%;
  bottom: 10%;
  width: 120px;
  opacity: 0.08;
  pointer-events: none;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-6);
  justify-content: center;
  padding: var(--space-5) var(--space-4);
  background: var(--white);
  border: 1px solid var(--grey-blue-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.trust-strip .stat {
  text-align: center;
}

.trust-strip .stat strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.35rem;
  color: var(--slate-blue);
}

.trust-strip .stat span {
  font-size: 0.8rem;
  color: var(--charcoal-soft);
}

.page-hero {
  padding: var(--space-7) 0 var(--space-5);
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  font-size: 1.35rem;
  margin-top: var(--space-6);
}

.updated {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--charcoal-soft);
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-4);
}

.safety-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--white);
  border: 1px solid var(--grey-blue-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft), var(--shadow-inner);
  text-align: center;
  text-decoration: none;
  color: var(--charcoal);
  min-height: 120px;
  transition: transform 0.12s ease;
}

.safety-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.safety-card img {
  max-height: 40px;
  width: auto;
  object-fit: contain;
}

.safety-card span {
  font-size: 0.85rem;
  font-weight: 600;
}

.form-field {
  margin-bottom: var(--space-4);
}

.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: var(--space-2);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--grey-blue-200);
  border-radius: var(--radius-sm);
  font: inherit;
  background: var(--white);
  box-shadow: var(--shadow-inner);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--amber);
  outline-offset: 1px;
}

.disclaimer {
  font-size: 0.85rem;
  color: var(--charcoal-soft);
  background: var(--grey-blue-100);
  border-radius: var(--radius);
  padding: var(--space-5);
  border: 1px solid var(--grey-blue-200);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
