:root {
  --ink: #172033;
  --muted: #667085;
  --paper: #fff9f0;
  --surface: #fff;
  --line: #f0dfc9;
  --orange: #f6a21a;
  --teal: #168b8f;
  --blue: #2f6fde;
  --green: #5d9b55;
  --shadow: 0 18px 44px rgba(23, 32, 51, .12);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 8% 8%, #fff0ce 0, transparent 28%), radial-gradient(circle at 92% 12%, #fff4dc 0, transparent 30%), var(--paper);
}
button, input, select { font: inherit; }
button { cursor: pointer; }
.app { width: min(1040px, 100%); margin: 0 auto; padding: 18px; }
.screen { display: none; min-height: calc(100vh - 36px); }
.screen.active { display: block; }
.top, .compactHead {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.top { justify-content: space-between; color: var(--muted); font-weight: 800; }
.topVk {
  color: #116c70;
  background: #e9f7f5;
  border: 1px solid #b7dfdc;
  border-radius: 999px;
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 950;
}
.logo, .compactHead img { width: 62px; height: 62px; object-fit: cover; background: #fff; border-radius: 20px; box-shadow: 0 8px 22px rgba(23,32,51,.08); }
.compactHead h2 { margin: 0 0 4px; font-size: 24px; }
.compactHead p { margin: 0; color: var(--muted); }
.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
  align-items: stretch;
}
.heroText, .heroArt, .formCard, .dialog, .questionCard, .resultHero, .report {
  background: rgba(255,255,255,.94);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.heroText { padding: 30px; display: flex; flex-direction: column; justify-content: center; }
.heroActions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.linkButton { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.eyebrow { margin: 0 0 8px; color: #116c70; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; font-size: 12px; }
h1 { margin: 0; font-size: clamp(34px, 8vw, 68px); line-height: .94; letter-spacing: 0; }
.heroText p:not(.eyebrow) { color: var(--muted); font-size: 18px; max-width: 560px; }
.heroArt { position: relative; min-height: 420px; overflow: hidden; background: linear-gradient(160deg, #fff, #fff1d7); }
.heroArt picture { display: block; height: 100%; }
.heroArt img { width: 100%; height: 100%; object-fit: cover; display: block; }
.badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 10px 14px;
  background: #fff;
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(23,32,51,.14);
}
.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.officialTiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.officialTiles article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(23,32,51,.08);
}
.officialTiles img {
  display: block;
  width: 100%;
  aspect-ratio: 1.8 / 1;
  object-fit: cover;
  object-position: center;
}
.officialTiles span {
  display: block;
  padding: 9px 10px 11px;
  font-weight: 950;
  text-align: center;
}
.benefits span, .routeStation {
  display: block;
  padding: 11px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: center;
  font-weight: 900;
}
.primary, .ghost {
  border: 0;
  min-height: 50px;
  border-radius: 16px;
  padding: 0 18px;
  font-weight: 950;
}
.primary { color: #fff; background: var(--orange); box-shadow: 0 12px 24px rgba(246,162,26,.28); }
.primary:disabled { opacity: .45; cursor: default; box-shadow: none; }
.ghost { color: #116c70; background: #e9f7f5; }
.formCard { padding: 18px; display: grid; gap: 12px; max-width: 560px; margin: 0 auto; }
label { display: grid; gap: 7px; font-weight: 900; }
input, select {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid #d9ded8;
  padding: 0 13px;
  background: #fff;
  color: var(--ink);
}
.check { grid-template-columns: 22px 1fr; align-items: start; font-weight: 700; color: var(--muted); }
.check input { min-height: auto; margin-top: 4px; }
.dialog { padding: 28px; min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.mascot { font-size: 88px; filter: drop-shadow(0 14px 18px rgba(23,32,51,.16)); }
.dialog h2 { font-size: clamp(28px, 7vw, 48px); margin: 12px 0; line-height: 1; }
.dialog p { color: var(--muted); max-width: 560px; font-size: 18px; }
.gameTitle {
  margin: 0 0 12px;
  font-size: clamp(28px, 7vw, 46px);
  line-height: 1;
  text-align: center;
}
.gameHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.gameHead h2 { margin: 4px 0 0; font-size: 28px; line-height: 1.05; }
.stationName { color: #116c70; font-weight: 950; }
.gameTools { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.soundBtn {
  width: 46px;
  min-height: 46px;
  border: 1px solid #b7dfdc;
  border-radius: 50%;
  background: #e9f7f5;
  color: #116c70;
  font-weight: 950;
}
.progress { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; font-weight: 900; white-space: nowrap; }
.route { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; margin-bottom: 10px; }
.routeStation {
  min-height: 62px;
  padding: 8px 6px;
  color: var(--muted);
  font-size: 12px;
  display: grid;
  align-content: center;
  gap: 3px;
}
.routeStation b { display: block; font-size: 12px; line-height: 1.15; }
.routeStation small { display: block; font-size: 15px; color: inherit; }
.route .done { background: #e9f7f5; color: #116c70; border-color: #b7dfdc; }
.route .active {
  background: #fff3d8;
  color: #9a5b00;
  border-color: #f6a21a;
  box-shadow: inset 0 0 0 1px #f6a21a;
}
.route .done.active {
  background: #e9f7f5;
  color: #116c70;
  border-color: #168b8f;
  box-shadow: inset 0 0 0 1px #168b8f;
}
.questionCard { padding: 18px; text-align: center; }
.questionMascot { font-size: 74px; margin-bottom: 4px; }
#instruction { margin: 0 auto 14px; color: var(--muted); font-weight: 800; max-width: 620px; }
.heroFeedback {
  width: min(620px, 100%);
  margin: 0 auto 14px;
  padding: 10px 12px;
  border: 1px solid #b7dfdc;
  border-radius: 16px;
  background: #e9f7f5;
  color: #116c70;
  font-weight: 950;
}
.options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.option {
  min-height: 148px;
  border: 2px solid #edf1ec;
  border-radius: 20px;
  background: #fffaf3;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 10px;
  font-weight: 950;
  color: var(--ink);
  transition: .16s ease;
}
.option .pic {
  min-width: 76px;
  min-height: 76px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #f0dfc9;
  font-size: 54px;
  line-height: 1;
}
.optionLabel { font-size: 18px; line-height: 1.15; }
.option.selected { border-color: var(--teal); background: #e8f7f5; transform: translateY(-1px); }
.actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 10px; }
.nextHint { margin: 8px 0 0; text-align: right; color: var(--muted); font-weight: 850; font-size: 13px; }
.nextHint[hidden] { display: none; }
.reward {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(23, 32, 51, .2);
}
.reward.active { display: flex; }
.rewardCard {
  width: min(360px, 100%);
  padding: 24px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  text-align: center;
  box-shadow: var(--shadow);
  animation: rewardPop .32s ease-out;
}
.rewardStar {
  font-size: 86px;
  line-height: 1;
  animation: starSpin .8s ease-in-out;
}
.rewardCard p {
  margin: 10px 0 0;
  color: #116c70;
  font-weight: 950;
  font-size: 20px;
  line-height: 1.15;
}
.adminScreen { min-height: auto; }
.resultHero { padding: 24px; text-align: center; min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.medal { font-size: 92px; }
.resultHero h2 { margin: 8px 0; font-size: clamp(28px, 7vw, 52px); line-height: 1; }
.resultHero p { color: var(--muted); max-width: 620px; font-size: 18px; }
.miniStats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: min(560px, 100%); margin: 12px 0; }
.miniStats div { background: #fff8ed; border: 1px solid var(--line); border-radius: 16px; padding: 12px; font-weight: 950; }
.report { padding: 18px; }
.reportTop { display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.reportTop h2 { margin: 0; font-size: 30px; line-height: 1.05; }
.scoreCircle { width: 112px; height: 112px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; flex: 0 0 auto; }
.scoreCircle b { font-size: 38px; line-height: .8; }
.scoreCircle span { font-weight: 900; }
.bars { display: grid; gap: 9px; margin: 16px 0; }
.barLine { display: grid; grid-template-columns: 150px 1fr 44px; gap: 8px; align-items: center; }
.barLine span { font-weight: 900; }
.barTrack { height: 12px; border-radius: 999px; background: #e7edf4; overflow: hidden; }
.barTrack i { display: block; height: 100%; background: var(--orange); border-radius: inherit; }
.reportGrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.reportGrid article, .contactBox, .leadItem {
  background: #fff8ed;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
}
.reportGrid h3 { margin: 0 0 8px; }
ul { margin: 0; padding-left: 20px; color: #384457; }
.contactBox { display: grid; gap: 4px; margin-top: 10px; }
.contactBox a { color: #116c70; font-weight: 950; text-decoration: none; }
.adminActions { display: flex; gap: 8px; margin: 10px 0; }
.leadList { display: grid; gap: 10px; }
.leadItem h3 { margin: 0 0 6px; }
.leadItem p { margin: 3px 0; color: var(--muted); }

@keyframes rewardPop {
  from { opacity: 0; transform: translateY(14px) scale(.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes starSpin {
  0% { transform: scale(.6) rotate(-16deg); }
  70% { transform: scale(1.15) rotate(10deg); }
  100% { transform: scale(1) rotate(0); }
}

@media (max-width: 760px) {
  .app { padding: 12px; }
  .screen { min-height: calc(100vh - 24px); }
  .hero { grid-template-columns: 1fr; }
  .heroText { padding: 20px; }
  .heroActions { display: grid; grid-template-columns: 1fr; }
  .heroArt { min-height: 360px; }
  .heroArt img { object-position: center top; }
  .benefits { grid-template-columns: 1fr; }
  .officialTiles { grid-template-columns: 1fr; }
  .officialTiles img { aspect-ratio: 2.4 / 1; }
  .route { grid-template-columns: repeat(3, 1fr); }
  .gameHead h2 { font-size: 22px; }
  .gameHead { display: grid; grid-template-columns: 1fr; }
  .gameTools { justify-content: space-between; }
  .questionMascot { font-size: 54px; }
  .options { grid-template-columns: 1fr; }
  .option { min-height: 98px; grid-template-columns: 82px 1fr; text-align: left; }
  .option .pic { font-size: 48px; }
  .reportTop, .gameHead { align-items: flex-start; }
  .miniStats, .reportGrid { grid-template-columns: 1fr; }
  .barLine { grid-template-columns: 1fr; gap: 4px; }
}
