:root {
  color-scheme: light;
  --ink: #14213d;
  --muted: #5f6f89;
  --line: #d9e2ef;
  --paper: #ffffff;
  --soft: #f4f7fb;
  --blue: #063b82;
  --cyan: #00a7b5;
  --gold: #d79a2b;
  --shadow: 0 20px 60px rgba(20, 33, 61, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.skip-link {
  position: fixed;
  left: 18px;
  top: 18px;
  z-index: 60;
  padding: 10px 14px;
  color: #fff;
  background: var(--blue);
  border-radius: 6px;
  transform: translateY(-140%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 64px);
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.site-header.compact { position: static; }
.brand img { display: block; width: 150px; }
.site-nav { display: flex; align-items: center; gap: 20px; font-size: 15px; font-weight: 700; }
.site-nav a { text-decoration: none; color: var(--blue); }
.site-nav a:hover, .site-nav a:focus { color: var(--cyan); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.nav-toggle span:not(.sr-only) { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--blue); }

.hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(360px, 760px);
  align-items: center;
  justify-content: space-between;
  gap: clamp(28px, 5vw, 72px);
  padding: 80px clamp(18px, 5vw, 80px);
  color: #fff;
  background: linear-gradient(90deg, rgba(6, 59, 130, .88), rgba(6, 59, 130, .54), rgba(20, 33, 61, .16)), url("../img/scene.jpg") center / cover no-repeat;
}
.hero-content { width: min(680px, 100%); }
.hero-intro {
  width: 100%;
  aspect-ratio: 800 / 510;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 8px;
  background: rgba(0, 0, 0, .22);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}
.hero-intro ruffle-player,
.hero-intro object,
.hero-intro embed {
  display: block;
  width: 100%;
  height: 100%;
}
.eyebrow { margin: 0 0 10px; color: var(--cyan); font-size: 13px; font-weight: 800; letter-spacing: 0; text-transform: uppercase; }
.hero .eyebrow { color: #8ceaf1; }
h1, h2, h3 { margin: 0 0 18px; line-height: 1.12; }
h1 { font-size: clamp(38px, 6vw, 72px); }
h2 { font-size: clamp(30px, 4vw, 46px); }
h3 { font-size: 21px; }
.hero p:not(.eyebrow) { max-width: 610px; font-size: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.button.primary { color: #fff; background: var(--gold); }
.button.secondary { color: var(--blue); background: #fff; border-color: var(--line); }

.section {
  padding: 82px clamp(18px, 5vw, 80px);
  border-bottom: 1px solid var(--line);
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.reverse { grid-template-columns: minmax(280px, 500px) minmax(0, 1fr); }
.reverse > div { order: 2; }
.price-card {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  box-shadow: var(--shadow);
}
.price-card span, .price-card small { display: block; color: var(--muted); }
.price-card strong { display: block; margin: 8px 0 12px; color: var(--blue); font-size: 52px; line-height: 1; }
.section-heading { max-width: 780px; margin-bottom: 36px; }
.regulation { background: var(--soft); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 22px;
  align-items: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.card img { grid-row: span 3; width: 170px; max-height: 245px; object-fit: contain; }
.card a, .text-link { color: var(--blue); font-weight: 800; }
.feature-img { border-radius: 8px; box-shadow: var(--shadow); }
.contact { display: grid; grid-template-columns: minmax(260px, 520px) minmax(180px, 1fr) minmax(280px, 560px); gap: 40px; background: var(--blue); color: #fff; }
.contact .eyebrow { color: #8ceaf1; }
.contact-address {
  margin-top: 20px;
  font-style: normal;
  font-weight: 800;
}
.contact-links {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}
.contact-links a {
  display: block;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  background: rgba(255, 255, 255, .08);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.contact-map {
  min-height: 320px;
  overflow: hidden;
  padding: 0;
  background: rgba(255, 255, 255, .16);
}
.contact-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}
.contact-map iframe:not([src]) { display: none; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(18px, 5vw, 80px);
  color: var(--muted);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer a { color: var(--blue); text-decoration: none; font-weight: 700; }
.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  width: min(520px, calc(100vw - 36px));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.cookie-banner div { display: flex; justify-content: flex-end; gap: 10px; }
.legal-page { max-width: 900px; margin: 0 auto; padding: 70px 20px; }
.legal-page h1 { color: var(--blue); font-size: clamp(34px, 5vw, 54px); }
.legal-page h2 { margin-top: 32px; font-size: 24px; }
.letter-page {
  min-height: 70vh;
  padding: 64px clamp(18px, 5vw, 80px) 82px;
  background: linear-gradient(180deg, var(--soft), #fff);
}
.letter-heading {
  max-width: 860px;
  margin: 0 auto 34px;
  text-align: center;
}
.letter-heading h1 { color: var(--blue); font-size: clamp(34px, 5vw, 56px); }
.letter-heading p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 18px; }
.letter-shell {
  display: flex;
  justify-content: center;
}
.letter-image-wrap {
  position: relative;
  width: min(100%, 483px);
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.letter-image-wrap img { display: block; width: 100%; }
.letter-hotspot {
  position: absolute;
  left: 80.3%;
  top: 57.5%;
  width: 19.3%;
  height: 10.9%;
  border: 2px solid transparent;
  border-radius: 6px;
  background: rgba(0, 167, 181, .01);
  cursor: pointer;
}
.letter-hotspot:hover,
.letter-hotspot:focus {
  border-color: var(--cyan);
  background: rgba(0, 167, 181, .14);
  outline: none;
}
.letter-modal[hidden] { display: none; }
.letter-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}
.letter-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 33, 61, .62);
}
.letter-modal-dialog {
  position: relative;
  width: min(100%, 560px);
  padding: 30px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 26px 80px rgba(0, 0, 0, .32);
}
.letter-modal-dialog h2 {
  margin-right: 42px;
  color: var(--blue);
  font-size: 28px;
}
.letter-modal-dialog p { margin-bottom: 0; color: var(--muted); }
.letter-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--blue);
  background: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.game-page {
  min-height: 70vh;
  background: linear-gradient(180deg, var(--soft), #fff);
}
.game-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 58px clamp(18px, 5vw, 80px) 34px;
}
.game-hero > div { max-width: 760px; }
.game-hero h1 { color: var(--blue); }
.game-hero p:not(.eyebrow) { max-width: 680px; color: var(--muted); font-size: 18px; }
.game-shell {
  width: min(100% - 36px, 980px);
  margin: 0 auto 80px;
}
.game-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 800 / 510;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #000;
  box-shadow: var(--shadow);
}
.game-stage ruffle-player,
.game-stage object,
.game-stage embed,
.game-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.native-game-stage { touch-action: manipulation; }
.game-overlay {
  position: absolute;
  inset: 22% 0 auto auto;
  display: none;
  width: min(76%, 625px);
  min-height: 250px;
  padding: clamp(22px, 4vw, 38px);
  color: #6f8f93;
  background: rgba(255, 255, 255, .94);
  background-image: repeating-linear-gradient(135deg, rgba(6, 59, 130, .035) 0, rgba(6, 59, 130, .035) 2px, transparent 2px, transparent 8px);
  border-radius: 8px 0 0 8px;
  box-shadow: -14px 0 34px rgba(20, 33, 61, .16);
}
.game-overlay.is-visible {
  display: grid;
  align-content: center;
  gap: 10px;
}
.game-overlay h2 {
  margin: 0 0 18px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1;
  text-transform: uppercase;
}
.game-overlay p {
  margin: 0 0 12px;
  color: var(--muted);
  font-weight: 700;
}
.game-button {
  min-height: 48px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: #bcb66d;
  font: 800 20px/1 Arial, Helvetica, sans-serif;
  cursor: pointer;
}
.game-button:hover,
.game-button:focus { background: var(--gold); }
.game-button.secondary {
  color: var(--blue);
  background: #fff;
  border: 1px solid var(--line);
}
.game-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.game-controls button {
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-size: 30px;
  font-weight: 900;
  cursor: pointer;
}
.score-list {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
  padding-left: 26px;
  color: var(--blue);
}
.score-list li {
  padding-left: 8px;
  font-weight: 800;
}
.score-list span {
  margin-left: 10px;
  color: var(--muted);
  font-weight: 700;
}
.game-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.not-found-page {
  min-height: 70vh;
  background: linear-gradient(180deg, var(--soft), #fff);
}
.not-found-hero {
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(320px, 520px);
  align-items: center;
  justify-content: space-between;
  gap: clamp(34px, 6vw, 84px);
  min-height: 610px;
  padding: 74px clamp(18px, 5vw, 80px);
  color: #fff;
  background: linear-gradient(90deg, rgba(6, 59, 130, .94), rgba(6, 59, 130, .70), rgba(20, 33, 61, .30)), url("../img/scene.jpg") center / cover no-repeat;
}
.not-found-copy p:not(.eyebrow) {
  max-width: 620px;
  font-size: 20px;
}
.not-found-panel {
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 8px;
  background: rgba(255, 255, 255, .13);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .26);
  backdrop-filter: blur(10px);
}
.inspection-grid {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px),
    rgba(20, 33, 61, .28);
  background-size: 32px 32px;
}
.pipe {
  position: absolute;
  display: block;
  border: 9px solid rgba(255, 255, 255, .72);
  box-shadow: inset 0 0 0 4px rgba(0, 167, 181, .22), 0 10px 28px rgba(0, 0, 0, .16);
}
.pipe-horizontal {
  height: 48px;
  border-left: 0;
  border-right: 0;
}
.pipe-vertical {
  width: 48px;
  border-top: 0;
  border-bottom: 0;
}
.pipe-top { top: 50px; left: 26px; right: 112px; }
.pipe-left { top: 50px; bottom: 148px; left: 26px; }
.pipe-mid { top: 164px; left: 26px; right: 42px; }
.pipe-right { top: 164px; right: 42px; bottom: 50px; }
.pipe-bottom { left: 92px; right: 42px; bottom: 50px; }
.inspection-node {
  position: absolute;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border: 4px solid #8ceaf1;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-size: 46px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 16px 38px rgba(0, 0, 0, .24);
}
.node-one { left: 62px; top: 18px; }
.node-two { right: 86px; top: 120px; }
.node-three { left: 112px; bottom: 16px; }
.signal-dot {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 9px rgba(215, 154, 43, .18);
}
.dot-one { top: 179px; left: 170px; }
.dot-two { right: 55px; bottom: 78px; }
.dot-three { right: 154px; top: 65px; }
.not-found-links {
  border-bottom: 1px solid var(--line);
}
.not-found-card {
  display: block;
}
.not-found-card p {
  color: var(--muted);
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .site-nav:not(.always-visible) {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 18px 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 0; }
  .hero { min-height: 560px; grid-template-columns: 1fr; }
  .hero-intro { max-width: 800px; }
  .not-found-hero { grid-template-columns: 1fr; }
  .not-found-panel { max-width: 560px; }
  .game-hero { flex-direction: column; align-items: stretch; }
  .game-overlay {
    inset: 18% 0 auto 14%;
    width: 86%;
  }
  .split, .reverse, .contact { grid-template-columns: 1fr; }
  .reverse > div { order: 0; }
  .cards, .contact-grid { grid-template-columns: 1fr; }
  .card { grid-template-columns: 1fr; }
  .card img { grid-row: auto; width: 100%; max-height: 320px; }
  .site-footer { flex-direction: column; }
}

@media (max-width: 560px) {
  .brand img { width: 124px; }
  .hero { padding-top: 58px; padding-bottom: 58px; }
  .button { width: 100%; }
  .game-overlay {
    inset: 13% 0 auto 10%;
    width: 90%;
    min-height: 250px;
  }
  .game-overlay h2 { font-size: 32px; }
  .game-button { min-height: 42px; font-size: 16px; }
  .price-card strong { font-size: 42px; }
  .site-nav.always-visible { gap: 12px; font-size: 13px; }
  .not-found-hero {
    min-height: auto;
    padding-top: 58px;
    padding-bottom: 58px;
  }
  .inspection-grid { min-height: 300px; }
  .inspection-node {
    width: 72px;
    height: 72px;
    font-size: 36px;
  }
  .node-two { right: 52px; }
}
