:root {
  color-scheme: dark;
  --bg: #090e1c;
  --panel: #141d33;
  --panel-light: #202d49;
  --text: #f6f7fb;
  --muted: #a5b1c5;
  --accent: #b7f56a;
  --accent-dark: #263716;
  --line: #34435d;
  --danger: #ff8c86;
  --success: #dfff9c;
  --radius: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(ellipse at 76% 8%, #2a3e69 0, transparent 34rem),
    radial-gradient(ellipse at 5% 40%, #16333a 0, transparent 32rem),
    radial-gradient(ellipse at 95% 75%, #30264b66 0, transparent 34rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.top {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(5vw, calc((100vw - 1160px) / 2));
  border-bottom: 1px solid #ffffff18;
  background: #0a1020eF;
  backdrop-filter: blur(20px);
}
.brand { flex: 0 0 auto; font-size: 14px; font-weight: 900; letter-spacing: .07em; }
.brand span { color: var(--accent); }
.top-links { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.top-links a, .text-link { color: #d7deea; font-size: 13px; font-weight: 700; transition: color .18s ease; }
.top-links a:hover, .text-link:hover { color: var(--accent); }
.language-picker { display: flex; align-items: center; gap: 8px; }
.language-picker label { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.language-picker select {
  min-height: 38px;
  padding: 0 30px 0 11px;
  border: 1px solid #ffffff28;
  border-radius: 10px;
  background: #182641;
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}
.language-picker select:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.badge {
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 1px solid #ffffff28;
  border-radius: 999px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .13em;
}

.hero {
  display: grid;
  width: min(1160px, 100%);
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .72fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  margin: 0 auto;
  padding: clamp(62px, 10vw, 128px) 28px 78px;
}
.hero-card { position: relative; padding: clamp(24px, 3vw, 40px); }
.hero-card, .progress-card, .station-card, .final-card {
  border-color: #ffffff20;
  background:
    linear-gradient(135deg, #ffffff09, transparent 45%),
    linear-gradient(150deg, #1c2a46f5, #121c31f5);
  box-shadow: 0 28px 80px #02061180, inset 0 1px #ffffff0d;
}
.hero-card::before {
  position: absolute;
  z-index: -1;
  top: -90px;
  left: -50px;
  width: 360px;
  height: 360px;
  border: 1px solid #ffffff0b;
  border-radius: 50%;
  content: "";
}
.eyebrow, .section-title {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .17em;
}
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow-mark { font-size: 17px; }
h1, .overview-heading h2 { font-family: "Arial", ui-sans-serif, system-ui, sans-serif; }
.hero h1 {
  margin: 24px 0 22px;
  font-size: clamp(52px, 8vw, 94px);
  font-weight: 850;
  letter-spacing: -.075em;
  line-height: .99;
  text-wrap: balance;
}
.hero h1 span, .overview-heading h2 span { color: var(--accent); }
.hero-card > p, .overview-heading > p, .station-content > p, .final-card > p {
  max-width: 540px;
  color: #c1cad8;
  font-size: 16px;
  line-height: 1.8;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 30px; }
.btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 21px;
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  box-shadow: 0 9px 24px #b7f56a25, inset 0 1px #ffffff55;
  color: #17210b;
  cursor: pointer;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .045em;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); background: #d0ff91; box-shadow: 0 14px 32px #b7f56a40, inset 0 1px #ffffff70; }
.btn.secondary { margin-left: 8px; background: #303e55; color: var(--text); }
.text-link { display: inline-flex; align-items: center; gap: 8px; }
.hero-note { margin-top: 42px; color: var(--muted); font-size: 12px; }
.hero-note span { margin-right: 8px; color: var(--accent); }

.progress-card, .hero-card, .station-card, .final-card {
  border: 1px solid #ffffff17;
  border-radius: var(--radius);
  background: linear-gradient(150deg, #1d2c47f2, #17243bf2);
  box-shadow: 0 28px 80px #03091666;
}
.progress-card { padding: clamp(23px, 3vw, 34px); }
.progress-heading { display: flex; align-items: center; justify-content: space-between; }
.progress-heading h2 { margin: 10px 0 0; font-size: 46px; font-weight: 850; letter-spacing: -.06em; }
.progress-total { color: var(--muted); font-size: 23px; font-weight: 600; }
.progress-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid #d7fa6740;
  border-radius: 16px;
  background: #d7fa6714;
  color: var(--accent);
  font-size: 24px;
}
.progress-track { height: 6px; margin-top: 21px; overflow: hidden; border-radius: 999px; background: #ffffff15; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--accent); transition: width .35s ease; }
.progress-caption { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.reset-button {
  margin-top: 16px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: #bdc8d8;
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: #bdc8d866;
  text-underline-offset: 4px;
}
.reset-button:hover { color: var(--accent); text-decoration-color: currentColor; }
.letters { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin: 22px 0 16px; }
.letter {
  display: grid;
  min-width: 0;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid #ffffff1b;
  border-radius: 12px;
  background: #101b2e80;
  color: #8f9bb0;
  font-size: 20px;
  font-weight: 900;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
a.letter:hover { transform: translateY(-3px); }
.letter.done { border-color: #d7fa6766; background: #d7fa671c; color: var(--accent); }
.muted { min-height: 20px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.muted.warning { color: #ffc2ad; }

.rules {
  display: grid;
  width: min(1160px, calc(100% - 56px));
  grid-template-columns: repeat(4, 1fr);
  margin: 0 auto;
  border-top: 1px solid #ffffff20;
  border-bottom: 1px solid #ffffff20;
}
.rules div { display: flex; min-height: 76px; align-items: center; gap: 14px; padding: 12px 16px; }
.rules div + div { border-left: 1px solid #ffffff18; }
.rules b { color: var(--accent); font-size: 12px; }
.rules span { color: #d1d8e3; font-size: 13px; font-weight: 650; }

.station-overview { width: min(1160px, calc(100% - 56px)); margin: 0 auto; padding: 96px 0 100px; }
.overview-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 34px; }
.overview-heading h2 { margin: 14px 0 0; font-size: clamp(36px, 5vw, 55px); letter-spacing: -.06em; line-height: 1.05; }
.overview-heading > p { max-width: 330px; margin: 0 0 4px; font-size: 14px; }
.station-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.station-tile {
  position: relative;
  overflow: hidden;
  border: 1px solid #ffffff1a;
  border-radius: 20px;
  background: linear-gradient(155deg, #1d2c49, #111b30);
  box-shadow: 0 8px 24px #03091622;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.station-tile:hover { transform: translateY(-5px); border-color: #d7fa6780; box-shadow: 0 18px 38px #03091666; }
.station-tile img { display: block; width: 100%; height: 175px; object-fit: cover; filter: saturate(.88); transition: transform .3s ease, filter .3s ease; }
.station-tile:hover img { transform: scale(1.035); filter: saturate(1.08); }
.station-tile-content { padding: 16px; }
.station-tile-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.station-tile-number { color: var(--accent); font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.station-tile-status { color: var(--muted); font-size: 10px; font-weight: 750; }
.station-tile-status.done { color: var(--accent); }
.station-tile h3 { margin: 13px 0 4px; font-size: 17px; }
.station-tile p { margin: 0; color: var(--muted); font-size: 12px; }
.tile-link { display: block; }

.site-footer {
  display: flex;
  min-height: 85px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px max(5vw, calc((100vw - 1160px) / 2));
  border-top: 1px solid #ffffff18;
  color: var(--muted);
  font-size: 11px;
}

.station-wrap, .final-wrap { width: min(1100px, calc(100% - 40px)); margin: 52px auto 70px; }
.station-card { display: grid; min-height: 560px; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); overflow: hidden; }
.station-image-wrap { position: relative; min-height: 560px; overflow: hidden; background: #101a30; }
.station-image-wrap::after { position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, #101a30a6); content: ""; pointer-events: none; }
.station-image-wrap img { display: block; width: 100%; height: 100%; min-height: 560px; object-fit: cover; }
.station-card[data-station="3"] .station-image-wrap img, .station-tile[data-station="3"] img { object-position: 52% 22%; }
.station-card[data-station="4"] .station-image-wrap img, .station-tile[data-station="4"] img { object-position: 44% 25%; }
.station-card[data-station="5"] .station-image-wrap img, .station-tile[data-station="5"] img { object-position: 8% center; }
.station-card[data-station="6"] .station-image-wrap img, .station-tile[data-station="6"] img { object-position: 86% center; }
.station-photo-label { position: absolute; z-index: 1; bottom: 20px; left: 22px; color: #fff; font-size: 10px; font-weight: 850; letter-spacing: .14em; text-shadow: 0 1px 8px #000; }
.station-content { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: clamp(28px, 5vw, 60px); }
.station-content .eyebrow { width: fit-content; padding: 8px 12px; border: 1px solid #d7fa6733; border-radius: 999px; background: #d7fa670c; color: var(--accent); }
.station-content h1 { margin: 0; font-size: clamp(42px, 5.2vw, 65px); letter-spacing: -.065em; line-height: .99; }
.station-content h1 span { color: var(--accent); }
.mission-box { margin: 0; padding: 16px 18px; border: 1px solid #ffffff15; border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; background: #ffffff08; }
.mission-box b { color: var(--accent); font-size: 10px; letter-spacing: .13em; }
.mission-box p { margin: 8px 0 0; color: #e0e5ed; font-size: 14px; line-height: 1.7; }
.station-content form { display: grid; gap: 10px; }
.field-label { display: block; margin: 0; color: #d7deea; font-size: 12px; font-weight: 750; }
.answer {
  display: block;
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid #ffffff2b;
  border-radius: 11px;
  background: #101a30;
  color: var(--text);
  font-size: 16px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.answer::placeholder { color: #8290a5; font-size: 12px; letter-spacing: .09em; }
.answer:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #d7fa6718; }
.station-content .btn { justify-self: start; margin-top: 0; }
.success, .error, .locked-message { margin-top: 15px; padding: 14px 16px; border-radius: 11px; font-size: 13px; line-height: 1.6; }
.success { border: 1px solid #d7fa6740; background: #d7fa6714; color: var(--success); }
.error { border: 1px solid #ff8c8640; background: #ff8c8612; color: #ffb4ae; }
.success strong, .error strong { font-weight: 850; }
.hint-panel { display: grid; gap: 10px; }
.hint-toggle {
  display: inline-flex;
  width: fit-content;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid #d7fa6740;
  border-radius: 11px;
  background: #d7fa670d;
  color: var(--accent);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.hint-toggle:hover { transform: translateY(-1px); border-color: #d7fa6780; background: #d7fa6718; }
.hint-toggle span { font-size: 17px; line-height: 1; }
.hint[hidden] { display: none; }
.hint { padding: 12px 14px; border: 1px solid #ffffff17; border-radius: 12px; background: #101a3070; color: var(--muted); font-size: 12px; line-height: 1.7; }
.hint strong { color: var(--accent); }
.station-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 2px; }
.station-nav-button {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 13px;
  border: 1px solid #ffffff20;
  border-radius: 12px;
  background: #ffffff08;
  color: #dbe3ef;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .035em;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.station-nav-button:hover { transform: translateY(-2px); border-color: #ffffff45; background: #ffffff10; }
.station-nav-button.primary { border-color: #b7f56a50; background: #b7f56a15; color: var(--accent); }
.station-nav-button.primary:hover { border-color: var(--accent); background: #b7f56a24; }
.station-error { grid-column: 1 / -1; padding: 55px; text-align: center; }
.station-error h1 { font-size: clamp(35px, 6vw, 55px); }

.final-wrap { width: min(800px, calc(100% - 40px)); }
.final-card { padding: clamp(30px, 7vw, 82px); text-align: center; }
.final-card > .eyebrow { justify-content: center; }
.final-card h1 { margin: 22px 0 18px; font-size: clamp(52px, 8vw, 82px); letter-spacing: -.07em; line-height: .98; }
.final-card h1 span { color: var(--accent); }
.final-card > p { max-width: 490px; margin: 0 auto 26px; font-size: 14px; }
.final-form { max-width: 440px; margin: 0 auto; text-align: left; }
.final-form .answer { text-align: center; text-transform: uppercase; }
.final-form .btn { width: 100%; margin-top: 13px; }
.locked-message { max-width: 470px; margin: 26px auto 0; border: 1px solid #ffffff20; background: #ffffff08; color: #e3e8f0; text-align: left; }
.locked-message strong { font-size: 14px; }
.locked-message p { margin: 6px 0 12px; color: var(--muted); font-size: 12px; }
.locked-message .btn { margin-top: 5px; }
.video-box { margin-top: 36px; padding-top: 32px; border-top: 1px solid #ffffff20; }
.video-placeholder { display: grid; width: 62px; height: 62px; place-items: center; margin: 0 auto; border-radius: 50%; background: var(--accent); color: #17210b; font-size: 22px; }
.video-box h2 { margin: 17px 0 5px; }
.video-box > p { margin: 0; color: var(--muted); font-size: 13px; }
.video-frame { display: grid; min-height: 220px; place-items: center; margin-top: 22px; border: 1px dashed #ffffff40; border-radius: 14px; background: #101a30; }
.video-frame div { display: grid; gap: 9px; color: #b7c1d0; font-size: 12px; letter-spacing: .1em; }
.video-frame small { color: var(--muted); font-size: 11px; letter-spacing: 0; }
.hidden { display: none !important; }
[dir="rtl"] .reset-button { text-align: right; }
[dir="rtl"] .station-photo-label { right: 22px; left: auto; }
[dir="rtl"] body { text-align: right; }
[dir="rtl"] .top-links { margin-right: auto; margin-left: 0; }
[dir="rtl"] .mission-box { border-right: 3px solid var(--accent); border-left: 1px solid #ffffff15; border-radius: 12px 0 0 12px; }
[dir="rtl"] .station-content .btn { justify-self: start; }
[dir="rtl"] .hero-actions, [dir="rtl"] .hero-note { direction: rtl; }
[dir="rtl"] .progress-track span { margin-left: auto; }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1.1fr) minmax(275px, .9fr); gap: 30px; }
  .station-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .station-tile img { height: 155px; }
  .station-card { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); }
  .station-image-wrap, .station-image-wrap img { min-height: 500px; }
}

@media (max-width: 700px) {
  .top { display: grid; min-height: 66px; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; padding: 10px 20px; }
  .brand { font-size: 12px; }
  .top-links { grid-column: 2; grid-row: 1; gap: 14px; margin-left: 0; }
  .top-links a { font-size: 11px; }
  .language-picker { grid-column: 1; grid-row: 2; }
  .language-picker label { font-size: 9px; }
  .language-picker select { min-height: 34px; }
  .badge { grid-column: 2; grid-row: 2; justify-self: end; }
  .badge { padding: 8px 10px; font-size: 9px; }
  .hero { grid-template-columns: 1fr; gap: 34px; padding: 68px 22px 50px; }
  .hero-card { padding: 24px; }
  .hero h1 { font-size: clamp(54px, 12vw, 78px); }
  .hero-card > p { font-size: 14px; }
  .hero-note { margin-top: 27px; }
  .progress-card { max-width: 520px; }
  .rules { width: calc(100% - 44px); grid-template-columns: repeat(2, 1fr); }
  .rules div { min-height: 62px; padding: 10px 7px; }
  .rules div:nth-child(3) { border-left: 0; }
  .rules div:nth-child(n+3) { border-top: 1px solid #ffffff18; }
  .station-overview { width: calc(100% - 44px); padding: 68px 0; }
  .overview-heading { display: block; }
  .overview-heading > p { margin-top: 17px; }
  .station-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .station-tile img { height: clamp(105px, 28vw, 155px); }
  .station-tile-content { padding: 12px; }
  .station-tile h3 { font-size: 15px; }
  .site-footer { min-height: 74px; padding: 16px 22px; }
  .site-footer > span { max-width: 48%; text-align: right; }
  .station-wrap, .final-wrap { width: calc(100% - 28px); margin: 24px auto 38px; }
  .station-card { grid-template-columns: 1fr; }
  .station-image-wrap { min-height: 0; height: clamp(220px, 60vw, 370px); }
  .station-image-wrap img { min-height: 0; }
  .station-content { padding: 28px 23px 32px; }
  .station-content h1 { font-size: clamp(43px, 11vw, 60px); }
  .station-error { padding: 35px 20px; }
}

@media (max-width: 420px) {
  .top { padding: 0 14px; }
  .top { padding-top: 9px; padding-bottom: 9px; }
  .top-links { gap: 10px; }
  .top-links a { font-size: 10px; }
  .badge { padding: 7px 8px; letter-spacing: .07em; }
  .brand { font-size: 10px; }
  .language-picker { gap: 6px; }
  .language-picker select { max-width: 120px; padding-right: 24px; padding-left: 8px; font-size: 11px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 16px; }
  .btn { min-height: 49px; padding: 0 16px; }
  .station-grid { gap: 9px; }
  .station-tile-status { font-size: 9px; }
  .station-tile-content { padding: 10px; }
}

@media (max-width: 380px) {
  .station-nav { grid-template-columns: 1fr; }
  .station-nav-button { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
