:root {
  --ns-sky: #f0faff;
  --ns-wave: #d2f0ff;
  --ns-ink: #124057;
  --ns-bright: #1f89b3;
  --ns-mint: #8fe0c3;
}

* {
  box-sizing: border-box;
}

body.ns-body {
  margin: 0;
  font-family: "Nunito", sans-serif;
  color: var(--ns-ink);
  background:
    radial-gradient(circle at 8% 14%, rgba(143, 224, 195, 0.45), transparent 28%),
    radial-gradient(circle at 88% 16%, rgba(79, 176, 210, 0.35), transparent 24%),
    linear-gradient(180deg, #f7fdff 0%, #d7f2ff 58%, #f0fbff 100%);
  min-height: 100vh;
}

.ns-header {
  width: min(1280px, 100% - 1rem);
  margin: 0 auto;
  padding: 0.75rem 0.8rem;
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 0.75rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(31, 137, 179, 0.3);
  border-radius: 0 0 16px 16px;
  position: sticky;
  top: 0;
  z-index: 12;
  backdrop-filter: blur(5px);
}

.ns-logo img {
  width: min(240px, 62vw);
  display: block;
}

.ns-links {
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.ns-links a {
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid rgba(34, 129, 162, 0.35);
  background: rgba(255, 255, 255, 0.96);
  padding: 0.42rem 0.82rem;
  color: #14506a;
  font-weight: 800;
  font-size: 0.93rem;
}

.ns-links a:hover,
.ns-links a:focus-visible {
  background: #e8f8ff;
}

.ns-hamburger {
  display: none;
  width: 44px;
  border: 1px solid rgba(27, 119, 150, 0.45);
  border-radius: 9px;
  background: #ffffff;
  padding: 0.35rem 0.4rem;
}

.ns-hamburger span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #1b6a89;
}

.ns-main {
  width: min(1280px, 100% - 1rem);
  margin: 1rem auto 2rem;
  display: grid;
  gap: 0.9rem;
}

.ns-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0.75rem;
}

.ns-hero-copy,
.ns-hero-panel {
  border-radius: 18px;
  border: 1px solid rgba(24, 124, 157, 0.3);
  background: rgba(255, 255, 255, 0.9);
  padding: 1rem;
}

.ns-tag {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.74rem;
  color: #1b7898;
  font-weight: 800;
}

h1 {
  margin: 0.5rem 0 0.7rem;
  font-size: clamp(1.7rem, 3.4vw, 3.1rem);
  line-height: 1.13;
}

h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.1vw, 1.78rem);
}

p {
  margin: 0;
  line-height: 1.63;
}

.ns-required {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.ns-required div {
  border-radius: 12px;
  border: 1px solid rgba(24, 124, 157, 0.35);
  background: linear-gradient(95deg, #f1fffb, #e8f7ff);
  text-align: center;
  padding: 0.6rem;
  font-weight: 800;
  color: #16617f;
}

.ns-gamebox {
  border-radius: 19px;
  border: 1px solid rgba(24, 124, 157, 0.35);
  background: rgba(255, 255, 255, 0.93);
  padding: 1rem;
}

.ns-gamebox header p {
  margin-top: 0.35rem;
}

.ns-gamebox iframe {
  width: 100%;
  display: block;
  border: 0;
  background: #000;
  margin-top: 0.8rem;
  border-radius: 14px;
  height: min(72vw, 760px);
}

.ns-notes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.ns-notes article {
  border-radius: 14px;
  border: 1px solid rgba(24, 124, 157, 0.3);
  background: rgba(255, 255, 255, 0.88);
  padding: 0.9rem;
}

.ns-footer {
  width: min(1280px, 100% - 1rem);
  margin: 0 auto;
  text-align: center;
  border-top: 1px solid rgba(24, 124, 157, 0.25);
  padding: 0.85rem 0 1.3rem;
  color: #14506a;
  display: grid;
  gap: 0.45rem;
}

.ns-footer div {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ns-footer a {
  color: #116383;
}

.ns-age {
  position: fixed;
  inset: 0;
  background: rgba(7, 37, 50, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 35;
  padding: 1rem;
}

.ns-age-inner {
  width: min(520px, 100%);
  border-radius: 16px;
  border: 2px solid rgba(30, 126, 160, 0.6);
  background: #f4fdff;
  padding: 1rem;
}

.ns-age-line {
  margin-top: 0.6rem;
  border: 1px solid rgba(30, 126, 160, 0.35);
  border-radius: 999px;
  padding: 0.42rem 0.62rem;
  font-weight: 700;
}

.ns-age-inner div {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ns-age-inner button {
  border: 0;
  border-radius: 9px;
  padding: 0.52rem 0.86rem;
  font-weight: 800;
  cursor: pointer;
}

.ns-age-inner button[data-ns-age="yes"] {
  background: #1e7ea0;
  color: #effbff;
}

.ns-age-inner button[data-ns-age="no"] {
  background: #cceaf6;
  color: #1b596f;
}

body.ns-locked {
  overflow: hidden;
}

body.ns-locked .ns-age {
  display: flex;
}

.ns-play-main {
  width: min(1280px, 100% - 1rem);
  margin: 1rem auto 2rem;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0.8rem;
}

.ns-play-card {
  border-radius: 18px;
  border: 1px solid rgba(24, 124, 157, 0.35);
  background: rgba(255, 255, 255, 0.93);
  padding: 1rem;
}

.ns-play-card ul {
  margin: 0.75rem 0 0;
  padding-left: 1rem;
  line-height: 1.52;
}

.ns-doc {
  width: min(1080px, 100% - 1rem);
  margin: 1rem auto 2rem;
  border-radius: 16px;
  border: 1px solid rgba(24, 124, 157, 0.35);
  background: rgba(255, 255, 255, 0.93);
  padding: 1rem;
}

.ns-doc h2 {
  margin-top: 1rem;
}

@media (max-width: 980px) {
  .ns-hero,
  .ns-notes,
  .ns-play-main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .ns-header {
    grid-template-columns: auto auto;
  }

  .ns-hamburger {
    display: inline-block;
    justify-self: end;
  }

  .ns-links {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
  }

  .ns-links.ns-open {
    display: flex;
  }

  .ns-required {
    grid-template-columns: 1fr;
  }

  .ns-gamebox iframe {
    height: 76vw;
    min-height: 430px;
  }
}
