:root {
  --bg: #0d0b0a;
  --bg-2: #171311;
  --ink: #f3ece1;
  --muted: #a89c8c;
  --line: #2e2723;
  --orange: #ff6a13;
  --acid: #c8ff2e;
  --danger: #ff4d6d;
  --radius: 18px;
  --display: "Rubik Mono One", "Unbounded", system-ui, sans-serif;
  --head: "Unbounded", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; }

/* film grain */
.grain {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 50; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding-bottom: 8px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(90% 60% at 50% 0%, rgba(255,106,19,.18), transparent 70%);
}
/* кадр целиком, без обрезки - важны и края, и дата в углу */
.hero__photo {
  margin: 0 auto;
  /* кадр 920×598: по высоте не больше ~62% экрана, чтобы заголовок был виден сразу */
  max-width: min(960px, calc(62vh * 920 / 598));
}
.hero__photo img {
  width: 100%; height: auto;
  filter: saturate(1.1) contrast(1.03);
}
.hero__content {
  position: relative;
  width: 100%; max-width: 720px;
  margin: 0 auto;
  padding: 28px 16px 36px;
}
.hero__kicker {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 12px;
  border: 1px solid rgba(243,236,225,.35);
  border-radius: 999px;
  font: 600 13px/1 var(--body);
  letter-spacing: .08em; text-transform: uppercase;
}
.hero__title {
  font: 400 clamp(34px, 8.4vw, 76px)/.95 var(--display);
  text-transform: uppercase;
  letter-spacing: -.02em;
}
.hero__title span {
  color: var(--orange);
  margin-left: .3em;
}

.ticker {
  position: relative;
  background: var(--acid); color: #111;
  transform: rotate(-1.2deg);
  margin: 0 -8px;
  overflow: hidden; white-space: nowrap;
  border-top: 2px solid #111; border-bottom: 2px solid #111;
}
.ticker__track {
  display: inline-flex;
  animation: ticker 22s linear infinite;
}
.ticker__track span {
  padding: 10px 0;
  font: 800 15px/1 var(--head);
  text-transform: uppercase; letter-spacing: .04em;
}
@keyframes ticker { to { transform: translateX(-50%); } }

.hero__date {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px;
  margin: 18px 0 0;
}
.hero__date time {
  font: 800 clamp(24px, 4.6vw, 36px)/1 var(--head);
  text-transform: uppercase;
}
.hero__date span {
  color: var(--muted);
  font: 600 14px/1 var(--body);
  text-transform: uppercase; letter-spacing: .08em;
}

/* ---------- layout ---------- */
.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 16px 40px;
}
.section-title {
  font: 800 clamp(24px, 5vw, 32px)/1.1 var(--head);
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* ---------- intro / route ---------- */
.lead {
  margin: 0 0 28px;
  font: 500 clamp(19px, 3.6vw, 24px)/1.4 var(--head);
}
.route {
  list-style: none; margin: 0; padding: 0;
  position: relative;
  display: grid; gap: 12px;
}
.route__step {
  position: relative;
  display: grid; grid-template-columns: 64px 1fr; gap: 16px;
  padding: 18px 20px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.route__step + .route__step::before {
  content: "";
  position: absolute; left: 51px; top: -13px;
  height: 14px; border-left: 2px dashed var(--orange);
}
.route__num {
  display: grid; place-items: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--orange); color: #111;
  font: 400 20px/1 var(--display);
}
.route__step h2 {
  font: 800 20px/1.2 var(--head);
  text-transform: uppercase;
  margin: 4px 0 4px;
}
.route__step .tag {
  display: inline-block;
  margin-left: 4px; padding: 3px 8px 4px;
  border-radius: 6px;
  background: var(--orange); color: #111;
  font: 800 .8em/1 var(--head);
  text-transform: none; letter-spacing: 0;
  transform: rotate(-2deg);
}
.route__step p { margin: 0; color: var(--muted); }
.route__step strong { color: var(--acid); font-weight: 800; }
.route__step p b { color: var(--ink); font-weight: 800; }

/* ---------- price ---------- */
.price__grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(3, 1fr);
}
.price__card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  min-height: 130px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.price__card:nth-child(2) { opacity: .5; }
.price__value s { text-decoration-thickness: 3px; }
.price__card--free {
  background: var(--acid); color: #111; border-color: var(--acid);
  transform: rotate(1.5deg);
}
.price__label { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.price__card--free .price__label { color: #333; }
.price__value { white-space: nowrap; font: 800 clamp(24px, 5vw, 34px)/1 var(--head); }

.pay {
  margin-top: 16px;
  padding: 16px 20px;
  border: 1px dashed var(--orange);
  border-radius: var(--radius);
}
.pay p { margin: 0; color: var(--muted); }
.pay b { color: var(--ink); }

/* ---------- form ---------- */
.form {
  padding: 28px 22px 26px;
  border-radius: 26px;
  background:
    linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
    linear-gradient(135deg, var(--orange), transparent 40%, transparent 60%, var(--acid)) border-box;
  border: 2px solid transparent;
}
.form .section-title { margin-bottom: 6px; }
.form__note { margin: 0 0 24px; color: var(--muted); font-size: 14px; }
.req { color: var(--orange); }

.field { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
.field__label {
  display: block; padding: 0;
  margin-bottom: 10px;
  font: 800 15px/1.2 var(--head);
  text-transform: uppercase; letter-spacing: .02em;
}
.field__hint { margin: -4px 0 10px; color: var(--muted); font-size: 14px; }
.field__hint--pay { line-height: 1.7; }
.field__hint--pay .copy { padding: 2px 8px; }
.paynick {
  margin: 0 0 12px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--orange); background: rgba(255, 106, 19, .1);
  color: var(--ink); font-weight: 800; font-size: 15px; line-height: 1.6;
}
.paynick .copy { padding: 2px 8px; }
.paynick__empty { color: var(--muted); font-weight: 600; }
.paynick--box { margin: 16px 0 0; }
.field__input {
  display: flex; align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  transition: border-color .15s, box-shadow .15s;
}
.field__input:focus-within { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255,106,19,.18); }
.field__prefix { padding-left: 16px; color: var(--orange); font-weight: 800; font-size: 18px; }
.field__input--prefixed input { padding-left: 4px; }
.field input[type="text"], .paysource input[type="text"] {
  flex: 1; min-width: 0;
  padding: 15px 16px;
  border: 0; outline: 0;
  background: transparent; color: var(--ink);
  font: 600 17px/1.2 var(--body);
}
.field input::placeholder, .paysource input::placeholder { color: #5f554c; }

.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice__item { position: relative; cursor: pointer; }
.choice__item input { position: absolute; opacity: 0; pointer-events: none; }
.choice__item span {
  display: grid; place-items: center;
  height: 64px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  font: 400 24px/1 var(--display);
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.choice__item:hover span { border-color: var(--muted); }
.choice__item input:checked + span { background: var(--orange); border-color: var(--orange); color: #111; transform: translateY(-2px); }
.choice__item input:focus-visible + span { box-shadow: 0 0 0 4px rgba(200,255,46,.35); }
#gender-hint { margin: 10px 0 0; color: var(--acid); }

.field__error { margin: 8px 0 0; min-height: 0; color: var(--danger); font-size: 14px; font-weight: 600; }
.field__error:empty { display: none; }
.field.is-invalid .field__input,
.field.is-invalid .choice__item span { border-color: var(--danger); }

.submit {
  position: relative;
  width: 100%;
  margin-top: 6px;
  padding: 20px;
  border: 0; border-radius: 16px;
  background: var(--acid); color: #111;
  font: 400 20px/1 var(--display);
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 6px 0 #6e8f10;
  transition: transform .1s, box-shadow .1s;
}
.submit:hover { transform: translateY(-1px); box-shadow: 0 7px 0 #6e8f10; }
.submit:active { transform: translateY(5px); box-shadow: 0 1px 0 #6e8f10; }
.submit:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.submit__spinner {
  display: none;
  position: absolute; right: 22px; top: 50%;
  width: 20px; height: 20px; margin-top: -10px;
  border: 3px solid #111; border-right-color: transparent; border-radius: 50%;
  animation: spin .7s linear infinite;
}
.submit.is-loading .submit__spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form__status { margin: 12px 0 0; text-align: center; color: var(--danger); font-size: 14px; font-weight: 600; }
.form__status:empty { display: none; }

/* ---------- done ---------- */
.done {
  text-align: center;
  padding: 36px 22px;
  border-radius: 26px;
  background: var(--orange); color: #111;
  outline: none;
}
.done h2 { font: 400 clamp(28px, 7vw, 44px)/1 var(--display); text-transform: uppercase; margin: 12px 0; }
.done p { margin: 0 0 20px; font-weight: 600; }
.paybox {
  margin: 4px auto 22px;
  max-width: 460px;
  padding: 20px;
  border-radius: 20px;
  background: var(--bg); color: var(--ink);
  text-align: left;
}
.paybox__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.paybox__badge {
  padding: 6px 10px; border-radius: 999px; white-space: nowrap;
  background: var(--line); color: var(--ink);
  font: 800 12px/1 var(--head); text-transform: uppercase;
}
.paybox__sum { font: 800 30px/1 var(--head); white-space: nowrap; }
.paybox__steps { margin: 16px 0 0; padding-left: 20px; display: grid; gap: 10px; color: var(--muted); font-size: 15px; }
.paybox__steps b { color: var(--ink); }
.paybox__note { margin: 16px 0 0 !important; color: var(--muted); font-size: 14px; font-weight: 400 !important; }
.paybox__refresh {
  all: unset; cursor: pointer; margin-top: 12px;
  color: var(--orange); font-size: 14px; font-weight: 800;
}
.paybox__refresh:disabled { opacity: .5; cursor: progress; }
.paybox[data-state="paid"] .paybox__badge,
.paybox[data-state="free"] .paybox__badge { background: var(--acid); color: #111; }
.paybox[data-state="paid"] .paynick,
.paybox[data-state="free"] .paynick,
.paybox[data-state="paid"] .paybox__steps,
.paybox[data-state="free"] .paybox__steps,
.paybox[data-state="paid"] .paybox__refresh,
.paybox[data-state="free"] .paybox__refresh { display: none; }
.copy {
  all: unset; cursor: pointer;
  display: inline-block; margin: 2px 0;
  padding: 5px 10px; border-radius: 8px;
  background: var(--bg-2); border: 1px solid var(--line);
  color: var(--orange); font-weight: 800;
}
.copy::after { content: " ⧉"; opacity: .6; font-weight: 400; }
.copy:focus-visible, .paybox__refresh:focus-visible { outline: 2px solid var(--acid); outline-offset: 2px; }

.link-btn { all: unset; cursor: pointer; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-6deg); } }

.footer {
  padding: 24px 16px 40px;
  text-align: center;
  color: #5f554c; font-size: 13px;
}

/* ---------- tags ---------- */
.tag--acid { background: var(--acid); }

/* ---------- countdown ---------- */
.countdown {
  padding: 22px 22px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.countdown__label { margin: 0 0 6px; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.countdown__value { margin: 0; font: 800 clamp(28px, 7vw, 44px)/1.1 var(--head); color: var(--orange); }
.countdown__note { margin: 10px 0 0; color: var(--muted); font-size: 14px; }

/* ---------- race: live header ---------- */
.view { display: grid; gap: 56px; }
.view > * { margin-bottom: 0; }
#race-view { gap: 24px; }
.live {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 12px;
}
.live__dot {
  grid-row: span 2;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 0 rgba(255,77,109,.6);
  animation: pulse 1.6s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(255,77,109,0); } 100% { box-shadow: 0 0 0 0 rgba(255,77,109,0); } }
.live__text { margin: 0; font: 800 20px/1.2 var(--head); text-transform: uppercase; }
.live__sub { margin: 0; color: var(--muted); font-size: 14px; }
.live__clock { white-space: nowrap; color: var(--orange); }
.live.is-ended .live__clock { color: inherit; }
.live.is-ended .live__dot { background: var(--muted); animation: none; }
.countdown--race { margin: 0; }

/* ---------- race: join ---------- */
.join {
  padding: 20px;
  border-radius: var(--radius);
  border: 1.5px dashed var(--acid);
  background: var(--bg-2);
}
.join h2 { font: 800 18px/1.2 var(--head); text-transform: uppercase; }
.join > p { margin: 6px 0 14px; color: var(--muted); font-size: 14px; }
.join__form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.join__form input {
  flex: 1; min-width: 0; padding: 14px 14px 14px 4px;
  border: 0; outline: 0; background: transparent; color: var(--ink);
  font: 600 17px/1.2 var(--body);
}
.join .field__error { margin-bottom: 0; }
.submit--small { width: auto; padding: 14px 20px; font-size: 16px; margin-top: 0; }
.sheet .submit--small { width: 100%; }

/* ---------- race: me ---------- */
.me {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--orange); color: #111;
  margin-bottom: 16px;
}
.me__nick { font: 800 18px/1.2 var(--head); margin-right: auto; }
.me__stat { font-size: 14px; }
.me__stat b { font: 800 18px/1 var(--head); }
.me__warn { flex-basis: 100%; font-size: 13px; font-weight: 800; }
.me__warn::before { content: "⚠ "; }

/* ---------- tabs ---------- */
.tabs {
  display: grid; grid-template-columns: 1fr 1fr;
  padding: 4px; margin-bottom: 16px;
  border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line);
}
.tabs__btn {
  all: unset; cursor: pointer; text-align: center;
  padding: 12px; border-radius: 10px;
  font: 800 15px/1 var(--head); text-transform: uppercase; color: var(--muted);
}
.tabs__btn.is-active { background: var(--ink); color: #111; }
.tabs__btn:focus-visible { outline: 2px solid var(--acid); outline-offset: 2px; }

.howto {
  margin-bottom: 14px; padding: 14px 18px;
  border-radius: var(--radius); border: 1px dashed var(--orange);
  color: var(--muted); font-size: 14px;
}
.howto summary { cursor: pointer; color: var(--ink); font-weight: 800; }
.howto ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 4px; }

/* ---------- checkpoints ---------- */
.cps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cp {
  display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.cp__value {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 14px;
  border: 2px solid var(--ink);
  font: 400 17px/1 var(--display);
}
.cp h3 { font: 800 16px/1.2 var(--head); text-transform: uppercase; }
.cp__photo {
  grid-column: 1 / -1;
  display: block; margin: -2px -4px 2px;
  border-radius: 12px; overflow: hidden;
  aspect-ratio: 16 / 9; background: var(--line);
}
.cp__photo img { width: 100%; height: 100%; object-fit: cover; }
.cp p.cp__desc { margin-top: 4px; color: var(--ink); font-size: 14px; line-height: 1.45; white-space: pre-line; }
.cp p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.cp__map { color: var(--orange); font-size: 13px; font-weight: 700; text-decoration: none; }
.cp__map:hover { text-decoration: underline; }
.cp__status { font-size: 13px; color: var(--muted); white-space: nowrap; text-align: right; }
.cp[data-cp] { cursor: pointer; transition: border-color .15s, transform .1s; }
.cp[data-cp]:hover { border-color: var(--muted); }
.cp[data-cp]:active { transform: scale(.99); }
.cp[data-cp]:focus-visible { outline: 2px solid var(--acid); outline-offset: 2px; }
.cp p.cp__meta { margin-top: 3px; color: var(--muted); font-size: 13px; }
.cp__mine { color: var(--acid); font-weight: 800; }
.cp__thumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--line); }
.cp__chev { color: var(--muted); font-size: 28px; line-height: 1; padding: 0 6px; }

/* страница точки */
.sheet--cp { align-items: end; }
.sheet__card.cpd { position: relative; text-align: left; max-height: calc(100vh - 32px); overflow-y: auto; padding: 16px 18px 22px; }
.cpd__close {
  all: unset; cursor: pointer; position: absolute; top: 24px; right: 26px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(13,11,10,.75); color: var(--ink); font-size: 16px;
}
.cpd__close:focus-visible { outline: 2px solid var(--acid); }
.cpd__gallery { position: relative; margin: 0 0 14px; border-radius: 14px; overflow: hidden; background: var(--line); }
.cpd__track { display: flex; align-items: center; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.cpd__track::-webkit-scrollbar { display: none; }
.cpd__slide { flex: 0 0 100%; scroll-snap-align: start; }
/* вытянутые фото чуть подрезаем до 4:5, горизонтальные - как есть */
.cpd__slide img { display: block; width: 100%; height: auto; aspect-ratio: auto; max-height: 60vh; object-fit: cover; }
.cpd__slide img.is-tall { aspect-ratio: 4 / 5; }
.cpd__count {
  position: absolute; right: 10px; bottom: 10px; padding: 4px 10px; border-radius: 99px;
  background: rgba(0, 0, 0, .6); color: #fff; font: 800 13px/1.2 var(--body);
}
.cpd__head { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; padding-right: 40px; }
.cpd__head h2 { font: 800 20px/1.15 var(--head); text-transform: uppercase; }
.cpd__desc { margin: 12px 0 0; color: var(--ink); font-size: 15px; line-height: 1.5; white-space: pre-line; }
.cpd__desc a { color: var(--orange); word-break: break-all; }
.cpd__links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 12px; }
.cpd__map { color: var(--orange); font-weight: 800; text-decoration: none; }
.cpd__coords { color: var(--muted); font-size: 14px; }
.cp__wait { color: var(--orange); font-weight: 800; }
.cpd__checkin { margin-top: 18px; }
.cpd__checkin .submit { width: 100%; }
.cpd__status { margin: 18px 0 0; color: var(--acid); font-weight: 800; }
.cpd__finish { display: inline-block; margin-top: 6px; color: var(--ink); font-weight: 600; }
.cpd__status--wait { margin: 0 0 12px; color: var(--orange); font-weight: 600; font-size: 14px; }
.cpd__photo-btn { display: block; margin: 14px auto 0; color: var(--muted); font-size: 14px; }
.cpd__sub { margin: 20px 0 8px; font: 800 14px/1 var(--head); text-transform: uppercase; color: var(--muted); }
.cpd__empty { margin: 0; color: var(--muted); font-size: 14px; }
.arrivals { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.arrivals li {
  display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 10px; background: var(--bg);
}
.arrivals li.is-me { outline: 2px solid var(--orange); }
.arrivals__place { font: 400 15px/1 var(--display); color: var(--acid); text-align: center; }
.arrivals li:first-child .arrivals__place { color: var(--orange); }
.arrivals__nick { font-weight: 800; overflow: hidden; text-overflow: ellipsis; }
.arrivals__time { color: var(--muted); font-size: 13px; }
.cp--done { border-color: rgba(200,255,46,.4); }
.cp--done .cp__value { background: var(--acid); border-color: var(--acid); color: #111; }
.cp--done .cp__status { color: var(--acid); font-weight: 800; }
.cp--final { border: 2px solid var(--orange); background: linear-gradient(135deg, rgba(255,106,19,.18), var(--bg-2) 60%); }
.cp--final .cp__value { background: var(--orange); border-color: var(--orange); color: #111; }
.cp__flag {
  display: inline-block; margin-bottom: 4px; padding: 3px 7px; border-radius: 6px;
  background: var(--orange); color: #111; font: 800 11px/1 var(--head); text-transform: uppercase;
}

/* ---------- leaderboard ---------- */
.board { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.row {
  display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2);
}
.row__place { font: 400 18px/1 var(--display); color: var(--muted); text-align: center; }
.row--top .row__place { color: var(--acid); }
.row:first-child .row__place { color: var(--orange); font-size: 24px; }
.row__who b { display: block; font-weight: 800; overflow: hidden; text-overflow: ellipsis; }
.row__dots { display: flex; gap: 4px; margin-top: 6px; }
.row__dots i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #4a403a; }
.row__dots i.on { background: var(--acid); border-color: var(--acid); }
.row__dots i.fin { border-radius: 3px; }
.row__dots i.fin.on { background: var(--orange); border-color: var(--orange); }
.row__score { text-align: right; }
.row__score b { display: block; font: 800 22px/1 var(--head); }
.row__score small { color: var(--muted); font-size: 12px; }
.row--me { border: 2px solid var(--orange); }
.board__empty { padding: 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 14px; }

/* ---------- scan sheet ---------- */
.sheet {
  position: fixed; inset: 0; z-index: 40;
  display: grid; align-items: end; justify-items: center;
  padding: 16px;
  background: rgba(8,6,5,.7);
  backdrop-filter: blur(4px);
}
.sheet__card {
  width: 100%; max-width: 440px;
  padding: 26px 22px 22px;
  border-radius: 26px;
  background: var(--bg-2); border: 1px solid var(--line);
  text-align: center; outline: none;
  animation: up .25s ease-out;
}
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
.sheet__step { margin: 0; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.sheet__icon {
  display: grid; place-items: center;
  width: 76px; height: 76px; margin: 16px auto 12px;
  border-radius: 50%; background: var(--line);
  font: 400 32px/1 var(--display);
}
.sheet h2 { font: 800 24px/1.2 var(--head); text-transform: uppercase; }
.sheet p#scan-text { margin: 8px 0 20px; color: var(--muted); }
.sheet p#scan-text b { color: var(--ink); }
.sheet[data-state="ok"] .sheet__icon { background: var(--acid); color: #111; }
.sheet[data-state="far"] .sheet__icon { background: var(--danger); color: #111; }
.sheet[data-state="wait"] .sheet__icon { animation: bob 1.2s ease-in-out infinite; }

/* ---------- test mode ---------- */
.testbar {
  position: sticky; top: 0; z-index: 46;
  display: flex; justify-content: center; align-items: center; gap: 12px;
  padding: 8px 16px;
  background: repeating-linear-gradient(-45deg, var(--acid) 0 14px, #b5e81f 14px 28px);
  color: #111; font: 800 13px/1.2 var(--head); text-transform: uppercase; text-align: center;
}
.testbar button { all: unset; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.sheet__extra { display: block; margin: 14px auto 0; color: var(--orange); font-weight: 800; }
.sheet__extra:disabled { opacity: .5; }
.sheet p#scan-text small { color: var(--muted); }

/* ---------- mockup switcher ---------- */
.demo {
  position: fixed; left: 50%; bottom: 12px; z-index: 45;
  transform: translateX(-50%);
  display: flex; gap: 4px; align-items: center;
  max-width: calc(100% - 24px); overflow-x: auto;
  padding: 6px; border-radius: 999px;
  background: rgba(243,236,225,.95); color: #111;
  box-shadow: 0 8px 30px rgba(0,0,0,.5);
  scrollbar-width: none;
}
.demo__label { padding: 0 8px; font: 800 11px/1 var(--head); text-transform: uppercase; opacity: .5; }
.demo button {
  all: unset; cursor: pointer; white-space: nowrap;
  padding: 8px 12px; border-radius: 999px;
  font: 700 13px/1 var(--body);
}
.demo button.is-active { background: #111; color: var(--ink); }
.footer { padding-bottom: 90px; }

@media (max-width: 600px) {
  .cp { grid-template-columns: 44px 1fr auto; }
  .cp__value { width: 44px; height: 44px; font-size: 15px; }
  .cp__status { grid-column: 2; text-align: left; }
  .cp__photo { margin: -2px 0 2px; }
}

@media (max-width: 600px) {
  .price__grid { grid-template-columns: 1fr; }
  .price__card { min-height: 0; flex-direction: row; align-items: center; }
  .price__card--free { transform: rotate(-1deg); }
  .route__step { grid-template-columns: 48px 1fr; padding: 16px; }
  .route__num { width: 48px; height: 48px; font-size: 16px; }
  .route__step + .route__step::before { left: 39px; }
  .hero__content { padding: 22px 16px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* «с чьей карты перевёл» - на экране оплаты */
.paysource { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.paysource__label { color: var(--ink); font-weight: 800; font-size: 15px; line-height: 1.4; }
.paysource .field__error { margin: 0; }
