@font-face {
  font-family: "Vaillant16";
  src: url("../assets/fonts/Vaillant16-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vaillant16";
  src: url("../assets/fonts/Vaillant16-Book.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vaillant16";
  src: url("../assets/fonts/Vaillant16-Demi.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vaillant16";
  src: url("../assets/fonts/Vaillant16-Heavy.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #010a11;
  --bg-deep: #00070c;
  --panel: rgba(0, 18, 27, 0.82);
  --panel-solid: #00121b;
  --line: rgba(17, 151, 152, 0.35);
  --teal: #119798;
  --teal-bright: #1cc4c6;
  --teal-soft: #8fd7d8;
  --gold: #f5a948;
  --gold-soft: #ffc56d;
  --green: #6fdf6a;
  --text: #ffffff;
  --muted: #9bb4bc;
  --radius: 10px;
  --max: 1280px;
  --header-h: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg-deep);
  font-family: "Vaillant16", "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

/* ---------- Gate ---------- */

.gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 35%, rgba(28, 196, 198, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(245, 169, 72, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 45% 35% at 15% 75%, rgba(17, 151, 152, 0.16) 0%, transparent 50%),
    linear-gradient(160deg, #02080e 0%, #031820 42%, #010a11 100%);
}

.gate-glow {
  position: absolute;
  width: min(520px, 80vw);
  height: min(520px, 80vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(28, 196, 198, 0.18) 0%, transparent 70%);
  filter: blur(20px);
  animation: gate-pulse 5s ease-in-out infinite;
  pointer-events: none;
}

.gate-form {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  width: min(360px, 100%);
  animation: gate-in 0.7s ease both;
}

.gate-logo {
  width: min(220px, 70vw);
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
}

.gate-input {
  width: 100%;
  padding: 16px 18px;
  color: #fff;
  font: inherit;
  font-size: 16px;
  letter-spacing: 0.28em;
  text-align: center;
  background: rgba(0, 14, 22, 0.72);
  border: 1px solid rgba(28, 196, 198, 0.4);
  border-radius: 10px;
  outline: none;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gate-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.04em;
}

.gate-input:focus {
  border-color: var(--teal-bright);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.35),
    0 0 0 3px rgba(28, 196, 198, 0.18);
}

.gate-input.is-error {
  border-color: #e25b5b;
  animation: gate-shake 0.35s ease;
}

.gate.is-leaving {
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

@keyframes gate-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes gate-pulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

@keyframes gate-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-6px);
  }
  75% {
    transform: translateX(6px);
  }
}

.app[hidden] {
  display: none !important;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: #000b12;
  border-bottom: 1px solid rgba(17, 151, 152, 0.28);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.header-inner {
  max-width: var(--max);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.brand img {
  height: 32px;
  width: auto;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 22px;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--teal-bright);
}

.main-nav a.nav-gold {
  color: var(--gold);
}

.main-nav a.nav-gold:hover,
.main-nav a.nav-gold.is-active {
  color: var(--gold-soft);
}

.main-nav a.nav-gold.is-active::after {
  background: var(--gold);
  box-shadow: 0 0 10px rgba(245, 169, 72, 0.55);
}

.main-nav a.is-active {
  color: var(--teal-bright);
}

.main-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--teal-bright);
  box-shadow: 0 0 10px rgba(28, 196, 198, 0.7);
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(28, 196, 198, 0.55);
}

.user-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.user-text strong {
  font-size: 13px;
  font-weight: 600;
}

.user-text small {
  color: #c5d5db;
  font-size: 11px;
}

.chevron {
  width: 10px;
  height: 8px;
  opacity: 0.75;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    url("../assets/images/hero-bg.jpg") center 40% / cover no-repeat;
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(0, 6, 12, 0.82) 0%,
      rgba(0, 10, 18, 0.68) 32%,
      rgba(0, 12, 20, 0.35) 58%,
      rgba(0, 8, 14, 0.25) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 6, 12, 0.35) 0%,
      rgba(0, 8, 14, 0.12) 40%,
      transparent 62%
    );
}

.hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55%;
  background: linear-gradient(
    180deg,
    rgba(1, 10, 17, 0) 0%,
    rgba(1, 12, 20, 0.28) 30%,
    rgba(1, 12, 20, 0.72) 65%,
    #010a11 100%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  min-height: 420px;
  padding: 40px 28px 100px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.hero-copy {
  max-width: 560px;
  justify-self: start;
  text-align: left;
  animation: copy-in 0.9s ease 0.1s both;
}

.hero-copy h1 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.15;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.hero-lead {
  max-width: 520px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.hero-logo-wrap {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.program-logo {
  width: min(100%, 300px);
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55));
  animation: logo-in 0.9s ease both;
}

.countdown-label {
  margin-bottom: 10px;
  color: var(--teal-bright);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.countdown-grid {
  display: flex;
  gap: 0;
  align-items: stretch;
}

.countdown-cell {
  position: relative;
  min-width: 88px;
  padding: 10px 18px;
  text-align: center;
  background: rgba(0, 8, 14, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.countdown-cell + .countdown-cell {
  border-left: 0;
}

.countdown-cell:first-child {
  border-radius: 8px 0 0 8px;
}

.countdown-cell:last-child {
  border-radius: 0 8px 8px 0;
}

.countdown-cell + .countdown-cell::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 1px;
  background: rgba(255, 255, 255, 0.28);
}

.countdown-value {
  display: block;
  color: var(--gold);
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-shadow: 0 0 18px rgba(245, 169, 72, 0.35);
}

.countdown-unit {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Main panel ---------- */

.main-panel {
  position: relative;
  isolation: isolate;
  padding: 0 0 40px;
  background: linear-gradient(
    180deg,
    #010a11 0%,
    #021820 18%,
    #04222c 42%,
    #031820 72%,
    #010a11 100%
  );
}

.progress-card,
.content-grid,
.goal-bar {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.progress-card {
  z-index: 2;
  margin-top: -72px;
  padding-top: 16px;
  padding-bottom: 16px;
  background: linear-gradient(180deg, rgba(2, 24, 34, 0.97), rgba(1, 16, 24, 0.96));
  border: 1px solid rgba(28, 196, 198, 0.4);
  border-radius: var(--radius);
  box-shadow:
    0 22px 56px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(28, 196, 198, 0.08),
    0 0 36px rgba(17, 151, 152, 0.12);
  backdrop-filter: blur(14px);
}

.progress-head,
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.progress-head {
  padding: 0 18px;
}

.progress-head h2,
.panel h2 {
  color: var(--teal-bright);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.text-link {
  color: var(--teal-bright);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.text-link:hover {
  color: #fff;
}

.progress-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
  align-items: center;
  padding: 0 18px;
}

.progress-meter {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ring {
  --p: 72;
  position: relative;
  width: 96px;
  height: 96px;
  flex: 0 0 auto;
}

.ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-track,
.ring-value {
  fill: none;
  stroke-width: 8;
}

.ring-track {
  stroke: rgba(255, 255, 255, 0.1);
}

.ring-value {
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-dasharray: 326.7;
  stroke-dashoffset: calc(326.7 - (326.7 * var(--p) / 100));
  filter: drop-shadow(0 0 6px rgba(245, 169, 72, 0.45));
}

.ring-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.ring-pct {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.meter-sub {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.meter-points {
  margin-top: 2px;
  color: var(--teal-bright);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
}

.meter-points span {
  font-size: 14px;
}

.meter-total {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.stages {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  align-items: start;
  position: relative;
}

.stages::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 22px;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--teal) 0%,
    var(--teal) 45%,
    var(--gold) 50%,
    rgba(255, 255, 255, 0.15) 55%,
    rgba(255, 255, 255, 0.15) 100%
  );
  z-index: 0;
}

.stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.stage-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--teal-bright);
  background: rgba(0, 12, 18, 0.9);
  border: 2px solid var(--teal);
  box-shadow: 0 0 0 4px rgba(0, 12, 18, 0.65);
}

.stage-icon svg {
  width: 22px;
  height: 22px;
}

.stage.is-done .stage-icon {
  border-color: var(--teal-bright);
  color: var(--teal-bright);
}

.stage.is-active .stage-icon {
  color: var(--gold);
  border-color: var(--gold);
  box-shadow:
    0 0 0 4px rgba(0, 12, 18, 0.65),
    0 0 18px rgba(245, 169, 72, 0.55);
}

.stage:not(.is-done):not(.is-active) .stage-icon {
  color: #6d7d86;
  border-color: #44545c;
}

.stage-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stage-meta strong {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stage.is-active .stage-meta strong {
  color: var(--gold);
}

.stage.is-done .stage-meta strong {
  color: var(--teal-bright);
}

.stage:not(.is-done):not(.is-active) .stage-meta strong {
  color: #8a9aa2;
}

.stage-meta span {
  color: var(--muted);
  font-size: 10px;
}

/* ---------- Content grid ---------- */

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.panel {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
}

.panel > h2,
.panel-head {
  margin-bottom: 14px;
}

.news-list,
.achievements,
.ranking {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.news-item {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.news-item:hover {
  transform: translateX(2px);
}

.news-item:focus-visible {
  outline: 1px solid var(--teal-bright);
  outline-offset: 4px;
  border-radius: 6px;
}

.news-item:last-child {
  border-bottom: 0;
}

.news-item img {
  width: 108px;
  height: 68px;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
  background: #0a1a22;
}

.news-item h3 {
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.news-item time {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
}

.news-item a,
.news-more {
  color: var(--teal-bright);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.news-item a:hover,
.news-item:hover .news-more {
  color: #fff;
}

.achievements li {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.achievements li:last-child {
  border-bottom: 0;
}

.ach-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--teal-bright);
  background: rgba(17, 151, 152, 0.15);
  border: 1px solid rgba(28, 196, 198, 0.35);
}

.ach-icon svg {
  width: 20px;
  height: 20px;
}

.ach-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ach-body strong {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.ach-body span {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ach-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.ach-meta em {
  color: var(--green);
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
}

.ach-meta time {
  color: var(--muted);
  font-size: 10px;
}

.ranking li {
  display: grid;
  grid-template-columns: 28px 36px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
}

.ranking li.is-top {
  background: rgba(17, 151, 152, 0.12);
  border-color: rgba(28, 196, 198, 0.45);
  box-shadow: inset 0 0 18px rgba(28, 196, 198, 0.08);
}

.rank-num {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 11px;
  font-weight: 700;
}

.ranking li:nth-child(1) .rank-num {
  color: #1a1208;
  background: linear-gradient(180deg, #ffd27a, #f5a948);
  border-color: transparent;
}

.ranking li:nth-child(2) .rank-num {
  color: #111;
  background: linear-gradient(180deg, #e8eef2, #aeb8bf);
  border-color: transparent;
}

.ranking li:nth-child(3) .rank-num {
  color: #1a1208;
  background: linear-gradient(180deg, #e0a070, #b87333);
  border-color: transparent;
}

.ranking img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: #000;
  border: 1px solid rgba(28, 196, 198, 0.35);
}

.rank-name {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rank-pts {
  color: var(--teal-soft);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 16px;
  padding: 11px 14px;
  border: 1px solid var(--teal);
  border-radius: 6px;
  color: var(--teal-bright);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-outline:hover {
  background: rgba(28, 196, 198, 0.12);
  border-color: var(--teal-bright);
  color: #fff;
}

/* ---------- Goal bar ---------- */

.goal-bar {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.1fr 1.6fr;
  gap: 18px;
  align-items: center;
  padding-top: 16px;
  padding-bottom: 16px;
  background: rgba(0, 14, 22, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.goal-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.goal-palms {
  width: 72px;
  height: 34px;
  object-fit: cover;
  object-position: left center;
  opacity: 0.85;
  filter: saturate(1.1) brightness(0.9);
}

.goal-left p {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.goal-pillars {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.pillar {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--teal-bright);
}

.pillar svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.pillar strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pillar span {
  display: block;
  color: var(--teal-soft);
  font-size: 11px;
}

.goal-cta {
  margin-top: 0;
  white-space: nowrap;
}

.goal-cta.btn-outline {
  width: auto;
}

/* ---------- Modals ---------- */

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-root[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 4, 10, 0.72);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.modal {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(86vh, 860px);
  overflow: auto;
  padding: 28px;
  color: #fff;
  background: linear-gradient(180deg, #071821 0%, #031018 100%);
  border: 1px solid rgba(28, 196, 198, 0.35);
  border-radius: 14px;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(17, 151, 152, 0.12);
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  transition: opacity 0.32s ease, transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-root.is-open .modal-backdrop {
  opacity: 1;
}

.modal-root.is-open .modal {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal-root.is-wide .modal {
  width: min(860px, 100%);
}

.modal-root.is-news-detail .modal {
  animation: news-pop 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes news-pop {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.92);
  }
  60% {
    opacity: 1;
    transform: translateY(-4px) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
  background: rgba(28, 196, 198, 0.18);
  color: var(--teal-bright);
}

.modal-achievements {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.modal-achievements li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(28, 196, 198, 0.18);
  background: rgba(255, 255, 255, 0.03);
}

.panel#aktualnosci,
.panel#osiagniecia,
.panel#ranking {
  cursor: pointer;
}

.modal-back:hover {
  color: #fff;
}

.modal-body h2,
.modal-title {
  margin: 0 0 16px;
  padding-right: 36px;
  color: var(--teal-bright);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.modal-lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.modal-article-cover {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 16px;
  background: #0a1a22;
}

.modal-article-date {
  display: block;
  margin-bottom: 12px;
  color: var(--teal-soft);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.modal-article-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 1.65;
}

.modal-article-text p + p {
  margin-top: 12px;
}

.modal-news-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-news-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  text-align: left;
  color: inherit;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(28, 196, 198, 0.18);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.modal-news-item:hover {
  background: rgba(28, 196, 198, 0.08);
  border-color: rgba(28, 196, 198, 0.45);
  transform: translateY(-1px);
}

.modal-news-item img {
  width: 96px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
}

.modal-news-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.modal-news-item span {
  color: var(--muted);
  font-size: 12px;
}

.modal-ranking {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-ranking li {
  display: grid;
  grid-template-columns: 28px 40px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.modal-ranking li.is-top {
  border-color: rgba(28, 196, 198, 0.45);
  background: rgba(17, 151, 152, 0.12);
}

.modal-ranking img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.modal-regulamin {
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  line-height: 1.65;
}

.modal-regulamin h3 {
  margin: 18px 0 8px;
  color: var(--teal-bright);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.modal-regulamin p + p {
  margin-top: 10px;
}

body.modal-open {
  overflow: hidden;
}

/* ---------- Motion ---------- */

@keyframes logo-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes copy-in {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.progress-card,
.panel,
.goal-bar {
  animation: rise 0.7s ease both;
}

.panel:nth-child(2) {
  animation-delay: 0.08s;
}

.panel:nth-child(3) {
  animation-delay: 0.16s;
}

.goal-bar {
  animation-delay: 0.22s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .main-nav {
    gap: 14px;
  }

  .main-nav a {
    font-size: 11px;
  }

  .progress-body {
    grid-template-columns: 1fr;
  }

  .stages {
    overflow-x: auto;
    padding-bottom: 8px;
  }

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

  .content-grid .panel:last-child {
    grid-column: 1 / -1;
  }

  .goal-bar {
    grid-template-columns: 1fr;
  }

  .goal-pillars {
    padding-left: 0;
    border-left: 0;
    flex-wrap: wrap;
  }
}

@media (max-width: 820px) {
  .header-inner {
    grid-template-columns: 1fr;
    justify-content: stretch;
    gap: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .site-header {
    height: auto;
  }

  .main-nav {
    display: flex;
    order: 3;
    grid-column: 1 / -1;
    justify-content: space-between;
    gap: 8px;
    overflow-x: auto;
  }

  .brand,
  .user-menu {
    justify-self: stretch;
  }

  .header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }

  .hero-logo-wrap {
    justify-content: center;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: left;
    min-height: 0;
    padding: 32px 20px 88px;
  }

  .hero-copy {
    justify-self: stretch;
    max-width: none;
  }

  .hero-logo-wrap {
    order: -1;
  }

  .progress-card {
    margin-top: -56px;
  }

  .countdown-grid {
    justify-content: center;
  }

  .progress-meter {
    justify-content: center;
  }

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

  .user-text small {
    display: none;
  }
}

@media (max-width: 520px) {
  .countdown-cell {
    min-width: 70px;
    padding: 8px 10px;
  }

  .countdown-value {
    font-size: 28px;
  }

  .user-text strong {
    font-size: 12px;
  }

  .goal-cta {
    width: 100%;
  }
}

/* ---------- Immersive journey sections ---------- */

.journey {
  position: relative;
  margin-top: 64px;
  padding-bottom: 0;
}

.journey-intro {
  max-width: var(--max);
  margin: 0 auto 28px;
  padding: 0 24px;
}

.journey-kicker {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.journey-intro h2,
.stay-intro h2,
.play-intro h2,
.rank-cta-copy h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

.journey-intro-text {
  margin: 0;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(15px, 1.7vw, 19px);
  line-height: 1.55;
}

.journey-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.journey-panel {
  position: relative;
  display: grid;
  min-height: min(78vh, 760px);
  overflow: hidden;
  background: #00070c;
}

.journey-panel-media {
  position: absolute;
  inset: 0;
}

.journey-panel-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.journey-panel:hover .journey-panel-media img {
  transform: scale(1.12);
}

.journey-panel-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 6, 12, 0.92) 0%, rgba(0, 6, 12, 0.72) 38%, rgba(0, 6, 12, 0.28) 68%, rgba(0, 6, 12, 0.45) 100%),
    linear-gradient(0deg, rgba(0, 6, 12, 0.88) 0%, rgba(0, 6, 12, 0.2) 42%, rgba(0, 18, 27, 0.35) 100%);
  pointer-events: none;
}

.journey-panel.is-reverse .journey-panel-shade {
  background:
    linear-gradient(270deg, rgba(0, 6, 12, 0.92) 0%, rgba(0, 6, 12, 0.72) 38%, rgba(0, 6, 12, 0.28) 68%, rgba(0, 6, 12, 0.45) 100%),
    linear-gradient(0deg, rgba(0, 6, 12, 0.88) 0%, rgba(0, 6, 12, 0.2) 42%, rgba(0, 18, 27, 0.35) 100%);
}

.journey-panel-index {
  position: absolute;
  right: clamp(20px, 4vw, 56px);
  top: clamp(20px, 4vw, 40px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  pointer-events: none;
}

.journey-panel.is-reverse .journey-panel-index {
  right: auto;
  left: clamp(20px, 4vw, 56px);
  align-items: flex-start;
}

.journey-panel-num {
  color: rgba(255, 255, 255, 0.18);
  font-size: clamp(96px, 16vw, 220px);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.06em;
}

.journey-panel-label {
  color: var(--teal-bright);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}

.journey-panel-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  width: min(560px, 92%);
  min-height: min(78vh, 760px);
  padding: clamp(28px, 5vw, 64px);
}

.journey-panel.is-reverse .journey-panel-copy {
  margin-left: auto;
  text-align: right;
  align-items: flex-end;
}

.journey-panel-date {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.journey-panel-copy h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.journey-panel-lead {
  margin: 0;
  color: var(--teal-soft);
  font-size: clamp(16px, 1.7vw, 20px);
  font-weight: 600;
  line-height: 1.35;
}

.journey-panel-copy > p:not(.journey-panel-lead) {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 15px;
  line-height: 1.6;
  max-width: 48ch;
}

.journey-panel.is-reverse .journey-panel-copy > p:not(.journey-panel-lead) {
  margin-left: auto;
}

.journey-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.journey-panel.is-reverse .journey-chips {
  justify-content: flex-end;
}

.journey-chip {
  display: inline-flex;
  padding: 8px 12px;
  color: #dff7f7;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(28, 196, 198, 0.38);
  border-radius: 999px;
  background: rgba(0, 18, 27, 0.45);
  backdrop-filter: blur(8px);
}

/* ---------- Zakwaterowanie: contained rail cards ---------- */

.stay {
  margin-top: 72px;
  padding: 0 24px 8px;
}

.stay-intro,
.play-intro {
  max-width: var(--max);
  margin: 0 auto 28px;
}

.stay-rail {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-left: 0;
}

.stay-rail::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: linear-gradient(180deg, rgba(28, 196, 198, 0.65), rgba(245, 169, 72, 0.4), rgba(28, 196, 198, 0.2));
  pointer-events: none;
  z-index: 0;
}

.stay-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  background: transparent;
  border: 0;
  overflow: visible;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.stay-card.is-inview {
  opacity: 1;
  transform: translateY(0);
}

.stay-marker {
  display: flex;
  justify-content: center;
  padding-top: 28px;
}

.stay-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin: 0;
  color: #001018;
  font-size: 12px;
  font-weight: 700;
  background: var(--teal-bright);
  border: 3px solid #00070c;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(28, 196, 198, 0.35);
}

.stay-card-main {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 220px;
  overflow: hidden;
  background: rgba(0, 18, 27, 0.78);
  border: 1px solid rgba(28, 196, 198, 0.22);
  transition: border-color 0.25s ease;
}

.stay-card:hover .stay-card-main {
  border-color: rgba(28, 196, 198, 0.45);
}

.stay-card.is-flip .stay-card-main {
  grid-template-columns: minmax(0, 1fr) 220px;
}

.stay-card.is-flip .stay-card-media {
  order: 2;
}

.stay-card-media {
  position: relative;
  min-height: 220px;
  height: 100%;
  overflow: hidden;
  background: #0a1a22;
}

.stay-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.stay-card:hover .stay-card-media img {
  transform: scale(1.05);
}

.stay-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 24px 22px 24px;
  min-width: 0;
}

.stay-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.stay-card-meta time {
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stay-city {
  color: var(--teal-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.stay-card-body h3 {
  margin: 0;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.2;
}

.stay-lead {
  margin: 0;
  color: var(--teal-soft);
  font-size: 14px;
  font-weight: 600;
}

.stay-card-body > p:not(.stay-lead) {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.5;
  max-width: 62ch;
}

.stay-list {
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}

.stay-list li {
  position: relative;
  padding-left: 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.stay-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-bright);
}

/* ---------- Rank CTA ---------- */

.rank-cta {
  margin: 56px auto 8px;
  padding: 0 24px;
  max-width: var(--max);
}

.rank-cta-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 28px 32px;
  background:
    linear-gradient(120deg, rgba(0, 28, 36, 0.95) 0%, rgba(0, 14, 22, 0.98) 55%, rgba(20, 28, 10, 0.9) 100%);
  border: 1px solid rgba(28, 196, 198, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.rank-cta-copy p:last-child {
  margin: 0;
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  line-height: 1.5;
}

.rank-cta-copy h2 {
  font-size: clamp(22px, 2.6vw, 32px);
  margin-bottom: 10px;
}

.rank-cta-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.rank-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 12px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.rank-stat.is-accent {
  border-color: rgba(245, 169, 72, 0.45);
  background: rgba(245, 169, 72, 0.08);
}

.rank-stat-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rank-stat-value {
  color: #fff;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1;
}

.rank-stat-value em {
  margin-left: 4px;
  color: var(--teal-soft);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.rank-stat-note {
  color: var(--gold-soft);
  font-size: 11px;
}

.rank-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  color: #001018;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--teal-bright);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-cta-btn:hover {
  background: #37d7d9;
  transform: translateY(-1px);
}

/* ---------- Atrakcje: contained mosaic ---------- */

.play {
  margin-top: 64px;
  padding: 0 24px 24px;
}

.play-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 150px;
  grid-auto-flow: dense;
  gap: 14px;
  max-width: var(--max);
  margin: 0 auto;
}

.play-tile {
  position: relative;
  grid-column: span 4;
  grid-row: span 2;
  overflow: hidden;
  background: #00070c;
  border: 1px solid rgba(28, 196, 198, 0.18);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.play-tile.is-inview {
  opacity: 1;
  transform: translateY(0);
}

.play-tile--hero {
  grid-column: span 8;
  grid-row: span 3;
}

.play-tile--side {
  grid-column: span 4;
  grid-row: span 3;
}

.play-tile--wide {
  grid-column: span 8;
  grid-row: span 2;
}

.play-tile--sm {
  grid-column: span 4;
  grid-row: span 2;
}

.play-tile--half {
  grid-column: span 6;
  grid-row: span 2;
}

.play-tile > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 1s ease;
}

.play-tile:hover > img {
  transform: scale(1.08);
}

.play-tile-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 6, 12, 0.1) 0%, rgba(0, 6, 12, 0.45) 45%, rgba(0, 6, 12, 0.92) 100%);
}

.play-tile-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  height: 100%;
  padding: 20px;
}

.play-tile-tag {
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.play-tile-copy h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 700;
  line-height: 1.15;
  max-width: 16ch;
}

.play-tile--hero .play-tile-copy h3,
.play-tile--wide .play-tile-copy h3,
.play-tile--half .play-tile-copy h3 {
  max-width: 20ch;
  font-size: clamp(22px, 2.6vw, 32px);
}

.play-tile-copy p {
  margin: 0;
  max-width: 44ch;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.45;
}


.journey-panel {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s ease, transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.journey-panel.is-inview {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .journey-panel-copy,
  .journey-panel.is-reverse .journey-panel-copy {
    width: 100%;
    min-height: 70vh;
    margin: 0;
    text-align: left;
    align-items: flex-start;
  }

  .journey-panel.is-reverse .journey-chips,
  .journey-panel.is-reverse .journey-panel-copy > p:not(.journey-panel-lead) {
    justify-content: flex-start;
    margin-left: 0;
  }

  .journey-panel-index,
  .journey-panel.is-reverse .journey-panel-index {
    left: auto;
    right: 20px;
    align-items: flex-end;
  }

  .stay-rail::before {
    left: 19px;
  }

  .stay-card-main,
  .stay-card.is-flip .stay-card-main {
    grid-template-columns: 1fr;
  }

  .stay-card.is-flip .stay-card-media {
    order: 0;
  }

  .stay-card-media {
    min-height: 180px;
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .stay-card-body {
    padding: 18px 20px 20px;
  }

  .rank-cta-inner {
    grid-template-columns: 1fr;
  }

  .rank-cta-btn {
    width: 100%;
  }

  .play-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 150px;
  }

  .play-tile,
  .play-tile--hero,
  .play-tile--side,
  .play-tile--wide,
  .play-tile--sm,
  .play-tile--half {
    grid-column: span 1;
    grid-row: span 2;
  }

  .play-tile--hero,
  .play-tile--wide,
  .play-tile--half {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .journey {
    margin-top: 40px;
  }

  .journey-panel-num {
    font-size: 96px;
  }

  .journey-panel-copy {
    padding: 24px 20px 32px;
    min-height: 64vh;
  }

  .rank-cta-stats {
    grid-template-columns: 1fr;
  }

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

  .play-tile,
  .play-tile--hero,
  .play-tile--side,
  .play-tile--wide,
  .play-tile--sm,
  .play-tile--half {
    grid-column: auto;
    grid-row: span 2;
    min-height: 260px;
  }

  .stay-card {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
  }

  .stay-rail::before {
    left: 15px;
  }

  .stay-step {
    width: 32px;
    height: 32px;
  }
}
