/* Jackpot Compass — shared tokens & resets */
:root {
  --sky: #e8f4f8;
  --sky-deep: #cfe6ef;
  --navy: #1a3a5c;
  --navy-soft: #2a4f75;
  --coral: #ff6b5b;
  --coral-deep: #e85545;
  --ink: #152536;
  --muted: #5a6b7a;
  --paper: #f4fafc;
  --white: #ffffff;
  --rule: #b8d0dc;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.5rem;
  --space-6: 4rem;
  --radius-card: 1.25rem;
  --radius-header: 1rem 1rem 0 0;
  --font: "Libre Baskerville", "Georgia", "Times New Roman", serif;
  --font-ui: "Nunito", "Segoe UI", sans-serif;
  --max: 42rem;
  --wide: 68rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  padding-top: 2.4rem;
  padding-bottom: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--coral);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 1.5px;
  transition: background-size 0.25s ease;
}

a:hover,
a:focus-visible {
  background-size: 100% 1.5px;
}

a.btn,
a.site-logo,
a.nav-link,
a.safety-card,
a.cta-primary,
a.cta-secondary,
.age-bar a,
.cookie-banner a {
  background-image: none;
}

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
  margin: 0 0 var(--space-3);
}

p {
  margin: 0 0 var(--space-3);
}

ul, ol {
  margin: 0 0 var(--space-3);
  padding-left: 1.25rem;
}

.wrap {
  width: min(100% - 2rem, var(--wide));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Age notice — pinned top */
.age-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  line-height: 1.4;
  padding: 0.45rem 1rem;
  text-align: center;
}

.age-bar a {
  color: #ffd4cf;
  text-decoration: underline;
}

/* Header */
.site-header {
  background: var(--sky);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) 0;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--navy);
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 1.15rem;
  background-image: none;
}

.site-logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a {
  color: var(--navy);
}

.nav-toggle {
  display: none;
  font-family: var(--font-ui);
  font-weight: 700;
  background: var(--white);
  border: 2px solid var(--navy);
  color: var(--navy);
  padding: 0.35rem 0.7rem;
  border-radius: 0;
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-block;
  }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
  }
  .site-nav.is-open {
    display: flex;
  }
}

/* Buttons — sharp rectangular, zero radius */
.btn,
.cta-primary,
.cta-secondary,
button[type="submit"] {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.7rem 1.15rem;
  border-radius: 0;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  background-image: none !important;
}

.cta-primary,
.btn-primary,
button[type="submit"] {
  background: var(--coral);
  color: var(--white);
  border-color: var(--coral);
}

.cta-primary:hover,
.btn-primary:hover,
button[type="submit"]:hover {
  background: var(--coral-deep);
  border-color: var(--coral-deep);
  color: var(--white);
}

.cta-secondary,
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.cta-secondary:hover,
.btn-ghost:hover {
  background: var(--navy);
  color: var(--white);
}

/* Badges — square-cut sharp */
.badge {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 0.2rem 0.45rem;
  border-radius: 0;
  background: var(--navy);
  color: var(--white);
  margin: 0 0.25rem 0.25rem 0;
}

.badge-soft {
  background: var(--sky-deep);
  color: var(--navy);
}

.badge-coral {
  background: var(--coral);
  color: var(--white);
}

/* Dividers — short centred accent rule */
.section-rule {
  width: 4rem;
  height: 3px;
  background: var(--coral);
  margin: 0 auto var(--space-4);
  border: 0;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #d7e6ef;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  padding: var(--space-5) 0 var(--space-4);
  margin-top: var(--space-6);
}

.site-footer a {
  color: #ffcfc8;
}

.footer-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  margin-bottom: var(--space-4);
}

.site-footer h3 {
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.footer-note {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: var(--space-3);
  font-size: 0.82rem;
  color: #a8c0ce;
}

.footer-mark {
  opacity: 0.35;
  width: 56px;
  height: 56px;
  margin-top: var(--space-3);
  border-radius: 50%;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--white);
  border-top: 3px solid var(--coral);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  box-shadow: 0 -4px 20px rgba(26, 58, 92, 0.12);
  display: none;
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-inner {
  width: min(100%, var(--wide));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  justify-content: space-between;
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Utility */
.muted {
  color: var(--muted);
}

.small {
  font-size: 0.85rem;
}

.notice-18 {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
}

.independence-note {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  background: var(--sky);
  border-left: 4px solid var(--coral);
  padding: var(--space-3);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  margin-bottom: var(--space-4);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a { transition: none; }
  .showcase-row,
  .op-row {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
