:root {
  color-scheme: light;
  --ink: #173d50;
  --ink-deep: #0b2239;
  --paper: #fff8e7;
  --paper-bright: #fffdf5;
  --sky: #86d8ec;
  --night: #4f58a8;
  --gold: #ffd45a;
  --coral: #ff6b4a;
  --leaf: #4fa86b;
  --blue: #2d78c4;
  --violet: #7356b6;
  --focus: #ffde59;
  --shadow: 0 24px 70px rgba(8, 31, 53, 0.2);
  --font: ui-rounded, "SF Pro Rounded", "Avenir Next Rounded", "PingFang SC",
    "Hiragino Sans GB", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--ink-deep);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.player-is-open {
  overflow: hidden;
}

button,
a {
  font: inherit;
  touch-action: manipulation;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

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

button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  border-radius: 999px;
  color: var(--ink-deep);
  background: var(--gold);
  font-weight: 900;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

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

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

.site-shell {
  min-height: 100vh;
  overflow: clip;
}

.topbar {
  position: sticky;
  z-index: 100;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  width: min(100% - 40px, 1320px);
  min-height: 76px;
  margin: 0 auto;
  color: white;
  background: rgba(11, 34, 57, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--ink-deep);
  background: var(--gold);
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px 16px 16px 4px;
  box-shadow: 0 7px 20px rgba(255, 212, 90, 0.3);
  font-size: 24px;
  transform: rotate(-4deg);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.82rem;
  letter-spacing: 0.11em;
}

.brand small {
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 700;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

.topnav a {
  min-height: 42px;
  padding: 10px 17px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 800;
}

.topnav a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.passport-chip {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 7px 13px;
  color: var(--ink-deep);
  background: var(--paper);
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 15px;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(2, 18, 31, 0.24);
  transform: rotate(1deg);
}

.passport-chip > span:first-child {
  color: #f09c2e;
  font-size: 1.2rem;
}

.passport-chip strong,
.passport-chip small {
  display: block;
}

.passport-chip strong {
  font-size: 0.88rem;
}

.passport-chip small {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(470px, 1.06fr);
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
  width: min(100% - 40px, 1320px);
  min-height: calc(100svh - 76px);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) 0 clamp(82px, 10vw, 130px);
  color: white;
}

.hero::before,
.hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.hero::before {
  z-index: -2;
  width: 720px;
  height: 720px;
  top: -280px;
  left: -400px;
  background: rgba(52, 170, 200, 0.17);
  border-radius: 50%;
  filter: blur(8px);
}

.hero::after {
  z-index: -2;
  right: -360px;
  bottom: -250px;
  width: 720px;
  height: 720px;
  background: rgba(115, 86, 182, 0.24);
  border-radius: 50%;
  filter: blur(8px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow--dark {
  color: #a94d35;
}

.hero h1,
.section-heading h2,
.passport-card h2,
.promise-section h2 {
  margin: 0;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(3.1rem, 5vw, 5.4rem);
  font-weight: 950;
}

.hero h1 span {
  display: block;
}

.hero-title-opening {
  color: white;
  white-space: nowrap;
}

.hero-title-highlight {
  margin-top: 8px;
  color: var(--gold);
  text-wrap: balance;
}

.hero-intro {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  font-weight: 650;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 58px;
  padding: 15px 22px;
  border: 2px solid transparent;
  border-radius: 18px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button:active {
  transform: translateY(1px) scale(0.98);
}

.button--primary {
  color: var(--ink-deep);
  background: var(--gold);
  box-shadow: 0 13px 30px rgba(255, 212, 90, 0.24);
}

.button--compass {
  color: white;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.button--compass:hover {
  background: rgba(255, 255, 255, 0.14);
}

.hero-facts {
  display: flex;
  gap: 12px;
  margin: 34px 0 0;
}

.hero-facts > div {
  min-width: 108px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
}

.hero-facts dt {
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: 950;
}

.hero-facts dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.71rem;
  font-weight: 800;
}

.hero-atlas {
  position: relative;
  aspect-ratio: 1;
  width: min(100%, 660px);
  justify-self: center;
  isolation: isolate;
}

.atlas-sun {
  position: absolute;
  z-index: -2;
  top: 7%;
  right: 8%;
  width: 80px;
  height: 80px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 14px rgba(255, 212, 90, 0.12), 0 0 70px rgba(255, 212, 90, 0.42);
}

.atlas-orbit {
  position: absolute;
  z-index: -1;
  inset: 10%;
  border: 2px dashed rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.atlas-orbit--two {
  inset: 22%;
  border-style: solid;
  border-color: rgba(255, 212, 90, 0.14);
}

.floating-star {
  position: absolute;
  color: var(--gold);
  text-shadow: 0 0 24px rgba(255, 212, 90, 0.8);
  animation: star-drift 5s ease-in-out infinite;
}

.floating-star--one {
  top: 24%;
  left: 2%;
  font-size: 2rem;
}

.floating-star--two {
  top: 13%;
  left: 36%;
  font-size: 0.9rem;
  animation-delay: -2s;
}

.floating-star--three {
  right: 2%;
  bottom: 26%;
  font-size: 1.2rem;
  animation-delay: -3.5s;
}

.atlas-planet {
  position: absolute;
  z-index: 0;
  left: 8%;
  right: 8%;
  bottom: 6%;
  height: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 26%, #fff7bf 0 3%, transparent 3.5%),
    linear-gradient(145deg, #65c587 0 45%, #3aa8bd 45% 61%, #4d72b9 61% 100%);
  border: 9px solid rgba(255, 255, 255, 0.74);
  border-radius: 50% 50% 42% 44% / 60% 60% 40% 40%;
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.38), inset 0 -30px 60px rgba(16, 48, 85, 0.3);
  transform: rotate(-2deg);
}

.planet-road {
  position: absolute;
  width: 76%;
  height: 30%;
  left: 14%;
  bottom: 5%;
  border: 16px solid #f6ca67;
  border-top-color: transparent;
  border-left-color: transparent;
  border-radius: 50%;
  transform: rotate(-7deg);
}

.planet-field {
  position: absolute;
  width: 30%;
  height: 24%;
  right: 10%;
  bottom: 21%;
  background: #69bd67;
  border: 3px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  transform: skewY(-10deg);
}

.planet-tower {
  position: absolute;
  left: 19%;
  bottom: 24%;
  width: 72px;
  height: 166px;
  background: #d85140;
  clip-path: polygon(43% 0, 57% 0, 62% 44%, 89% 100%, 66% 100%, 50% 54%, 34% 100%, 11% 100%, 38% 44%);
  filter: drop-shadow(0 8px 0 rgba(104, 46, 45, 0.18));
}

.hero-team {
  position: absolute;
  z-index: 2;
  inset: 0;
}

.hero-character {
  position: absolute;
  bottom: 17%;
  height: 42%;
  max-width: none;
  object-fit: contain;
  filter: drop-shadow(0 16px 18px rgba(3, 23, 38, 0.32));
  transform-origin: 50% 100%;
  animation: hero-bob 4.5s ease-in-out infinite;
}

.hero-character--one {
  z-index: 4;
  left: 35%;
  height: 46%;
}

.hero-character--two {
  z-index: 3;
  left: 17%;
  height: 37%;
  animation-delay: -1.6s;
}

.hero-character--three {
  z-index: 2;
  right: 15%;
  height: 43%;
  animation-delay: -2.4s;
}

.hero-character--four {
  z-index: 1;
  right: 1%;
  height: 48%;
  animation-delay: -0.8s;
}

.atlas-label {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 1.5%;
  width: max-content;
  padding: 10px 17px;
  color: var(--ink-deep);
  background: var(--paper);
  border: 3px solid white;
  border-radius: 14px 14px 14px 3px;
  box-shadow: 0 11px 24px rgba(4, 26, 43, 0.28);
  text-align: center;
  transform: translateX(-50%) rotate(1deg);
}

.atlas-label span,
.atlas-label strong {
  display: block;
}

.atlas-label span {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.atlas-label strong {
  font-size: 1rem;
}

.worlds-section,
.passport-section,
.promise-section {
  background: var(--paper);
}

.worlds-section {
  position: relative;
  z-index: 2;
  padding: clamp(76px, 9vw, 126px) max(20px, calc((100vw - 1320px) / 2));
  border-radius: 42px 42px 0 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 36px;
}

.section-heading > div:first-child {
  max-width: 790px;
}

.section-heading h2,
.passport-card h2,
.promise-section h2 {
  color: var(--ink-deep);
  font-size: clamp(2.2rem, 4.2vw, 4.5rem);
  font-weight: 950;
}

.section-heading p:not(.eyebrow),
.passport-card__copy > p,
.promise-section > p:not(.eyebrow) {
  max-width: 720px;
  margin: 15px 0 0;
  color: #557080;
  font-weight: 650;
}

.compass-button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 198px;
  min-height: 64px;
  padding: 9px 17px 9px 10px;
  color: white;
  background: var(--ink-deep);
  border: 0;
  border-radius: 18px;
  cursor: pointer;
  box-shadow: 0 12px 25px rgba(11, 34, 57, 0.18);
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.compass-button:hover {
  box-shadow: 0 17px 30px rgba(11, 34, 57, 0.24);
  transform: translateY(-3px) rotate(-1deg);
}

.compass-button__disc {
  display: grid;
  width: 45px;
  height: 45px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--ink-deep);
  background: var(--gold);
  border-radius: 50%;
  font-size: 1.5rem;
  transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.compass-button.is-spinning .compass-button__disc {
  transform: rotate(720deg);
}

.compass-button strong,
.compass-button small {
  display: block;
}

.compass-button small {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.72rem;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 24px;
}

.filter-button {
  min-height: 48px;
  padding: 10px 17px;
  color: #4c6775;
  background: rgba(255, 255, 255, 0.68);
  border: 2px solid #e8deca;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 850;
}

.filter-button:hover,
.filter-button[aria-pressed="true"] {
  color: white;
  background: var(--ink);
  border-color: var(--ink);
}

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

.game-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(230px, 0.92fr);
  min-height: 410px;
  overflow: hidden;
  color: white;
  border: 4px solid rgba(255, 255, 255, 0.74);
  border-radius: 31px 31px 31px 10px;
  box-shadow: 0 18px 38px rgba(26, 53, 69, 0.16);
  isolation: isolate;
  transition: transform 220ms ease, box-shadow 220ms ease, opacity 160ms ease;
}

.game-card[data-theme="eiffel"],
.game-card[data-theme="brothers"] {
  grid-column: span 7;
}

.game-card[data-theme="archer"],
.game-card[data-theme="football"] {
  grid-column: span 5;
}

.game-card[data-theme="rainbow"] {
  grid-column: 1 / -1;
}

.game-card[data-theme="rainbow"] .game-card__copy {
  max-width: 720px;
}

.game-card[data-theme="eiffel"] {
  background: linear-gradient(145deg, #194d75 0%, #2b7fa0 58%, #e66b47 150%);
}

.game-card[data-theme="archer"] {
  background: linear-gradient(145deg, #ec7d40 0%, #f4b447 48%, #5db9ad 145%);
}

.game-card[data-theme="football"] {
  background: linear-gradient(145deg, #1c5f52 0%, #47a25d 52%, #f3ce58 150%);
}

.game-card[data-theme="brothers"] {
  background: linear-gradient(145deg, #3f438f 0%, #7155a7 54%, #e87962 150%);
}

.game-card[data-theme="rainbow"] {
  background:
    radial-gradient(circle at 82% 24%, rgba(255, 223, 111, 0.34) 0 7%, transparent 7.5%),
    linear-gradient(135deg, #071c38 0%, #174b68 48%, #7055a5 78%, #ef7b6d 145%);
}

.game-card:hover,
.game-card.is-oracle-choice {
  box-shadow: 0 25px 55px rgba(26, 53, 69, 0.28);
  transform: translateY(-6px) rotate(-0.25deg);
}

.game-card.is-oracle-choice {
  outline: 7px solid var(--gold);
  outline-offset: 2px;
}

.game-card[hidden] {
  display: none;
}

.game-card__copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  padding: clamp(25px, 3vw, 38px);
}

.game-card__eyebrow {
  margin: 0 0 13px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.game-card h3 {
  max-width: 480px;
  margin: 0;
  font-size: clamp(2rem, 3.1vw, 3.35rem);
  font-weight: 950;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.game-card__description {
  max-width: 520px;
  margin: 17px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  font-weight: 650;
}

.game-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 20px 0 24px;
  padding: 0;
  list-style: none;
}

.game-card__meta li {
  padding: 7px 10px;
  background: rgba(7, 31, 47, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 850;
}

.launch-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 56px;
  width: fit-content;
  margin-top: auto;
  padding: 12px 14px 12px 19px;
  color: var(--ink-deep);
  background: white;
  border-radius: 17px;
  box-shadow: 0 12px 25px rgba(4, 25, 41, 0.18);
  text-decoration: none;
  font-weight: 950;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.launch-button span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: white;
  background: var(--ink-deep);
  border-radius: 11px;
}

.launch-button:hover {
  box-shadow: 0 16px 30px rgba(4, 25, 41, 0.26);
  transform: translateX(4px);
}

.game-card__visual {
  position: relative;
  z-index: 2;
  min-width: 0;
  overflow: hidden;
}

.game-card__visual::before {
  position: absolute;
  content: "";
  inset: 12% -20% -30% -7%;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 48% 48% 32% 32%;
  transform: rotate(-8deg);
}

.game-card__stamp {
  position: absolute;
  z-index: 6;
  top: 20px;
  right: 18px;
  padding: 6px 9px;
  color: rgba(255, 255, 255, 0.78);
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-radius: 7px;
  font-size: 0.59rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  transform: rotate(4deg);
}

.scene-shape,
.card-character {
  position: absolute;
}

.scene-shape--one {
  right: 16%;
  bottom: 12%;
  width: 37%;
  height: 67%;
}

[data-theme="eiffel"] .scene-shape--one {
  background: rgba(255, 217, 154, 0.83);
  clip-path: polygon(43% 0, 57% 0, 61% 42%, 92% 100%, 66% 100%, 50% 55%, 34% 100%, 8% 100%, 39% 42%);
}

[data-theme="eiffel"] .scene-shape--two {
  right: 1%;
  bottom: 11%;
  width: 62%;
  height: 4px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 -86px 0 rgba(255, 255, 255, 0.25), 0 -168px 0 rgba(255, 255, 255, 0.16);
}

[data-theme="archer"] .scene-shape--one {
  top: 26%;
  right: 10%;
  width: 130px;
  height: 130px;
  background: radial-gradient(circle, #fff 0 13%, #ef6a52 14% 28%, #fff 29% 43%, #4c82ba 44% 58%, #fff 59% 70%, transparent 71%);
  border-radius: 50%;
  filter: drop-shadow(0 12px 15px rgba(60, 62, 47, 0.2));
}

[data-theme="archer"] .scene-shape--two {
  top: 14%;
  right: 48%;
  width: 102px;
  height: 48px;
  border-top: 5px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  transform: rotate(-18deg);
}

[data-theme="football"] .scene-shape--one {
  right: 9%;
  bottom: 12%;
  width: 80%;
  height: 55%;
  border: 4px solid rgba(255, 255, 255, 0.58);
  border-radius: 50% 50% 14px 14px;
  transform: perspective(170px) rotateX(23deg);
}

[data-theme="football"] .scene-shape--two {
  top: 20%;
  right: 17%;
  width: 70px;
  height: 70px;
  background: radial-gradient(circle at 40% 35%, #fff 0 34%, #26394e 35% 43%, #fff 44% 100%);
  border: 3px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  box-shadow: 0 12px 17px rgba(18, 45, 45, 0.2);
}

[data-theme="brothers"] .scene-shape--one {
  right: 0;
  bottom: 9%;
  width: 94%;
  height: 22%;
  background: #e5a85f;
  border-radius: 50% 50% 10px 10px;
  box-shadow: -30px -68px 0 -43px #83bd78, 70px -112px 0 -65px #9a82cd;
}

[data-theme="brothers"] .scene-shape--two {
  top: 16%;
  right: 19%;
  width: 8px;
  height: 8px;
  color: var(--gold);
  background: currentColor;
  border-radius: 50%;
  box-shadow: -90px 34px 0 2px currentColor, 50px 48px 0 4px currentColor, -40px 107px 0 1px currentColor;
}

[data-theme="rainbow"] .scene-shape--one {
  right: 2%;
  bottom: 6%;
  width: 92%;
  height: 66%;
  background:
    linear-gradient(90deg, transparent 0 7%, rgba(7, 26, 47, 0.88) 7% 17%, transparent 17% 22%, rgba(7, 26, 47, 0.82) 22% 33%, transparent 33% 39%, rgba(7, 26, 47, 0.86) 39% 54%, transparent 54% 60%, rgba(7, 26, 47, 0.82) 60% 74%, transparent 74% 79%, rgba(7, 26, 47, 0.88) 79% 94%, transparent 94%),
    linear-gradient(0deg, rgba(84, 230, 199, 0.42) 0 8%, transparent 8%);
  clip-path: polygon(0 100%, 0 56%, 7% 56%, 7% 28%, 17% 28%, 17% 68%, 22% 68%, 22% 42%, 33% 42%, 33% 22%, 39% 22%, 39% 58%, 54% 58%, 54% 34%, 60% 34%, 60% 10%, 74% 10%, 74% 62%, 79% 62%, 79% 36%, 94% 36%, 94% 72%, 100% 72%, 100% 100%);
  filter: drop-shadow(0 -8px 15px rgba(82, 225, 196, 0.18));
}

[data-theme="rainbow"] .scene-shape--two {
  top: 25%;
  right: 12%;
  width: 180px;
  height: 92px;
  border-top: 12px solid #ff706a;
  border-radius: 50% 50% 0 0;
  box-shadow: 0 -13px 0 #ffc34e, 0 -26px 0 #ffe66a, 0 -39px 0 #5dde9b, 0 -52px 0 #55a6ea, 0 -65px 0 #a879e5;
  opacity: 0.74;
  transform: rotate(-7deg);
}

.card-character {
  z-index: 4;
  bottom: 4%;
  right: 8%;
  height: 70%;
  max-width: 68%;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 16px 14px rgba(20, 32, 52, 0.26));
}

.card-character--secondary {
  z-index: 3;
  right: 46%;
  bottom: 2%;
  height: 54%;
}

.noscript-links {
  padding: 24px;
  background: white;
  border: 2px solid #e4d7c0;
  border-radius: 18px;
}

.noscript-links a {
  margin-right: 14px;
  font-weight: 850;
}

.passport-section {
  padding: 0 max(20px, calc((100vw - 1320px) / 2)) clamp(84px, 10vw, 136px);
}

.passport-card {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(30px, 6vw, 90px);
  align-items: center;
  padding: clamp(30px, 5vw, 68px);
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(24, 61, 80, 0.08) 50%, transparent 50.2%),
    var(--paper-bright);
  border: 2px solid #e8dcc5;
  border-radius: 13px 35px 13px 35px;
  box-shadow: 0 19px 45px rgba(54, 71, 70, 0.1);
}

.passport-card h2 {
  font-size: clamp(2rem, 3.5vw, 3.6rem);
}

.passport-progress {
  margin-top: 25px;
}

.passport-progress > span {
  display: block;
  margin-bottom: 9px;
  color: var(--ink-deep);
  font-size: 0.84rem;
  font-weight: 900;
}

.progress-track {
  height: 13px;
  overflow: hidden;
  background: #e8dfce;
  border-radius: 999px;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--coral), var(--gold));
  border-radius: inherit;
  transition: width 450ms ease;
}

.stamp-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stamp-item {
  position: relative;
  display: grid;
  min-height: 132px;
  place-items: center;
  padding: 15px;
  color: #89979b;
  background: rgba(239, 235, 222, 0.46);
  border: 3px dashed #cbd0ca;
  border-radius: 50% 48% 45% 50%;
  text-align: center;
  transform: rotate(var(--stamp-rotation, -2deg));
}

.stamp-item.is-visited {
  color: #ac4d39;
  background: rgba(255, 212, 90, 0.17);
  border-style: solid;
  border-color: #da745a;
  box-shadow: inset 0 0 0 5px var(--paper-bright);
}

.stamp-item strong,
.stamp-item small {
  display: block;
}

.stamp-item strong {
  font-size: 0.85rem;
  letter-spacing: 0.07em;
}

.stamp-item small {
  margin-top: 5px;
  font-size: 0.68rem;
  font-weight: 850;
}

.future-section {
  position: relative;
  overflow: hidden;
  padding: clamp(90px, 10vw, 145px) max(20px, calc((100vw - 1320px) / 2));
  color: white;
  background:
    radial-gradient(circle at 82% 12%, rgba(131, 109, 221, 0.4), transparent 30%),
    radial-gradient(circle at 12% 72%, rgba(45, 120, 196, 0.26), transparent 34%),
    #101b3a;
}

.future-sky span {
  position: absolute;
  color: transparent;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.future-sky span:nth-child(1) {
  top: -220px;
  right: -120px;
  width: 520px;
  height: 520px;
}

.future-sky span:nth-child(2) {
  bottom: -280px;
  left: -160px;
  width: 620px;
  height: 620px;
}

.future-sky span:nth-child(3) {
  top: 38%;
  left: 48%;
  width: 310px;
  height: 310px;
  border-style: dashed;
}

.section-heading--future {
  position: relative;
  z-index: 2;
}

.section-heading--future h2 {
  color: white;
}

.section-heading--future p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.68);
}

.wish-counter {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 0 10px;
  min-width: 146px;
  padding: 12px 17px;
  color: var(--ink-deep);
  background: var(--gold);
  border-radius: 18px 18px 18px 5px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  transform: rotate(1.5deg);
}

.wish-counter > span {
  grid-row: 1 / 3;
  font-size: 1.6rem;
}

.wish-counter strong {
  font-size: 1.25rem;
  line-height: 1;
}

.wish-counter small {
  font-size: 0.64rem;
  font-weight: 850;
}

.future-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.future-card {
  --portal-accent: #55c5d9;
  position: relative;
  display: flex;
  min-height: 300px;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  padding: 24px;
  color: white;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035));
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 27px 27px 27px 8px;
  cursor: pointer;
  text-align: left;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.09);
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease;
}

.future-card::before {
  position: absolute;
  content: "";
  right: -70px;
  bottom: -90px;
  width: 230px;
  height: 230px;
  background: radial-gradient(circle, color-mix(in srgb, var(--portal-accent) 48%, transparent), transparent 68%);
  border: 2px solid color-mix(in srgb, var(--portal-accent) 60%, transparent);
  border-radius: 50%;
  opacity: 0.8;
}

.future-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: color-mix(in srgb, var(--portal-accent) 70%, white 10%);
  transform: translateY(-5px) rotate(-0.3deg);
}

.future-card.is-wished {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 2px rgba(255, 212, 90, 0.18), 0 0 35px rgba(255, 212, 90, 0.08);
}

.future-card__topline {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.future-card__symbol {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  color: var(--ink-deep);
  background: var(--portal-accent);
  border: 3px solid rgba(255, 255, 255, 0.72);
  border-radius: 50% 50% 50% 13px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  font-size: 1.25rem;
  font-weight: 950;
  transform: rotate(-5deg);
}

.future-card__wish {
  color: var(--gold);
  font-size: 1.25rem;
  opacity: 0;
}

.future-card.is-wished .future-card__wish {
  opacity: 1;
}

.future-card__stage {
  position: relative;
  z-index: 2;
  margin: 21px 0 8px;
  color: var(--portal-accent);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.future-card h3 {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.future-card p {
  position: relative;
  z-index: 2;
  margin: 13px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.87rem;
  font-weight: 650;
}

.future-card__open {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding-top: 20px;
  color: white;
  font-size: 0.78rem;
  font-weight: 900;
}

.promise-section {
  padding: clamp(82px, 10vw, 130px) max(20px, calc((100vw - 1320px) / 2));
}

.promise-section > .eyebrow,
.promise-section > h2,
.promise-section > p {
  max-width: 810px;
}

.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 42px;
}

.promise-grid article {
  padding: 28px;
  background: white;
  border: 2px solid #ece1cf;
  border-radius: 24px 24px 24px 7px;
}

.promise-grid article > span {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: white;
  background: var(--ink);
  border-radius: 16px 16px 16px 4px;
  font-size: 1.3rem;
}

.promise-grid h3 {
  margin: 19px 0 7px;
  color: var(--ink-deep);
  font-size: 1.25rem;
}

.promise-grid p {
  margin: 0;
  color: #617985;
  font-size: 0.9rem;
  font-weight: 650;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 40px, 1320px);
  min-height: 150px;
  margin: 0 auto;
  color: white;
}

.brand--footer small {
  color: rgba(255, 255, 255, 0.62);
}

footer p {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
  font-weight: 750;
  text-align: right;
}

.game-player {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  color: white;
  background: #071522;
}

.game-player[hidden] {
  display: none;
}

.player-toolbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  min-height: 70px;
  padding: max(10px, env(safe-area-inset-top)) 18px 10px;
  background: #0b2239;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.player-back,
.player-actions a,
.player-actions button {
  min-height: 46px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 850;
}

.player-back {
  width: fit-content;
  padding: 9px 15px;
  color: var(--ink-deep);
  background: var(--gold);
  border: 0;
}

.player-title-group {
  text-align: center;
}

.player-title-group small,
.player-title-group strong {
  display: block;
}

.player-title-group small {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.player-title-group strong {
  font-size: 1rem;
}

.player-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.player-actions a,
.player-actions button {
  display: grid;
  place-items: center;
  min-width: 46px;
  padding: 8px 12px;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  text-decoration: none;
}

.player-stage {
  position: relative;
  min-height: 0;
}

.player-stage iframe {
  display: block;
  width: 100%;
  height: 100%;
  background: #f7f2e4;
  border: 0;
}

.player-loading {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 13px;
  color: white;
  background: #102a43;
  transition: opacity 240ms ease, visibility 240ms ease;
}

.player-loading span {
  color: var(--gold);
  font-size: 2.2rem;
  animation: loading-star 900ms ease-in-out infinite alternate;
}

.player-loading.is-complete {
  visibility: hidden;
  opacity: 0;
}

.future-dialog {
  width: min(92vw, 670px);
  max-height: min(88vh, 760px);
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 28px;
  overflow: visible;
}

.future-dialog::backdrop {
  background: rgba(4, 14, 28, 0.76);
  backdrop-filter: blur(10px);
}

.future-dialog__shell {
  position: relative;
  overflow: auto;
  max-height: min(88vh, 760px);
  padding: clamp(28px, 6vw, 56px);
  background: var(--paper-bright);
  border: 4px solid white;
  border-radius: 28px 28px 28px 9px;
  box-shadow: var(--shadow);
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: white;
  background: var(--ink-deep);
  border: 0;
  border-radius: 15px;
  cursor: pointer;
  font-size: 1.6rem;
}

.dialog-symbol {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  color: var(--ink-deep);
  background: var(--dialog-accent, var(--gold));
  border: 4px solid white;
  border-radius: 50% 50% 50% 16px;
  box-shadow: 0 12px 25px rgba(17, 43, 64, 0.16);
  font-size: 1.65rem;
  font-weight: 950;
  transform: rotate(-4deg);
}

.dialog-stage {
  margin: 25px 0 8px;
  color: #a44f3a;
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.future-dialog h2 {
  margin: 0;
  color: var(--ink-deep);
  font-size: clamp(2rem, 5vw, 3.7rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.dialog-hook {
  margin: 18px 0 0;
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 900;
}

.dialog-description {
  color: #536f7c;
  font-weight: 650;
}

.dialog-mechanics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.dialog-mechanics li {
  padding: 8px 11px;
  color: var(--ink-deep);
  background: #e8f1ee;
  border-radius: 999px;
  font-size: 0.77rem;
  font-weight: 850;
}

.wish-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 58px;
  padding: 13px 18px;
  color: var(--ink-deep);
  background: var(--gold);
  border: 0;
  border-radius: 18px;
  cursor: pointer;
  font-weight: 950;
}

.wish-button.is-wished {
  color: white;
  background: var(--ink);
}

.dialog-local-note {
  margin: 10px 0 0;
  color: #71858d;
  font-size: 0.7rem;
  font-weight: 750;
  text-align: center;
}

@keyframes hero-bob {
  0%,
  100% { transform: translateY(0) rotate(-0.3deg); }
  50% { transform: translateY(-6px) rotate(0.5deg); }
}

@keyframes star-drift {
  0%,
  100% { transform: translateY(0) rotate(0); opacity: 0.7; }
  50% { transform: translateY(-9px) rotate(12deg); opacity: 1; }
}

@keyframes loading-star {
  from { transform: scale(0.84) rotate(-8deg); opacity: 0.6; }
  to { transform: scale(1.12) rotate(8deg); opacity: 1; }
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.82fr);
  }

  .game-card {
    grid-template-columns: minmax(0, 1.16fr) minmax(190px, 0.84fr);
  }

  .game-card[data-theme] {
    grid-column: span 6;
  }

  .game-card[data-theme="rainbow"] {
    grid-column: 1 / -1;
  }

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

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: 1fr auto;
    width: min(100% - 28px, 1320px);
  }

  .topnav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    width: min(100% - 32px, 760px);
    padding-top: 65px;
    text-align: center;
  }

  .hero .eyebrow,
  .hero-actions,
  .hero-facts {
    justify-content: center;
  }

  .hero-intro {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-atlas {
    width: min(100%, 620px);
  }

  .section-heading {
    align-items: start;
  }

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

  .game-card[data-theme] {
    grid-column: auto;
  }

  .passport-card {
    grid-template-columns: 1fr;
    background: var(--paper-bright);
  }
}

@media (max-width: 680px) {
  .topbar {
    min-height: 68px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 13px 13px 13px 4px;
  }

  .brand strong {
    font-size: 0.68rem;
  }

  .brand small {
    font-size: 0.65rem;
  }

  .passport-chip {
    min-height: 44px;
    padding: 5px 9px;
  }

  .passport-chip > span:first-child,
  .passport-chip small {
    display: none;
  }

  .hero {
    width: min(100% - 28px, 620px);
    min-height: auto;
    padding: 58px 0 80px;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 11.4vw, 4.2rem);
    text-wrap: balance;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-facts > div {
    min-width: 0;
    padding: 9px 6px;
  }

  .hero-facts dd {
    font-size: 0.62rem;
  }

  .hero-atlas {
    margin-top: 12px;
  }

  .hero-character {
    bottom: 16%;
  }

  .worlds-section {
    padding-top: 70px;
    border-radius: 28px 28px 0 0;
  }

  .section-heading {
    display: grid;
  }

  .section-heading h2,
  .passport-card h2,
  .promise-section h2 {
    font-size: clamp(2rem, 11vw, 3.3rem);
  }

  .worlds-section .section-heading h2 span {
    display: block;
  }

  .compass-button {
    width: 100%;
  }

  .filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 2px 2px 8px;
    scrollbar-width: none;
  }

  .filter-row::-webkit-scrollbar {
    display: none;
  }

  .filter-button {
    flex: 0 0 auto;
  }

  .game-card {
    display: flex;
    min-height: 540px;
    flex-direction: column-reverse;
    scroll-snap-align: start;
  }

  .game-card__copy {
    min-height: 315px;
  }

  .game-card__visual {
    min-height: 225px;
  }

  .game-card h3 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .card-character {
    right: 17%;
    height: 92%;
  }

  .card-character--secondary {
    right: 50%;
    height: 74%;
  }

  .stamp-list {
    gap: 10px;
  }

  .stamp-item {
    min-height: 112px;
  }

  .future-grid,
  .promise-grid {
    grid-template-columns: 1fr;
  }

  .future-card {
    min-height: 268px;
  }

  footer {
    flex-direction: column;
    justify-content: center;
    padding: 42px 0;
    text-align: center;
  }

  footer p {
    margin: 0;
    text-align: center;
  }

  .player-toolbar {
    grid-template-columns: 1fr auto;
    gap: 8px;
    min-height: 64px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .player-title-group {
    display: none;
  }

  .player-actions a {
    display: none;
  }

  .player-back {
    font-size: 0.82rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .game-card,
  .future-card,
  .promise-grid article,
  .passport-card {
    border: 2px solid CanvasText;
  }
}
