:root {
  --bg: #F0F9FF;
  --surface: #FFFFFF;
  --text: #0C4A6E;
  --muted: #7DD3FC;
  --primary: #0EA5E9;
  --secondary: #BAE6FD;
  --accent: #38BDF8;
  --border: rgba(12,74,110,0.12);
  --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  --font-sans: "Avenir Next Condensed", "Helvetica Neue Condensed", "Arial Narrow", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(165deg, rgba(14,165,233,0.12) 0%, transparent 42%),
    linear-gradient(345deg, rgba(56,189,248,0.1) 0%, transparent 38%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 47px,
      rgba(12,74,110,0.03) 47px,
      rgba(12,74,110,0.03) 48px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 47px,
      rgba(12,74,110,0.03) 47px,
      rgba(12,74,110,0.03) 48px
    );
  background-attachment: fixed;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--primary);
}

.space-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(56,189,248,0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,189,248,0.15) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.35;
}

.nasa-hud {
  position: relative;
  border: 1px solid rgba(56,189,248,0.45);
  box-shadow: inset 0 0 0 1px rgba(14,165,233,0.15);
  animation: nasa-scan 3.5s ease-in-out infinite;
}

.telemetry-rail {
  border-left: 2px solid var(--accent);
  padding-left: 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.mission-control-nav {
  position: relative;
}

.mission-control-nav .brand-lockup span {
  animation: scientific-readout 6s ease-in-out infinite;
}

.scientific-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.scientific-panel::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1px solid rgba(56,189,248,0.35);
  box-shadow: 0 0 0 8px rgba(14,165,233,0.06);
  transform: translate(40%, -40%);
  pointer-events: none;
}

.disclosure-banner {
  background: var(--text);
  color: var(--surface);
  font-size: 12px;
  text-align: center;
  padding: 10px 16px;
  width: 100%;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  line-height: 1.4;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--text);
  clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
  min-height: 68px;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--surface);
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.brand-lockup img {
  width: 36px;
  height: 78px;
  object-fit: contain;
  display: block;
}

.brand-lockup span {
  color: var(--surface);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--secondary);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links a:hover {
  text-decoration: underline;
  color: var(--surface);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--surface);
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--surface);
}

.nav-overlay {
  display: none;
}

.nav-close {
  display: none;
}

.status-blink {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: telemetry-pulse 1.4s ease-in-out infinite;
  margin-right: 0.4rem;
  vertical-align: middle;
}

@keyframes telemetry-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

@keyframes space-orbit {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes nasa-scan {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.85; }
}

@keyframes mission-control-sweep {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@keyframes scientific-readout {
  0%, 100% { letter-spacing: 0.04em; }
  50% { letter-spacing: 0.08em; }
}

@keyframes gauge-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes vector-draw {
  0% { stroke-dashoffset: 120; opacity: 0.2; }
  50% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0.55; }
}

.hero {
  background: var(--bg);
  text-align: center;
  padding: 48px 24px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 12% 8%;
  border: 1px solid rgba(56,189,248,0.25);
  pointer-events: none;
  clip-path: polygon(0 8px, 8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px));
}

.hero h1 {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: 0.04em;
  margin: 0 0 1.25rem;
  color: var(--text);
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

.hero-frame {
  border: 4px solid var(--accent);
  padding: 8px;
  max-width: 300px;
  margin: 0 auto 1.25rem;
  background: var(--surface);
}

.hero-frame img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
}

.hero-sub {
  margin: 0 auto;
  max-width: 36rem;
  color: rgba(12,74,110,0.78);
  font-size: 1.05rem;
}

.gauge-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--muted);
  border-top-color: var(--primary);
  margin: 1rem auto 0;
  animation: gauge-spin 4s linear infinite, space-orbit 12s linear infinite;
}

.section-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 24px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.offers-section {
  position: relative;
  background-color: var(--text);
  background-image:
    linear-gradient(180deg, rgba(12,74,110,0.88), rgba(12,74,110,0.92)),
    url("/images/offers_bg/offers_bg.webp");
  background-size: cover;
  background-position: center;
  color: var(--surface);
  padding: 3rem 24px;
  animation: mission-control-sweep 18s linear infinite;
}

.offers-section .section-wrap {
  position: relative;
  z-index: 1;
}

.offers-section h2 {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  margin: 0 0 0.5rem;
}

.offers-intro {
  color: var(--secondary);
  max-width: 40rem;
  margin-bottom: 1.75rem;
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.offer-card {
  background: #ffffff;
  color: #0f172a;
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-decoration: none;
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 8px 24px rgba(15,23,42,0.12);
  transition: transform 0.2s ease;
}

.offer-card:hover {
  transform: translateY(-3px);
}

.offer-logo {
  width: 200px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 auto;
  flex-shrink: 0;
}

.offer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  max-width: none;
}

.offer-card h3 {
  margin: 0;
  font-size: 1.15rem;
  color: #0f172a;
}

.offer-bonus {
  margin: 0;
  font-weight: 700;
  color: #0369a1;
  font-size: clamp(0.8rem, 2.4vw, 0.98rem);
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.offer-terms {
  margin: 0;
  font-size: 0.72rem;
  color: #64748b;
}

.offer-desc {
  margin: 0;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.45;
}

.offer-cta {
  margin-top: auto;
  display: inline-block;
  text-align: center;
  background: #0ea5e9;
  color: #ffffff;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}

.info-block {
  padding: 2.75rem 24px;
  position: relative;
}

.info-block h2 {
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
  margin-top: 0;
}

.info-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.info-layout-guide {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.info-layout-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.info-layout-stack {
  max-width: 720px;
}

.info-layout-cards .card-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}

.info-layout-cards .mini-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.info-layout-band {
  background: linear-gradient(90deg, rgba(14,165,233,0.12), transparent 60%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.info-layout-rail {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
}

.info-layout-quote {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.info-layout-quote blockquote {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  border-left: none;
  margin: 1.5rem 0;
  color: var(--primary);
}

.info-layout-mosaic {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

.info-layout-timeline ol {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  counter-reset: step;
}

.info-layout-timeline li {
  position: relative;
  padding: 0.75rem 0 0.75rem 2.5rem;
  border-left: 2px solid var(--muted);
  counter-increment: step;
}

.info-layout-timeline li::before {
  content: counter(step);
  position: absolute;
  left: -0.75rem;
  top: 0.85rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--surface);
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
}

.info-layout-table .odds-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.info-layout-table th,
.info-layout-table td {
  border: 1px solid var(--border);
  padding: 0.65rem 0.8rem;
  text-align: left;
  background: var(--surface);
}

.decor-img {
  max-width: 500px;
  max-height: 320px;
  width: 100%;
  object-fit: cover;
  display: block;
}

.decor-clip {
  max-width: 100%;
  overflow: hidden;
}

.decor-bg {
  min-height: 180px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
}

.topic-cta {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.7rem 1.2rem;
  background: var(--primary);
  color: var(--surface);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.topic-cta:hover {
  background: var(--text);
}

.site-footer {
  background: var(--text);
  color: var(--secondary);
  padding: 2.5rem 24px 2rem;
  margin-top: auto;
}

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

.footer-brand {
  margin-bottom: 1.5rem;
}

.footer-brand .brand-lockup {
  margin-bottom: 0.75rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

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

.footer-links a:hover {
  color: var(--surface);
  text-decoration: underline;
}

.footer-help {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin: 1.25rem 0;
}

.footer-help a {
  display: inline-block;
}

.footer-help img {
  height: 42px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.footer-compliance {
  font-size: 0.9rem;
  color: var(--secondary);
  max-width: 52rem;
}

.footer-au-disclosure {
  font-size: 12px;
  color: rgba(186,230,253,0.72);
  margin-top: 1.25rem;
  max-width: 52rem;
  line-height: 1.5;
}

.footer-company {
  font-size: 0.8rem;
  margin-top: 1rem;
  color: rgba(186,230,253,0.65);
  font-family: var(--font-mono);
}

.footer-updated {
  font-size: 0.8rem;
  margin-top: 0.75rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

.page-main {
  padding-bottom: 2rem;
  flex: 1 0 auto;
}

.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem 24px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.legal-page h1 {
  font-family: var(--font-mono);
  margin-top: 0;
}

.legal-page h2 {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  margin-top: 1.75rem;
}

.contact-form {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
  max-width: 480px;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

.contact-form button {
  justify-self: start;
  background: var(--primary);
  color: var(--surface);
  border: none;
  padding: 0.75rem 1.4rem;
  font-family: var(--font-mono);
  cursor: pointer;
}

.form-error {
  color: #b91c1c;
  font-size: 0.85rem;
  display: none;
}

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

.form-success {
  display: none;
  padding: 1.25rem;
  background: rgba(14,165,233,0.12);
  border: 1px solid var(--accent);
  font-family: var(--font-mono);
}

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

.age-gate {
  position: fixed;
  inset: 0;
  background: rgba(12,74,110,0.92);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.age-gate.active {
  display: flex;
}

.age-gate-dialog {
  background: var(--surface);
  padding: 2rem;
  max-width: 420px;
  width: 100%;
  border: 1px solid var(--border);
  text-align: center;
}

.age-gate-dialog h2 {
  font-family: var(--font-mono);
  margin-top: 0;
}

.age-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.age-actions button {
  border: none;
  padding: 0.7rem 1.2rem;
  font-family: var(--font-mono);
  cursor: pointer;
}

.age-confirm {
  background: var(--primary);
  color: var(--surface);
}

.age-decline {
  background: transparent;
  border: 1px solid var(--border) !important;
  color: var(--text);
}

.age-denied {
  display: none;
  margin-top: 1rem;
  color: #b91c1c;
  font-size: 0.9rem;
}

.age-denied.visible {
  display: block;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--text);
  color: var(--surface);
  padding: 1rem 24px;
  z-index: 900;
  display: none;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.cookie-banner.active {
  display: block;
}

.cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-inner p {
  margin: 0;
  flex: 1 1 280px;
  font-size: 0.9rem;
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
}

.cookie-actions button {
  border: none;
  padding: 0.6rem 1rem;
  font-family: var(--font-mono);
  cursor: pointer;
}

.cookie-accept {
  background: var(--primary);
  color: var(--surface);
}

.cookie-reject {
  background: transparent;
  color: var(--secondary);
  border: 1px solid rgba(255,255,255,0.25) !important;
}

.subpage-hero {
  padding: 2.5rem 24px;
  background: linear-gradient(135deg, var(--text), rgba(14,165,233,0.85));
  color: var(--surface);
}

.subpage-hero h1 {
  font-family: var(--font-mono);
  max-width: 1100px;
  margin: 0 auto;
  letter-spacing: 0.04em;
}

.subpage-hero p {
  max-width: 1100px;
  margin: 0.75rem auto 0;
  color: var(--secondary);
}

.redirect-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--secondary);
  border-top-color: var(--primary);
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  animation: gauge-spin 0.8s linear infinite;
}

.vector-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 1.5rem 0;
  position: relative;
}

.vector-line::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  top: -3.5px;
  left: 20%;
  box-shadow: 0 0 10px var(--accent);
  animation: telemetry-pulse 2s ease-in-out infinite;
}

@media (max-width: 860px) {
  .site-header {
    clip-path: none;
    min-height: auto;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
  }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--text);
    z-index: 200;
    padding: 5rem 1.5rem 2rem;
    overflow-y: auto;
  }

  .nav-overlay.active {
    display: block;
  }

  .nav-overlay .nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }

  .nav-overlay .nav-links a {
    font-size: 1.05rem;
  }

  .nav-close {
    display: block;
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.35);
    color: var(--surface);
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
    cursor: pointer;
  }

  .hero {
    padding: 24px 16px;
  }

  .hero-frame {
    max-width: 200px;
  }

  .info-layout-guide,
  .info-layout-split,
  .info-layout-mosaic,
  .info-layout-rail,
  .info-layout-cards .card-row {
    grid-template-columns: 1fr;
  }

  .brand-lockup img {
    width: 28px;
    height: 61px;
  }

  .offer-logo {
    width: 160px;
    height: 58px;
  }

  .offer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
  }

  .hero-frame,
  .decor-clip,
  .decor-img,
  .decor-bg,
  .bonus-image-rail,
  .rugby-band {
    max-width: 100%;
    overflow: hidden;
  }

  .decor-img {
    max-height: 220px;
  }

  .decor-bg {
    max-width: 100%;
    max-height: 200px;
  }

  .offers-section {
    padding: 2rem 16px;
  }

  .offer-card {
    min-width: 0;
  }
}

@media (max-width: 400px) {
  .hero-frame {
    max-width: 100%;
  }

  .hero-frame img {
    max-height: 160px;
  }

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

  .section-wrap,
  .info-block,
  .subpage-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .offer-logo {
    width: 140px;
    height: 52px;
  }

  .offer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
  }
}
