@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;700;800&display=swap");

:root {
  --bg-0: #120905;
  --bg-1: #1d120c;
  --bg-2: #2d1d13;
  --surface: rgba(33, 20, 14, 0.9);
  --surface-2: rgba(58, 36, 22, 0.76);
  --line: rgba(184, 135, 78, 0.22);
  --cyan: #92d0da;
  --cyan-2: #d9f0f3;
  --orange: #ff8c42;
  --orange-2: #ffd09c;
  --lime: #f2c96d;
  --text: #f7e6c3;
  --text-soft: rgba(236, 217, 183, 0.78);
  --shadow: 0 36px 90px rgba(0, 0, 0, 0.46);
  --container: 1260px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 50% -12%, rgba(255, 160, 72, 0.18), transparent 24%),
    radial-gradient(circle at 50% 18%, rgba(112, 74, 38, 0.16), transparent 36%),
    linear-gradient(90deg, rgba(6, 3, 2, 0.86) 0, rgba(6, 3, 2, 0.1) 14%, rgba(6, 3, 2, 0.1) 86%, rgba(6, 3, 2, 0.86) 100%),
    linear-gradient(180deg, #120905 0%, #21130d 28%, #2a1b13 56%, #120905 100%);
  color: var(--text);
  font-family: "Manrope", "Segoe UI", sans-serif;
}

body {
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: 0;
  opacity: 0.38;
  background:
    repeating-linear-gradient(120deg, rgba(255, 226, 173, 0.018) 0 2px, transparent 2px 24px),
    repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0 1px, transparent 1px 48px),
    radial-gradient(circle at 15% 18%, rgba(215, 149, 82, 0.08), transparent 22%),
    radial-gradient(circle at 80% 28%, rgba(255, 190, 108, 0.06), transparent 20%);
}

body::after {
  z-index: 1;
  background:
    radial-gradient(circle at 50% 24%, transparent 0, transparent 42%, rgba(0, 0, 0, 0.48) 100%);
}

a {
  color: inherit;
}

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

.scanlines,
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.scanlines {
  z-index: 2;
  opacity: 0.08;
  background: repeating-linear-gradient(180deg, rgba(255, 248, 221, 0.03) 0 1px, transparent 1px 5px);
}

.noise {
  z-index: 3;
  opacity: 0.2;
  background-image:
    radial-gradient(rgba(255, 221, 167, 0.11) 0.8px, transparent 0.8px),
    radial-gradient(rgba(117, 73, 34, 0.11) 0.9px, transparent 0.9px);
  background-size: 24px 24px, 34px 34px;
  background-position: 0 0, 12px 16px;
}

.page,
.topbar,
.footer {
  position: relative;
  z-index: 5;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background:
    linear-gradient(180deg, rgba(18, 9, 5, 0.94), rgba(18, 9, 5, 0.52)),
    linear-gradient(90deg, rgba(150, 104, 53, 0.08), transparent 18%, transparent 82%, rgba(150, 104, 53, 0.08));
  border-bottom: 1px solid rgba(184, 135, 78, 0.18);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
}

.topbar-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  white-space: nowrap;
  text-transform: uppercase;
}

.brand-mark {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 34%, #fff6d2, #f5c96d 40%, #d56f2b 72%, #4f2510 100%);
  box-shadow: 0 0 18px rgba(245, 201, 109, 0.42);
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: rgba(247, 230, 195, 0.86);
  font-size: 14px;
}

.mission-hero {
  padding: 42px 0 24px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(380px, 0.92fr);
  gap: 34px;
  align-items: center;
}

.hero-copy {
  position: relative;
  top: auto;
  align-self: start;
}

.hero-copy > * {
  opacity: 0;
  animation: reveal-rise 0.8s ease forwards;
}

.hero-copy > *:nth-child(1) { animation-delay: 0.06s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.14s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.22s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.3s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.38s; }

.eyebrow,
.section-kicker,
.hud-label,
.player-chip p,
.platformer-overlay__kicker,
.winner-modal__label,
.system-label,
.brief-list span,
.course-billboard figcaption {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  width: fit-content;
  min-height: 42px;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid rgba(191, 143, 77, 0.34);
  background:
    linear-gradient(180deg, rgba(79, 49, 28, 0.86), rgba(46, 28, 18, 0.94));
  color: #f7dca6;
  box-shadow: inset 0 1px 0 rgba(255, 227, 162, 0.12);
}

h1,
h2,
h3,
.hud-item strong,
.player-chip strong,
.platformer-overlay strong {
  margin: 0;
  font-family: inherit;
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.02em;
}

h1 {
  margin-top: 18px;
  max-width: 10ch;
  font-size: clamp(56px, 6.9vw, 108px);
  text-shadow: 0 14px 32px rgba(0, 0, 0, 0.34);
}

.hero-description,
.hero-tip,
.section-copy p,
.brief-list p,
.system-row p,
.final-copy p,
.hud-item span,
.join-card__status,
.join-card__meta,
.player-chip span,
.platformer-overlay span {
  color: var(--text-soft);
  line-height: 1.7;
  font-size: clamp(15px, 1.4vw, 18px);
}

.hero-description {
  margin: 18px 0 0;
  max-width: 37rem;
}

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

.hero-visual {
  display: grid;
  gap: 16px;
  align-content: start;
}

.hero-visual__frame {
  margin: 0;
  padding: 18px;
  border-radius: 36px;
  border: 1px solid rgba(191, 143, 77, 0.22);
  background:
    linear-gradient(180deg, rgba(70, 44, 28, 0.9), rgba(20, 12, 8, 0.96));
  box-shadow: var(--shadow);
}

.hero-visual__frame img {
  width: 100%;
  border-radius: 24px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.hero-visual__caption {
  margin: 0;
  max-width: 34rem;
  color: rgba(245, 222, 187, 0.76);
  font-size: 14px;
  line-height: 1.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #1a0d06;
  background: linear-gradient(135deg, #ffd98d, #ffb450 52%, #ff7e3e);
  box-shadow: 0 18px 36px rgba(255, 135, 62, 0.28);
}

.btn-secondary {
  color: var(--text);
  background: rgba(44, 27, 18, 0.84);
  border-color: rgba(191, 143, 77, 0.22);
}

.hero-bullets {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.hero-bullets li {
  position: relative;
  padding-left: 34px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 230, 193, 0.92);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 16px;
  height: 16px;
  transform: rotate(45deg);
  border-radius: 3px;
  background: linear-gradient(135deg, #ffe0a0, #d6883b);
  box-shadow:
    0 0 0 4px rgba(214, 136, 59, 0.12),
    0 0 18px rgba(255, 162, 74, 0.18);
}

.hero-tip {
  margin-top: 18px;
  max-width: 34rem;
}

.torch-rails {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.torch-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.94;
}

.torch {
  position: fixed;
  width: 72px;
  height: 240px;
  z-index: 1;
}

.torch--left {
  left: 8px;
}

.torch--right {
  right: 8px;
  transform: scaleX(-1);
}

.torch--upper {
  top: 132px;
}

.torch--lower {
  bottom: 92px;
}

.torch__mount,
.torch__flame,
.torch__glow {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.torch__mount {
  bottom: 0;
  width: 18px;
  height: 132px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, #936339 0%, #472413 56%, #241109 100%);
  box-shadow:
    0 0 0 1px rgba(255, 220, 160, 0.08),
    inset 0 0 0 1px rgba(0, 0, 0, 0.24);
}

.torch__mount::before,
.torch__mount::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 40px;
  height: 10px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg, #704024, #2e160b);
}

.torch__mount::before {
  top: 18px;
}

.torch__mount::after {
  top: 78px;
}

.torch__glow {
  top: -18px;
  width: 196px;
  height: 196px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 214, 145, 0.26) 0, rgba(255, 176, 73, 0.28) 18%, rgba(255, 116, 33, 0.22) 42%, rgba(255, 116, 33, 0.08) 66%, transparent 100%);
  filter: blur(18px);
  animation: torch-glow 2.8s ease-in-out infinite;
}

.torch__flame {
  top: -8px;
  width: 52px;
  height: 92px;
  border-radius: 50% 50% 42% 42%;
  transform-origin: 50% 100%;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 251, 224, 0.98), rgba(255, 222, 146, 0.9) 18%, rgba(255, 138, 72, 0.84) 48%, rgba(119, 37, 9, 0.52) 100%);
  clip-path: polygon(50% 0, 74% 16%, 92% 42%, 84% 78%, 60% 100%, 39% 100%, 14% 80%, 8% 42%, 26% 16%);
  filter: blur(0.6px) drop-shadow(0 0 26px rgba(255, 153, 66, 0.52));
  animation: torch-flame 1.9s ease-in-out infinite alternate;
  opacity: 0.9;
}

.torch__flame::before,
.torch__flame::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  pointer-events: none;
}

.torch__flame::before {
  top: 9px;
  width: 28px;
  height: 48px;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 252, 237, 0.98), rgba(255, 224, 150, 0.86) 38%, rgba(255, 159, 84, 0) 78%);
  filter: blur(1px);
  opacity: 0.96;
}

.torch__flame::after {
  bottom: 10px;
  width: 44px;
  height: 32px;
  background:
    radial-gradient(circle, rgba(255, 142, 56, 0.52) 0, rgba(255, 109, 44, 0.12) 56%, transparent 100%);
  filter: blur(5px);
}

.game-shell {
  position: relative;
  padding: 18px;
  border-radius: 40px;
  border: 1px solid rgba(191, 143, 77, 0.22);
  background:
    linear-gradient(135deg, rgba(76, 48, 29, 0.3), transparent 22%),
    radial-gradient(circle at 82% 0%, rgba(255, 164, 78, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(32, 19, 13, 0.98), rgba(15, 9, 7, 0.98));
  box-shadow: var(--shadow);
  animation: none;
}

.game-shell::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 30px;
  border: 1px solid rgba(219, 171, 98, 0.1);
  pointer-events: none;
}

.game-shell::after {
  content: "";
  position: absolute;
  inset: 28px;
  border-radius: 24px;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0, rgba(255, 215, 153, 0.03) 10%, transparent 20%, transparent 80%, rgba(255, 215, 153, 0.03) 90%, transparent 100%);
  mix-blend-mode: screen;
}

.game-drawer-section {
  padding: 0 0 34px;
}

.game-drawer-section .container {
  width: calc(100% - 40px);
  max-width: none;
}

.game-drawer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-26px);
  pointer-events: none;
  transition:
    max-height 0.85s ease,
    opacity 0.4s ease,
    transform 0.5s ease,
    margin-top 0.4s ease;
}

.game-drawer.is-open {
  max-height: 2000px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.game-drawer__inner {
  padding-top: 6px;
}

.game-drawer.is-open .game-shell {
  animation: vault-in 0.85s ease both;
}

.game-hud {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.hud-item,
.join-card,
.player-chip,
.platformer-stage,
.brief-list article,
.system-row,
.final-shell {
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(58, 36, 22, 0.92), rgba(24, 14, 9, 0.96)),
    linear-gradient(90deg, rgba(255, 214, 145, 0.03), transparent 18%, transparent 82%, rgba(255, 214, 145, 0.03));
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.28);
}

.hud-item {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 14px 16px;
}

.hud-item-offer {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(14, 38, 31, 0.96), rgba(11, 29, 24, 0.92));
}

.hud-label {
  margin: 0;
  font-size: 9px;
  font-weight: 800;
  color: rgba(247, 221, 170, 0.58);
}

.hud-item strong {
  display: block;
  margin-top: 0;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.08;
}

.hud-item span {
  display: block;
  margin-top: 0;
  font-size: 11px;
  line-height: 1.45;
}

.join-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(140px, auto) minmax(260px, 360px) minmax(180px, 220px) minmax(0, 1fr);
  gap: 12px 14px;
  align-items: center;
  justify-items: stretch;
  padding: 14px 16px;
}

.join-card__label {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247, 221, 170, 0.58);
  text-align: left;
}

.join-card__input {
  width: 100%;
  justify-self: stretch;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(191, 143, 77, 0.22);
  background: rgba(20, 12, 8, 0.9);
  color: #fff1cf;
  font: inherit;
  font-size: 15px;
  box-shadow: inset 0 0 0 1px rgba(255, 214, 145, 0.04);
}

.join-card__input::placeholder {
  color: rgba(240, 216, 172, 0.42);
}

.join-card__input:focus {
  outline: none;
  border-color: rgba(255, 192, 110, 0.48);
  box-shadow:
    0 0 0 1px rgba(255, 192, 110, 0.2),
    0 0 0 6px rgba(255, 192, 110, 0.08);
}

.join-card .hud-button {
  justify-self: stretch;
  width: 100%;
}

.hud-button {
  min-width: 0;
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffe3a4, #ffb450 54%, #ff7d3d);
  color: #1d0e06;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  box-shadow: 0 18px 42px rgba(255, 133, 54, 0.34);
}

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

.hud-button:disabled {
  cursor: default;
  opacity: 0.5;
  transform: none;
  box-shadow: none;
}

.join-card__status,
.join-card__meta {
  margin: 0;
  align-self: center;
  font-size: 13px;
  line-height: 1.5;
}

.join-card__meta {
  color: rgba(223, 255, 236, 0.56);
}

.platformer-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin-top: 16px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(74, 47, 29, 0.56), rgba(22, 13, 8, 0.84));
}

.platformer-stage__meta {
  display: grid;
  gap: 10px;
  align-content: start;
}

.course-billboard {
  padding: 12px;
  background: linear-gradient(165deg, rgba(72, 45, 28, 0.96), rgba(28, 16, 10, 0.92));
  border-radius: 24px;
  border: 1px solid rgba(191, 143, 77, 0.16);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
}

.course-billboard img {
  border-radius: 16px;
  aspect-ratio: 1 / 1.08;
  object-fit: cover;
}

.course-billboard figcaption {
  margin-top: 10px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(241, 212, 158, 0.6);
}

.player-chip {
  padding: 14px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(73, 46, 28, 0.82), rgba(28, 17, 10, 0.94));
}

.player-chip::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  pointer-events: none;
}

.player-chip--cyan::before {
  background: radial-gradient(circle at 18% 14%, rgba(146, 208, 218, 0.5), transparent 52%);
}

.player-chip--orange::before {
  background: radial-gradient(circle at 82% 14%, rgba(255, 140, 66, 0.52), transparent 52%);
}

.player-chip p,
.player-chip strong,
.player-chip span {
  position: relative;
  z-index: 1;
}

.player-chip p {
  margin: 0;
  font-size: 9px;
  font-weight: 700;
  color: rgba(223, 255, 236, 0.64);
}

.player-chip strong {
  display: block;
  margin-top: 6px;
  font-size: 19px;
  color: #fff0cb;
}

.player-chip span {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: rgba(240, 216, 172, 0.68);
}

.player-chip--compact {
  min-width: 196px;
  max-width: 240px;
  padding: 12px 14px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.player-chip--compact p {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.player-chip--compact strong {
  margin-top: 4px;
  font-size: 17px;
}

.player-chip--compact span {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.5;
}

.player-chip.is-active {
  border-color: rgba(158, 240, 213, 0.24);
  box-shadow: 0 0 0 1px rgba(158, 240, 213, 0.08), 0 20px 42px rgba(2, 10, 7, 0.24);
}

.player-chip.is-spectator {
  opacity: 0.76;
}

.player-chip.is-empty {
  opacity: 0.62;
}

.platformer-viewport {
  position: relative;
  min-height: 0;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid rgba(191, 143, 77, 0.16);
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 185, 101, 0.12), transparent 20%),
    radial-gradient(circle at 84% 14%, rgba(255, 98, 45, 0.16), transparent 20%),
    linear-gradient(180deg, #25160f 0%, #16100c 46%, #080605 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 214, 145, 0.04);
}

.platformer-topbar {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 18px;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  pointer-events: none;
}

.platformer-feed {
  display: grid;
  gap: 6px;
  max-width: min(640px, 100%);
  padding: 14px 18px;
  border-radius: 20px;
  border: 1px solid rgba(191, 143, 77, 0.16);
  background:
    linear-gradient(180deg, rgba(33, 19, 12, 0.9), rgba(18, 10, 7, 0.94));
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.platformer-feed__label {
  margin: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 199, 111, 0.66);
}

.platformer-feed strong {
  font-size: clamp(18px, 2vw, 28px);
  color: #fff0cf;
}

.platformer-feed span {
  margin: 0;
  color: rgba(244, 222, 187, 0.82);
  font-size: 13px;
  line-height: 1.55;
}

.platformer-roster {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

#platformer-canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: transparent;
}

.platformer-overlay,
.level-toast {
  position: absolute;
  z-index: 4;
}

.platformer-overlay {
  left: 28px;
  top: 122px;
  max-width: min(430px, calc(100% - 56px));
  display: grid;
  gap: 10px;
  padding: 18px 22px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(33, 19, 12, 0.88), rgba(18, 10, 7, 0.92));
  border: 1px solid rgba(191, 143, 77, 0.16);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.platformer-overlay.is-hidden {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.platformer-overlay__kicker {
  margin: 0;
  font-size: 10px;
  font-weight: 800;
  color: rgba(245, 199, 111, 0.66);
}

.platformer-overlay strong {
  font-size: clamp(28px, 3vw, 40px);
  color: #fff0cf;
}

.platformer-overlay span {
  font-size: 14px;
  margin: 0;
  color: rgba(244, 222, 187, 0.82);
}

.level-toast {
  left: 50%;
  top: 102px;
  bottom: auto;
  transform: translateX(-50%);
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(28, 16, 10, 0.94);
  border: 1px solid rgba(191, 143, 77, 0.16);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff1cf;
  opacity: 0;
  text-align: center;
  max-width: min(88vw, 760px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.level-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.winner-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
}

.winner-modal.is-visible {
  display: block;
}

.winner-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 4, 3, 0.72);
  backdrop-filter: blur(14px);
}

.winner-modal__card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(520px, calc(100% - 32px));
  transform: translate(-50%, -50%);
  padding: 30px;
  border-radius: 30px;
  border: 1px solid rgba(233, 179, 96, 0.28);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 176, 79, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(42, 24, 15, 0.98), rgba(14, 9, 7, 0.98));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
  text-align: center;
}

.winner-modal__label {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  color: #f5c76d;
}

.winner-modal__card h2 {
  margin-top: 14px;
  font-size: clamp(48px, 7vw, 76px);
}

.winner-modal__card p {
  margin: 14px auto 0;
  max-width: 28rem;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.6;
}

.winner-modal__close {
  margin-top: 24px;
  min-width: 180px;
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd98d, #ffb450, #ff7e3e);
  color: #170b05;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.mission-brief,
.systems,
.final-cta {
  padding: 44px 0 60px;
}

.brief-layout,
.systems-layout,
.final-shell,
.pricing-shell {
  display: grid;
  gap: 24px;
}

.brief-layout,
.systems-layout {
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  align-items: start;
}

.brief-layout--cards-only {
  grid-template-columns: 1fr;
}

.section-copy h2,
.final-copy h2,
.pricing-copy h2 {
  margin-top: 16px;
  max-width: 12ch;
  font-size: clamp(38px, 4.8vw, 70px);
  color: #fff0cf;
}

.section-copy p:last-child,
.final-copy p,
.pricing-copy p {
  margin-top: 16px;
  max-width: 38rem;
}

.brief-list,
.systems-rail {
  display: grid;
  gap: 14px;
}

.course-brief-stack {
  display: grid;
  gap: 14px;
  align-content: start;
}

.course-billboard--inline img {
  aspect-ratio: 16 / 10;
}

.brief-list article {
  padding: 22px;
}

.brief-list span {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffe0a0, #d6883b);
  color: #241108;
  font-size: 11px;
  font-weight: 800;
}

.brief-list h3,
.system-row h3 {
  margin-top: 16px;
  font-size: clamp(28px, 3vw, 42px);
}

.brief-list p {
  margin: 12px 0 0;
}

.system-row {
  padding: 24px;
}

.system-label {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  color: rgba(223, 255, 236, 0.64);
}

.system-row p:last-child {
  margin: 12px 0 0;
}

.pricing-shell {
  grid-template-columns: 1fr;
  align-items: start;
  width: calc(100% - 40px);
  max-width: none;
  padding: 32px;
  background:
    linear-gradient(180deg, rgba(74, 47, 29, 0.86), rgba(24, 15, 10, 0.94));
}

.pricing-status {
  color: rgba(255, 223, 164, 0.86);
}

.tariff-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
  width: 100%;
}

.tariff-card {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 14px;
  height: 100%;
  padding: 24px;
  border-radius: 30px;
  border: 1px solid rgba(235, 179, 96, 0.16);
  background:
    radial-gradient(circle at 14% 14%, rgba(255, 197, 111, 0.1), transparent 26%),
    linear-gradient(180deg, rgba(59, 35, 21, 0.96), rgba(26, 16, 11, 0.96));
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.26);
}

.tariff-card--base {
  border-color: rgba(210, 166, 101, 0.28);
}

.tariff-card--solo {
  border-color: rgba(244, 182, 92, 0.3);
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 211, 124, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(73, 43, 24, 0.96), rgba(27, 16, 11, 0.96));
}

.tariff-card--duo {
  border-color: rgba(150, 202, 222, 0.22);
  background:
    radial-gradient(circle at 82% 12%, rgba(146, 208, 218, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(40, 27, 22, 0.96), rgba(19, 13, 10, 0.96));
}

.tariff-card.is-locked {
  opacity: 0.88;
}

.tariff-card.is-unlocked {
  box-shadow:
    0 0 0 1px rgba(255, 209, 125, 0.12),
    0 26px 60px rgba(0, 0, 0, 0.28);
}

.tariff-card__eyebrow {
  margin: 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
  color: rgba(245, 199, 111, 0.68);
}

.tariff-card h3 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  color: #fff1d1;
}

.tariff-card__price-wrap {
  display: grid;
  gap: 6px;
}

.tariff-card__price-old {
  margin: 0;
  color: rgba(241, 225, 195, 0.42);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(255, 180, 94, 0.5);
}

.tariff-card__price {
  margin: 0;
  font-family: inherit;
  font-size: clamp(30px, 3vw, 48px);
  font-weight: 800;
  color: #ffd493;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.tariff-card__copy {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
  font-size: 15px;
}

.tariff-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.tariff-card__actions .btn {
  flex: 1 1 180px;
}

.tariff-card__actions .btn-primary {
  box-shadow:
    0 0 0 1px rgba(255, 218, 161, 0.24),
    0 20px 40px rgba(255, 132, 58, 0.34);
}

.final-shell {
  grid-template-columns: minmax(300px, 1fr) auto;
  align-items: center;
  padding: 32px;
  background:
    linear-gradient(180deg, rgba(74, 47, 29, 0.86), rgba(24, 15, 10, 0.94));
}

.reward-unlock[hidden] {
  display: none !important;
}

.reward-unlock {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
  margin-top: 8px;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(235, 179, 96, 0.22);
  background:
    radial-gradient(circle at 12% 14%, rgba(255, 190, 96, 0.12), transparent 24%),
    radial-gradient(circle at 88% 22%, rgba(255, 118, 52, 0.1), transparent 24%),
    rgba(33, 19, 12, 0.86);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.reward-unlock__label {
  margin: 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  color: rgba(245, 199, 111, 0.66);
}

.reward-unlock h3 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
}

.reward-unlock p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.reward-unlock__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.reward-unlock__meta {
  font-size: 14px;
  color: rgba(235, 255, 244, 0.62);
}

.footer {
  padding: 10px 0 34px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  border-top: 1px solid rgba(184, 135, 78, 0.14);
  padding-top: 18px;
  color: rgba(247, 223, 177, 0.64);
  font-size: 13px;
}

@keyframes torch-flame {
  0% {
    transform: translateX(-50%) scale(0.96) rotate(-3deg);
  }
  50% {
    transform: translateX(-50%) scale(1.04, 1.08) rotate(2deg);
  }
  100% {
    transform: translateX(-50%) scale(0.98, 1.02) rotate(-1deg);
  }
}

@keyframes torch-glow {
  0%,
  100% {
    opacity: 0.62;
    transform: translateX(-50%) scale(0.96);
  }
  50% {
    opacity: 0.96;
    transform: translateX(-50%) scale(1.08);
  }
}

@keyframes reveal-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes vault-in {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  text-decoration: none;
}

@media (max-width: 1180px) {
  .hero-layout,
  .brief-layout,
  .systems-layout,
  .final-shell,
  .pricing-shell {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    position: relative;
    top: auto;
  }

  .platformer-stage {
    grid-template-columns: 1fr;
  }

  .platformer-topbar {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 900px) {
  .game-hud {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .join-card {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 220px);
  }

  .join-card__label,
  .join-card__meta {
    grid-column: 1 / -1;
  }

  .platformer-feed {
    max-width: 100%;
  }

  .platformer-roster {
    justify-content: stretch;
  }

  .platformer-roster .player-chip {
    flex: 1 1 220px;
    max-width: none;
  }

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

@media (max-width: 760px) {
  .container {
    width: min(var(--container), calc(100% - 28px));
  }

  .game-drawer-section .container {
    width: calc(100% - 28px);
  }

  .pricing-shell {
    width: calc(100% - 28px);
  }

  .torch-particles,
  .torch {
    display: none;
  }

  .topbar-inner {
    min-height: 68px;
    flex-wrap: wrap;
    padding: 10px 0 12px;
  }

  .nav {
    gap: 14px;
    width: 100%;
  }

  .mission-hero {
    padding-top: 20px;
  }

  .game-shell {
    padding: 14px;
  }

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

  .join-card {
    grid-template-columns: 1fr;
  }

  .platformer-overlay {
    left: 16px;
    top: 180px;
    max-width: calc(100% - 32px);
    padding: 14px 16px;
  }

  .platformer-topbar {
    left: 12px;
    right: 12px;
    top: 12px;
  }

  .platformer-feed {
    padding: 12px 14px;
  }

  .platformer-feed strong {
    font-size: 18px;
  }

  .platformer-roster {
    gap: 8px;
  }

  .player-chip--compact {
    min-width: 0;
  }

  .level-toast {
    top: 148px;
    max-width: calc(100% - 28px);
  }

  .mission-brief,
  .systems,
  .final-cta {
    padding: 34px 0 44px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  .hero-copy > *,
  .game-shell,
  .torch-particles,
  .torch__glow,
  .torch__flame {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .torch-particles {
    display: none !important;
  }

  .btn,
  .hud-button,
  .platformer-overlay,
  .level-toast {
    transition: none !important;
  }
}
