/* Маршрут с развилками (раздел 35, V2.49): встроенная карта, выбор пути у игрока и на трансляции, пульт,
   блок «Маршрут» в конструкторе. Карта — тёмная всегда (встроенная карта, 35.5), независимо от темы. */

/* ---------- карта маршрута (35.5, V2.49.3): вписана целиком; точки, выноски и подписи — постоянного экранного
   размера. Цвета состояний: пройдено — зелёный, мы здесь — жёлтый с пульсом, вариант — розовый */
.rmap { --rm-passed: #3ddc97; --rm-here: #ffd23f; --rm-option: #ff6fb1; --rm-ahead: #6b739f; --rm-ink: #eef0ff; --rm-bg: #0b0e22;
  display: flex; flex-direction: column; gap: 8px; width: 100%; }
.rmap__view { container-type: size; width: 100%; aspect-ratio: 16 / 10; display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 40%, #1b2147 0%, var(--rm-bg) 70%); border-radius: var(--radius); }
.rmap__fit { position: relative; width: 100%; aspect-ratio: var(--ar, 1.6); }
@supports (width: 1cqw) { .rmap__fit { width: min(100cqw, calc(100cqh * var(--ar, 1.6))); } }
.rmap__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rmap__edge { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.rmap__edge--ahead { stroke: #3a4170; stroke-width: 3; stroke-dasharray: 2 7; }
.rmap__edge--passed, .rmap__edge--draw { stroke: var(--rm-passed); stroke-width: 6; }
.rmap__edge--option { stroke: var(--rm-option); stroke-width: 4; stroke-dasharray: 9 9; }
.rmap__node { position: absolute; width: 0; height: 0; color: var(--rm-ahead); }
.rmap__node--passed { color: var(--rm-passed); }
.rmap__node--here { color: var(--rm-here); z-index: 2; }
.rmap__node--option, .rmap__node--target { color: var(--rm-option); z-index: 1; }
.rmap__dot { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); width: 14px; height: 14px; padding: 0; border-radius: 50%;
  border: 2px solid var(--rm-bg); background: currentColor; cursor: pointer; font: 800 13px/1 system-ui, sans-serif; color: inherit; }
.rmap__dot::before { content: ""; position: absolute; inset: -12px; border-radius: 50%; }   /* область касания — 38 px и больше */
.rmap__node--ahead .rmap__dot { width: 11px; height: 11px; }
.rmap__node--here .rmap__dot { width: 20px; height: 20px; box-shadow: 0 0 0 0 rgba(255, 210, 63, .7); animation: rmap-pulse 1.6s ease-out infinite; }
.rmap__node--option .rmap__dot, .rmap__node--target .rmap__dot { width: 24px; height: 24px; }
.rmap__dot { -webkit-text-fill-color: var(--rm-bg); }
.rmap__dot:focus-visible, .rmap__node--hl .rmap__dot { outline: 3px solid #fff; outline-offset: 2px; }
@keyframes rmap-pulse { to { box-shadow: 0 0 0 16px rgba(255, 210, 63, 0); } }
/* выноска: линия от точки к полке с названием и строкой состояния */
.rmap__lead { position: absolute; width: 18px; height: 26px; overflow: visible; pointer-events: none; }
.rmap__lead line { stroke: currentColor; stroke-width: 2; }
.rmap__shelf { position: absolute; display: flex; flex-direction: column; max-width: 170px; width: max-content; padding: 0 3px 3px; border-bottom: 2px solid currentColor; pointer-events: none; }
.rmap__name { color: var(--rm-ink); font-size: 15px; line-height: 1.2; overflow: hidden; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; text-shadow: 0 1px 3px var(--rm-bg), 0 0 8px var(--rm-bg); }
.rmap__status { font-size: 12px; font-weight: 700; line-height: 1.25; white-space: nowrap; text-shadow: 0 1px 3px var(--rm-bg); }
.rmap__node--right.rmap__node--up .rmap__lead { left: 0; bottom: 0; }
.rmap__node--right.rmap__node--up .rmap__shelf { left: 18px; bottom: 26px; }
.rmap__node--left.rmap__node--up .rmap__lead { right: 0; bottom: 0; transform: scaleX(-1); }
.rmap__node--left.rmap__node--up .rmap__shelf { right: 18px; bottom: 26px; text-align: right; align-items: flex-end; }
.rmap__node--right.rmap__node--down .rmap__lead { left: 0; top: 0; transform: scaleY(-1); }
.rmap__node--right.rmap__node--down .rmap__shelf { left: 18px; top: 26px; border-bottom: 0; border-top: 2px solid currentColor; padding: 3px 3px 0; }
.rmap__node--left.rmap__node--down .rmap__lead { right: 0; top: 0; transform: scale(-1, -1); }
.rmap__node--left.rmap__node--down .rmap__shelf { right: 18px; top: 26px; border-bottom: 0; border-top: 2px solid currentColor; padding: 3px 3px 0; text-align: right; align-items: flex-end; }
.rmap__node--hl .rmap__shelf { background: rgba(255, 255, 255, .12); border-radius: 4px 4px 0 0; }
/* карточка локации: описание и черепа — при наведении, фокусе или касании; только просмотр */
.rmap__card { position: absolute; z-index: 5; width: max-content; max-width: min(280px, 70%); margin: 16px 0 0 16px; padding: 10px 12px; border-radius: var(--radius-sm);
  background: #161a3a; color: var(--rm-ink); border: 1px solid #4a5290; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); font-size: 14px; pointer-events: none; }
.rmap__card--left { transform: translateX(-100%); margin-left: -16px; }
.rmap__card--up { transform: translateY(-100%); margin-top: -16px; }
.rmap__card--left.rmap__card--up { transform: translate(-100%, -100%); }
.rmap__card p { margin: 4px 0 0; color: #c3c8ee; overflow-wrap: anywhere; }
.rmap__card b { overflow-wrap: anywhere; }
.rmap__cardst { font-size: 12px; font-weight: 700; color: var(--rm-ahead); }
.rmap__cardst--passed { color: var(--rm-passed); }
.rmap__cardst--here { color: var(--rm-here); }
.rmap__cardst--option, .rmap__cardst--target { color: var(--rm-option); }
.rmap__card--below { position: static; width: auto; max-width: none; margin: 0; transform: none; }
/* узкое окно и телефон: точка и номер, названия — на карточках выбора */
.rmap--narrow .rmap__edge--passed, .rmap--narrow .rmap__edge--draw { stroke-width: 5; }
/* экран трансляции: крупнее */
.rmap--big .rmap__name { font-size: 24px; }
.rmap--big .rmap__status { font-size: 17px; }
.rmap--big .rmap__shelf { max-width: 280px; border-width: 3px; }
.rmap--big .rmap__lead { width: 27px; height: 39px; }
.rmap--big .rmap__lead line { stroke-width: 1.6; }
.rmap--big .rmap__node--right .rmap__shelf { left: 27px; }
.rmap--big .rmap__node--left .rmap__shelf { right: 27px; }
.rmap--big .rmap__node--up .rmap__shelf { bottom: 39px; }
.rmap--big .rmap__node--down .rmap__shelf { top: 39px; }
.rmap--big .rmap__dot { width: 20px; height: 20px; font-size: 18px; }
.rmap--big .rmap__node--here .rmap__dot { width: 28px; height: 28px; }
.rmap--big .rmap__node--option .rmap__dot, .rmap--big .rmap__node--target .rmap__dot { width: 34px; height: 34px; }
.rmap--big .rmap__edge--passed, .rmap--big .rmap__edge--draw { stroke-width: 9; }
.rmap--big .rmap__edge--option { stroke-width: 6; stroke-dasharray: 14 14; }
.less-motion .rmap__node--here .rmap__dot { animation: none; box-shadow: 0 0 0 5px rgba(255, 210, 63, .35); }
@media (prefers-reduced-motion: reduce) { .rmap__node--here .rmap__dot { animation: none; box-shadow: 0 0 0 5px rgba(255, 210, 63, .35); } }
.rcard__num { display: inline-grid; place-items: center; width: 1.5em; height: 1.5em; margin-right: .45em; border-radius: 50%; background: #ff6fb1; color: #0b0e22; font-size: .8em; font-weight: 800; vertical-align: .08em; }

/* ---------- игрок и трансляция: карта и поверх — панель выбора */
.rstage { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: 16px; align-items: start; width: 100%; }
.rstage__map { min-width: 0; }
.rstage__map .rmap__view { min-height: 220px; }
.rstage__panel { display: flex; flex-direction: column; gap: 10px; }
.rstage__kicker { text-transform: uppercase; letter-spacing: .08em; font-size: 13px; color: var(--accent); font-weight: 800; }
.rstage__title { margin: 0; font-size: clamp(22px, 3vw, 34px); line-height: 1.15; }
.rstage__hint, .rstage__mine { color: var(--muted); margin: 0; }
.rstage__meta { display: flex; gap: 14px; align-items: baseline; color: var(--muted); }
.rstage__timer { font-size: 28px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.rcards { display: flex; flex-direction: column; gap: 10px; }
.rcard { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; transition: border-color .2s var(--ease); }
.rcard--mine { border-color: var(--ok); }
.rcard--turn { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 181, 71, .25); }
.rcard--win { border-color: var(--accent); }
.rcard__head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.rcard__name { font-size: 20px; }
.rcard__about { margin: 0; color: var(--muted); font-size: 15px; }
.rcard__votes { font-size: 15px; }
.rcard__btn { align-self: flex-start; }
.rstage--big { grid-template-columns: minmax(0, 1.6fr) minmax(360px, 1fr); }
.rstage--big .rstage__title { font-size: 44px; }
.rstage--big .rcard__name { font-size: 28px; }
.rstage--big .rcard__about { font-size: 20px; }
@media (max-width: 900px) {
  .rstage { grid-template-columns: 1fr; }
  .rstage__map .rmap__view { aspect-ratio: 16 / 9; min-height: 180px; }
}

/* ---------- пульт */
.hroute { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; margin: 8px 0; display: flex; flex-direction: column; gap: 4px; }
.hroute__opt--win { font-weight: 700; color: var(--ok); }
.hroute__map { margin-top: 6px; }
.hroute__map .rmap__view { aspect-ratio: auto; height: 200px; }

/* ---------- конструктор: блок «Маршрут» */
.rblock__sum { font-weight: 600; }
.rschema { position: relative; overflow: visible; margin: 8px 0 18px; max-width: 100%; }
.rschema--one { display: flex; }
.rschema__arrows { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
.rschema__arrows path { fill: none; stroke: var(--muted); stroke-width: 2; }
.rschema__arrows marker path { fill: var(--muted); stroke: none; }
.rschema__arrows .rschema__back { stroke: var(--bad); stroke-dasharray: 6 4; }
.rcardx { position: absolute; box-sizing: border-box; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 10px; display: flex; flex-direction: column; gap: 3px; cursor: pointer; overflow: hidden; box-shadow: var(--shadow); }
.rschema--one .rcardx { position: static; width: 240px; }
.rcardx:hover, .rcardx:focus-visible { border-color: var(--primary); outline: none; }
.rcardx--start { border-left: 4px solid var(--ok); }
.rcardx--on, .rcardx--picked { border-color: var(--primary); box-shadow: var(--focus); }
.rcardx--err { border-color: var(--bad); }
.rcardx__head { display: flex; justify-content: space-between; gap: 6px; }
.rcardx__head b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rcardx__issue { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rblock__edit { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; display: flex; flex-direction: column; gap: 8px; }
.tree__loc { font-size: 13px; padding: 4px 8px; margin: 2px 0 6px; background: var(--own-bg, #eef0ff); border-radius: var(--radius-sm); }
.tree__item--route { border-color: var(--line) !important; background: var(--surface-2) !important; }
.rresult { display: flex; flex-direction: column; gap: 4px; }
.rresult__row--win { color: var(--ok); }
.rstage--big .rresult__row { font-size: 22px; }

/* ---------- V2.49.1: правки по ревью 12 ноября */
.rcard__skulls { white-space: nowrap; flex: none; }
.rcard__name { overflow-wrap: anywhere; }
.rstage--big .rcard__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rstage--big .rcard__about { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rstage--big .rcard--turn .rcard__about { -webkit-line-clamp: 5; }   /* полное описание — у карточки «по очереди» */
.rstage--big .rstage__map .rmap__view { aspect-ratio: auto; height: min(70vh, 760px); }
.hroute__mapbox summary { cursor: pointer; color: var(--muted); }
.rschema-wrap { overflow-x: auto; max-width: 100%; padding-bottom: 4px; }
@media (max-width: 900px) {   /* телефон: до кнопок голоса — без долгой прокрутки, таймер на виду */
  .rstage--vote .rstage__map .rmap__view { aspect-ratio: 16 / 6; min-height: 120px; }
  .rstage--vote .rcard__about { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .rstage--vote .rstage__meta { position: sticky; top: 0; z-index: 2; background: var(--bg); padding: 6px 0; }
}

/* ---------- V2.49.3: вид автора в конструкторе; кнопки голоса — раньше точек карты в порядке Tab */
.rblock__map { max-width: 720px; }
.rblock__map .rmap__view { aspect-ratio: 16 / 8; }
.rstage__map { order: 0; }
.rstage__panel { order: 1; }
.stage:has(> .rstage) { max-width: 1240px; }   /* карте с выносками нужна ширина: на 1366×768 — около 700 px */
.stage:has(> .rstage--big) { max-width: 1760px; }
.rcardx__head span { white-space: nowrap; flex: none; }   /* черепа на карточке схемы — в одну строку */
/* полка над или под точкой (сбоку нет места): линия выноски — вертикальная */
.rmap__node--mid .rmap__lead { display: none; }
.rmap__node--mid::after { content: ""; position: absolute; left: -1px; width: 2px; height: 26px; background: currentColor; }
.rmap__node--mid.rmap__node--up::after { bottom: 0; }
.rmap__node--mid.rmap__node--down::after { top: 0; }
.rmap__node--mid.rmap__node--up .rmap__shelf { bottom: 26px; max-width: none; box-sizing: border-box; }
.rmap__node--mid.rmap__node--down .rmap__shelf { top: 26px; max-width: none; box-sizing: border-box; border-bottom: 0; border-top: 2px solid currentColor; padding: 3px 3px 0; }
.rmap--big .rmap__node--mid::after { height: 39px; width: 3px; }
.rmap--big .rmap__node--mid.rmap__node--up .rmap__shelf { bottom: 39px; }
.rmap--big .rmap__node--mid.rmap__node--down .rmap__shelf { top: 39px; }
.rcard__num { font-family: system-ui, sans-serif; text-shadow: none; letter-spacing: 0; line-height: 1; }   /* тема «Аркада»: свой шрифт и тень делали номер нечитаемым */

/* ---------- V2.50: сцена карты (тип «карта», 33.16) под слоем маршрута; вид — в пропорциях её холста */
.rmap__bg { position: absolute; inset: 0; overflow: hidden; border-radius: var(--radius-sm); }
.rmap__bg::after { content: ""; position: absolute; inset: 0; background: rgba(8, 10, 30, .3); pointer-events: none; }   /* приглушение: выноски и линия читаются на любой картинке */
.rmap.rmap--scene .rmap__view { aspect-ratio: var(--ar, 1.7778); height: auto; min-height: 0; max-height: 78vh; background: var(--rm-bg); }
.rmap--scene .rmap__shelf { background: rgba(11, 14, 34, .8); border-radius: 4px 4px 0 0; padding: 2px 6px 3px; }
.rmap--scene .rmap__node--down .rmap__shelf { border-radius: 0 0 4px 4px; padding: 3px 6px 2px; }
.rmap--scene .rmap__edge--ahead { stroke: #aab2e6; }
.rmap--scene .rmap__node--ahead { color: #c5cbf2; }
.rmap__frame { fill: rgba(255, 255, 255, .07); stroke: #fff; stroke-width: 2; stroke-dasharray: 7 6; vector-effect: non-scaling-stroke; pointer-events: none; }
.rmap__frame--passed { stroke: var(--rm-passed); }
.rmap__frame--here { stroke: var(--rm-here); }
.rmap__frame--option, .rmap__frame--target { stroke: var(--rm-option); }
/* полка из пака карты: линия выноски — от точки к label, полка уходит в сторону side */
.rmap__lead--free { left: 0; top: 0; width: 1px; height: 1px; }
.rmap__node--packl .rmap__shelf { text-align: right; align-items: flex-end; }

/* ---------- V2.50: конструктор — расстановка маршрута на карте */
.rplace { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.rplace__view { position: relative; width: 100%; max-width: 1100px; aspect-ratio: 16 / 9; background: #0b0e22; border-radius: var(--radius-sm); overflow: hidden; touch-action: none; user-select: none; }
.rplace__view--put { cursor: crosshair; }
.rplace__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.rplace__safe { fill: none; stroke: rgba(255, 255, 255, .45); stroke-width: 1; stroke-dasharray: 6 6; vector-effect: non-scaling-stroke; pointer-events: none; }
.rplace__line { fill: none; stroke: #3ddc97; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; pointer-events: none; }
.rplace__hit { fill: none; stroke: transparent; stroke-width: 18; vector-effect: non-scaling-stroke; pointer-events: stroke; cursor: copy; }
.rplace__place, .rplace__bend, .rplace__dot { position: absolute; transform: translate(-50%, -50%); padding: 0; cursor: grab; touch-action: none; }
.rplace__place { width: 18px; height: 18px; border-radius: 50%; border: 2px dashed #fff; background: rgba(11, 14, 34, .45); cursor: pointer; }
.rplace__place:hover, .rplace__place:focus-visible { background: rgba(255, 255, 255, .5); outline: none; border-style: solid; }
.rplace__bend { width: 13px; height: 13px; border-radius: 3px; border: 2px solid #0b0e22; background: #3ddc97; }
.rplace__dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #0b0e22; background: #ff6fb1; color: #0b0e22; -webkit-text-fill-color: #0b0e22; font: 800 13px/1 system-ui, sans-serif; text-shadow: none; z-index: 1; }
.rplace__dot--free { background: #ffd23f; }   /* своя точка — не на нарисованном месте */
.rplace__dot--start { box-shadow: 0 0 0 3px #3ddc97; }
.rplace__dot--on { outline: 3px solid #fff; outline-offset: 2px; z-index: 2; }
.rplace__dot:focus-visible, .rplace__bend:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.rplace__dot:active, .rplace__bend:active { cursor: grabbing; }
.rplace__tray { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rplace__chip { cursor: pointer; border: 1px solid var(--line); }
.rplace__chip--on { border-color: var(--primary); box-shadow: var(--focus); }
.rblock__scenehint { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
/* трансляция: карта 16:9 ниже прежней схемы — её колонка шире, чтобы картинка не мельчила */
.rstage--big:has(.rmap--scene) { grid-template-columns: minmax(0, 2.2fr) minmax(360px, 1fr); }

/* ---------- V2.51: экран голосования крупнее в обычном браузере (окно от 901 px; не трансляция и не телефон).
   Ориентир — середина между прежней вёрсткой и трансляцией; на невысоком окне (1366×768) размеры сжимаются
   по высоте, чтобы три варианта с кнопками и таймер были видны без прокрутки */
@media (min-width: 901px) {
  .stage:has(> .rstage:not(.rstage--big)) { max-width: 1600px; }
  .rstage:not(.rstage--big) { grid-template-columns: minmax(0, 1.7fr) minmax(340px, 1fr); gap: 20px; }
  .rstage:not(.rstage--big):has(.rmap--scene) { grid-template-columns: minmax(0, 2fr) minmax(340px, 1fr); }
  .rstage:not(.rstage--big) .rstage__panel { gap: min(10px, 1.2vh); }
  .rstage:not(.rstage--big) .rstage__title { font-size: clamp(24px, min(3.2vw, 4.4vh), 42px); }
  .rstage:not(.rstage--big) .rstage__kicker { font-size: 16px; }
  .rstage:not(.rstage--big) .rstage__timer { font-size: clamp(30px, 4.4vh, 40px); }
  .rstage:not(.rstage--big) .rstage__meta, .rstage:not(.rstage--big) .rstage__mine, .rstage:not(.rstage--big) .rstage__hint { font-size: 18px; }
  .rstage:not(.rstage--big) .rcards { gap: min(10px, 1.2vh); }
  .rstage:not(.rstage--big) .rcard { padding: clamp(10px, 1.7vh, 16px) 20px; gap: min(6px, .8vh); }
  .rstage:not(.rstage--big) .rcard__name { font-size: clamp(21px, 2.9vh, 26px); line-height: 1.2; }
  .rstage:not(.rstage--big) .rcard__num { width: 1.6em; height: 1.6em; font-size: .85em; }
  .rstage:not(.rstage--big) .rcard__about { font-size: clamp(16px, 2.1vh, 19px); }
  .rstage:not(.rstage--big) .rcard__votes { font-size: clamp(16px, 2vh, 18px); }
  .rstage:not(.rstage--big) .rcard__btn { align-self: stretch; width: auto; padding: clamp(8px, 1.5vh, 13px) 22px; font-size: 1.05rem; }   /* как btn--lg, во всю ширину карточки */
  .rstage:not(.rstage--big) .rresult__row { font-size: 18px; }
  .rstage:not(.rstage--big) .rstage__map .rmap__view { min-height: 260px; }
}
@media (min-width: 901px) {   /* голоса — в строке с кнопкой: карточка ниже, три варианта помещаются без прокрутки */
  .rstage--vote:not(.rstage--big) .rcard { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: center; }
  .rstage--vote:not(.rstage--big) .rcard__head, .rstage--vote:not(.rstage--big) .rcard__about { grid-column: 1 / -1; }
  .rstage--vote:not(.rstage--big) .rcard__about { line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .rstage--vote:not(.rstage--big) .rcard__btn { grid-column: 1; grid-row: 3; }
  .rstage--vote:not(.rstage--big) .rcard__votes { grid-column: 2; grid-row: 3; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* кнопки нет (голосование закрыто, зритель без команды): голоса — строкой во всю ширину, с переносом */
  .rstage--vote:not(.rstage--big) .rcard:not(:has(.rcard__btn)) .rcard__votes { grid-column: 1 / -1; max-width: none; white-space: normal; overflow: visible; }
}
@media (min-width: 901px) and (max-height: 860px) {
  /* невысокое окно (1366×768): заголовок и таймер — над картой, колонка справа целиком под варианты; описание —
     две строки. Так три варианта с кнопками и таймер видны без прокрутки и в «Аркаде» (у неё сверху табло команды) */
  .rstage--vote:not(.rstage--big) { grid-template-rows: auto auto 1fr auto; row-gap: 10px; }
  .rstage--vote:not(.rstage--big) .rstage__panel { display: contents; }
  .rstage--vote:not(.rstage--big) .rstage__kicker { display: none; }
  .rstage--vote:not(.rstage--big) .rstage__title { grid-column: 1; grid-row: 1; font-size: clamp(22px, 3.4vh, 30px); }
  .rstage--vote:not(.rstage--big) .rstage__meta { grid-column: 1; grid-row: 2; }
  .rstage--vote:not(.rstage--big) .rstage__map { grid-column: 1; grid-row: 3; }
  .rstage--vote:not(.rstage--big) .rcards { grid-column: 2; grid-row: 1 / span 3; align-self: start; }
  .rstage--vote:not(.rstage--big) .rstage__mine { grid-column: 2; grid-row: 4; }
  .rstage--vote:not(.rstage--big) > .rstage__panel > .error { grid-column: 1; grid-row: 4; }
  .rstage--vote:not(.rstage--big) .rstage__map .rmap__view { min-height: 200px; }
  .rstage--vote:not(.rstage--big) .rcard__about { -webkit-line-clamp: 2; line-clamp: 2; }
  .theme-game.t-arcade .rstage--vote:not(.rstage--big) .rcard__btn { margin: 2px 6px; }
}
/* карта у игрока в браузере: точки и подписи — 0,75 от трансляции */
.rmap--mid .rmap__name { font-size: 18px; }
.rmap--mid .rmap__status { font-size: 13px; }
.rmap--mid .rmap__shelf { max-width: 210px; }
.rmap--mid .rmap__lead { width: 20px; height: 29px; }
.rmap--mid .rmap__node--right .rmap__shelf { left: 20px; }
.rmap--mid .rmap__node--left .rmap__shelf { right: 20px; }
.rmap--mid .rmap__node--up .rmap__shelf { bottom: 29px; }
.rmap--mid .rmap__node--down .rmap__shelf { top: 29px; }
.rmap--mid .rmap__dot { width: 15px; height: 15px; font-size: 14px; }
.rmap--mid .rmap__node--ahead .rmap__dot { width: 12px; height: 12px; }
.rmap--mid .rmap__node--here .rmap__dot { width: 21px; height: 21px; }
.rmap--mid .rmap__node--option .rmap__dot, .rmap--mid .rmap__node--target .rmap__dot { width: 26px; height: 26px; }
.rmap--mid .rmap__edge--passed, .rmap--mid .rmap__edge--draw { stroke-width: 7; }
.rmap--mid .rmap__edge--option { stroke-width: 5; stroke-dasharray: 11 11; }
.rmap--mid .rmap__node--mid::after { height: 29px; }
.rmap--mid .rmap__node--mid.rmap__node--up .rmap__shelf { bottom: 29px; }
.rmap--mid .rmap__node--mid.rmap__node--down .rmap__shelf { top: 29px; }
.rmap--mid .rmap__card { font-size: 16px; max-width: min(340px, 70%); }
.rblock__loose { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- V2.51: экран голосования на развилке в «Аркаде» (правила темы — здесь: themes.css собирает генератор) — в одном стиле с вопросами и вариантами ответа
   (.option): карточки вариантов, заголовки, таймер, итог голосования и всплывающая карточка карты */
.theme-game.t-arcade .rcard { background: var(--surface); border: 3px solid var(--vio); border-radius: 0; }
.theme-game.t-arcade .rcard--mine { border-color: var(--yel); background: linear-gradient(rgba(249, 200, 14, .1), rgba(249, 200, 14, .1)), var(--surface); }
.theme-game.t-arcade .rcard--turn { border-color: var(--cyan); box-shadow: 0 0 14px rgba(45, 226, 230, .45); }
.theme-game.t-arcade .rcard--win { border-color: var(--ok); background: linear-gradient(var(--ok-bg), var(--ok-bg)), var(--surface); }
.theme-game.t-arcade .rcard__name { font-family: var(--font-label); font-weight: 400; text-transform: uppercase; letter-spacing: .04em; color: #FFF; }
.theme-game.t-arcade .rcard__num { background: var(--mag); color: #120330; -webkit-text-fill-color: #120330; font-family: system-ui, sans-serif; font-weight: 800; letter-spacing: 0; text-shadow: none; }
.theme-game.t-arcade .rcard__about { font-family: var(--font); color: var(--text); opacity: .85; }
.theme-game.t-arcade .rcard__votes { font-family: var(--font-label); text-transform: uppercase; letter-spacing: .04em; }
.theme-game.t-arcade .rcard__votes b { color: var(--yel); }
.theme-game.t-arcade .rstage__kicker { font-family: var(--font-label); font-weight: 400; letter-spacing: .04em; color: var(--cyan); text-shadow: 0 0 6px rgba(45, 226, 230, .8); }
.theme-game.t-arcade .rstage__timer { font-family: var(--font-pix); font-weight: 400; color: var(--yel); text-shadow: 0 0 6px rgba(249, 200, 14, .9), 0 0 18px rgba(249, 200, 14, .45); }
/* пиксельный шрифт шире обычного: в браузере таймер «Аркады» — до 28 px (в остальных темах — до 40) */
@media (min-width: 901px) { .theme-game.t-arcade .rstage:not(.rstage--big) .rstage__timer { font-size: clamp(20px, 3.2vh, 28px); } }
.theme-game.t-arcade .rstage--big .rstage__timer { font-size: 32px; }
.theme-game.t-arcade .rstage__meta, .theme-game.t-arcade .rstage__hint, .theme-game.t-arcade .rstage__mine { color: var(--text); }
.theme-game.t-arcade .rresult__row { font-family: var(--font-label); text-transform: uppercase; letter-spacing: .04em; }
.theme-game.t-arcade .rresult__row--win { color: var(--ok); }
.theme-game.t-arcade .rmap__card { background: var(--surface); border: 2px solid var(--vio); border-radius: 0; }
.theme-game.t-arcade .rmap__card b { font-family: var(--font-label); font-weight: 400; text-transform: uppercase; letter-spacing: .04em; }
@media (min-width: 901px) { .theme-game.t-arcade .rstage:not(.rstage--big) .rcard__btn { margin: 6px; font-size: 1.1em; } }

/* ---------- V2.52: редактор схемы маршрута (35.3, этап II) — карточки двигаются, связи рисуются и перецепляются */
.rschema__bar { align-items: center; gap: 8px; margin-top: 6px; }
.rschema--edit { touch-action: none; user-select: none; background-image: radial-gradient(circle, var(--line) 1px, transparent 1px); background-size: 16px 16px; border-radius: var(--radius-sm); min-width: 100%; }
.rschema--edit .rschema__arrows { pointer-events: none; }
.rschema__arrows .rschema__line { fill: none; stroke: var(--muted); stroke-width: 2; }
.rschema__arrows .rschema__line--on { stroke: var(--primary); stroke-width: 3; }
.rschema__arrows .rschema__line--drop { stroke: var(--ok); stroke-width: 5; }
#rarrow-on path { fill: var(--primary); }
.rschema__arrows .rschema__hit { fill: none; stroke: transparent; stroke-width: 14; pointer-events: stroke; cursor: pointer; outline: none; }
.rschema__arrows .rschema__hit:focus-visible { stroke: color-mix(in srgb, var(--primary) 30%, transparent); }
.rschema__arrows .rschema__ghost { stroke: var(--primary); stroke-width: 2; stroke-dasharray: 6 5; }
.rschema--edit .rcardx { cursor: grab; touch-action: none; }
.rschema--edit .rcardx--drag { cursor: grabbing; z-index: 3; box-shadow: 0 8px 22px rgba(0, 0, 0, .22); opacity: .92; }
.rschema--linking .rcardx { cursor: default; }
.rcardx--no { opacity: .35; }
.rcardx--target { border-color: var(--primary); border-style: dashed; }
.rcardx--over { border-style: solid; box-shadow: var(--focus); }
.rcardx__out { position: absolute; right: -9px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--surface); border: 2px solid var(--primary); cursor: crosshair; touch-action: none; }
.rcardx__out::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; }   /* область попадания — 32 px */
.rcardx__out:hover { background: var(--primary); }
.rcardx__out--full { border-color: var(--line); cursor: not-allowed; }
.rcardx__out--full:hover { background: var(--surface); }
.rschema__x { position: absolute; transform: translate(-50%, -50%); width: 24px; height: 24px; padding: 0; border-radius: 50%; border: 1px solid var(--bad); background: var(--surface); color: var(--bad); font-size: 12px; line-height: 1; cursor: pointer; z-index: 4; }
.rschema__x:hover, .rschema__x:focus-visible { background: var(--bad); color: #fff; outline: none; }
.rschema__end { position: absolute; transform: translate(-50%, -50%); width: 14px; height: 14px; border-radius: 50%; background: var(--primary); border: 2px solid var(--surface); cursor: grab; touch-action: none; z-index: 4; }
.rschema__end::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; }
.rschema--edit .rcardx { overflow: visible; }   /* «выход» карточки выступает за её край */
.rschema--edit .rcardx > div { overflow: hidden; min-width: 0; max-width: 100%; white-space: nowrap; text-overflow: ellipsis; flex: none; }
