:root {
  --bg: #080d1d;
  --bg-elevated: #10172c;
  --panel: rgba(20, 29, 54, 0.78);
  --panel-solid: #121a31;
  --text: #f7f8ff;
  --muted: #aab3cc;
  --line: rgba(255, 255, 255, 0.12);
  --header: rgba(8, 13, 29, 0.74);
  --pink: #ff4fc8;
  --purple: #8b5cf6;
  --blue: #50a7ff;
  --cyan: #54ebd2;
  --lime: #ccff5c;
  --orange: #ff9b54;
  --yellow: #ffe76b;
  --radius-lg: 32px;
  --radius-md: 22px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
  --shell: min(1180px, calc(100vw - 40px));
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #f5f3ff;
  --bg-elevated: #ebe9f7;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-solid: #ffffff;
  --text: #151a30;
  --muted: #626a82;
  --line: rgba(17, 24, 49, 0.12);
  --header: rgba(248, 247, 255, 0.82);
  --shadow: 0 26px 70px rgba(52, 43, 105, 0.14);
  color-scheme: light;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  background: var(--bg);
}

body {
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 16%, rgba(139, 92, 246, 0.13), transparent 28rem),
    radial-gradient(circle at 90% 60%, rgba(80, 167, 255, 0.1), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: ui-rounded, "SF Pro Rounded", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.6;
  transition: background-color 220ms ease, color 220ms ease;
}

body.menu-open,
body.dialog-open {
  overflow: hidden;
}

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  border: 0;
}

::selection {
  background: var(--lime);
  color: #10162a;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 9999;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--lime);
  color: #11182e;
  font-weight: 900;
  transform: translateY(-160%);
}

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

.page-noise {
  position: fixed;
  inset: 0;
  z-index: 100;
  opacity: 0.08;
  pointer-events: none;
  background-image:
    repeating-radial-gradient(circle at 18% 27%, rgba(255, 255, 255, 0.28) 0 0.45px, transparent 0.6px 3px),
    repeating-radial-gradient(circle at 73% 61%, rgba(255, 255, 255, 0.18) 0 0.35px, transparent 0.5px 4px);
  background-size: 7px 7px, 11px 11px;
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.14);
  filter: blur(90px);
  pointer-events: none;
  transform: translate3d(-50%, -50%, 0);
  transition: opacity 180ms ease;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  padding-top: max(10px, env(safe-area-inset-top));
  transition: transform 220ms ease;
}

.site-header.is-hidden {
  transform: translateY(-115%);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--shell);
  min-height: 66px;
  margin: 0 auto;
  padding: 0.55rem 0.65rem 0.55rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--header);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(22px) saturate(140%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--pink), var(--purple) 52%, var(--blue));
  color: white;
  box-shadow: 0 8px 22px rgba(139, 92, 246, 0.4);
  font-size: 1.18rem;
  font-weight: 1000;
  transform: rotate(-5deg);
}

.brand-mark-dual {
  font-size: 0.76rem;
  letter-spacing: -0.08em;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.15;
}

.brand strong {
  font-size: 0.98rem;
  letter-spacing: 0.02em;
}

.brand small {
  margin-top: 0.2rem;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.57rem;
  letter-spacing: 0.14em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a,
.theme-toggle {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 0.8rem;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 800;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-links a:hover,
.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  transform: translateY(-1px);
}

html[lang="en"] .nav-links a {
  padding-inline: 0.62rem;
  font-size: 0.8rem;
}

.nav-links .nav-lab {
  margin-left: 0.3rem;
  background: var(--lime);
  color: #12192d;
}

.nav-links .nav-lab:hover {
  background: #ddff8d;
  color: #12192d;
}

.theme-toggle {
  width: 42px;
  padding: 0;
  font-size: 1.25rem;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 0.25rem;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.language-switcher button {
  min-width: 31px;
  height: 32px;
  padding: 0 0.38rem;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.66rem;
  font-weight: 900;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.language-switcher button:hover {
  color: var(--text);
}

.language-switcher button.is-active {
  background: var(--lime);
  color: #11182d;
  box-shadow: 0 6px 14px rgba(204, 255, 92, 0.14);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--text);
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 70px;
  isolation: isolate;
}

.hero-name-code {
  position: absolute;
  top: 17%;
  right: -2vw;
  z-index: -1;
  color: transparent;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(4rem, 10vw, 10rem);
  font-weight: 1000;
  letter-spacing: -0.08em;
  line-height: 0.8;
  opacity: 0.28;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.16);
  transform: rotate(90deg) translateX(34%);
  transform-origin: right top;
  pointer-events: none;
}

html[data-theme="light"] .hero-name-code {
  -webkit-text-stroke-color: rgba(20, 26, 48, 0.16);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -4;
  content: "";
  background:
    radial-gradient(circle at 78% 38%, rgba(255, 79, 200, 0.2), transparent 21rem),
    radial-gradient(circle at 63% 76%, rgba(84, 235, 210, 0.13), transparent 20rem),
    linear-gradient(135deg, #080d1d 0%, #111634 48%, #080d1d 100%);
}

html[data-theme="light"] .hero::before {
  background:
    radial-gradient(circle at 78% 38%, rgba(255, 79, 200, 0.17), transparent 22rem),
    radial-gradient(circle at 63% 76%, rgba(84, 235, 210, 0.2), transparent 20rem),
    linear-gradient(135deg, #f9f7ff 0%, #ebeaff 48%, #f8fbff 100%);
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -3;
  content: "";
  opacity: 0.55;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.88) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(84, 235, 210, 0.8) 0 1px, transparent 1.6px);
  background-position: 0 0, 42px 38px;
  background-size: 88px 88px, 124px 124px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

html[data-theme="light"] .hero::after {
  opacity: 0.13;
  filter: invert(1);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(to bottom, transparent, black 40%, transparent 96%);
  transform: perspective(600px) rotateX(58deg) scale(1.6) translateY(35%);
  transform-origin: bottom;
}

.hero-shell {
  display: grid;
  width: var(--shell);
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  margin: 0 auto;
}

.player-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.35rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(204, 255, 92, 0.25);
  border-radius: 999px;
  background: rgba(204, 255, 92, 0.08);
  color: var(--lime);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 5px rgba(204, 255, 92, 0.12), 0 0 16px var(--lime);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  50% { box-shadow: 0 0 0 8px rgba(204, 255, 92, 0), 0 0 20px var(--lime); }
}

.hero-kicker,
.section-kicker {
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.hero h1 {
  max-width: 720px;
  margin: 0.5rem 0 1.35rem;
  font-size: clamp(3rem, 6.2vw, 6.7rem);
  font-weight: 1000;
  letter-spacing: -0.065em;
  line-height: 0.96;
}

.hero h1 .hero-title-accent {
  display: inline-block;
  padding-right: 0.06em;
  background: linear-gradient(100deg, var(--pink), #b87cff 45%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 .hero-title-top {
  color: var(--text);
}

html[lang="en"] .hero h1 {
  font-size: clamp(2.8rem, 5.2vw, 5.7rem);
  letter-spacing: -0.055em;
}

.hero-intro {
  max-width: 610px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 0 1.3rem;
  border: 1px solid transparent;
  border-radius: 15px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button-primary {
  background: var(--lime);
  color: #11182d;
  box-shadow: 0 14px 34px rgba(204, 255, 92, 0.14);
}

.button-primary:hover {
  box-shadow: 0 18px 42px rgba(204, 255, 92, 0.25);
}

.button-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
}

.player-stats {
  display: flex;
  gap: clamp(1.2rem, 4vw, 3.6rem);
  margin-top: 2.7rem;
}

.player-stats div {
  position: relative;
}

.player-stats div + div::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(clamp(1.2rem, 4vw, 3.6rem) / -2);
  width: 1px;
  content: "";
  background: var(--line);
}

.player-stats dt {
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.45rem;
  font-weight: 1000;
  line-height: 1;
}

.player-stats dd {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.hero-visual {
  position: relative;
  min-height: 570px;
}

.hero-card {
  position: absolute;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 26px;
  background: var(--panel-solid);
  box-shadow: var(--shadow);
  cursor: zoom-in;
  transform-style: preserve-3d;
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.hero-card:hover {
  z-index: 10;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.43);
}

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

.hero-card span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 0.4rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(8, 13, 29, 0.74);
  color: white;
  font-size: 0.68rem;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.hero-card-main {
  top: 40px;
  left: 70px;
  z-index: 3;
  width: 330px;
  height: 315px;
  transform: rotate(2deg);
}

.hero-card-main:hover {
  transform: rotate(0deg) translateY(-10px) scale(1.025);
}

.hero-card-game {
  top: 2px;
  right: -18px;
  z-index: 2;
  width: 185px;
  height: 205px;
  transform: rotate(8deg);
}

.hero-card-game:hover {
  transform: rotate(2deg) translateY(-8px) scale(1.04);
}

.hero-card-nature {
  right: 12px;
  bottom: 28px;
  z-index: 4;
  width: 205px;
  height: 260px;
  transform: rotate(-6deg);
}

.hero-card-nature:hover {
  transform: rotate(-1deg) translateY(-8px) scale(1.04);
}

.visual-ring {
  position: absolute;
  border: 1px solid rgba(84, 235, 210, 0.25);
  border-radius: 50%;
  animation: orbit 18s linear infinite;
}

.visual-ring::after {
  position: absolute;
  top: 50%;
  left: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px var(--cyan);
  content: "";
}

.ring-one {
  inset: 20px 0 60px 20px;
}

.ring-two {
  inset: 78px 50px 10px -20px;
  animation-direction: reverse;
  animation-duration: 24s;
}

@keyframes orbit {
  to { transform: rotate(360deg); }
}

.level-badge {
  position: absolute;
  bottom: 48px;
  left: 8px;
  z-index: 5;
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border: 1px solid rgba(204, 255, 92, 0.4);
  border-radius: 50%;
  background: rgba(8, 13, 29, 0.86);
  color: var(--lime);
  box-shadow: 0 0 0 8px rgba(204, 255, 92, 0.08);
  transform: rotate(-8deg);
}

.level-badge span,
.level-badge strong {
  position: absolute;
}

.level-badge span {
  top: 17px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.level-badge strong {
  bottom: 12px;
  font-size: 2.1rem;
  line-height: 1;
}

.pixel-spark {
  position: absolute;
  z-index: 7;
  width: 14px;
  height: 14px;
  background: var(--pink);
  box-shadow: 18px 0 var(--pink), 0 18px var(--pink), 18px 18px var(--pink);
  animation: spark 3s ease-in-out infinite;
}

.spark-one {
  top: 15%;
  left: 2%;
}

.spark-two {
  right: 4%;
  bottom: 6%;
  background: var(--lime);
  box-shadow: 18px 0 var(--lime), 0 18px var(--lime), 18px 18px var(--lime);
  animation-delay: -1.3s;
  transform: scale(0.65);
}

@keyframes spark {
  50% { opacity: 0.35; transform: rotate(45deg) scale(0.72); }
}

.hero-orb {
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.hero-orb-a {
  top: 18%;
  left: -70px;
  width: 150px;
  height: 150px;
  border: 24px solid rgba(255, 79, 200, 0.08);
}

.hero-orb-b {
  right: -140px;
  bottom: 5%;
  width: 280px;
  height: 280px;
  border: 42px solid rgba(80, 167, 255, 0.07);
}

.scroll-cue {
  position: absolute;
  bottom: 25px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  transform: translateX(-50%);
}

.scroll-cue i {
  position: relative;
  display: block;
  width: 18px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.scroll-cue i::after {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 3px;
  height: 6px;
  border-radius: 999px;
  background: var(--lime);
  content: "";
  transform: translateX(-50%);
  animation: scroll-dot 1.8s ease-in-out infinite;
}

@keyframes scroll-dot {
  70% { opacity: 0; transform: translate(-50%, 11px); }
}

.section {
  width: var(--shell);
  margin: 0 auto;
  padding: clamp(5rem, 9vw, 8rem) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 470px);
  align-items: end;
  gap: 2rem;
  margin-bottom: 2.8rem;
}

.section-heading h2,
.journey-intro h2,
.safe-contact h2 {
  margin-top: 0.3rem;
  font-size: clamp(2.15rem, 5vw, 4.6rem);
  font-weight: 1000;
  letter-spacing: -0.055em;
  line-height: 1;
}

.section-heading > p,
.journey-intro > p:last-child,
.safe-contact-shell > p {
  color: var(--muted);
}

.world-section {
  padding-top: 7rem;
}

.world-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.world-card {
  position: relative;
  display: grid;
  min-height: 250px;
  grid-template-columns: auto 1fr;
  align-content: end;
  gap: 1.2rem;
  overflow: hidden;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
  isolation: isolate;
  transition: transform 220ms ease, border-color 220ms ease;
}

.world-card::before,
.world-card::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  content: "";
  transition: transform 420ms ease;
}

.world-card::before {
  top: -60px;
  right: -25px;
  width: 210px;
  height: 210px;
  opacity: 0.22;
  filter: blur(4px);
}

.world-card::after {
  top: 42px;
  right: 70px;
  width: 55px;
  height: 55px;
  border: 12px solid currentColor;
  opacity: 0.14;
}

.world-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-7px);
}

.world-card:hover::before {
  transform: scale(1.15) translate(-8px, 12px);
}

.world-card:hover::after {
  transform: rotate(90deg) scale(1.2);
}

.world-games { color: var(--pink); }
.world-games::before { background: var(--pink); }
.world-art { color: var(--orange); }
.world-art::before { background: var(--orange); }
.world-nature { color: var(--cyan); }
.world-nature::before { background: var(--cyan); }
.world-math { color: var(--lime); }
.world-math::before { background: var(--lime); }

.world-number {
  position: absolute;
  top: 1.35rem;
  left: 1.55rem;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
}

.world-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 16px;
  background: color-mix(in srgb, currentColor 12%, transparent);
  font-size: 1.4rem;
  font-weight: 1000;
}

.world-card small {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.world-card h3 {
  color: var(--text);
  font-size: 1.65rem;
  letter-spacing: -0.03em;
}

.world-card p {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.world-arrow {
  position: absolute;
  right: 1.45rem;
  bottom: 1.3rem;
  color: var(--text);
  font-size: 1.4rem;
}

.journey-band {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(139, 92, 246, 0.08), rgba(84, 235, 210, 0.05)),
    var(--bg-elevated);
}

.journey-band::before {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image: linear-gradient(90deg, transparent 49.8%, var(--line) 50%, transparent 50.2%);
  background-size: 90px 100%;
  content: "";
  pointer-events: none;
}

.journey-shell {
  position: relative;
  display: grid;
  width: var(--shell);
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(3rem, 8vw, 8rem);
  margin: 0 auto;
  padding: clamp(4.5rem, 8vw, 7rem) 0;
}

.journey-intro h2 {
  margin-bottom: 1rem;
}

.journey-track {
  position: relative;
}

.journey-track::before {
  position: absolute;
  top: 12px;
  bottom: 24px;
  left: 12px;
  width: 2px;
  background: linear-gradient(var(--pink), var(--cyan));
  content: "";
}

.journey-item {
  position: relative;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 1.2rem;
  padding-bottom: 2.1rem;
}

.journey-item:last-child {
  padding-bottom: 0;
}

.journey-node {
  position: relative;
  z-index: 1;
  width: 26px;
  height: 26px;
  border: 5px solid var(--bg-elevated);
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 1px var(--cyan), 0 0 18px rgba(84, 235, 210, 0.55);
}

.journey-item:first-child .journey-node {
  background: var(--pink);
  box-shadow: 0 0 0 1px var(--pink), 0 0 18px rgba(255, 79, 200, 0.5);
}

.journey-content {
  padding: 0 0 0.2rem;
}

.journey-content time {
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 900;
}

.journey-content h3 {
  margin: 0.2rem 0;
  font-size: 1.25rem;
}

.journey-content p {
  color: var(--muted);
  font-size: 0.9rem;
}

.collection-section {
  padding-bottom: 4rem;
}

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

.game-card,
.art-card,
.note-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.game-card {
  border-radius: 24px;
  transition: transform 220ms ease, border-color 220ms ease;
}

.game-card:hover {
  z-index: 2;
  border-color: rgba(204, 255, 92, 0.4);
  transform: translateY(-8px);
}

.game-image-button,
.art-image-button,
.note-image-button {
  display: block;
  width: 100%;
  overflow: hidden;
  padding: 0;
  background: #181f38;
  cursor: zoom-in;
}

.game-image-button {
  aspect-ratio: 1;
}

.game-image-button img,
.art-image-button img,
.note-image-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.game-card:hover img,
.art-card:hover img,
.note-card:hover img {
  transform: scale(1.045);
}

.game-body {
  padding: 1.15rem;
}

.card-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 0.55rem;
  border: 1px solid rgba(204, 255, 92, 0.25);
  border-radius: 999px;
  background: rgba(204, 255, 92, 0.08);
  color: var(--lime);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.game-body h3,
.art-info h3,
.note-body h3 {
  margin-top: 0.7rem;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.game-body p,
.art-info p,
.note-body > p {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.art-section {
  width: 100%;
  max-width: none;
  padding-inline: max(20px, calc((100vw - 1180px) / 2));
  background: linear-gradient(180deg, transparent, rgba(255, 79, 200, 0.04) 35%, transparent);
}

.art-grid {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 80px;
  gap: 1rem;
}

.art-card {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  grid-column: span 4;
  grid-row: span 5;
  border-radius: var(--radius-lg);
  transition: transform 220ms ease;
}

.art-card:nth-child(1) {
  grid-column: span 7;
  grid-row: span 7;
}

.art-card:nth-child(2) {
  grid-column: span 5;
  grid-row: span 7;
}

.art-card:nth-child(5),
.art-card:nth-child(6) {
  grid-column: span 6;
  grid-row: span 6;
}

.art-card:hover {
  transform: translateY(-6px);
}

.art-image-button {
  min-height: 0;
}

.art-card.is-document .art-image-button {
  padding: clamp(0.75rem, 2vw, 1.5rem);
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 204, 92, 0.16), transparent 55%),
    #11182d;
}

.art-card.is-document .art-image-button img {
  object-fit: contain;
}

.art-info {
  padding: 1.15rem 1.25rem 1.25rem;
}

.art-info-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.art-info h3 {
  margin-top: 0;
}

.art-index {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.65rem;
}

.nature-section {
  padding-top: 7rem;
}

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

.note-card {
  display: grid;
  min-height: 390px;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  border-radius: var(--radius-lg);
  transition: transform 220ms ease;
}

.note-card:hover {
  transform: translateY(-6px);
}

.note-image-button {
  min-height: 100%;
}

.note-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem;
}

.note-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.1rem;
}

.note-meta span {
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
}

.safe-contact {
  padding: 3rem 20px 8rem;
}

.safe-contact-shell {
  position: relative;
  width: min(900px, 100%);
  overflow: hidden;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) clamp(1.4rem, 6vw, 5rem);
  border: 1px solid var(--line);
  border-radius: 40px;
  background:
    radial-gradient(circle at 90% 20%, rgba(204, 255, 92, 0.17), transparent 17rem),
    radial-gradient(circle at 10% 85%, rgba(255, 79, 200, 0.17), transparent 18rem),
    var(--panel);
  box-shadow: var(--shadow);
  text-align: center;
}

.safe-contact-shell::before {
  position: absolute;
  inset: 15px;
  border: 1px dashed var(--line);
  border-radius: 29px;
  content: "";
  pointer-events: none;
}

.safe-contact h2 {
  position: relative;
  max-width: 680px;
  margin: 0.35rem auto 1rem;
}

.safe-contact-shell > p {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.safe-contact .button {
  position: relative;
  margin-top: 1.8rem;
}

.contact-orbit {
  position: absolute;
  top: -75px;
  right: -55px;
  display: grid;
  width: 190px;
  height: 190px;
  place-items: center;
  border: 1px solid rgba(204, 255, 92, 0.3);
  border-radius: 50%;
}

.contact-orbit span {
  color: var(--lime);
  font-size: 2rem;
  animation: orbit 12s linear infinite;
}

.site-footer {
  display: grid;
  width: var(--shell);
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 2rem;
  margin: 0 auto;
  padding: 1.8rem 0 calc(1.8rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
}

.site-footer > div {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.site-footer .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 0.95rem;
}

.site-footer .brand-mark-dual {
  font-size: 0.62rem;
}

.site-footer strong {
  color: var(--text);
}

.site-footer a {
  transition: color 160ms ease;
}

.site-footer a:hover {
  color: var(--lime);
}

.image-dialog {
  width: min(1100px, calc(100vw - 28px));
  max-width: none;
  max-height: calc(100svh - 28px);
  overflow: visible;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background: #080d1d;
  color: white;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.65);
}

.image-dialog::backdrop {
  background: rgba(2, 5, 15, 0.88);
  backdrop-filter: blur(18px);
}

.image-dialog figure {
  display: grid;
  max-height: calc(100svh - 28px);
  grid-template-rows: minmax(0, 1fr) auto;
}

.image-dialog img {
  width: 100%;
  max-height: calc(100svh - 95px);
  border-radius: 23px 23px 0 0;
  object-fit: contain;
}

.image-dialog figcaption {
  padding: 0.9rem 1.2rem;
  color: #c9d0e4;
  text-align: center;
  font-size: 0.86rem;
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(8, 13, 29, 0.76);
  color: white;
  cursor: pointer;
  font-size: 1.8rem;
  backdrop-filter: blur(12px);
}

.noscript-note,
.load-error {
  width: var(--shell);
  margin: 2rem auto;
  padding: 1rem;
  border: 1px solid rgba(255, 155, 84, 0.4);
  border-radius: 16px;
  background: rgba(255, 155, 84, 0.1);
  color: var(--text);
  text-align: center;
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .nav-links a {
    padding-inline: 0.55rem;
    font-size: 0.8rem;
  }

  .hero-shell {
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 2rem;
  }

  .hero-card-main {
    left: 25px;
    width: 290px;
    height: 285px;
  }

  .hero-card-game {
    right: -10px;
    width: 155px;
    height: 180px;
  }

  .hero-card-nature {
    right: 0;
    width: 175px;
    height: 235px;
  }

  .game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 960px) {
  :root {
    --shell: min(100% - 28px, 720px);
  }

  .site-header {
    padding-top: max(7px, env(safe-area-inset-top));
  }

  .nav-shell {
    min-height: 60px;
    border-radius: 17px;
  }

  .menu-toggle {
    display: block;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav-links {
    position: fixed;
    top: calc(78px + env(safe-area-inset-top));
    right: 14px;
    left: 14px;
    display: grid;
    max-height: calc(100svh - 95px);
    gap: 0.35rem;
    overflow: auto;
    padding: 0.8rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--header);
    box-shadow: var(--shadow);
    backdrop-filter: blur(24px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px) scale(0.98);
    transform-origin: top;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .nav-links a,
  .theme-toggle {
    width: 100%;
    min-height: 50px;
    justify-content: flex-start;
    padding-inline: 1rem;
    font-size: 0.95rem;
  }

  .language-switcher {
    width: 100%;
    margin: 0;
    justify-content: stretch;
    padding: 5px;
  }

  .language-switcher button {
    min-height: 42px;
    flex: 1;
  }

  .nav-links .nav-lab {
    margin: 0;
  }

  .hero {
    min-height: auto;
    padding-top: 120px;
  }

  .hero-shell {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-intro {
    margin-inline: auto;
  }

  .hero-actions,
  .player-stats {
    justify-content: center;
  }

  .hero-visual {
    width: min(540px, 100%);
    min-height: 500px;
    margin: 0 auto;
  }

  .hero-card-main {
    left: 17%;
    width: 55%;
    height: 315px;
  }

  .hero-card-game {
    right: 3%;
    width: 30%;
  }

  .hero-card-nature {
    right: 5%;
    width: 33%;
  }

  .section-heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1rem;
  }

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

  .journey-shell {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  .art-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
  }

  .art-card,
  .art-card:nth-child(n) {
    min-height: 460px;
    grid-column: span 1;
    grid-row: auto;
  }

  .art-card:nth-child(1),
  .art-card:nth-child(2) {
    grid-column: span 2;
    min-height: 540px;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
  }

  .site-footer > p {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 560px) {
  :root {
    --radius-lg: 26px;
    --radius-md: 18px;
  }

  .page-noise,
  .cursor-glow {
    display: none;
  }

  .hero-name-code {
    display: none;
  }

  .brand small {
    display: none;
  }

  .hero {
    padding: 105px 0 60px;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 14vw, 4.6rem);
  }

  .hero-kicker {
    font-size: 0.58rem;
    letter-spacing: 0.1em;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .player-stats {
    gap: 1.5rem;
  }

  .player-stats div + div::before {
    left: -0.75rem;
  }

  .hero-visual {
    min-height: 390px;
  }

  .hero-card {
    border-radius: 20px;
  }

  .hero-card-main {
    top: 22px;
    left: 11%;
    width: 61%;
    height: 235px;
  }

  .hero-card-game {
    right: 0;
    width: 34%;
    height: 150px;
  }

  .hero-card-nature {
    right: 1%;
    bottom: 4px;
    width: 37%;
    height: 185px;
  }

  .level-badge {
    bottom: 17px;
    left: 0;
    width: 72px;
    height: 72px;
  }

  .level-badge span { top: 12px; }
  .level-badge strong { bottom: 8px; font-size: 1.7rem; }

  .ring-one {
    inset: 18px 5px 30px 5px;
  }

  .ring-two {
    inset: 55px 38px 3px -5px;
  }

  .scroll-cue {
    display: none;
  }

  .section {
    padding-block: 5rem;
  }

  .world-section {
    padding-top: 5.5rem;
  }

  .world-card {
    min-height: 220px;
  }

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

  .game-card {
    display: grid;
    grid-template-columns: 42% 58%;
  }

  .game-image-button {
    height: 100%;
    aspect-ratio: auto;
  }

  .game-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

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

  .art-card,
  .art-card:nth-child(n) {
    min-height: 440px;
    grid-column: span 1;
  }

  .note-card {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .note-image-button {
    min-height: 340px;
  }

  .safe-contact {
    padding-bottom: 5rem;
  }

  .safe-contact-shell {
    border-radius: 30px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: left;
  }

  .site-footer > p {
    grid-column: auto;
    grid-row: auto;
  }
}

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

  .cursor-glow {
    display: none;
  }
}
