/* Mini App: вкладки, лента, кубик d20, голос ведущего, «Рядом», заглушки, док и ввод. */
/* ---------- нижние вкладки ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--tabbar) + var(--safe-b)); padding: 4px 8px var(--safe-b);
  display: flex; gap: 6px; background: var(--night-3); border-top: 1px solid var(--line); z-index: 30; }
.tab { flex: 1; position: relative; border-radius: var(--r-md); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--parch-dim); font-size: 12px; min-height: 42px; }
.tab .ic { font-size: 20px; line-height: 1; filter: grayscale(1) opacity(.6); }
.tab[aria-current="page"] { background: #ffcf6b1f; color: var(--candle); font-weight: 700; }
.tab[aria-current="page"] .ic { filter: none; }
.tab[aria-current="page"]::before { content: ""; position: absolute; top: -5px; left: 30%; right: 30%; height: 3px; border-radius: 0 0 999px 999px; background: var(--candle); }
.badge { position: absolute; top: 4px; left: calc(50% + 8px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--wine-2); color: var(--white-ish); font: 700 11px/18px "PT Sans"; display: none; }
.badge.on { display: block; }

/* ---------- лента ---------- */
.feed { display: flex; flex-direction: column; gap: 10px; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--parch-dim); font-size: 12px; margin: 4px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.bubble { max-width: 86%; align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg) var(--r-lg) var(--r-lg) calc(var(--r-sm) / 2); padding: 8px 12px; }
.bubble.mine { align-self: flex-end; background: #2e3a2a; border-color: #45553d; border-radius: var(--r-lg) var(--r-lg) calc(var(--r-sm) / 2) var(--r-lg); }
.bubble .who { font-size: 12px; color: var(--ochre); font-weight: 700; }
.roll-ev { align-self: flex-start; display: flex; gap: 8px; align-items: center; background: #2a2433; border: 1px solid #4a3f5a; border-radius: var(--r-md); padding: 6px 6px 6px 12px; max-width: 94%; font-variant-numeric: tabular-nums; }
.roll-ev.mine { align-self: flex-end; }
.roll-ev.cancelled span { opacity: .45; text-decoration: line-through; }
/* кубик d20 живого броска (d20Roll): катится ~0,6 с поверх строки и встаёт на выпавшее, строка проявляется; 20 — свеча, 1 — трещина. Только transform и opacity */
.roll-ev { position: relative; }
.roll-ev > * { transition: opacity .2s ease-out; }
.roll-ev.rolling > :not(.d20fx) { opacity: 0; }
.roll-ev.nat20 { border-color: var(--candle); box-shadow: 0 0 0 1px rgb(255 207 107 / .22), 0 0 14px rgb(255 207 107 / .2); }
.roll-ev.nat20 > .i { color: var(--candle); }
.roll-ev.nat1 { border-color: var(--wine-2); background: #2a1d24; }
.roll-ev.nat1 > .i { color: var(--wine-2); }
.d20fx { position: absolute; left: 4px; top: 50%; width: 40px; height: 40px; margin-top: -20px; pointer-events: none; z-index: 1; transition: opacity .18s ease-out; }
.d20fx svg { display: block; width: 100%; height: 100%; overflow: visible; animation: d20tumble .56s cubic-bezier(.2, .7, .3, 1) both; }
.d20fx .d20-f { fill: #3b3150; stroke: var(--parch); stroke-width: 1.6; stroke-linejoin: round; }
.d20fx .d20-l { fill: none; stroke: var(--parch-dim); stroke-width: 1; stroke-linejoin: round; opacity: .7; }
.d20fx .d20-c { fill: none; stroke: var(--wine-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .15s; }
.d20fx .d20-n { fill: var(--white-ish); font: 700 11px/1 system-ui, sans-serif; text-anchor: middle; dominant-baseline: central; font-variant-numeric: tabular-nums; }
.d20fx::before, .d20fx::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; opacity: 0; }
.d20fx::before { border: 2px solid var(--candle); }
.d20fx::after { background: radial-gradient(circle, rgb(255 207 107 / .55), rgb(255 207 107 / 0) 68%); inset: -14px; }
.d20fx.land svg { animation: d20thud .2s ease-out both; }
.d20fx.n20 .d20-f { fill: #4a3712; stroke: var(--candle); }
.d20fx.n20 .d20-n { fill: var(--candle); }
.d20fx.n20::before { animation: d20burst .55s ease-out both; }
.d20fx.n20::after { animation: d20glow .7s ease-out both; }
.d20fx.n1 .d20-f { fill: #3a1a1e; stroke: var(--wine-2); }
.d20fx.n1 .d20-c { opacity: 1; }
.d20fx.n1 svg { animation: d20crack .28s linear both; }
.d20fx.n1 { opacity: .6; transition: opacity .3s ease-out .15s; }
.d20fx.out { opacity: 0; transition: opacity .18s ease-out; }
@keyframes d20tumble { 0% { transform: translate(-8px, -24px) rotate(-320deg) scale(.55); opacity: 0; } 18% { opacity: 1; } 70% { transform: translate(0, 2px) rotate(14deg) scale(1.06); } 86% { transform: translate(0, -1px) rotate(-5deg) scale(.98); } 100% { transform: none; } }
@keyframes d20thud { 0% { transform: scale(1.12); } 100% { transform: none; } }
@keyframes d20burst { 0% { transform: scale(.5); opacity: .95; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes d20glow { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: .35; } }
@keyframes d20crack { 0%, 100% { transform: none; } 25% { transform: translateX(-2px) rotate(-3deg); } 50% { transform: translateX(2px) rotate(2deg); } 75% { transform: translateX(-1px); } }
.roll-ev .x, .act-ev .x { flex: none; display: grid; place-items: center; min-width: 36px; min-height: 36px; border-radius: var(--r-sm); background: rgb(5 7 13 / .27); color: var(--parch-dim); font-size: 15px; }
.gm { background: #eadcb6; color: var(--ink); border: 2px solid var(--ink); border-radius: var(--r-sm) var(--r-lg) var(--r-sm) var(--r-lg);
  padding: 14px 14px 12px; font: 17px/1.55 "PT Serif", Georgia, serif; box-shadow: 0 6px 16px rgb(5 7 13 / .47); position: relative; margin-top: 6px; }
.gm::before { content: "Боб"; position: absolute; top: -10px; left: 12px; background: var(--wine); color: var(--parch);
  font: 700 12px "PT Sans"; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: var(--r-sm); border: 1px solid var(--ink); }
.gm blockquote, .whisper blockquote { margin: 8px 0; padding: 6px 10px; border-left: 3px solid var(--wine); background: #7a2e2e14; border-radius: 0 var(--r-sm) var(--r-sm) 0; font-style: italic; }
.gm b { color: #5a1f1f; }
.gm pre { white-space: pre-wrap; font-size: 12px; background: rgb(5 7 13 / .05); padding: 8px; border-radius: var(--r-sm); }
/* голос ведущего (bridge/voice.ts): тёмная лента внизу пергамента, печать-кнопка, волна из настоящих пиков, прогресс свечой */
.vo { display: grid; grid-template-columns: 44px 1fr auto; grid-template-rows: 30px auto; column-gap: 12px; row-gap: 2px; align-items: center;
  margin: 14px -14px -12px; padding: 10px 12px 9px; background: linear-gradient(180deg, #2a2118, var(--ink)); color: var(--parch);
  border-top: 2px solid var(--ink); border-radius: 0 0 calc(var(--r-sm) - 2px) calc(var(--r-lg) - 2px); font: 13px/1.2 "PT Sans", sans-serif; }
.gm.vo-solo { padding: 0 14px 12px; } .gm.vo-solo .vo { margin-top: 0; border-top: 0; border-radius: calc(var(--r-sm) - 2px) calc(var(--r-lg) - 2px); }
.vo-play { grid-row: 1 / 3; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--candle);
  background: radial-gradient(circle at 34% 30%, var(--wine-2), var(--wine) 58%, #4f1c1c); border: 2px solid var(--ink);
  box-shadow: 0 0 0 1px #a8483f66, inset 0 1px 0 #ffffff26, 0 3px 8px rgb(5 7 13 / .6); transition: box-shadow .2s, transform .1s; }
.vo-play .i { width: 20px; height: 20px; fill: currentColor; stroke: none; } .vo-play .i.pl { margin-left: 3px; }
.vo-play:active { transform: scale(.95); }
.vo.on .vo-play { box-shadow: 0 0 0 1px #a8483f66, inset 0 1px 0 #ffffff26, 0 0 14px #ffcf6b59; }
.vo-wave { grid-column: 2; grid-row: 1; position: relative; height: 30px; cursor: pointer; touch-action: none; }
.vo-bars { position: absolute; inset: 0; display: flex; align-items: center; gap: 2px; pointer-events: none; }
.vo-bars i { flex: 1; min-width: 1.5px; height: var(--h); border-radius: 2px; background: #b9ab8a5c; }
.vo-bars.fill { clip-path: inset(0 calc(100% - var(--p, 0%)) 0 0); } .vo-bars.fill i { background: var(--candle); box-shadow: 0 0 4px #ffcf6b40; }
.vo-cap { grid-column: 2; grid-row: 2; display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.vo-cap b { font: 700 13px/1 "Cormorant SC", Georgia, serif; letter-spacing: .04em; color: var(--ochre); white-space: nowrap; }
.vo-t { margin-left: auto; color: var(--parch-dim); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; } .vo-t em { font-style: normal; color: var(--parch); }
.vo-rate { grid-row: 1 / 3; grid-column: 3; min-width: 44px; min-height: 32px; padding: 0 8px; border-radius: 999px; border: 1px solid #cd964073;
  color: var(--parch-dim); font: 700 12px/1 "PT Sans", sans-serif; font-variant-numeric: tabular-nums; }
.vo-rate[aria-pressed="true"] { color: var(--candle); border-color: var(--ochre); background: #ffcf6b14; }
.vo-wait .vo-play { background: none; box-shadow: none; } .vo-wait .vo-play .i { opacity: .45; }   /* голос ещё не готов: глиф сплошной, поэтому тише, а не контуром */ .vo-wait .vo-bars i { height: 30%; animation: vo-wait 1.1s ease-in-out infinite; animation-delay: calc(var(--k) * -70ms); }
@keyframes vo-wait { 50% { height: 85%; background: #ffcf6b8c; } }   /* ведущий начитывает: волна дышит, пока нет плеера */
.vo.err .vo-play, .vo.err .vo-rate { opacity: .5; } .vo.err .vo-t { color: var(--danger-soft); }
tg-spoiler { background: currentColor; border-radius: calc(var(--r-sm) / 2); cursor: pointer; }
tg-spoiler.open { background: transparent; }
.art { border-radius: var(--r-lg); overflow: hidden; border: 2px solid var(--ink); box-shadow: 0 6px 16px rgb(5 7 13 / .6); background: var(--card); }
.art img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.art .cap { padding: 8px 12px; font: 700 20px "Cormorant SC", serif; color: var(--candle); }
.sticker { width: 112px; height: 112px; align-self: center; }
.request { background: var(--card-2); border: 1px dashed var(--ochre); border-radius: var(--r-md); padding: 10px 10px 10px 12px; display: flex; gap: 10px; align-items: center; }
.request .t { flex: 1; min-width: 0; }
.request.done { opacity: .5; }
.request.places .chip { font: inherit; font-size: 14px; color: var(--parch); min-height: 44px; padding: 0 12px; cursor: pointer; }   /* места одной карточкой: кнопки-чипы, переносятся на 390px */
.request.road .chip.on { border-color: var(--ochre); color: var(--candle); }   /* дорожное событие: что выбрали */
.request.places .chip:disabled { opacity: .55; cursor: default; }
/* «Рядом»: в ленте одна строка на новое (сами чипы — в полосе над вводом), результат броска — сразу под просьбой ведущего */
.near-ev { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--parch-dim); margin: -2px 0; }
.near-ev .i { width: 16px; height: 16px; flex: none; color: var(--ochre); }
.near-ev b { color: var(--parch); font-weight: 700; }
.near-ev .near-go { flex: none; position: relative; margin-left: auto; min-height: 36px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--ochre); color: var(--candle); font-size: 13px; font-weight: 700; }
.near-ev .near-go:disabled { opacity: .55; border-color: var(--line); color: var(--parch-dim); }
[data-openx] small.lk { display: block; font-size: 11px; font-weight: 400; line-height: 1.2; }   /* причина закрытой карточки ленты: «после боя» */
.request .roll:has(small.lk) { flex-direction: column; gap: 0; }
.request + .roll-ev.after { margin-top: -6px; }
.whisper { background: #2e2447; border: 1px solid #6b58a0; border-radius: var(--r-md); padding: 10px 12px; }
.whisper .lbl { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #c9b8ff; font-weight: 700; margin-bottom: 4px; }
.turn { align-self: stretch; display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; font: 700 20px "Cormorant SC", serif; color: var(--candle); padding: 6px; border-top: 1px solid var(--ochre); border-bottom: 1px solid var(--ochre); }
.turn.mine { background: #ffcf6b14; }
.new-pill { align-items: center; gap: 6px; position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 10; display: none;
  background: var(--ochre); color: var(--ink); font-weight: 700; border-radius: 999px; padding: 8px 14px; min-height: 40px; box-shadow: 0 4px 12px rgb(5 7 13 / .53); }
.new-pill.on { display: flex; }
.empty { color: var(--parch-dim); text-align: center; padding: 36px 16px; }
.stale { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 12px; color: var(--parch-dim); } .stale .i { width: 14px; height: 14px; color: var(--ochre); }   /* обновить не вышло: на экране прежние данные */
.net-off { margin: 16px 0; }
.empty b { display: block; color: var(--parch); font-size: 17px; margin-bottom: 4px; }
/* заглушки загрузки по форме экрана: блоки в цвете карточки с мягким бликом */
.skel { display: flex; flex-direction: column; gap: 8px; }
.skel i { display: block; height: var(--h, 52px); width: var(--w, 100%); border-radius: var(--r-md);
  background: linear-gradient(90deg, var(--card) 30%, var(--card-2) 50%, var(--card) 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
.skel .g4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mapbox .skel { position: absolute; inset: 12px; } .mapbox .skel i { flex: 1; border-radius: var(--r-lg); }
@keyframes shimmer { to { background-position: -150% 0; } }
@media (prefers-reduced-motion: reduce) { .skel i { animation: none; } }

/* ---------- док игры ---------- */
.dock { flex: none; border-top: 1px solid var(--line); background: var(--night-3); padding: 8px 10px 10px; z-index: 20; }
/* полоса «Рядом (N)»: что можно открыть сейчас, одним рядом над вводом; длинный список листается вбок */
.near { display: flex; align-items: center; gap: 8px; margin: -2px -10px 8px 0; }
.near[hidden], body.typing .near, .dock.reacting .near { display: none; }
.near-n { flex: none; font-size: 12px; color: var(--parch-dim); font-variant-numeric: tabular-nums; }
.near-n b { color: var(--candle); }
.near-row { flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding: 4px 10px 4px 0;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 20px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 20px), transparent); }
.near-row::-webkit-scrollbar { display: none; }
.near-chip { flex: none; position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; max-width: 200px; padding: 0 12px 0 10px;
  border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--card); color: var(--parch); font-size: 14px; }
.near-chip::after { content: ""; position: absolute; inset: -4px 0; }   /* палец: 44 px по высоте */
.near-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.near-chip .i { width: 16px; height: 16px; flex: none; color: var(--ochre); }
.near-chip.new { border-color: var(--ochre); background: #c8913a1f; }
.near-chip:active { transform: translateY(1px); }
.abt { width: 100%; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.abt th, .abt td { text-align: center; padding: 4px 0; font-size: 13px; color: var(--parch-dim); font-weight: 400; }
.abt tr:first-child th { font-size: 12px; letter-spacing: .03em; }
.abt tr > th:first-child { width: 44px; text-align: left; padding-left: 8px; font-size: 12px; }
.abt tr.m td { font: 700 20px "Cormorant SC", serif; color: var(--candle); }
.abt tr.sv td.on { color: var(--candle); font-weight: 700; }
.abt tr.sv td.on::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 4px; border-radius: 50%; background: currentColor; vertical-align: 2px; }
.skills { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; }
.sk { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; padding: 6px 8px; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--parch-dim); min-width: 0; }
.sk span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sk.on { color: var(--parch); }
.sk.on b { color: var(--candle); }
.gi { width: 28px; height: 28px; flex: none; border-radius: var(--r-sm); vertical-align: middle; margin-right: 6px; object-fit: contain; background: rgb(5 7 13 / .4); }
.gi.att { width: 16px; height: 16px; margin-right: 4px; background: none; vertical-align: -3px; }
.mapbar .gi.mk { width: 14px; height: 14px; margin: 0; background: none; }
.gi.sm { width: 16px; height: 16px; margin-right: 4px; border-radius: calc(var(--r-sm) / 2); vertical-align: -3px; }
.meta.tic { display: inline-flex; align-items: center; gap: 2px; } .meta.tic small { opacity: .7; margin: 0 1px; }
.mhead { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); }
.mhead .ci { flex: 0 0 40px; width: 40px; height: 40px; display: grid; place-items: center; }
.gi.cls { width: 40px; height: 40px; max-width: 40px; max-height: 40px; aspect-ratio: 1 / 1; margin: 0; background: none; object-fit: contain; }
.mhead .who { flex: 1; min-width: 0; } .mhead .who b { display: block; } .mhead .who small { display: block; color: var(--parch-dim); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mst { display: flex; gap: 10px; } .mst span { display: flex; flex-direction: column; align-items: center; font: 700 17px "Cormorant SC", serif; color: var(--candle); }
.mst small { font: 400 12px "PT Sans", sans-serif; color: var(--parch-dim); text-transform: uppercase; }
.slt { width: 100%; margin-top: 8px; border-collapse: collapse; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--card); }
.slt th { width: 52px; padding-left: 12px; text-align: left; color: var(--parch-dim); font: 400 12px "PT Sans", sans-serif; white-space: nowrap; } .slt td { padding: 6px 4px; } .slt td.num { width: 44px; text-align: right; padding-right: 12px; color: var(--parch-dim); font-size: 13px; }
.slt tr + tr { border-top: 1px solid var(--line); }
.slt .res { margin-right: 4px; } .slt .res svg, .slt .res img { width: 20px; height: 20px; } .sl.used .res { opacity: .3; filter: grayscale(1); }
.tic { display: inline-flex; align-items: center; margin-right: 2px; vertical-align: -3px; } .tic small { color: var(--parch-dim); margin: 0 1px; font-size: 12px; }
.gi.rc { width: 17px; height: 17px; margin: 0; border-radius: 0; background: none; }
.nm .sm { margin-left: 6px; font-size: 12px; font-weight: 400; color: var(--parch-dim); white-space: nowrap; }
.respec { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 44px; margin-top: 18px; border: 1px dashed var(--line); border-radius: var(--r-md); color: var(--parch-dim); }
.mod { flex: none; min-width: 48px; text-align: right; font-size: 17px; color: var(--candle); }
.compose { display: flex; gap: 8px; align-items: flex-end; }
.compose textarea { flex: 1; resize: none; max-height: 120px; min-height: 44px; padding: 11px 12px; border-radius: var(--r-md); border: 1px solid var(--line);
  background: var(--night-2); color: var(--parch); font: 15px/1.4 "PT Sans", sans-serif; }
.compose textarea:focus { border-color: var(--ochre); }
.compose textarea::placeholder { color: var(--parch-dim); opacity: .8; }
/* iOS увеличивает страницу при фокусе на поле мельче 16px и не возвращает масштаб после клавиатуры */
@supports (-webkit-touch-callout: none) { textarea, input, select { font-size: 16px !important; } }
.icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--card); font-size: 20px; }
.icon[aria-expanded="true"] { background: var(--ochre); border-color: var(--candle); }
.icon.send { background: var(--ochre); color: var(--ink); border-color: var(--ink); }
.typing-line { font-size: 12px; color: var(--parch-dim); font-style: italic; margin-top: 4px; }
.typing-line:empty { display: none; }
.prep-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; margin: 10px 0 4px;
  border-radius: var(--r-md); border: 1px solid var(--ochre); color: var(--candle); background: #c8913a1a; font-weight: 700; }
.err { color: var(--danger); font-size: 13px; margin-top: 6px; display: none; }
.err.on { display: block; }
.gm-btn { width: 100%; margin-top: 8px; min-height: 48px; border-radius: var(--r-md); border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ochre); color: var(--ink); font-weight: 700; font-size: 17px; box-shadow: 0 3px 0 var(--ink); }   /* есть что отдать: акцент приложения, а не красный «ошибки» */
.gm-btn .cnt { background: rgb(26 20 16 / .2); border-radius: 999px; padding: 1px 8px; font-variant-numeric: tabular-nums; }
.gm-btn:not(.idle):not(.busy) .hint { color: rgb(26 20 16 / .78); }
.gm-btn.idle { background: var(--card); color: var(--parch); border-color: var(--line); box-shadow: none; }
.gm-btn .hint { font-weight: 400; font-size: 13px; color: var(--parch-dim); }
.gm-btn.busy { background: var(--card-2); color: var(--candle); border-color: var(--line); box-shadow: none; font-size: 15px; }
.gm-btn.busy::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--candle); animation: blink 1s ease-in-out infinite; }
.gm-btn:active:not(.idle):not(.busy) { transform: translateY(2px); box-shadow: none; }
@keyframes blink { 50% { opacity: .2; } }

/* ---------- бой на «Игре»: карта сцены под лентой, лента — шторка в три положения (js/battle.js) ---------- */
.stage { flex: 1; min-height: 0; position: relative; display: flex; flex-direction: column; }
.bmap { display: none; position: absolute; inset: 0; }
.fsh { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.fsh > .scroll { min-height: 0; }
.fgrab { display: none; }
#v-game.battle .bmap { display: block; }
.bmap .mapbox { position: absolute; inset: 0; }
.bmap .mapbar, .bmap .mapmode { display: none; }   /* строка фишек и «Мир / Сцена» остаются вкладке «Карта» */
#v-game.battle .fsh { position: absolute; left: 0; right: 0; bottom: 0; flex: none; height: 50%; z-index: 6; background: var(--night);
  border-top: 1px solid var(--line); border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: 0 -6px 18px rgb(5 7 13 / .5); transition: height .3s cubic-bezier(.2, .8, .2, 1); }
#v-game.battle .fsh.drag { transition: none; }
#v-game.battle .fgrab { display: block; flex: none; position: relative; width: 100%; height: 26px; touch-action: none; cursor: grab; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.fgrab::before { content: ""; position: absolute; left: 50%; top: 10px; width: 40px; height: 5px; margin-left: -20px; border-radius: 999px; background: var(--parch-dim); opacity: .75; }
.fgrab::after { content: ""; position: absolute; inset: -14px 0 -6px; }   /* палец: 44 px по высоте */
#v-game.battle .fsh .pad { padding-top: 2px; }

