:root {
  --bg: #080c0f;
  --bg-2: #10171b;
  --panel: #121a20;
  --panel-2: #18232a;
  --ink: #fff8df;
  --muted: #b9c5bf;
  --gold: #f2c45e;
  --gold-2: #ffe69a;
  --green: #2fc77d;
  --red: #d94b58;
  --cyan: #76e5ff;
  --line: rgba(255, 232, 158, 0.22);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 8px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(18, 43, 36, 0.9), rgba(8, 12, 15, 0.95) 36%, rgba(49, 16, 28, 0.92)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 62px),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
}

body.modal-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(255, 232, 158, 0.16);
  background: rgba(8, 12, 15, 0.88);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

.brand img {
  width: 42px;
  height: 42px;
}

.brand small {
  display: block;
  color: var(--gold);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.16em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #d9e2dd;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-color: rgba(242, 196, 94, 0.42);
  color: var(--gold-2);
  background: rgba(242, 196, 94, 0.08);
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: calc(88vh - 74px);
  display: grid;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(8, 12, 15, 0.84), rgba(8, 12, 15, 0.42) 48%, rgba(8, 12, 15, 0.8)),
    url("../img/hero-casino-nz-ai.png") center / cover no-repeat;
}

.hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 74px 0 42px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 36px;
  height: 2px;
  background: var(--gold);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(44px, 7vw, 94px);
  text-transform: uppercase;
}

h2 {
  font-size: 34px;
}

h3 {
  font-size: 22px;
}

p {
  margin: 0;
}

.lead {
  max-width: 720px;
  margin-top: 18px;
  color: #edf4e9;
  font-size: 19px;
}

.hero-actions,
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 232, 158, 0.5);
  border-radius: var(--radius);
  color: #11160f;
  background: linear-gradient(180deg, #ffe59a, #f1bd4f);
  box-shadow: 0 10px 24px rgba(242, 196, 94, 0.18);
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
}

.button:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.button:active {
  transform: translateY(0);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.button.danger {
  color: var(--ink);
  background: linear-gradient(180deg, #e35a65, #a82335);
  border-color: rgba(255, 190, 190, 0.5);
}

.button[disabled],
button[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.notice-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 42px;
}

.notice-pill {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 1px solid rgba(255, 232, 158, 0.22);
  border-radius: var(--radius);
  background: rgba(8, 12, 15, 0.72);
  color: #fff3bf;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.section {
  padding: 76px 0;
}

.section.alt {
  background: rgba(255, 255, 255, 0.03);
  border-block: 1px solid rgba(255, 255, 255, 0.07);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.section-head p {
  max-width: 640px;
  color: var(--muted);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.game-card,
.info-card,
.legal-nav-card {
  border: 1px solid rgba(255, 232, 158, 0.16);
  border-radius: var(--radius);
  background: rgba(17, 25, 31, 0.86);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.game-card {
  display: flex;
  flex-direction: column;
}

.game-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.game-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 13px;
  padding: 18px;
}

.game-card-body p,
.info-card p {
  color: var(--muted);
}

.game-card .button {
  width: 100%;
  margin-top: auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.info-card {
  padding: 18px;
}

.info-card strong {
  display: block;
  margin-bottom: 7px;
  color: var(--gold-2);
  font-size: 17px;
}

.game-hero {
  padding: 54px 0 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(90deg, rgba(8, 12, 15, 0.92), rgba(8, 12, 15, 0.6)),
    var(--poster) center / cover no-repeat;
}

.game-hero.poster-kiwi {
  --poster: url("../img/poster-kiwi-ai.png");
}

.game-hero.poster-harbour {
  --poster: url("../img/poster-harbour-ai.png");
}

.game-hero.poster-southern {
  --poster: url("../img/poster-southern-ai.png");
}

.game-hero .lead {
  font-size: 17px;
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
  align-items: start;
  padding: 34px 0 72px;
}

.game-panel,
.side-panel {
  border: 1px solid rgba(255, 232, 158, 0.18);
  border-radius: var(--radius);
  background: rgba(12, 18, 23, 0.92);
  box-shadow: var(--shadow);
}

.game-panel {
  overflow: hidden;
}

.game-topbar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: rgba(255, 232, 158, 0.14);
}

.meter {
  min-height: 70px;
  padding: 12px 14px;
  background: rgba(18, 29, 35, 0.96);
}

.meter span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.meter strong {
  display: block;
  margin-top: 3px;
  color: #fff6ca;
  font-size: 24px;
  line-height: 1.1;
}

.machine {
  position: relative;
  padding: 22px;
  border-block: 1px solid rgba(255, 232, 158, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 232, 158, 0.08), transparent),
    #0b1115;
}

.reels-grid,
.starfall-grid {
  display: grid;
  gap: 8px;
  width: 100%;
  max-width: 830px;
  margin: 0 auto;
}

.reels-5x3 {
  grid-template-columns: repeat(5, minmax(54px, 1fr));
}

.starfall-grid {
  grid-template-columns: repeat(6, minmax(42px, 1fr));
  max-width: 760px;
}

.slot-cell,
.star-cell {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 232, 158, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    #172028;
  overflow: hidden;
  transform: translateZ(0);
}

.slot-cell img,
.star-cell img {
  width: 100%;
  height: 100%;
  padding: 7%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}

.slot-cell.is-clickable {
  cursor: pointer;
}

.slot-cell.locked {
  border-color: rgba(118, 229, 255, 0.82);
  box-shadow: inset 0 0 0 3px rgba(118, 229, 255, 0.22), 0 0 24px rgba(118, 229, 255, 0.18);
}

.slot-cell.locked::after {
  content: "LOCK";
  position: absolute;
  inset: auto 6px 6px;
  padding: 3px 5px;
  border-radius: 5px;
  color: #06141d;
  background: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.slot-cell.win,
.star-cell.win {
  border-color: var(--gold-2);
  animation: winPulse 0.95s ease-in-out infinite;
  z-index: 2;
}

.slot-cell.spinning img {
  animation: reelSpin 0.18s linear infinite;
}

.star-cell.clearing img {
  animation: starClear 0.42s ease-in forwards;
}

.star-cell.dropping img {
  animation: symbolDrop 0.36s cubic-bezier(0.15, 0.8, 0.25, 1);
}

.game-message {
  min-height: 68px;
  padding: 17px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #f6f1db;
  background: rgba(255, 255, 255, 0.035);
  font-weight: 800;
}

.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px;
}

.control-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.control-group label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.stepper button {
  width: 40px;
  height: 40px;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-size: 22px;
  font-weight: 900;
}

.stepper button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.stepper output {
  min-width: 54px;
  color: #fff4bf;
  text-align: center;
  font-weight: 900;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

.side-panel {
  padding: 18px;
}

.side-panel + .side-panel {
  margin-top: 16px;
}

.side-panel h2,
.side-panel h3 {
  margin-bottom: 12px;
  font-size: 21px;
}

.side-panel p,
.side-panel li {
  color: var(--muted);
}

.side-panel ul,
.side-panel ol {
  margin: 0;
  padding-left: 20px;
}

.side-panel li + li {
  margin-top: 8px;
}

.paytable {
  display: grid;
  gap: 8px;
}

.payline {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.payline img {
  width: 44px;
  height: 44px;
}

.payline span {
  color: var(--muted);
  font-size: 13px;
}

.payline strong {
  color: #fff3bd;
}

.mini-disclaimer {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(217, 75, 88, 0.34);
  border-radius: var(--radius);
  color: #ffd9d9;
  background: rgba(217, 75, 88, 0.08);
  font-weight: 800;
}

.legal-hero {
  padding: 58px 0 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(135deg, rgba(13, 45, 36, 0.88), rgba(79, 23, 43, 0.72));
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 24px;
  padding: 42px 0 80px;
}

.legal-copy {
  max-width: 860px;
}

.legal-copy h2 {
  margin-top: 34px;
  margin-bottom: 12px;
  font-size: 26px;
}

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

.legal-copy h3 {
  margin-top: 22px;
  margin-bottom: 8px;
  font-size: 20px;
}

.legal-copy p,
.legal-copy li {
  color: #d4ddd7;
}

.legal-copy p + p,
.legal-copy ul + p,
.legal-copy ol + p {
  margin-top: 12px;
}

.legal-copy ul,
.legal-copy ol {
  margin: 12px 0 0;
  padding-left: 22px;
}

.legal-copy li + li {
  margin-top: 8px;
}

.legal-nav-card {
  position: sticky;
  top: 96px;
  padding: 16px;
}

.legal-nav-card a {
  display: block;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: #eaf0ea;
  text-decoration: none;
}

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

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #070a0c;
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  padding: 34px 0;
}

.footer-grid p,
.footer-grid a {
  color: var(--muted);
}

.footer-grid a {
  display: block;
  margin-top: 7px;
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--gold-2);
}

.footer-title {
  margin-bottom: 9px;
  color: var(--gold-2);
  font-weight: 900;
  text-transform: uppercase;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 15px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #97a49e;
  font-size: 14px;
}

.age-gate,
.cookie-banner {
  position: fixed;
  z-index: 100;
}

.age-gate {
  inset: 0;
  display: none;
  place-items: center;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(9, 30, 24, 0.88), rgba(67, 18, 33, 0.82)),
    rgba(4, 6, 8, 0.9);
  backdrop-filter: blur(12px);
}

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

.modal {
  width: min(560px, 100%);
  border: 1px solid rgba(255, 232, 158, 0.28);
  border-radius: var(--radius);
  background: #101820;
  box-shadow: var(--shadow);
  padding: 24px;
}

.modal h2 {
  margin-bottom: 10px;
}

.modal p {
  color: var(--muted);
}

.modal .notice-row {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 18px;
}

.age-modal {
  position: relative;
  width: min(780px, 100%);
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(18, 31, 35, 0.96), rgba(9, 13, 18, 0.98)),
    #101820;
}

.age-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(242, 196, 94, 0.28);
}

.age-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 164px;
  aspect-ratio: 1;
  border: 8px solid var(--gold);
  border-radius: 50%;
  color: #fff7cf;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.18), transparent 38%),
    linear-gradient(145deg, #8b203a, #162b23);
  box-shadow: 0 0 42px rgba(242, 196, 94, 0.2);
  font-size: 54px;
  font-weight: 900;
  line-height: 1;
}

.age-copy {
  position: relative;
}

.age-copy .eyebrow {
  margin-bottom: 10px;
}

.age-copy .actions {
  margin-top: 20px;
}

.age-smallprint {
  margin-top: 12px;
  color: #aebbb5;
  font-size: 13px;
}

.cookie-banner {
  right: 18px;
  bottom: 18px;
  width: min(470px, calc(100% - 36px));
  display: none;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 232, 158, 0.22);
  border-radius: var(--radius);
  background: rgba(16, 24, 32, 0.97);
  box-shadow: var(--shadow);
}

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

.cookie-banner p {
  color: var(--muted);
}

.particle {
  position: fixed;
  z-index: 99;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  pointer-events: none;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(242, 196, 94, 0.68);
  animation: particleFly 780ms ease-out forwards;
}

@keyframes reelSpin {
  0% {
    transform: translateY(-22%) scale(1.08);
    filter: blur(0);
    opacity: 0.9;
  }
  50% {
    transform: translateY(18%) scale(1.04);
    filter: blur(3px);
    opacity: 0.66;
  }
  100% {
    transform: translateY(-22%) scale(1.08);
    filter: blur(0);
    opacity: 0.9;
  }
}

@keyframes winPulse {
  0%,
  100% {
    box-shadow: inset 0 0 0 2px rgba(255, 230, 154, 0.2), 0 0 12px rgba(242, 196, 94, 0.22);
  }
  50% {
    box-shadow: inset 0 0 0 4px rgba(255, 230, 154, 0.44), 0 0 28px rgba(242, 196, 94, 0.58);
    transform: scale(1.035);
  }
}

@keyframes starClear {
  0% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: scale(1.35) rotate(18deg);
  }
}

@keyframes symbolDrop {
  0% {
    opacity: 0;
    transform: translateY(-38%) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes particleFly {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) scale(0.4);
  }
}

@media (max-width: 980px) {
  .nav-wrap {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding-top: 92px;
  }

  .notice-row,
  .game-grid,
  .feature-grid,
  .game-layout,
  .legal-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .legal-nav-card {
    position: static;
  }

  .age-modal {
    grid-template-columns: 1fr;
  }

  .age-mark {
    width: 132px;
    margin: 0 auto;
  }
}

@media (max-width: 620px) {
  .container,
  .hero-inner,
  .nav-wrap,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 22px, 1180px);
  }

  .brand span span {
    display: none;
  }

  .site-nav a {
    padding: 7px 8px;
    font-size: 13px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 28px;
  }

  .lead {
    font-size: 17px;
  }

  .section {
    padding: 52px 0;
  }

  .machine {
    padding: 10px;
  }

  .reels-grid,
  .starfall-grid {
    gap: 5px;
  }

  .slot-cell img,
  .star-cell img {
    padding: 4%;
  }

  .controls {
    align-items: stretch;
  }

  .controls,
  .control-group,
  .button {
    width: 100%;
  }

  .control-group {
    justify-content: space-between;
  }
}
