@font-face { font-family: Inter; src: url(/fonts/inter-cyrillic-wght.woff2) format('woff2'); font-weight: 100 900; unicode-range: U+0400-04FF; }
@font-face { font-family: Inter; src: url(/fonts/inter-latin-wght.woff2) format('woff2'); font-weight: 100 900; }

/* Тема: белый и серый, как у Apple (Степан 17.10.2026). Сначала телефон: карта - 2/3 высоты экрана, билет - ниже
   (прокручивается). С 900 px - билет справа, карта на всю высоту. Кнопки не меньше 48 px. */
:root {
  --ink: #1c1c1e;
  --muted: #8e8e93;
  --soft: #6e6e73;
  --card: #ffffff;
  --fill: #f2f2f7;      /* фон кнопок ответов */
  --fill-press: #e3e3e8;
  --line: #e5e5ea;
  --brand: #1f5fd1;
  --good: #34a35a;
  --bad: #e0473a;
  --wine: #8f3a48;     /* тусклый бордовый: «подробнее», перемотка */
  --tap: 48px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: Inter, -apple-system, system-ui, sans-serif;
  color: var(--ink);
  background: var(--card);
  display: grid;
  grid-template-rows: 66.6dvh 1fr;
  height: 100dvh;
  overflow: hidden;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; touch-action: manipulation; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.stage { position: relative; min-height: 0; overflow: hidden; background: #cfe0ea; }
#view { width: 100%; height: 100%; display: block; touch-action: manipulation; }
#labels { position: absolute; inset: 0; pointer-events: none; }
.tag {
  position: absolute; left: 0; top: 0; will-change: transform;
  background: var(--c, #3d4352); color: #fff;
  padding: 4px 9px; border-radius: 11px;
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
  font-size: 13px; font-weight: 600; box-shadow: 0 2px 8px rgba(0,0,0,.2);
  transition: background .3s;
}
.tag b { font-size: 15px; }
.tag small { opacity: .92; font-size: 12px; }
.tag .num { background: #fff; color: var(--c); border-radius: 50%; width: 20px; height: 20px; display: grid; place-items: center; font-weight: 800; font-size: 12px; }

/* ---- Меню: полоски сверху посередине, панель выезжает вниз ---- */
.menu { position: absolute; top: 0; left: 50%; z-index: 6; display: grid; justify-items: center; transform: translate(-50%, calc(-100% + 30px)); transition: transform .32s cubic-bezier(.2,.8,.2,1); touch-action: none; }
.menu.open { transform: translate(-50%, 0); }
.menu-bar { display: flex; gap: 4px; padding: 6px; padding-top: max(6px, env(safe-area-inset-top)); background: rgba(255,255,255,.72); -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6); border-radius: 0 0 20px 20px; box-shadow: 0 6px 24px rgba(0,0,0,.12); }
.menu-handle { width: 72px; height: 30px; border: 0; background: none; padding: 0; display: grid; align-content: center; justify-items: center; gap: 3px; cursor: pointer; }
.menu-handle i { display: block; width: 28px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.85); box-shadow: 0 0 3px rgba(0,0,0,.25); }
/* каскад: сверху длинная полоска, ниже короче, ещё короче */
.menu-handle i:nth-child(2) { width: 19px; }
.menu-handle i:nth-child(3) { width: 10px; }
.tool { position: relative; width: var(--tap); height: var(--tap); display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: var(--ink); border-radius: 13px; cursor: pointer; }
.tool:active { background: rgba(0,0,0,.08); }
.tool svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.tool .badge-bg { fill: rgba(255,255,255,.95); stroke: none; }
.tool .val { position: absolute; right: 3px; bottom: 5px; font-size: 10px; font-weight: 700; line-height: 1; color: var(--soft); background: rgba(255,255,255,.9); border-radius: 6px; padding: 1px 3px; }
.tool.on .val { color: var(--brand); }
.tool[aria-pressed="false"] { color: var(--muted); }
.tool[aria-pressed="false"]::after { content: ''; position: absolute; left: 12px; right: 12px; top: 50%; height: 1.7px; background: currentColor; transform: rotate(-40deg); border-radius: 2px; }
.tool[aria-pressed="false"] .waves { opacity: 0; }

/* ---- На карте: ↻ слева сверху, ‹ и › посередине по бокам. Еле заметны, на паузе (серый экран) темнее ---- */
.map-nav { position: absolute; inset: 0; z-index: 4; pointer-events: none; transition: opacity .25s; }
.map-nav button { position: absolute; width: var(--tap); height: var(--tap); border: 0; background: none; padding: 0; display: grid; place-items: center; color: rgba(28,28,30,.32); cursor: pointer; transition: color .5s; pointer-events: auto; }
.map-nav #restart { left: 4px; top: max(4px, env(safe-area-inset-top)); }
.map-nav #q-prev { left: 0; top: 50%; transform: translateY(-50%); }
.map-nav #q-next { right: 0; top: 50%; transform: translateY(-50%); }
.map-nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 2px rgba(255,255,255,.7)); }
.map-nav #q-prev svg, .map-nav #q-next svg { width: 28px; height: 28px; }
.map-nav button:disabled { visibility: hidden; }
.stage.is-gray .map-nav button { color: rgba(28,28,30,.72); }
.ticket-no { position: absolute; right: 8px; bottom: 4px; margin: 0; z-index: 2; font-size: 10px; font-weight: 500; color: rgba(28,28,30,.38); pointer-events: none; letter-spacing: .02em; }

/* ---- Билет ---- */
.ticket { background: var(--card); overflow-y: auto; padding: 10px 14px calc(18px + env(safe-area-inset-bottom)); -webkit-overflow-scrolling: touch; }
.question { font-size: 16px; line-height: 1.3; font-weight: 650; margin: 0 0 8px; }
.hint { margin: -2px 0 8px; color: var(--muted); font-size: 14px; }
.hint[hidden] { display: none; }
.options { display: grid; gap: 6px; }
/* Вдобавок к стрелкам на карте - предыдущий / заново / следующий: три тонкие длинные полоски под ответами, над картинкой билета (Степан 03.11.2026).
   Видна полоска 22 px, а нажимается вся высота 48 px. */
.q-nav { display: flex; gap: 8px; margin: 2px 0 -10px; }
.q-nav button { flex: 1; min-width: 0; height: var(--tap); border: 0; background: none; padding: 0; display: flex; align-items: center; cursor: pointer; color: var(--soft); }
.q-nav button > span { flex: 1; height: 22px; border-radius: 11px; background: var(--fill); display: grid; place-items: center; transition: background .15s; }
.q-nav button:not(:disabled):active > span { background: var(--fill-press); }
@media (hover: hover) { .q-nav button:not(:disabled):hover > span { background: #ebebf0; } }
.q-nav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.q-nav button:disabled { visibility: hidden; }
.opt { position: relative; display: flex; gap: 10px; align-items: center; text-align: left; min-height: var(--tap); font-size: 15px; line-height: 1.25; padding: 6px 12px 6px 8px; border: 0; border-radius: 13px; background: var(--fill); cursor: pointer; color: var(--ink); transition: background .15s; }
.opt .n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 15px; color: var(--soft); }
.opt .t { flex: 1; min-width: 0; }
.opt:not(:disabled):active { background: var(--fill-press); }
@media (hover: hover) { .opt:not(:disabled):hover { background: #ebebf0; } }
.opt:disabled { cursor: default; }
.opt:disabled:not(.wrong):not(.right) { color: #8a8a8e; }
/* Верно/неверно: рамка и фон прежние, меняется только значок слева. */
.opt.right .n { background: var(--good); color: #fff; font-size: 16px; }
.opt.wrong .n { background: var(--bad); color: #fff; font-size: 17px; }
.opt.wrong.crash .n { font-size: 19px; font-weight: 800; }
.result { margin: 10px 0 0; padding: 10px 12px; border-radius: 13px; font-size: 15px; line-height: 1.4; background: var(--fill); }
.result b { font-weight: 700; }
.result.ok b { color: var(--good); }
.result.bad b { color: #b5382c; }
.result.timeout b { color: #9a6a12; }
.result q { font-weight: 650; }
.result em { display: block; color: var(--muted); font-style: normal; font-size: 13px; margin-top: 4px; }
.ticket-img { display: block; width: 100%; max-width: 640px; aspect-ratio: 604 / 225; object-fit: cover; border-radius: 12px; background: var(--fill); margin: 14px auto 0; }
.tiles-title { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 18px 0 8px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; }
.tile { min-height: 52px; display: grid; place-items: center; border-radius: 13px; font-size: 17px; font-weight: 700; text-decoration: none; color: var(--ink); background: var(--fill); border: 2px solid transparent; }
.tile.ok { color: var(--good); }
.tile.error { color: var(--bad); }
.tile.current { border-color: #c7c7cc; }

@media (min-width: 900px) {
  body { grid-template-columns: 1fr minmax(380px, 440px); grid-template-rows: 1fr; }
  .ticket { border-left: 1px solid var(--line); padding: 0; display: flex; flex-direction: column; overflow: hidden; }
  /* Обновление 22: билет статичен, плитка прокручивается отдельно и уходит «за» блок билета (тень и растворение сверху). */
  .ticket-card { flex: none; position: relative; z-index: 2; padding: 18px 18px 14px; background: var(--card); box-shadow: 0 8px 14px -10px rgba(0,0,0,.22); max-height: 74%; overflow-y: auto; }
  .tiles-box { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 18px 18px; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22px); mask-image: linear-gradient(to bottom, transparent 0, #000 22px); }
  .tiles-box .tiles-title { margin-top: 14px; }
  .question { font-size: 18px; margin-bottom: 12px; }
  .options { gap: 8px; }
  .q-nav { margin: 4px 0 -10px; }
  .opt { min-height: 54px; font-size: 16px; }
  .ticket-no { font-size: 11px; }
}

.rule-warning { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 10; background: #e0473a; color: #fff; padding: 10px 14px; border-radius: 12px; font-size: 14px; box-shadow: 0 4px 16px rgba(0,0,0,.25); }

/* ---- Разбор ошибки: стоп-кадр, вспышка, перемотка ---- */
.stage::after { content: ''; position: absolute; inset: 0; pointer-events: none; border: 0 solid transparent; transition: border-width .2s, background .2s; }
.stage.is-crash::after { border: 6px solid #e0473a; box-shadow: inset 0 0 80px rgba(224,71,58,.55); animation: crash-flash .5s ease-out; }
.stage.is-violation::after { border: 6px solid #f59e0b; box-shadow: inset 0 0 60px rgba(245,158,11,.45); }
@keyframes crash-flash { 0% { background: rgba(255,60,40,.55); } 100% { background: transparent; } }
.incident { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(94%, 540px); background: #fff; border-radius: 14px; padding: 10px 14px; box-shadow: 0 8px 28px rgba(0,0,0,.25); display: grid; gap: 4px; animation: pop .35s cubic-bezier(.2,1.4,.4,1); z-index: 3; }
.incident b { font-size: 16px; }
.incident.crash b { color: #c2261a; }
.incident.violation b { color: #b45309; }
.incident span { font-size: 15px; line-height: 1.35; }
.incident em { font-style: normal; font-size: 13px; color: var(--muted); }
.incident[hidden] { display: none; }
@keyframes pop { from { transform: translateX(-50%) scale(.85); opacity: 0; } to { transform: translateX(-50%) scale(1); opacity: 1; } }
.rewind-badge { position: absolute; top: 14px; left: 56px; width: 34px; height: 34px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.rewind-badge svg { width: 100%; height: 100%; fill: var(--wine); }
.stage.is-rewind .rewind-badge { opacity: .55; }
@keyframes blink { 50% { opacity: .35; } }

/* ---- Верно: тусклая зелёная галочка по центру карты ---- */
.done-check { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; z-index: 3; pointer-events: none; animation: check-in .5s ease-out both; }
.done-check[hidden] { display: none; }
.done-check svg { width: 100%; height: 100%; fill: none; stroke: #2f9a58; stroke-width: 4.4; stroke-linecap: round; stroke-linejoin: round; opacity: .85; filter: drop-shadow(0 0 4px rgba(255,255,255,.95)) drop-shadow(0 1px 2px rgba(0,0,0,.18)); stroke-dasharray: 40; animation: check-draw .6s .1s ease-out both; }
@keyframes check-in { from { opacity: 0; transform: scale(.9); } }
@keyframes check-draw { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }

/* ---- Аватар инструктора (голосовые комментарии): место в интерфейсе, контента пока нет ---- */
.coach { position: absolute; left: 10px; bottom: 10px; z-index: 4; display: flex; align-items: flex-end; gap: 8px; max-width: min(80%, 420px); pointer-events: none; }
.coach[hidden] { display: none; }
.coach-avatar { flex: none; width: 64px; height: 64px; border-radius: 50%; background: #fff url(/img/logo.png) center / 70% no-repeat; border: 3px solid var(--brand); box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.coach.talking .coach-avatar { animation: talk .6s ease-in-out infinite alternate; }
.coach-text { margin: 0 0 8px; background: #fff; border-radius: 14px; padding: 8px 12px; font-size: 15px; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.coach-text:empty { display: none; }
@keyframes talk { to { transform: scale(1.06); } }

/* ---- Знак: рамка с названием и «подробнее», большая рамка со справкой ---- */
.sign-tip { position: absolute; left: 0; top: 0; z-index: 7; background: #fff; border-radius: 6px; padding: 8px 12px 7px; box-shadow: 0 4px 18px rgba(0,0,0,.18); font-size: 14px; line-height: 1.35; color: var(--muted); max-width: 240px; }
.sign-tip[hidden] { display: none; }
.sign-tip .row b { color: var(--soft); font-weight: 650; margin-right: 5px; }
.sign-tip .more { display: block; margin: 4px 0 0; padding: 4px 0 0; border: 0; background: none; color: var(--wine); opacity: .8; font-size: 13px; cursor: pointer; min-height: 28px; }
.sign-card { position: absolute; left: 50%; top: 50%; z-index: 8; width: min(92%, 460px); max-height: 86%; transform: translate(-50%, -50%); background: #fff; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,.25); overflow-y: auto; padding: 14px 16px 16px; color: var(--soft); font-size: 14px; line-height: 1.45; animation: card-in .25s ease-out; }
.sign-card[hidden] { display: none; }
@keyframes card-in { from { opacity: 0; transform: translate(-50%, -48%); } }
.sign-card .close { position: sticky; top: -6px; float: right; width: 40px; height: 40px; margin: -8px -10px 0 0; border: 0; background: none; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; }
.sign-card section + section { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.sign-card .head { display: flex; gap: 12px; align-items: center; margin-bottom: 6px; }
.sign-card .head canvas { width: 54px; height: auto; flex: none; }
.sign-card h3 { margin: 0; font-size: 16px; color: var(--ink); font-weight: 650; }
.sign-card h3 b { color: var(--soft); margin-right: 6px; }
.sign-card p { margin: 6px 0; }
.sign-card h4 { margin: 10px 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.sign-card .rule b { color: var(--ink); font-weight: 600; margin-right: 4px; }
.sign-card .src { font-size: 11px; color: #aeaeb2; margin-top: 12px; }

/* Цвет серии «Глубокий»: аналог build.py (уровни 0.10-0.98 = contrast 1.25 + brightness 0.91; vibrance + saturation ≈ saturate 1.55, подобрано по ffmpeg-кадру) */
#view.grade-deep { filter: contrast(1.25) brightness(0.91) saturate(1.55); }

/* Телефон: на сцене только заголовок и пункт правил - сам кадр аварии не закрываем, «почему» - в окне билета. */
@media (max-width: 899px) {
  .incident { width: auto; max-width: 92%; padding: 8px 14px; bottom: 18px; }
  .incident span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .incident, .stage.is-crash::after, .coach.talking .coach-avatar, .done-check, .done-check svg { animation: none; }
  .menu { transition: none; }
}

/* ---- Наши значки знаков (виды «Сверху» и «Угол»): у настоящего знака, на обочине ---- */
.sign-icons { position: absolute; inset: 0; pointer-events: none; }
.sign-ico { position: absolute; left: 0; top: 0; width: 45px; display: grid; gap: 2px; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); transition: opacity .25s; }
.sign-ico.off { opacity: 0; pointer-events: none; }
.sign-ico canvas { width: 100%; height: auto; display: block; }
.sign-ico canvas.plate { width: 82%; margin: 0 auto; }

/* ---- Таймер на ответ ---- */
.timer-badge { position: absolute; right: 10px; top: max(10px, env(safe-area-inset-top)); width: 50px; height: 50px; z-index: 3; display: grid; place-items: center; background: rgba(255,255,255,.9); border-radius: 50%; box-shadow: 0 3px 12px rgba(0,0,0,.18); --k: 1; }
.timer-badge[hidden] { display: none; }
.timer-badge svg { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); transform: rotate(-90deg); }
.timer-badge circle { fill: none; stroke-width: 4; }
.timer-badge .bg { stroke: #e5e5ea; }
.timer-badge .arc { stroke: var(--brand); stroke-linecap: round; stroke-dasharray: 119.4; stroke-dashoffset: calc(119.4 * (1 - var(--k))); }
.timer-badge.hurry .arc { stroke: #e0473a; }
.timer-badge .sec { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.timer-badge.hurry .sec { color: #c2261a; }
/* время вышло: песочные часы */
.timer-badge.out { background: #fff; animation: pop-in .35s; }
.timer-badge.out svg { display: none; }
.timer-badge.out::before { content: '⌛'; font-size: 24px; }
@keyframes pop-in { from { transform: scale(.6); } to { transform: scale(1); } }

/* ---- Тест: очередь проезда на кнопках ответов (?seqicons=1) ---- */
/* Значки поверх правого нижнего угла кнопки, места под себя не забирают - кнопки того же размера, текст не переносится лишний раз. */
.opt .seq { position: absolute; right: 8px; bottom: 7px; display: flex; align-items: flex-end; height: 30px; pointer-events: none; }
.opt .seq img { position: relative; height: auto; max-height: 24px; max-width: 34px; margin-left: -17px; filter: grayscale(1) opacity(.55); }
.opt .seq img:first-child { margin-left: 0; }
.opt .seq img:nth-child(2) { top: -3px; }
.opt .seq img:nth-child(3) { top: -6px; }
.opt .seq img:nth-child(4) { top: -9px; }
.opt .seq img.lead { filter: none; }

.stage.menu-open .map-nav { opacity: 0; }
.stage.menu-open .map-nav button { pointer-events: none; }

/* ---- Подсказка: наш логотип на нижней трети карты, справа; тап - карточка подсказки над ним ---- */
.hint-logo { position: absolute; right: 10px; top: calc(66.6% - 28px); z-index: 4; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%; background: #000 url(/img/logo-192.png) center / cover no-repeat; box-shadow: 0 4px 14px rgba(0,0,0,.28), 0 0 0 2px rgba(255,255,255,.85); cursor: pointer; transition: transform .2s, box-shadow .2s; animation: hint-in .35s ease-out both; }
.hint-logo[hidden] { display: none; }
.hint-logo:active { transform: scale(.94); }
.hint-logo.open { box-shadow: 0 4px 14px rgba(0,0,0,.28), 0 0 0 3px #f5b40e; }
@keyframes hint-in { from { opacity: 0; transform: scale(.7); } }
.hint-card { position: absolute; right: 10px; bottom: calc(33.4% + 36px); z-index: 5; width: min(300px, calc(100% - 20px)); background: #fff; border-radius: 14px; padding: 10px 14px 11px; box-shadow: 0 8px 28px rgba(0,0,0,.22); font-size: 15px; line-height: 1.4; color: var(--ink); animation: card-pop .25s ease-out; }
.hint-card[hidden] { display: none; }
.hint-card b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #b08305; margin-bottom: 3px; }
.hint-card p { margin: 0; }
.hint-card::after { content: ''; position: absolute; right: 22px; bottom: -7px; width: 14px; height: 14px; background: #fff; transform: rotate(45deg); border-radius: 0 0 3px 0; }
@keyframes card-pop { from { opacity: 0; transform: translateY(6px); } }
.stage.menu-open .hint-card { display: none; }

/* ---- Регулировщик: плашка у левого края, как меню сверху (правки 17): картинка в его позе и тем боком, каким стоит к нам ---- */
/* Регулировщик: статичная серая иконка слева, по вертикали ровно посередине между ↻ (центр 28px от верха) и ‹ (центр 50%).
   Сплошные линии цвета ↻ ‹ › без ореола (Степан 01.11.2026): маска непрозрачная (фильтр поднимает альфу
   полутоновых краёв картинки), прозрачность .32 как у стрелок, на паузе .72. Картинка перекрашивается маской, толщина линий - фильтром (reg-thick-*). */
.reg-icon { position: absolute; left: 2px; top: calc((max(4px, env(safe-area-inset-top)) + 24px + 50%) / 2); transform: translateY(-50%); z-index: 4; width: 68px; display: flex; flex-direction: column; align-items: center; gap: 2px; pointer-events: none; user-select: none; }
.reg-icon[hidden] { display: none; }
.reg-ink { width: 68px; height: 112px; opacity: .32; transition: opacity .5s; filter: url(#reg-thick-0); }
.reg-mask { width: 100%; height: 100%; background: rgb(28,28,30); -webkit-mask: var(--reg-src) center / contain no-repeat; mask: var(--reg-src) center / contain no-repeat; }
.stage.is-gray .reg-ink, .stage.is-gray .reg-cap { opacity: .72; }
.reg-icon[data-v="2"] .reg-ink, .reg-icon[data-v="4"] .reg-ink, .reg-icon[data-v="5"] .reg-ink { filter: url(#reg-thick-1); }
.reg-icon[data-v="3"] .reg-ink { filter: url(#reg-thick-2); }
.reg-icon[data-v="4"] { left: 0; padding: 6px 0; border-radius: 0 34px 34px 0; background: rgba(255,255,255,.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.reg-cap { display: none; width: 56px; font-size: 9px; line-height: 1.15; font-weight: 600; text-align: center; color: rgb(28,28,30); opacity: .32; }
.reg-icon[data-v="5"] .reg-cap { display: block; }
.reg-svg svg { display: block; width: 100%; height: 100%; opacity: .5; filter: grayscale(1); }
@media (min-width: 900px) { .reg-icon, .reg-ink { width: 90px; } .reg-ink { height: 150px; } .reg-icon[data-v="4"] { border-radius: 0 36px 36px 0; } .reg-cap { width: 76px; font-size: 10px; } }
/* Обновление 18: звуковой сигнал у спецмашины - «волны» у буквы */
.tag .siren { font-style: normal; font-weight: 800; color: #ff5a4a; margin: 0 2px; letter-spacing: -1px; }

/* Статичные билеты (01.11.2026): зона знаков стоянки - кнопки дня и времени под ответом; разделы плитки. */
.zone-ctl { margin: 10px 0 0; padding: 10px 12px; border-radius: 13px; background: var(--fill); }
.zone-cap { margin: 0 0 8px; font-size: 14px; line-height: 1.35; color: var(--soft); }
.zone-cap .zr { color: var(--bad); } .zone-cap .zg { color: var(--good); }
.zrow { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.zchip { min-height: var(--tap); padding: 0 16px; border-radius: 999px; border: 2px solid var(--line); background: var(--card); color: var(--ink); font-size: 15px; font-weight: 600; cursor: pointer; }
.zchip[aria-pressed="true"] { border-color: var(--brand); color: var(--brand); background: #eaf1fd; }
.tiles-group { grid-column: 1 / -1; font-size: 12px; font-weight: 600; color: var(--muted); margin: 6px 0 -2px; }
.ticket-img[hidden] { display: none; }

/* Обновление 24: на неверных ответах с подсветкой иконка регулировщика обведена неоновой линией только по наружному
   контуру фигуры - готовая маска контура public/img/regulator/glow/*.png (scripts/regulator_glow.py). */
.reg-glow { position: absolute; left: 0; top: 0; width: 100%; height: 112px; opacity: 0; pointer-events: none; background: var(--glow, #2ee6ff); -webkit-mask: var(--reg-glow-src) center / contain no-repeat; mask: var(--reg-glow-src) center / contain no-repeat; filter: drop-shadow(0 0 5px var(--glow, #2ee6ff)) drop-shadow(0 0 2px var(--glow, #2ee6ff)); transition: opacity .3s; }
@media (min-width: 900px) { .reg-glow { height: 150px; } }
.reg-icon.glow .reg-glow { opacity: 1; }
