:root {
  --bg: #f4efe6;
  --bg-soft: #ece5d8;
  --panel: rgba(255, 251, 245, 0.82);
  --panel-strong: rgba(251, 247, 241, 0.94);
  --line: rgba(78, 91, 96, 0.14);
  --line-strong: rgba(78, 91, 96, 0.26);
  --text: #1e2120;
  --muted: #5f695f;
  --teal: #7c9988;
  --aqua: #7f8fa0;
  --lime: #b5b88b;
  --shadow: 0 24px 60px rgba(33, 35, 31, 0.12);
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(127, 143, 160, 0.14), transparent 26%),
    radial-gradient(circle at 82% 2%, rgba(181, 184, 139, 0.16), transparent 24%),
    linear-gradient(180deg, #f5efe5 0%, #f1eadf 42%, #e8e0d2 100%);
  min-height: 100vh;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  position: relative;
  overflow-x: hidden;
}

.ambient {
  position: fixed;
  inset: auto;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}

.ambient-one {
  width: 26rem;
  height: 26rem;
  top: 6rem;
  left: -6rem;
  background: rgba(124, 153, 136, 0.18);
}

.ambient-two {
  width: 24rem;
  height: 24rem;
  top: 24rem;
  right: -8rem;
  background: rgba(184, 141, 119, 0.14);
}

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(78, 91, 96, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78, 91, 96, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 92%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 92%);
  pointer-events: none;
  z-index: 0;
}

.section {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
  padding: 1.2rem 1.35rem;
  margin: 0;
  position: sticky;
  position: -webkit-sticky;
  top: 0;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(244, 239, 230, 0.92), rgba(244, 239, 230, 0.72));
  border-bottom: 1px solid rgba(78, 91, 96, 0.08);
  box-shadow: 0 8px 30px rgba(33, 35, 31, 0.04);
  z-index: 10;
}

.note-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}

.drop-zone {
  position: fixed;
  z-index: 70;
  width: min(28vw, 14rem);
  height: min(28vh, 12rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.drop-zone-one {
  left: 0;
  top: 0;
}

.drop-zone-two {
  right: 0;
  top: 0;
}

.drop-zone-three {
  left: 0;
  bottom: 0;
}

.drop-zone-four {
  right: 0;
  bottom: 0;
}

.drop-zone.is-match {
  opacity: 0.22;
  transform: scale(1.04);
  background: rgba(181, 184, 139, 0.35);
}

.rainbow-mode {
  --text: #161812;
  --muted: #25302b;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(115deg, rgba(255, 38, 38, 0.26), rgba(255, 152, 0, 0.24), rgba(255, 235, 59, 0.22), rgba(36, 214, 87, 0.23), rgba(0, 188, 255, 0.25), rgba(108, 92, 255, 0.25), rgba(236, 72, 153, 0.24)),
    linear-gradient(180deg, #fff8f8 0%, #fbffe9 35%, #effcff 68%, #fff6fc 100%);
  background-size: 240% 240%, 100% 100%;
  animation: rainbow-pan 6s ease-in-out infinite alternate;
}

.rainbow-mode::before {
  content: "";
  position: fixed;
  inset: -18%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 0, 102, 0.2), transparent 28%),
    radial-gradient(circle at 82% 14%, rgba(255, 225, 0, 0.2), transparent 26%),
    radial-gradient(circle at 18% 82%, rgba(0, 230, 118, 0.18), transparent 28%),
    radial-gradient(circle at 76% 78%, rgba(0, 176, 255, 0.2), transparent 30%),
    radial-gradient(circle at 52% 50%, rgba(174, 74, 255, 0.18), transparent 34%);
  background-size: 140% 140%;
  animation: rainbow-drift 7s ease-in-out infinite alternate;
}

.rainbow-mode .site-header {
  background: linear-gradient(90deg, rgba(255, 235, 238, 0.9), rgba(255, 249, 196, 0.9), rgba(220, 255, 231, 0.9), rgba(227, 242, 253, 0.9), rgba(248, 225, 255, 0.9));
}

.rainbow-mode .eyebrow {
  color: #682a9f;
}

.rainbow-mode .hero h1 span {
  color: #174f9c;
}

.rainbow-mode .brand-mark {
  background: linear-gradient(90deg, #ff6b6b, #ffd43b, #51cf66, #22b8cf, #845ef7, #f06595, #ff6b6b);
  background-size: 280% 100%;
  color: #11180f;
  box-shadow: 0 10px 26px rgba(132, 94, 247, 0.18);
  animation: rainbow-button-flow 2.8s linear infinite;
}

.rainbow-mode .brand-copy span:last-child,
.rainbow-mode .site-nav,
.rainbow-mode .hero-text,
.rainbow-mode .hero-subtext,
.rainbow-mode .section-heading p,
.rainbow-mode .science-card p,
.rainbow-mode .waitlist-copy p,
.rainbow-mode .panel p,
.rainbow-mode .stage-card small,
.rainbow-mode .waitlist-form span,
.rainbow-mode .form-note,
.rainbow-mode .site-footer {
  color: #25302b;
}

.rainbow-mode .ticker-track {
  color: #1d241f;
}

.rainbow-mode .panel,
.rainbow-mode .science-card,
.rainbow-mode .waitlist-panel,
.rainbow-mode .stage-card,
.rainbow-mode .ticker {
  border-color: rgba(30, 33, 32, 0.2);
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 14px 34px rgba(68, 95, 176, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  -webkit-backdrop-filter: blur(12px) saturate(1.25);
  backdrop-filter: blur(12px) saturate(1.25);
  animation: none;
}

.rainbow-mode .game-panel {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  animation: none;
}

@media (hover: hover) and (pointer: fine) {
  .rainbow-mode .science-card:hover {
    transform: none;
    border-color: rgba(30, 33, 32, 0.2);
    background: rgba(255, 255, 255, 0.42);
    box-shadow: 0 14px 34px rgba(68, 95, 176, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.34);
    cursor: default;
  }
}

.rainbow-mode .stage-card,
.rainbow-mode .stage-card.active {
  border-color: rgba(30, 33, 32, 0.2);
  background: rgba(255, 255, 255, 0.36);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
  backdrop-filter: blur(10px) saturate(1.15);
}

.rainbow-mode .puzzle-note {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-0.55rem) scale(0.72);
}

.rainbow-mode .loot-box-button {
  --loot-line: rgba(27, 32, 34, 0.34);
  --loot-inner: #231a49;
}

.rainbow-mode .mystery-box-svg {
  filter: none;
}

.rainbow-mode .site-header {
  border-bottom-color: rgba(30, 33, 32, 0.22);
}

.rainbow-mode .site-footer {
  border-top-color: rgba(30, 33, 32, 0.22);
}

.rainbow-mode .ticker,
.rainbow-mode .science-card,
.rainbow-mode .stage-card,
.rainbow-mode .waitlist-panel,
.rainbow-mode .waitlist-form input,
.rainbow-mode .waitlist-form select {
  border-color: rgba(30, 33, 32, 0.2);
}

.rainbow-mode .waitlist-form input,
.rainbow-mode .waitlist-form select {
  background-color: rgba(255, 255, 255, 0.38);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  backdrop-filter: blur(10px) saturate(1.1);
}

.rainbow-mode .xp-bar {
  background: rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 0 0 1px rgba(30, 33, 32, 0.12);
}

.rainbow-mode .xp-bar span {
  background: linear-gradient(90deg, #ff6b6b, #ffd43b, #51cf66, #22b8cf, #845ef7, #f06595, #ff6b6b);
  background-size: 280% 100%;
  box-shadow: 0 0 26px rgba(132, 94, 247, 0.24);
  animation: rainbow-button-flow 2.8s linear infinite;
}

.rainbow-mode .button-primary,
.rainbow-mode .nav-cta,
.rainbow-mode .site-nav .mobile-nav-cta {
  background: linear-gradient(90deg, #ff6b6b, #ffd43b, #51cf66, #22b8cf, #845ef7, #f06595, #ff6b6b);
  background-size: 280% 100%;
  color: #11180f;
  animation: rainbow-button-flow 2.8s linear infinite;
}

@keyframes rainbow-pan {
  from {
    background-position: 0% 50%, center;
  }

  to {
    background-position: 100% 50%, center;
  }
}

@keyframes rainbow-drift {
  from {
    background-position: 0% 0%;
    transform: rotate(0deg) scale(1);
  }

  to {
    background-position: 100% 75%;
    transform: rotate(6deg) scale(1.04);
  }
}

@keyframes rainbow-button-flow {
  from {
    background-position: 0% 50%;
  }

  to {
    background-position: 100% 50%;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.brand-mark {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #d7d0bf, #9aab9d);
  color: #2d312d;
  font-family: "Newsreader", serif;
  font-weight: 800;
}

.brand-copy {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.brand-copy strong,
.site-nav a,
.nav-cta,
.menu-toggle,
.button,
.status-pill {
  font-family: "Manrope", sans-serif;
}

.brand-copy span:last-child {
  color: var(--muted);
  font-size: 0.83rem;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.35rem;
  color: var(--muted);
  margin-left: auto;
  margin-right: auto;
}

.site-nav a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.site-nav .mobile-nav-cta,
.menu-toggle {
  display: none;
}

.menu-toggle {
  width: 2.8rem;
  height: 2.8rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.28rem;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 1.05rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.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-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.nav-cta {
  border: 1px solid rgba(124, 153, 136, 0.26);
  background: rgba(124, 153, 136, 0.08);
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .nav-cta:hover,
  .button:hover {
    transform: translateY(-2px);
  }
}

.nav-cta:focus-visible,
.button:focus-visible {
  transform: translateY(-2px);
}

.section {
  padding: 4.4rem 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  align-items: center;
  gap: 2rem;
  min-height: calc(100vh - 5rem);
  min-height: calc(100svh - 5rem);
  padding-top: 2rem;
  padding-bottom: 2.6rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7d7f61;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
}

.hero h1,
.section-heading h2,
.waitlist-copy h2,
.waitlist-copy h3 {
  margin: 0;
  line-height: 0.98;
  font-family: "Newsreader", serif;
  font-size: clamp(3rem, 6vw, 5.6rem);
  letter-spacing: 0;
  font-weight: 500;
}

.hero h1 .accent-word {
  color: #677686;
  display: inline-block;
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 700;
}

.hero h1 .rotating-word {
  min-width: 7.8em;
  white-space: nowrap;
  transition: opacity 180ms ease, transform 180ms ease;
}

.hero h1 .rotating-word.is-changing {
  opacity: 0;
  transform: translateY(0.08em);
}

.hero-text,
.hero-subtext,
.section-heading p,
.science-card p,
.waitlist-copy p,
.panel p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.03rem;
}

.hero-text {
  margin: 1.15rem 0 0.65rem;
  font-size: 1.08rem;
  max-width: 40rem;
}

.hero-subtext {
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.45rem 0 1rem;
}

.button-primary {
  border: 0;
  background: linear-gradient(135deg, #d4ceba, #8fa293);
  color: #1f2623;
  font-weight: 800;
  box-shadow: 0 16px 40px rgba(124, 153, 136, 0.16);
}

.status-pill {
  border: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.65);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
}

.hero-stage {
  display: grid;
  gap: 1rem;
}

.panel {
  background: linear-gradient(180deg, rgba(255, 251, 245, 0.95), rgba(247, 241, 233, 0.88));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.mission-panel {
  padding: 1.4rem;
}

.panel-topline,
.xp-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.panel-topline,
.status-pill,
.stage-id {
  color: #6f7d8a;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.mission-panel h2,
.mission-panel h3,
.science-card h3 {
  font-family: "Newsreader", serif;
  margin: 1rem 0 0.4rem;
  font-weight: 500;
}

.mission-panel h3 {
  font-size: 2rem;
}

.xp-block {
  margin: 1.2rem 0 1.5rem;
}

.xp-bar {
  margin-top: 0.6rem;
  width: 100%;
  height: 0.95rem;
  border-radius: 999px;
  background: rgba(111, 125, 138, 0.12);
  overflow: hidden;
}

.xp-bar span {
  display: block;
  width: 84%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8ba191, #ccc7a7);
  box-shadow: 0 0 28px rgba(124, 153, 136, 0.2);
}

.stage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.stage-card,
.science-card,
.waitlist-panel {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 251, 245, 0.72);
}

.stage-card {
  padding: 1rem;
}

.stage-card strong {
  display: block;
  margin: 0.25rem 0 0.3rem;
}

.stage-card small {
  color: var(--muted);
}

.stage-card.active {
  border-color: rgba(181, 184, 139, 0.42);
  box-shadow: inset 0 0 0 1px rgba(181, 184, 139, 0.1);
}

.ticker {
  overflow: hidden;
  border: 1px solid rgba(181, 184, 139, 0.26);
  border-radius: 999px;
  background: rgba(215, 208, 191, 0.24);
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  gap: 2.5rem;
  padding: 1rem 0;
  min-width: 200%;
  animation: ticker 24s linear infinite;
  font-family: "Newsreader", serif;
  color: #4d5656;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.section-heading {
  max-width: 48rem;
  margin-bottom: 2rem;
}

.section-heading h2,
.waitlist-copy h2,
.waitlist-copy h3 {
  font-size: clamp(2.4rem, 4vw, 4.4rem);
}

.science-card {
  padding: 1.35rem;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .science-card:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
    background: rgba(252, 248, 241, 0.96);
  }
}

.science-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.25rem;
  align-items: start;
}

.science-stack {
  display: grid;
  gap: 1rem;
}

.products {
  padding-top: 2.5rem;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 1rem;
  align-items: start;
}

.game-panel {
  padding: 0;
}

.loot-box-feature {
  display: grid;
  place-items: center;
}

.loot-box-button {
  position: relative;
  display: grid;
  place-items: center;
  --loot-line: rgba(35, 40, 42, 0.36);
  --loot-inner: #26194e;
  width: min(100%, 32rem);
  height: 29rem;
  margin: 0 auto;
  border: 0;
  background: transparent;
  color: inherit;
  touch-action: manipulation;
  transform-origin: center center;
}

.mystery-box-svg {
  width: min(100%, 32rem);
  height: auto;
  overflow: visible;
  filter: none;
  transform-box: fill-box;
  transform-origin: center center;
  animation: mystery-box-shake 1.7s ease-in-out infinite;
}

.loot-box-button.is-open .mystery-box-svg {
  animation: none;
}

.box-core,
.box-open-pieces {
  transform-box: fill-box;
  transform-origin: center center;
}

.box-open-pieces {
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease, transform 520ms cubic-bezier(0.2, 0.88, 0.22, 1);
}

.box-left-face,
.box-right-face,
.box-top-face,
.box-flap {
  stroke: var(--loot-line);
  stroke-linejoin: round;
  stroke-width: 4;
  transition: fill 260ms ease, filter 260ms ease, opacity 260ms ease, transform 520ms cubic-bezier(0.2, 0.88, 0.22, 1);
  transform-box: fill-box;
  animation: loot-prism-shift 5.2s linear infinite;
}

.box-left-face {
  fill: url(#lootPrismLeft);
}

.box-right-face {
  fill: url(#lootPrismRight);
  animation-delay: -1.7s;
}

.box-top-face {
  fill: url(#lootPrismTop);
  animation-delay: -3.4s;
  transform-origin: center center;
}

.box-flap {
  fill: url(#lootPrismFlap);
  opacity: 0;
  animation-delay: -2.6s;
}

.box-flap-back-left,
.box-flap-back-right,
.box-flap-front-left,
.box-flap-front-right {
  transform: scale(0.86);
}

.box-flap-back-left {
  transform-origin: right bottom;
}

.box-flap-back-right {
  transform-origin: left bottom;
}

.box-flap-front-left {
  transform-origin: right top;
}

.box-flap-front-right {
  transform-origin: left top;
}

.loot-box-button.is-open .box-top-face {
  fill: var(--loot-inner);
  animation: none;
  filter: none;
}

.loot-box-button.is-open .box-open-pieces,
.loot-box-button.is-open .box-flap {
  opacity: 1;
}

.loot-box-button.is-open .box-open-pieces,
.loot-box-button.is-open .box-flap {
  transform: translate(0, 0) scale(1);
}

.puzzle-note {
  position: fixed;
  z-index: 82;
  width: 10.8rem;
  min-height: 7.1rem;
  padding: 1.28rem 0.95rem 0.9rem;
  border: 1px solid rgba(121, 99, 43, 0.22);
  border-radius: 10px 10px 7px 7px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 42%),
    repeating-linear-gradient(180deg, transparent 0 1.3rem, rgba(128, 105, 45, 0.12) 1.3rem calc(1.3rem + 1px)),
    linear-gradient(180deg, #fff6a7 0%, #ffe978 100%);
  box-shadow:
    0 15px 26px rgba(33, 35, 31, 0.14),
    inset 0 0.6rem 0 rgba(255, 255, 255, 0.26);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  font-size: 0.88rem;
  line-height: 1.38;
  text-align: left;
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  transform: rotate(0deg);
  transition: left 520ms cubic-bezier(0.2, 0.86, 0.24, 1), top 520ms cubic-bezier(0.2, 0.86, 0.24, 1), transform 180ms ease, opacity 220ms ease;
}

.puzzle-note::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -0.45rem;
  width: 3.6rem;
  height: 0.9rem;
  border-radius: 3px;
  background: rgba(255, 244, 210, 0.74);
  box-shadow: 0 2px 5px rgba(74, 57, 28, 0.12);
  transform: translateX(-50%) rotate(-1deg);
}

.puzzle-note::after {
  content: "";
  position: absolute;
  width: 1.3rem;
  height: 1.3rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(221, 185, 69, 0.55));
}

.puzzle-note.puzzle-note--fold-top-left::after {
  top: 0;
  left: 0;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.puzzle-note.puzzle-note--fold-top-right::after {
  top: 0;
  right: 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.puzzle-note.puzzle-note--fold-bottom-left::after {
  bottom: 0;
  left: 0;
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.puzzle-note.puzzle-note--fold-bottom-right::after {
  right: 0;
  bottom: 0;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.puzzle-note.is-dragging {
  z-index: 90;
  cursor: grabbing;
  transform: rotate(0deg) scale(1.04);
  transition: none;
}

.puzzle-note.is-returning {
  pointer-events: none;
  opacity: 0;
  transition:
    left 440ms cubic-bezier(0.3, 0.02, 0.18, 1),
    top 440ms cubic-bezier(0.3, 0.02, 0.18, 1),
    transform 440ms cubic-bezier(0.3, 0.02, 0.18, 1),
    opacity 240ms ease 160ms;
}

.puzzle-note strong {
  position: absolute;
  top: 0.46rem;
  right: 0.58rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  margin: 0;
  border-radius: 999px;
  background: rgba(34, 34, 24, 0.78);
  color: #fff8c9;
  font-family: "Manrope", sans-serif;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1;
}

.puzzle-note span {
  display: block;
  padding-right: 1.35rem;
}

.puzzle-note.is-selected {
  border-color: rgba(103, 118, 134, 0.54);
  box-shadow: 0 18px 38px rgba(103, 118, 134, 0.2);
}

.puzzle-note.is-correct {
  border-color: rgba(99, 119, 93, 0.34);
  box-shadow: 0 18px 36px rgba(99, 119, 93, 0.18);
}

@keyframes mystery-box-shake {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  8% {
    transform: translate(-0.16rem, 0.02rem) rotate(-1.6deg);
  }

  16% {
    transform: translate(0.16rem, -0.02rem) rotate(1.6deg);
  }

  24% {
    transform: translate(-0.1rem, 0) rotate(-1deg);
  }

  32% {
    transform: translate(0.1rem, 0) rotate(1deg);
  }

  42% {
    transform: translate(0, 0) rotate(0deg);
  }
}

@keyframes loot-prism-shift {
  from {
    filter: hue-rotate(0deg) saturate(0.96) brightness(1.02);
  }

  to {
    filter: hue-rotate(360deg) saturate(0.96) brightness(1.02);
  }
}

.waitlist-panel {
  padding: 1.6rem;
}

.waitlist-panel {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1.2rem;
  background:
    radial-gradient(circle at top right, rgba(127, 143, 160, 0.11), transparent 28%),
    linear-gradient(180deg, rgba(251, 247, 241, 0.96), rgba(244, 238, 229, 0.88));
}

.waitlist-form {
  display: grid;
  gap: 0.9rem;
}

.waitlist-form label {
  display: grid;
  gap: 0.45rem;
}

.waitlist-form span {
  color: var(--muted);
}

.waitlist-form input,
.waitlist-form select {
  min-height: 3.35rem;
  border-radius: 16px;
  border: 1px solid rgba(78, 91, 96, 0.15);
  background-color: rgba(255, 253, 249, 0.82);
  color: var(--text);
  padding: 0.9rem 1rem;
  outline: none;
  font-size: 16px;
}

.waitlist-form select {
  appearance: none;
  padding-right: 3rem;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%235f695f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
}

.waitlist-form input:focus,
.waitlist-form select:focus {
  border-color: rgba(124, 153, 136, 0.5);
  box-shadow: 0 0 0 4px rgba(124, 153, 136, 0.08);
}

.site-footer {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 0 0 3rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  border-top: 1px solid rgba(78, 91, 96, 0.08);
}

.site-footer p {
  margin: 1rem 0 0;
  font-family: "Newsreader", serif;
  color: var(--text);
}

.site-footer span {
  margin-top: 1rem;
}

.form-note {
  margin: 0;
  color: var(--muted);
  min-height: 1.5rem;
}

.form-note.success {
  color: #63775d;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

@media (max-width: 1024px) {
  .hero,
  .science-layout,
  .product-layout,
  .waitlist-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 2rem;
  }

  .loot-box-feature {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    width: 100%;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem 0.8rem;
  }

  .brand {
    gap: 0.65rem;
  }

  .brand-mark {
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 14px;
  }

  .brand-copy span:last-child {
    font-size: 0.75rem;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-cta {
    display: none;
  }

  .site-nav {
    display: none;
    order: 3;
    width: 100%;
    margin: 0;
    padding: 0.15rem 0 0.2rem;
  }

  .site-header.menu-open .site-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav a,
  .site-nav .mobile-nav-cta {
    display: flex;
    width: 100%;
    min-height: 2.9rem;
    align-items: center;
    justify-content: flex-start;
    border-radius: 0;
    background: transparent;
  }

  .site-nav a {
    border: 0;
    border-top: 1px solid rgba(78, 91, 96, 0.08);
    padding: 0 0.25rem;
  }

  .site-nav .mobile-nav-cta {
    justify-content: center;
    margin-top: 0;
    min-height: 2.9rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #d4ceba, #8fa293);
    color: #1f2623;
    font-weight: 800;
  }

  .button {
    min-height: 2.75rem;
    padding: 0.7rem 0.95rem;
    font-size: 0.92rem;
  }

  .section {
    width: min(calc(100% - 1.5rem), var(--max-width));
    padding: 3.1rem 0;
  }

  .hero {
    gap: 1.4rem;
    padding-top: 1.7rem;
    padding-bottom: 2rem;
  }

  .site-footer {
    width: min(calc(100% - 1.5rem), var(--max-width));
    padding-bottom: 2rem;
    flex-direction: column;
  }

  .hero h1,
  .section-heading h2,
  .waitlist-copy h2,
  .waitlist-copy h3 {
    font-size: clamp(2.35rem, 11vw, 3.35rem);
    line-height: 1;
  }

  .hero-text,
  .hero-subtext,
  .section-heading p,
  .science-card p,
  .waitlist-copy p,
  .panel p {
    font-size: 0.98rem;
    line-height: 1.58;
  }

  .stage-grid,
  .product-layout {
    grid-template-columns: 1fr;
  }

  .ticker-track {
    gap: 1.5rem;
    font-size: 0.9rem;
  }

  .drop-zone {
    width: 30vw;
    height: 22vh;
  }

  .puzzle-note {
    width: 9.1rem;
    min-height: 6.35rem;
    font-size: 0.78rem;
  }
}

@media (pointer: coarse) {
  .menu-toggle,
  .button,
  .nav-cta,
  .site-nav a,
  .loot-box-button,
  .puzzle-note {
    min-width: 44px;
    min-height: 44px;
  }

  .puzzle-note {
    cursor: default;
  }
}

@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;
  }
}

@media (max-width: 520px) {
  .brand-copy span:last-child {
    display: none;
  }

  .hero-actions,
  .hero-actions .button,
  .waitlist-form .button {
    width: 100%;
  }

  .game-panel,
  .mission-panel,
  .waitlist-panel,
  .science-card {
    border-radius: 18px;
    padding: 1rem;
  }

  .loot-box-button {
    width: min(100%, 22rem);
    height: 20.2rem;
    margin-top: 0.9rem;
  }

  .mystery-box-svg {
    width: min(100%, 21rem);
  }

  .panel-topline,
  .xp-labels {
    gap: 0.55rem;
  }

  .status-pill {
    padding: 0.45rem 0.7rem;
  }

  .waitlist-form input,
  .waitlist-form select {
    min-height: 3.1rem;
  }
}

@media (max-width: 380px) {
  .site-header {
    gap: 0.6rem;
  }

  .brand-mark {
    width: 2.1rem;
    height: 2.1rem;
  }

  .brand-copy strong {
    font-size: 0.95rem;
  }

  .menu-toggle {
    width: 2.55rem;
    height: 2.55rem;
  }
}
