:root {
  color-scheme: dark;
  --ink: #f6fcff;
  --muted: #d4e9f8;
  --cyan: #6ce5ff;
  --navy: #071a35;
  --line: rgba(207, 248, 255, 0.42);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display-font: Bahnschrift, "Arial Narrow", "Trebuchet MS", ui-sans-serif, sans-serif;
}

* { box-sizing: border-box; }

html,
body { min-block-size: 100%; }

body {
  min-block-size: 100dvh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: #0a5c9f;
}

button { font: inherit; }

button:focus-visible {
  outline: 0.22rem solid #ffffff;
  outline-offset: 0.32rem;
}

.site-shell {
  position: relative;
  display: grid;
  min-block-size: 100dvh;
  isolation: isolate;
  overflow: hidden;
  background: #0a5c9f;
}

.hero-art,
.hero-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-art {
  z-index: -2;
  background: #0a5c9f url("gnjoy-hero.webp") center / cover no-repeat;
}

.hero-scrim {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(3, 15, 40, 0.91) 0%, rgba(4, 20, 47, 0.84) 34%, rgba(5, 34, 64, 0.4) 61%, rgba(3, 24, 55, 0.08) 100%),
    linear-gradient(0deg, rgba(2, 12, 36, 0.62) 0%, transparent 46%);
}

.experience {
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(100%, 96rem);
  min-block-size: 100dvh;
  margin-inline: auto;
  padding: clamp(1rem, 3.4vw, 3.4rem);
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand-mark {
  display: block;
  width: clamp(7.5rem, 12vw, 10rem);
  height: auto;
  filter: drop-shadow(0 0.65rem 0.8rem rgba(0, 16, 44, 0.42));
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: rgba(232, 251, 255, 0.62);
  background: rgba(2, 23, 50, 0.48);
  backdrop-filter: blur(0.5rem);
}

.language-option {
  min-width: 2.1rem;
  border: 0;
  border-radius: 999px;
  padding: 0.28rem 0.5rem;
  color: inherit;
  cursor: pointer;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.language-option[aria-pressed="true"] {
  color: #022238;
  background: var(--cyan);
}

.content-grid {
  display: grid;
  align-items: start;
  max-width: 38rem;
  padding-block: clamp(0.85rem, 2.2vh, 1.65rem) clamp(1.3rem, 4vh, 4rem);
}

.game-copy { max-width: 36rem; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.85rem;
  color: var(--cyan);
  font-size: clamp(0.72rem, 0.9vw, 0.86rem);
  font-family: var(--display-font);
  font-weight: 900;
  letter-spacing: 0.14em;
}

.online-dot {
  width: 0.56rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #8bf5bf;
  box-shadow: 0 0 0 0.25rem rgba(139, 245, 191, 0.14), 0 0 0.8rem #8bf5bf;
}

h1 {
  max-width: 33rem;
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.05rem, 4vw, 4.45rem);
  font-family: var(--display-font);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 0.35rem 1.3rem rgba(0, 13, 37, 0.48);
}

.description {
  max-width: 32rem;
  margin: 1.05rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.28vw, 1.18rem);
  line-height: 1.55;
}

.benefits-line {
  margin: 0.85rem 0 0;
  color: #aeeff9;
  font-family: var(--display-font);
  font-size: clamp(0.68rem, 0.85vw, 0.8rem);
  font-weight: 800;
  letter-spacing: 0.055em;
  line-height: 1.35;
}

.reward-ribbon {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.62rem;
  margin: 0 0 0.95rem;
  color: #e9fcff;
  font-family: var(--display-font);
  font-size: clamp(0.72rem, 0.9vw, 0.84rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.25;
}

.reward-ribbon span,
.sticky-kicker {
  padding: 0.3rem 0.46rem;
  border: 1px solid rgba(166, 247, 255, 0.67);
  border-radius: 0.25rem;
  color: #052440;
  background: #8af2ff;
  font-size: 0.8em;
  font-weight: 950;
}

.reward-ribbon strong { text-shadow: 0 0.18rem 0.7rem rgba(0, 13, 37, 0.72); }

.play-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 4.25rem;
  overflow: hidden;
  border: 1px solid rgba(239, 255, 255, 0.95);
  border-radius: 0.62rem;
  padding: 0.9rem 1.4rem;
  color: #03283b;
  cursor: pointer;
  background: linear-gradient(100deg, #18cbe9, #8ef4ff 48%, #2bd9f1);
  box-shadow: 0 0.72rem 1.7rem rgba(17, 208, 242, 0.36), inset 0 1px rgba(255, 255, 255, 0.82);
  font-size: clamp(0.94rem, 1.25vw, 1.05rem);
  font-family: var(--display-font);
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.play-button::after {
  position: absolute;
  inset: 0 auto 0 -40%;
  width: 25%;
  content: "";
  transform: skewX(-22deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  animation: shine 4.2s ease-in-out infinite;
}

.play-button:hover:not(:disabled) {
  transform: translateY(-0.14rem);
  box-shadow: 0 1rem 2.3rem rgba(17, 208, 242, 0.51), inset 0 1px rgba(255, 255, 255, 0.82);
}

.play-button:active:not(:disabled) { transform: translateY(0); }
.play-button:disabled { cursor: wait; filter: saturate(0.7); }
.play-button.is-opening::after { display: none; }
.play-icon { font-size: 0.78em; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: rgba(238, 252, 255, 0.74);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.045em;
}

.site-footer span:last-child { color: #b6f7ff; }

.sticky-cta {
  position: fixed;
  z-index: 4;
  right: auto;
  bottom: max(3.35rem, calc(0.85rem + env(safe-area-inset-bottom)));
  left: 50%;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: min(calc(100% - 2rem), 42rem);
  padding: 0.48rem;
  border: 1px solid rgba(190, 247, 255, 0.68);
  border-radius: 0.85rem;
  transform: translateX(-50%);
  color: var(--ink);
  background: rgba(3, 23, 53, 0.88);
  box-shadow: 0 0.8rem 2.4rem rgba(0, 10, 31, 0.42), inset 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(0.75rem);
}

.sticky-copy {
  display: grid;
  flex: 1 1 auto;
  gap: 0.22rem;
  min-width: 0;
  padding-inline: 0.4rem;
  font-family: var(--display-font);
  font-size: 0.8rem;
  letter-spacing: 0.055em;
  line-height: 1.15;
}

.sticky-copy strong { font-size: 0.9rem; }
.sticky-kicker { justify-self: start; }

.sticky-play-button {
  flex: 0 1 17rem;
  min-height: 3.45rem;
  max-width: 20rem;
  font-size: clamp(0.76rem, 1.5vw, 0.94rem);
}

body.modal-open { overflow: hidden; }

.qualification-overlay {
  position: fixed;
  z-index: 8;
  inset: 0;
  display: grid;
  place-items: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  background: rgba(1, 11, 30, 0.7);
  backdrop-filter: blur(0.4rem);
}

.qualification-overlay[hidden] { display: none; }

.qualification-dialog {
  position: relative;
  width: min(100%, 29rem);
  padding: clamp(1.35rem, 4vw, 2rem);
  border: 1px solid rgba(164, 241, 255, 0.62);
  border-radius: 1rem;
  color: var(--ink);
  background: linear-gradient(145deg, rgba(6, 35, 72, 0.98), rgba(3, 18, 46, 0.98));
  box-shadow: 0 1.4rem 4rem rgba(0, 6, 24, 0.62), inset 0 1px rgba(255, 255, 255, 0.1), 0 0 2rem rgba(44, 212, 255, 0.14);
}

.qualification-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  display: grid;
  width: 2.25rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(197, 244, 255, 0.36);
  border-radius: 50%;
  padding: 0;
  color: #e9fbff;
  cursor: pointer;
  background: rgba(6, 36, 71, 0.74);
  font-size: 1.35rem;
  line-height: 1;
}

.qualification-kicker {
  margin: 0 2.7rem 0.65rem 0;
  color: var(--cyan);
  font-family: var(--display-font);
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.13em;
}

.qualification-dialog h2 {
  max-width: 23rem;
  margin: 0;
  color: #fff;
  font-family: var(--display-font);
  font-size: clamp(1.55rem, 4.8vw, 2.1rem);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.04;
  text-transform: uppercase;
}

.qualification-description {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.qualification-check {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  margin-top: 1.35rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(192, 242, 255, 0.26);
  border-radius: 0.6rem;
  color: #eafaff;
  cursor: pointer;
  background: rgba(2, 16, 43, 0.52);
  font-size: 0.98rem;
  font-weight: 700;
}

.qualification-check input {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  accent-color: #4fe1f7;
}

.qualification-continue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  min-height: 3.65rem;
  margin-top: 0.9rem;
  border: 1px solid rgba(239, 255, 255, 0.9);
  border-radius: 0.6rem;
  padding: 0.8rem 1rem;
  color: #03283b;
  cursor: pointer;
  background: linear-gradient(100deg, #18cbe9, #8ef4ff 48%, #2bd9f1);
  box-shadow: 0 0.6rem 1.4rem rgba(17, 208, 242, 0.27), inset 0 1px rgba(255, 255, 255, 0.82);
  font-family: var(--display-font);
  font-size: 0.9rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
  transition: transform 160ms ease, filter 160ms ease;
}

.qualification-continue:hover:not(:disabled) { transform: translateY(-0.1rem); }
.qualification-continue:disabled { cursor: not-allowed; filter: saturate(0.25); opacity: 0.55; }

.noscript-message {
  position: fixed;
  inset: auto 1rem 1rem;
  z-index: 2;
  margin: 0;
  padding: 0.8rem 1rem;
  border: 1px solid #b9f5ff;
  border-radius: 0.5rem;
  color: #fff;
  background: #09254b;
  text-align: center;
}

@keyframes shine {
  0%, 72%, 100% { left: -40%; }
  88% { left: 120%; }
}

@media (max-width: 52rem) {
  .site-shell { overflow: clip; }
  .hero-art { background-position: 60% center; }
  .hero-scrim { background: linear-gradient(90deg, rgba(3, 15, 40, 0.87), rgba(3, 21, 51, 0.57)), linear-gradient(0deg, rgba(2, 12, 36, 0.62), transparent 52%); }
  .experience { min-block-size: 100svh; padding: 1.1rem 1.1rem 6.5rem; }
  .content-grid { align-items: end; max-width: 33rem; padding-block: 2.5rem 1.7rem; }
  h1 { max-width: 27rem; }
}

@media (max-width: 38rem) {
  .sticky-cta { gap: 0.42rem; width: min(calc(100% - 1rem), 28rem); padding: 0.36rem; }
  .sticky-copy { padding-inline: 0.22rem; font-size: 0.68rem; }
  .sticky-copy strong { font-size: 0.75rem; }
  .sticky-play-button { flex-basis: 12.7rem; min-height: 3.3rem; padding-inline: 0.55rem; font-size: 0.72rem; }
}

@media (max-width: 31rem) {
  .brand-mark { width: 9.2rem; }
  .topbar { gap: 0.7rem; }
  .language-switch { padding: 0.28rem 0.34rem; }
  .language-option { min-width: 1.9rem; padding-inline: 0.42rem; }
  .description { max-width: 29rem; }
  .reward-ribbon { margin-bottom: 0.75rem; }
  .play-button { min-height: 4rem; padding-inline: 0.8rem; }
  .sticky-cta { width: calc(100% - 0.9rem); }
  .sticky-copy { display: none; }
  .sticky-play-button { flex-basis: 100%; max-width: none; min-height: 3.55rem; font-size: 0.84rem; }
  .qualification-dialog { padding: 1.2rem; }
  .qualification-kicker { font-size: 0.68rem; }
  .qualification-dialog h2 { font-size: 1.45rem; }
  .qualification-description { font-size: 0.94rem; }
  .qualification-check { font-size: 0.92rem; }
  .qualification-continue { min-height: 3.5rem; font-size: 0.8rem; }
}

@media (max-height: 48rem) and (min-width: 53rem) {
  .experience { padding-block: 1rem; }
  .brand-mark { width: 8.25rem; }
  .content-grid { padding-block: 1rem; }
  h1 { font-size: clamp(2rem, 3.55vw, 3.35rem); }
  .description { margin-top: 0.65rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
