/* Bago New — light AU social casino */
:root {
  --bg: #eef3f6;
  --bg-deep: #e2ebf0;
  --surface: #ffffff;
  --ink: #1c2e3a;
  --muted: #536572;
  --line: #cfd9e1;
  --accent: #c2412e;
  --accent-ink: #ffffff;
  --brand: #166e72;
  --brand-soft: #d7eef0;
  --ok: #1f7a4d;
  --warn: #8a5a12;
  --radius: 12px;
  --shadow: 0 10px 28px rgba(28, 46, 58, 0.08);
  --max: 1120px;
  --font-display: "Fredoka", "Trebuchet MS", sans-serif;
  --font-body: "Nunito", "Segoe UI", sans-serif;
}

*,
*::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.6;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
}

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

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.65rem;
}

h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
}

.logo-mark {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.55rem;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

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

.nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
}

.nav a[aria-current="page"],
.nav a:hover {
  color: var(--brand);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.85rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: #a83624;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--brand);
  color: var(--brand);
}

.btn-ghost:hover {
  background: var(--brand-soft);
  color: var(--brand);
}

.btn-on-media {
  background: transparent;
  border-color: #fff;
  color: #fff;
}

.btn-on-media:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.hero {
  position: relative;
  min-height: min(52vh, 420px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  /* Readable type over hero photo */
  background: rgba(28, 46, 58, 0.52);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 2.25rem 0 1.75rem;
  max-width: 34rem;
  animation: rise 0.7s ease both;
}

.hero-copy h1 {
  color: #fff;
  font-size: clamp(1.7rem, 3.4vw, 2.45rem);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}

.hero-copy p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.brand-line {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 600;
  margin-bottom: 0.2rem;
  letter-spacing: -0.02em;
}

section {
  padding: 4rem 0;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2rem;
}

.section-head p {
  margin-bottom: 0;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.game-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
  animation: rise 0.6s ease both;
}

.game-card:nth-child(2) {
  animation-delay: 0.08s;
}
.game-card:nth-child(3) {
  animation-delay: 0.16s;
}
.game-card:nth-child(4) {
  animation-delay: 0.24s;
}
.game-card:hover {
  transform: translateY(-4px);
}

.game-card img {
  aspect-ratio: 1;
  width: 100%;
  object-fit: cover;
  background: var(--bg-deep);
}

.game-card-body {
  padding: 1rem 1.05rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.game-card h3 {
  margin: 0;
}

.game-card p {
  margin: 0;
  font-size: 0.95rem;
  flex: 1;
}

.game-card .btn {
  align-self: flex-start;
  min-height: 2.5rem;
  padding: 0.45rem 1rem;
  font-size: 0.95rem;
}

.play-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.play-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line);
  background: #f8fbfc;
}

.play-panel-head h2 {
  margin: 0;
  font-size: 1.35rem;
}

.iframe-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.05;
  min-height: 480px;
  max-height: min(85vh, 700px);
  background: #eef3f6;
  overflow: hidden;
  border-radius: 0 0 var(--radius) var(--radius);
}

.iframe-shell.iframe-tall {
  aspect-ratio: 1 / 1.12;
  min-height: 540px;
  max-height: min(88vh, 760px);
}

.iframe-shell.iframe-slot {
  aspect-ratio: 16 / 10;
  min-height: 520px;
  max-height: min(90vh, 820px);
  background: #0f2a2c;
}

.play-panel.demo-frame {
  border-radius: calc(var(--radius) + 4px);
}

.iframe-shell iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  overflow: hidden;
}

.disclaimer {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid #edd8b0;
  background: #fff8ea;
  border-radius: var(--radius);
  color: var(--warn);
  font-size: 0.95rem;
}

.disclaimer a {
  color: var(--warn);
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.split-media {
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.feature-list li {
  padding-left: 1.3rem;
  position: relative;
  color: var(--muted);
}

.feature-list li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  background: var(--brand);
  position: absolute;
  left: 0;
  top: 0.55rem;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 48rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.2rem 0;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.15rem;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

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

.faq-item[open] summary {
  color: var(--brand);
}

.faq-item p {
  padding: 0 1.15rem 1.1rem;
  margin: 0;
}

.page-hero {
  padding: 3.25rem 0 1.5rem;
}

.page-hero h1 {
  max-width: 18ch;
}

.page-hero p {
  max-width: 40rem;
  font-size: 1.1rem;
}

.prose {
  max-width: 46rem;
}

.prose h2 {
  margin-top: 2.25rem;
}

.prose ul {
  color: var(--muted);
  padding-left: 1.2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1.5rem;
}

.contact-card,
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.contact-card h2,
.form-card h2 {
  margin-bottom: 0.85rem;
}

.contact-card dl {
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.contact-card dt {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--brand);
}

.contact-card dd {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

.form-row {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.95rem;
}

label {
  font-weight: 700;
  font-size: 0.95rem;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  background: #fbfcfd;
  color: var(--ink);
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(22, 110, 114, 0.35);
  border-color: var(--brand);
  background: #fff;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0.5rem 0 0;
}

.form-success {
  display: none;
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border-radius: var(--radius);
  background: #e8f6ee;
  border: 1px solid #b9dfc8;
  color: var(--ok);
  font-weight: 700;
}

.form-success.is-visible {
  display: block;
  animation: rise 0.35s ease both;
}

.site-footer {
  margin-top: 2rem;
  background: #17323d;
  color: #d7e2e8;
  padding: 3rem 0 1.5rem;
}

.site-footer a {
  color: #f0f6f8;
}

.site-footer a:hover {
  color: #ffb4a8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 1.5rem 1.25rem;
  margin-bottom: 2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.65rem;
}

.site-footer p,
.site-footer li {
  color: #b7c7d0;
  font-size: 0.95rem;
}

.site-footer h3 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  font-size: 0.9rem;
}

.age-gate,
.cookie-banner {
  position: fixed;
  inset: auto 1rem 1rem 1rem;
  z-index: 60;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.2rem;
  max-width: 420px;
}

.age-gate {
  inset: 0;
  max-width: none;
  border-radius: 0;
  display: none;
  place-items: center;
  background: rgba(28, 46, 58, 0.55);
}

.age-gate.is-open {
  display: grid;
}

.age-card {
  width: min(100% - 2rem, 420px);
  background: var(--surface);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.age-actions,
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.cookie-banner {
  display: none;
}

.cookie-banner.is-open {
  display: block;
  animation: rise 0.35s ease both;
}

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

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 80;
  transform: translateY(-150%);
  background: var(--ink);
  color: #fff;
  padding: 0.65rem 0.95rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(22, 110, 114, 0.55);
  outline-offset: 2px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Home: spotlight facts under games */
.spotlight {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.spotlight-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1rem 1.05rem;
  text-align: center;
}

.spotlight-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.4vw, 1.95rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
}

.spotlight-item span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
  max-width: 40rem;
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.path-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.25rem 1.15rem 1.35rem;
}

.path-card .step {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--brand);
  margin-bottom: 0.55rem;
}

.path-card h3 {
  margin-bottom: 0.45rem;
}

.path-card p {
  margin: 0;
  font-size: 0.95rem;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.why-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.2rem 1.15rem 1.25rem;
}

.why-card h3 {
  margin-bottom: 0.4rem;
}

.why-card p {
  margin: 0;
  font-size: 0.95rem;
}

.harbour {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.harbour-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.75rem;
  align-items: start;
}

.harbour-note {
  margin: 1.1rem 0 1.25rem;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.98rem;
}

.support-logos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.support-logo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  min-height: 6.5rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.support-logo:hover {
  border-color: var(--brand);
  color: var(--ink);
  transform: translateY(-2px);
}

.support-logo .brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.2;
}

.support-logo .brand em {
  font-style: normal;
  color: var(--accent);
}

.support-logo .brand .ga-aware {
  color: #e85d04;
}

.support-logo small {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

@media (max-width: 980px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .spotlight,
  .path-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: 1fr 1fr;
  }

  .harbour-grid,
  .split,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    background: #f7fafb;
    border-bottom: 1px solid var(--line);
    padding: 0.85rem 1rem 1.1rem;
    flex-direction: column;
    align-items: flex-start;
  }

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

  .games-grid,
  .spotlight,
  .path-grid,
  .why-grid,
  .harbour-grid,
  .support-logos,
  .split,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .iframe-shell {
    aspect-ratio: 1 / 1.08;
    min-height: 400px;
    max-height: min(80vh, 620px);
  }

  .iframe-shell.iframe-tall {
    aspect-ratio: 1 / 1.15;
    min-height: 440px;
    max-height: min(84vh, 680px);
  }

  .iframe-shell.iframe-slot {
    aspect-ratio: 9 / 16;
    min-height: 480px;
    max-height: min(85vh, 720px);
  }

  .hero {
    min-height: 44vh;
  }

  .age-gate,
  .cookie-banner {
    inset: auto 0.75rem 0.75rem 0.75rem;
  }
}

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