:root {
  --bg: #0b0620;
  --bg2: #150a35;
  --panel: rgba(30, 15, 70, 0.78);
  --panel2: rgba(52, 26, 110, 0.6);
  --line: rgba(190, 130, 255, 0.28);
  --violet: #a855f7;
  --pink: #ff3df0;
  --cyan: #38e1ff;
  --gold: #ffc94d;
  --orange: #ff7a2e;
  --text: #f6f1ff;
  --muted: #b8a6e6;
  --ok: #4ade80;
  --err: #f87171;
  --r: 18px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); overflow: hidden; overscroll-behavior: none; }
body { font: 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
#app { height: 100%; max-width: 520px; margin: 0 auto; position: relative; background: var(--bg); box-shadow: 0 0 80px rgba(168, 85, 247, 0.25); }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input { font: inherit; -webkit-user-select: text; user-select: text; }
h1, h2, h3 { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.center { text-align: center; }
.hidden { display: none !important; }
.ico { width: 20px; height: 20px; flex: none; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 18px; border-radius: 14px; font-weight: 800; letter-spacing: 0.02em;
  background: var(--panel2); border: 1px solid var(--line); color: var(--text);
  transition: transform 0.12s, filter 0.2s;
}
.btn:active { transform: scale(0.96); }
.btn:disabled { opacity: 0.45; pointer-events: none; }
.btn.primary {
  background: linear-gradient(135deg, #ffd84d, #ff8a2b 55%, #ff3df0);
  color: #2a0d3d; border: 0;
  box-shadow: 0 6px 24px rgba(255, 140, 50, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
}
.btn.ghost { background: transparent; }
.btn.danger { color: #fecaca; border-color: rgba(248, 113, 113, 0.5); }
.btn.danger:not(.ghost) { background: #b91c1c; color: #fff; }
.btn.big { width: 100%; padding: 16px; font-size: 17px; border-radius: 18px; margin-top: 8px; }
.btn.sm { padding: 8px 12px; font-size: 13px; border-radius: 11px; }
.btn.xs { padding: 5px 8px; font-size: 12px; border-radius: 9px; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); font-weight: 900; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.row-btns .btn { flex: 1; }

/* ---------- лого / онбординг ---------- */
.boot, .onb { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: calc(24px + var(--safe-t)) 20px calc(24px + var(--safe-b)); overflow-y: auto; }
.onb { justify-content: flex-start; }
.onb.splash { justify-content: flex-end; padding-bottom: calc(48px + var(--safe-b)); }
.onb > *:not(.onb-bg) { position: relative; z-index: 1; }
.onb-bg { position: fixed; inset: 0; max-width: 520px; margin: 0 auto; background: url(../assets/map-bg.webp) center / cover; z-index: 0; }
.onb-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 6, 32, 0.1), rgba(11, 6, 32, 0.55) 55%, rgba(11, 6, 32, 0.95)); }
.onb-bg.dim { filter: blur(6px) brightness(0.5); transform: scale(1.06); }
.logo { display: flex; flex-direction: column; align-items: center; line-height: 0.85; font-weight: 900; font-style: italic; letter-spacing: -0.02em; }
.logo span { font-size: 64px; color: #fff; text-shadow: 0 0 18px var(--pink), 0 0 40px var(--violet); }
.logo b { font-size: 92px; background: linear-gradient(180deg, #fff3b0, var(--gold) 45%, var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 18px rgba(255, 170, 40, 0.7)); }
.tagline { font-size: 17px; font-weight: 700; text-align: center; margin: 0 0 8px; text-shadow: 0 2px 10px #000; }
.h-neon { font-size: 26px; font-weight: 900; text-transform: uppercase; font-style: italic; text-align: center; text-shadow: 0 0 14px var(--violet); margin-top: 6px; }
.field { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.field > span { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.field input { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.4); color: var(--text); font-size: 17px; font-weight: 700; outline: none; }
.field input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 61, 240, 0.25); }
.swatches, .skin-row { display: flex; gap: 10px; flex-wrap: wrap; }
.sw { width: 40px; height: 40px; border-radius: 50%; background: var(--c); border: 3px solid rgba(255, 255, 255, 0.15); }
.sw.on { border-color: var(--gold); box-shadow: 0 0 14px var(--gold); }
.preview { width: 100%; height: 160px; display: block; }
.preview.tall { height: 240px; }
.preview.xl { height: 300px; }
.sw.sm { width: 30px; height: 30px; }
.seg.wide { width: 100%; }
.seg.wide button { flex: 1; padding: 10px; font-size: 14px; }
.look-ed { display: flex; flex-direction: column; gap: 14px; width: 100%; }
.look-ed .chips-row { margin-bottom: 0; }
.shop-top { position: relative; }
.pv-move { position: absolute; top: 10px; right: 10px; }
canvas.swatch { display: block; width: 44px; height: 44px; padding: 0; }
.item em { font-style: normal; font-size: 10.5px; color: var(--muted); }
.style-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.style-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px 12px; text-align: left;
  border-radius: var(--r); border: 2px solid transparent; overflow: hidden;
  background: linear-gradient(160deg, color-mix(in srgb, var(--a) 30%, transparent), rgba(20, 10, 50, 0.85) 70%);
}
.style-card.on { border-color: var(--a); box-shadow: 0 0 22px color-mix(in srgb, var(--a) 60%, transparent); }
.style-card b { font-size: 16px; font-weight: 900; font-style: italic; color: var(--a); text-shadow: 0 0 10px color-mix(in srgb, var(--a) 60%, transparent); }
.style-card small { font-size: 11.5px; color: var(--muted); }
.style-card .mini { width: 100%; height: 96px; }
.coach-intro { display: flex; gap: 12px; align-items: flex-end; margin-top: auto; width: 100%; }
.coach-intro.in-modal { margin: 6px 0 12px; }
.coach-ava { flex: none; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 24px; color: #2a0d3d; background: linear-gradient(135deg, var(--gold), var(--orange)); box-shadow: 0 0 18px rgba(255, 170, 40, 0.6); }
.coach-ava.sm { width: 38px; height: 38px; font-size: 17px; }
.bubble { background: var(--panel); border: 1px solid var(--line); border-radius: 18px 18px 18px 4px; padding: 12px 14px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.bubble b { color: var(--gold); }
.bubble p { margin: 4px 0 0; }

/* ---------- оболонка ---------- */
.shell { position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr auto; }
.hud { display: flex; align-items: center; gap: 8px; padding: calc(8px + var(--safe-t)) 12px 8px; background: linear-gradient(180deg, rgba(11, 6, 32, 0.95), rgba(11, 6, 32, 0.7)); border-bottom: 1px solid var(--line); z-index: 5; }
.hud-ava { width: 40px; height: 40px; border-radius: 50%; font-weight: 900; font-size: 18px; color: #1a0b3d; background: var(--c); box-shadow: 0 0 14px var(--c); flex: none; }
.hud-lvl { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hud-lvl b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-lvl small { font-size: 11px; color: var(--muted); }
.bar { display: block; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.1); overflow: hidden; margin-top: 3px; }
.bar em { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--violet), var(--pink), var(--gold)); }
.pill { display: flex; align-items: center; gap: 4px; padding: 5px 10px 5px 6px; border-radius: 20px; background: rgba(0, 0, 0, 0.45); border: 1px solid var(--line); font-weight: 800; font-size: 14px; }
.pill .ico { width: 18px; height: 18px; }
.pill.gold .ico { color: var(--gold); }
.pill.violet .ico { color: var(--pink); }
.screen { overflow-y: auto; overflow-x: hidden; padding: 14px 14px 20px; position: relative; -webkit-overflow-scrolling: touch; }
.screen.scr-map { padding: 0; overflow: hidden; }
.tabbar { display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 4px calc(6px + var(--safe-b)); background: rgba(11, 6, 32, 0.96); border-top: 1px solid var(--line); z-index: 5; }
.tabbar button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; font-size: 10.5px; font-weight: 700; color: var(--muted); border-radius: 12px; }
.tabbar button .ico { width: 24px; height: 24px; }
.tabbar button.on { color: #fff; }
.tabbar button.on .ico { color: var(--gold); filter: drop-shadow(0 0 8px var(--gold)); }

/* ---------- карта ---------- */
.map-wrap { position: absolute; inset: 0; overflow: auto; container-type: size; scrollbar-width: none; }
.map-wrap::-webkit-scrollbar { display: none; }
.map-img { position: relative; width: 100%; width: max(100cqw, 56.28cqh); aspect-ratio: 941 / 1672; background: url(../assets/map-bg.webp) center / 100% 100%; }
.pin { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pin-dot { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, #fff 0 22%, var(--violet) 40%, rgba(168, 85, 247, 0.2) 70%); border: 3px solid #fff; box-shadow: 0 0 18px var(--violet), 0 0 40px var(--pink); }
.pin.goal .pin-dot { background: radial-gradient(circle, #fff 0 22%, var(--gold) 42%, rgba(255, 170, 40, 0.25) 70%); box-shadow: 0 0 20px var(--gold), 0 0 50px var(--orange); animation: pulse 1.4s ease-in-out infinite; }
.pin.locked .pin-dot { background: rgba(20, 10, 40, 0.85); border-color: rgba(255, 255, 255, 0.4); box-shadow: none; color: var(--muted); }
.pin.locked .pin-dot .ico { width: 20px; height: 20px; }
.pin-lbl { display: flex; flex-direction: column; align-items: center; padding: 5px 10px; border-radius: 12px; background: rgba(11, 6, 32, 0.82); border: 1px solid var(--line); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); white-space: nowrap; }
.pin-lbl b { font-size: 13px; font-weight: 900; letter-spacing: 0.04em; }
.pin-lbl small { font-size: 10.5px; color: var(--muted); }
.pin.goal .pin-lbl { border-color: var(--gold); }
.pin.goal .pin-lbl b { color: var(--gold); }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.goal-card { position: absolute; left: 12px; right: 12px; top: 12px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; text-align: left; background: var(--panel); border: 1px solid rgba(255, 201, 77, 0.45); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4); }
.goal-card small, .goal small { display: block; font-size: 10.5px; font-weight: 900; color: var(--gold); letter-spacing: 0.1em; }
.goal-card b { font-size: 14px; }
.goal { padding: 12px 14px; border-radius: 14px; background: rgba(255, 201, 77, 0.1); border: 1px solid rgba(255, 201, 77, 0.4); margin-bottom: 12px; }
.install { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.scr-map .install { position: absolute; left: 12px; right: 12px; bottom: 12px; }
.install > span { flex: 1; display: flex; flex-direction: column; font-size: 14px; }
.install small { color: var(--muted); font-size: 11.5px; }
.install .x { color: var(--muted); padding: 4px; }

/* ---------- модалки ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; background: rgba(5, 2, 15, 0); transition: background 0.2s; }
.modal.in { background: rgba(5, 2, 15, 0.7); }
.sheet { position: relative; width: 100%; max-width: 520px; max-height: 92dvh; overflow-y: auto; padding: 22px 18px calc(20px + var(--safe-b)); border-radius: 26px 26px 0 0; background: linear-gradient(180deg, #24104f, #130829); border: 1px solid var(--line); border-bottom: 0; box-shadow: 0 -10px 50px rgba(168, 85, 247, 0.35); transform: translateY(100%); transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1); }
.modal.in .sheet { transform: none; }
.modal.tall .sheet { min-height: 70dvh; }
.sheet h2 { font-size: 22px; font-weight: 900; font-style: italic; margin: 2px 40px 8px 0; }
.sheet p { margin: 6px 0 10px; }
.sheet-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: var(--muted); z-index: 2; }
.kicker { display: block; font-size: 11px; font-weight: 900; color: var(--gold); letter-spacing: 0.12em; text-transform: uppercase; margin: 10px 0 6px; }
.sheet > .kicker:first-child, .res > .kicker:first-child { margin-top: 0; }
.kv { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); font-size: 14px; }
.kv span { color: var(--muted); }
.kv b { text-align: right; }
.toast { position: fixed; left: 50%; top: calc(16px + var(--safe-t)); transform: translate(-50%, -30px); opacity: 0; z-index: 80; padding: 12px 18px; border-radius: 14px; background: #2a1460; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); transition: 0.3s; width: max-content; max-width: min(92vw, 460px); text-align: center; }
.toast.in { transform: translate(-50%, 0); opacity: 1; }
.toast.ok { border-color: var(--ok); }
.toast.err { border-color: var(--err); }

/* ---------- локації / активності ---------- */
.loc-head small { color: var(--gold); font-weight: 800; text-transform: uppercase; font-size: 12px; letter-spacing: 0.1em; }
.act { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px; margin-top: 10px; border-radius: 16px; text-align: left; background: var(--panel2); border: 1px solid var(--line); }
.act:active { transform: scale(0.98); }
.act.hot { border-color: var(--gold); background: linear-gradient(135deg, rgba(255, 201, 77, 0.18), var(--panel2)); }
.act-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: rgba(0, 0, 0, 0.3); flex: none; }
.act > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.act small { color: var(--muted); font-size: 12px; }
.act em { font-style: normal; font-size: 26px; color: var(--muted); }
.locked-box { display: flex; gap: 12px; padding: 14px; margin-top: 10px; border-radius: 16px; background: rgba(0, 0, 0, 0.3); border: 1px dashed var(--line); }
.locked-box .ico { width: 28px; height: 28px; color: var(--muted); }
.locked-box > div { flex: 1; }
.locked-box p { margin: 2px 0 6px; color: var(--muted); font-size: 13px; }

/* ---------- тренування ---------- */
.chips-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; scrollbar-width: none; }
.chips-row.wrap { flex-wrap: wrap; overflow: visible; }
.chips-row::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 14px; border-radius: 20px; font-weight: 800; font-size: 13px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); color: var(--muted); }
.chip.on { color: #1a0b3d; background: var(--c, var(--gold)); border-color: transparent; box-shadow: 0 0 14px var(--c, var(--gold)); }
.chip.add { border-style: dashed; color: var(--gold); }
.coach-card { display: grid; grid-template-columns: 120px 1fr; gap: 8px; align-items: center; padding: 10px 14px 14px 4px; border-radius: 22px; border: 1px solid color-mix(in srgb, var(--a) 60%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--a) 28%, transparent), color-mix(in srgb, var(--b) 18%, #150a35)); box-shadow: 0 10px 30px color-mix(in srgb, var(--a) 25%, transparent); }
.coach-card .preview { height: 170px; }
.coach-card small { font-size: 11px; font-weight: 900; letter-spacing: 0.12em; color: var(--a); }
.coach-card b { display: block; font-size: 22px; font-weight: 900; font-style: italic; }
.coach-card span { font-size: 13px; color: var(--muted); }
.coach-card .row-btns .btn { flex: 1 1 auto; }
.sec { font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin: 20px 2px 10px; }
.lessons { display: flex; flex-direction: column; gap: 10px; }
.lesson { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; text-align: left; background: var(--panel); border: 1px solid var(--line); }
.lesson.done { border-color: rgba(255, 201, 77, 0.5); }
.lesson.locked { opacity: 0.5; }
.l-num { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 900; font-size: 18px; background: linear-gradient(135deg, var(--violet), var(--pink)); flex: none; }
.lesson.done .l-num { background: linear-gradient(135deg, var(--gold), var(--orange)); color: #2a0d3d; }
.l-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.l-body small { font-size: 10.5px; color: var(--cyan); font-weight: 800; letter-spacing: 0.1em; }
.l-body b { font-size: 16px; font-weight: 900; }
.l-body em { font-style: normal; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.l-side .ico { color: var(--muted); }
.stars { color: var(--gold); font-style: normal; letter-spacing: 1px; text-shadow: 0 0 8px rgba(255, 201, 77, 0.6); }
.stars.big { font-size: 34px; text-align: center; }
.rw { font-style: normal; font-size: 12px; font-weight: 800; color: var(--gold); }
.pattern { display: inline-flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.pt { font-style: normal; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 900; color: #1a0b3d; }
.pt.tap { background: var(--gold); }
.pt.swipe { background: var(--cyan); }
.pt.hold { background: #c084fc; font-size: 10px; }

/* MoveBook */
.mb-list { display: flex; flex-direction: column; gap: 8px; }
.mb-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--panel2); border: 1px solid var(--line); text-align: left; }
.mb-item span:first-child { display: flex; flex-direction: column; }
.mb-item small { color: var(--muted); font-size: 12px; }
.ms { font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 10px; background: rgba(255, 255, 255, 0.08); color: var(--muted); white-space: nowrap; }
.ms-1 { color: #c4b5fd; background: rgba(196, 181, 253, 0.15); }
.ms-2 { color: #67e8f9; background: rgba(103, 232, 249, 0.15); }
.ms-3 { color: #86efac; background: rgba(134, 239, 172, 0.15); }
.ms-4 { color: #1a0b3d; background: var(--gold); }
.mastery-bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 6px 0; }
.mastery-bar i { height: 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); }
.mastery-bar i.on { background: linear-gradient(90deg, var(--violet), var(--gold)); }

/* Комбінації */
.combo-item { padding: 12px; border-radius: 14px; background: var(--panel2); border: 1px solid var(--line); margin-bottom: 8px; }
.combo-item.sel { border-color: var(--gold); }
.combo-item small { display: block; color: var(--muted); font-size: 12px; }
.seq { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.seq-item { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); }
.seq-item .n { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-weight: 900; font-size: 12px; background: var(--violet); }
.seq-item b { flex: 1; font-size: 14px; }
.warn { color: #fcd34d; font-size: 13px; margin: 4px 0; }
.combo-sel { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 12px 14px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 4px; }
.combo-sel small { width: 100%; font-size: 10.5px; font-weight: 900; color: var(--gold); letter-spacing: 0.1em; }
.combo-sel b { flex: 1; }
.page-h { font-size: 26px; font-weight: 900; font-style: italic; text-transform: uppercase; margin: 2px 0 12px; text-shadow: 0 0 14px var(--violet); }
.list { display: flex; flex-direction: column; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.stat-row > div { display: flex; flex-direction: column; align-items: center; padding: 12px 6px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.stat-row b { font-size: 20px; font-weight: 900; color: var(--gold); }
.stat-row small { color: var(--muted); font-size: 11.5px; }

/* ---------- результати / батл ---------- */
.res { display: flex; flex-direction: column; }
.grade { align-self: center; font-size: 96px; font-weight: 900; font-style: italic; line-height: 1; margin: 4px 0; background: linear-gradient(180deg, #fff6c2, var(--gold) 50%, var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 22px rgba(255, 170, 40, 0.6)); }
.grade.g-C, .grade.g-D { background: linear-gradient(180deg, #e9d5ff, var(--violet)); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.6)); }
.res-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 12px 0 6px; }
.res-grid > div { display: flex; flex-direction: column; align-items: center; padding: 10px 4px; border-radius: 12px; background: rgba(0, 0, 0, 0.3); }
.res-grid b { font-size: 22px; font-weight: 900; }
.res-grid small { font-size: 10px; font-weight: 800; color: var(--muted); }
.c-p { color: #ffd84d; } .c-g { color: #5eead4; } .c-o { color: #c4b5fd; } .c-m { color: #f87171; }
.rewards { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 14px 0 6px; }
.rewards span { display: inline-flex; align-items: center; gap: 4px; padding: 7px 12px; border-radius: 20px; font-weight: 900; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); }
.rw-xp { color: var(--cyan); } .rw-c { color: var(--gold); } .rw-r { color: var(--pink); }
.rewards .ico { width: 16px; height: 16px; }
.lvlup { text-align: center; font-weight: 900; font-size: 18px; color: var(--gold); text-shadow: 0 0 12px var(--orange); margin: 6px 0; animation: pulse 1.2s infinite; }
.lvlup.alt { color: var(--cyan); text-shadow: 0 0 12px var(--cyan); font-size: 15px; animation: none; }
.up { text-align: center; font-size: 14px; color: #86efac; margin: 2px 0; }
.vs-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 4px; margin: 8px 0; }
.vs-side { display: flex; flex-direction: column; align-items: center; text-align: center; }
.vs-side .preview { height: 170px; }
.vs-side b { font-weight: 900; font-size: 16px; }
.vs-side small { color: var(--muted); font-size: 12px; }
.vs-mid { font-size: 38px; font-weight: 900; font-style: italic; color: var(--gold); text-shadow: 0 0 18px var(--orange); }
.quote { text-align: center; font-style: italic; color: var(--muted); }
.verdict { text-align: center; font-size: 36px; font-weight: 900; font-style: italic; margin: 8px 0; }
.verdict.win { color: var(--gold); text-shadow: 0 0 22px var(--orange); }
.verdict.lose { color: #c4b5fd; text-shadow: 0 0 16px var(--violet); }
.score-vs { display: flex; justify-content: center; align-items: center; gap: 18px; margin: 6px 0 12px; }
.score-vs > div { display: flex; flex-direction: column; align-items: center; }
.score-vs b { font-size: 34px; font-weight: 900; }
.score-vs small { color: var(--muted); font-size: 12px; }
.score-vs em { font-size: 28px; color: var(--muted); }
.crit { display: flex; flex-direction: column; gap: 6px; }
.crit-row { display: grid; grid-template-columns: 92px 1fr 30px 1fr 30px; align-items: center; gap: 6px; font-size: 12.5px; }
.crit-row b { font-size: 12.5px; text-align: right; }
.cb { height: 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.cb em { display: block; height: 100%; border-radius: 6px; }
.cb.you em { background: linear-gradient(90deg, var(--orange), var(--gold)); }
.cb.npc em { background: linear-gradient(90deg, var(--violet), var(--pink)); }
.crit-legend { display: flex; gap: 16px; justify-content: center; font-size: 12px; margin-top: 4px; }
.crit-legend .you { color: var(--gold); } .crit-legend .npc { color: var(--pink); }
.tip { padding: 10px 12px; border-radius: 12px; background: rgba(56, 225, 255, 0.1); border: 1px solid rgba(56, 225, 255, 0.35); font-size: 14px; }
.trophy { font-size: 80px; text-align: center; filter: drop-shadow(0 0 24px var(--gold)); }
.bracket { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.bm { display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.bm span { padding: 8px 10px; background: var(--panel2); font-weight: 800; font-size: 14px; }
.bm span + span { border-top: 1px solid var(--line); }
.bm .w { color: var(--gold); } .bm .l { opacity: 0.45; text-decoration: line-through; }
.bm.final { grid-column: 1 / -1; border-color: var(--gold); }
.steps { padding-left: 20px; line-height: 1.9; }

/* ---------- магазин / профіль ---------- */
.shop-top { border-radius: 22px; background: radial-gradient(ellipse at 50% 80%, rgba(168, 85, 247, 0.35), transparent 70%), var(--panel); border: 1px solid var(--line); padding: 4px 12px 12px; margin-bottom: 12px; }
.skin-row { justify-content: center; }
.skin-row .sw { width: 30px; height: 30px; }
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); text-align: center; }
.item.eq { border-color: var(--gold); box-shadow: 0 0 14px rgba(255, 201, 77, 0.35); }
.swatch { width: 40px; height: 40px; border-radius: 12px; background: var(--c); border: 2px solid rgba(255, 255, 255, 0.25); display: grid; place-items: center; font-style: normal; color: var(--muted); box-shadow: 0 0 12px var(--c); }
.item b { font-size: 12px; line-height: 1.2; }
.item small { display: flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 800; color: var(--gold); }
.item small .ico { width: 14px; height: 14px; }
.prof-card { display: grid; grid-template-columns: 120px 1fr; gap: 10px; align-items: center; padding: 8px 14px 14px 4px; border-radius: 22px; background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(255, 61, 240, 0.12)); border: 1px solid var(--line); }
.prof-card h2 { font-size: 24px; font-weight: 900; font-style: italic; }
.title-badge { display: inline-block; margin: 4px 0; padding: 3px 10px; border-radius: 10px; font-size: 12px; font-weight: 900; color: #1a0b3d; background: linear-gradient(135deg, var(--gold), var(--orange)); }
.style-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--panel); border-left: 4px solid var(--c); margin-bottom: 6px; }
.style-row b { color: var(--c); font-weight: 900; }
.style-row small { flex: 1; color: var(--muted); }
.style-row em { font-style: normal; font-weight: 900; }
.stats { display: flex; flex-direction: column; gap: 8px; }
.stat { display: grid; grid-template-columns: 96px 1fr 32px; align-items: center; gap: 8px; font-size: 13px; }
.stat .bar { margin: 0; height: 8px; }
.stat b { text-align: right; }
.ach { display: flex; flex-wrap: wrap; gap: 6px; }
.ach span { padding: 6px 10px; border-radius: 12px; font-size: 12.5px; background: rgba(255, 255, 255, 0.05); color: var(--muted); }
.ach span.on { background: rgba(255, 201, 77, 0.15); color: var(--gold); font-weight: 700; }
.settings { display: flex; flex-direction: column; gap: 10px; }
.set { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); font-size: 14px; }
.seg { display: flex; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.seg button { padding: 7px 12px; font-weight: 800; font-size: 12px; color: var(--muted); }
.seg button.on { background: var(--violet); color: #fff; }
.toggle { width: 50px; height: 28px; border-radius: 20px; background: rgba(255, 255, 255, 0.15); position: relative; transition: 0.2s; flex: none; }
.toggle i { position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: 0.2s; }
.toggle.on { background: var(--violet); }
.toggle.on i { left: 25px; }
input[type=range] { accent-color: var(--pink); width: 140px; }

/* ---------- танцювальна сесія ---------- */
.session { position: fixed; inset: 0; z-index: 60; background: var(--bg); touch-action: none; }
.sess-cv { position: absolute; inset: 0; display: block; }
.sess-top { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 10px; padding: calc(10px + var(--safe-t)) 12px 0; pointer-events: none; }
.sess-top > * { pointer-events: auto; }
.sess-title { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.sess-title b { font-size: 16px; font-weight: 900; font-style: italic; color: var(--sc); text-shadow: 0 0 10px var(--sc); }
.sess-title span { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sess-score { display: flex; flex-direction: column; align-items: flex-end; }
.sess-score b { font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; }
.sess-score span { font-size: 12px; color: var(--muted); }
.sess-prog { position: absolute; left: 12px; right: 12px; top: calc(60px + var(--safe-t)); height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); overflow: hidden; pointer-events: none; }
.sess-prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--violet), var(--sc)); }
.sess-skip { position: absolute; right: 12px; bottom: calc(24px + var(--safe-b)); }
.sess-pause { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(5, 2, 15, 0.75); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.panel { width: min(320px, 88vw); display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 22px; background: linear-gradient(180deg, #24104f, #130829); border: 1px solid var(--line); text-align: center; }
.panel h2 { font-size: 24px; font-weight: 900; font-style: italic; margin-bottom: 6px; }
.fs-chips { position: absolute; left: 0; right: 0; bottom: calc(14px + var(--safe-b)); display: flex; gap: 8px; padding: 0 12px; overflow-x: auto; scrollbar-width: none; }
.fs-chips .chip { padding: 12px 16px; font-size: 14px; background: rgba(30, 15, 70, 0.9); }
.fs-chips .chip.on { background: var(--sc); color: #1a0b3d; box-shadow: 0 0 16px var(--sc); }
.calib { display: grid; place-items: center; }
.calib-pad { width: 180px; height: 180px; border-radius: 50%; margin: 12px auto; font-size: 20px; font-weight: 900; background: radial-gradient(circle, var(--pink), var(--violet)); box-shadow: 0 0 40px var(--violet); }
.calib-pad.hit { animation: hit 0.18s; }
@keyframes hit { 50% { transform: scale(0.92); } }

@media (prefers-reduced-motion: reduce) { .pin.goal .pin-dot, .lvlup { animation: none; } }
@media (min-width: 521px) { body { background: radial-gradient(ellipse at top, #24104f, #07031a 70%); } }

/* ---------- адаптація під екран ---------- */
:root { --app-w: 520px; }
html, body { height: 100vh; height: 100dvh; }
#app, .onb-bg { max-width: var(--app-w); }
.sheet { max-width: var(--app-w); max-height: 92vh; max-height: calc(100dvh - 12px - var(--safe-t)); }
.onb > * { flex-shrink: 0; }
.preview.xl { height: clamp(170px, 34vh, 340px); height: clamp(170px, 34dvh, 340px); }
.preview.tall { height: clamp(150px, 28dvh, 280px); }
.h-neon { font-size: clamp(20px, 6.2vw, 30px); }
.logo span { font-size: clamp(44px, 17vw, 72px); }
.logo b { font-size: clamp(62px, 24vw, 104px); }
/* головна кнопка завжди на екрані */
.onb .btn.primary.big { position: sticky; bottom: 0; z-index: 3; margin-top: auto; }
.onb:not(.splash) { padding-bottom: calc(14px + var(--safe-b)); }
.sheet .btn.primary.big, .sheet > .res > .row-btns:last-child { position: sticky; bottom: 0; z-index: 3; }
.onb.splash .btn.primary.big { position: static; margin-top: 0; }
/* вузькі екрани */
@media (max-width: 380px) {
  .sheet { padding-left: 14px; padding-right: 14px; }
  .screen { padding-left: 10px; padding-right: 10px; }
  .coach-card, .prof-card { grid-template-columns: 96px 1fr; }
  .shop-grid { grid-template-columns: 1fr 1fr; }
  .tabbar button { font-size: 9.5px; }
  .crit-row { grid-template-columns: 78px 1fr 28px 1fr 28px; font-size: 11.5px; }
  .pill { padding: 4px 8px 4px 5px; font-size: 13px; }
  .grade { font-size: 72px; }
  .vs-mid { font-size: 26px; }
}
.act > span:nth-child(2), .install > span, .mb-item span:first-child, .goal-card > span:last-child { min-width: 0; }
.kv b, .sheet h2, .goal-card b, .act b { overflow-wrap: anywhere; }
/* карта: мітки не ховаються під карткою цілі й банером */
.map-wrap { scroll-padding: 90px 0; }
.scr-map .install { padding: 6px 8px 6px 12px; }
.scr-map .install small { display: none; }
.scr-map .install .btn { padding: 7px 10px; font-size: 12px; }
.goal-card { padding: 7px 12px; }
.map-img { margin-bottom: 64px; }
/* низькі екрани (панель браузера відкрита) */
@media (max-height: 640px) and (orientation: portrait) {
  .onb { gap: 9px; padding-top: calc(12px + var(--safe-t)); }
  .sheet { padding-top: 16px; }
  .grade { font-size: 64px; }
  .stars.big { font-size: 26px; }
  .res-grid > div { padding: 6px 4px; }
  .vs-side .preview { height: 130px; }
  .coach-card .preview { height: 140px; }
}
/* планшети */
@media (min-width: 700px) and (min-height: 600px) {
  :root { --app-w: 760px; }
  .style-grid { grid-template-columns: repeat(3, 1fr); }
  .shop-grid { grid-template-columns: repeat(4, 1fr); }
  .lessons { display: grid; grid-template-columns: 1fr 1fr; }
  .modal { align-items: center; }
  .sheet { border-radius: 26px; border-bottom: 1px solid var(--line); max-width: 600px; }
}
/* телефон боком */
@media (orientation: landscape) and (max-height: 520px) {
  :root { --app-w: 100vw; }
  .shell { grid-template-rows: auto 1fr; grid-template-columns: 74px 1fr; padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
  .hud { grid-column: 1 / -1; padding-top: calc(4px + var(--safe-t)); padding-bottom: 4px; }
  .tabbar { grid-row: 2; grid-column: 1; grid-template-columns: 1fr; grid-auto-rows: 1fr; padding: 2px; border-top: 0; border-right: 1px solid var(--line); overflow-y: auto; }
  .tabbar button { padding: 2px 0; font-size: 9px; justify-content: center; }
  .tabbar button .ico { width: 20px; height: 20px; }
  .screen { grid-row: 2; grid-column: 2; }
  .lessons, .list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .list .act { margin-top: 0; }
  .shop-grid { grid-template-columns: repeat(5, 1fr); }
  .style-grid { grid-template-columns: repeat(6, 1fr); }
  .style-card .mini { height: 80px; }
  .style-card b { font-size: 13px; }
  .style-card small { display: none; }
  .modal { align-items: center; }
  .sheet { max-width: 640px; max-height: calc(100dvh - 12px); border-radius: 20px; border-bottom: 1px solid var(--line); padding: 12px 16px; }
  .modal.tall .sheet { min-height: 0; }
  .preview.tall, .preview.xl { height: clamp(120px, 46dvh, 240px); }
  .onb { padding: 8px calc(20px + env(safe-area-inset-right, 0px)) 8px calc(20px + env(safe-area-inset-left, 0px)); gap: 8px; }
  .onb.splash { justify-content: center; }
  .logo { flex-direction: row; gap: 14px; align-items: baseline; }
  .logo span, .logo b { font-size: 15vh; }
  .grade { font-size: 54px; }
  .map-img { width: 100cqw; }
  .session .sess-prog { top: calc(50px + var(--safe-t)); }
}
@media (orientation: landscape) and (max-height: 520px) { .sheet .btn.big, .onb .btn.big { padding: 9px; font-size: 14px; border-radius: 13px; } }
.notice { padding: 10px 12px; border-radius: 12px; background: rgba(255, 201, 77, 0.12); border: 1px solid rgba(255, 201, 77, 0.4); font-size: 13px; margin: 0 0 12px; }

/* ---------- навчання жестам і «що далі» ---------- */
.tut { position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: calc(16px + var(--safe-t)) 20px calc(18px + var(--safe-b)); background: radial-gradient(ellipse at 50% 60%, #3a1a7a, #0b0620 75%); touch-action: none; text-align: center; }
.tut-skip { align-self: flex-end; padding: 8px 12px; color: var(--muted); font-size: 13px; }
.tut h2 { font-size: clamp(20px, 6vw, 28px); font-weight: 900; color: var(--c); }
.tut p { margin: 0; font-size: 16px; max-width: 420px; }
.tut-dots { display: flex; gap: 6px; }
.tut-dots i { width: 28px; height: 5px; border-radius: 4px; background: rgba(255, 255, 255, 0.15); }
.tut-dots i.on { background: var(--gold); }
.tut-area { position: relative; flex: 1; width: 100%; max-width: 420px; min-height: 130px; }
.tut-lane { display: none; position: absolute; left: 50%; top: 0; bottom: 20%; width: 96px; transform: translateX(-50%); background: linear-gradient(transparent, rgba(168, 85, 247, 0.35)); }
.tut-ring, .tut-note { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; }
.tut-ring { width: 128px; height: 128px; border: 5px solid var(--c); box-shadow: 0 0 30px var(--c); background: conic-gradient(var(--c) calc(var(--p, 0) * 360deg), transparent 0); }
.tut-ring.hit { animation: tuthit 0.3s; }
@keyframes tuthit { 40% { box-shadow: 0 0 70px 20px var(--c); } }
.tut-note { width: 92px; height: 92px; display: grid; place-items: center; font-size: 44px; font-weight: 900; color: #1a0b3d; background: radial-gradient(circle at 35% 30%, #fff, var(--c) 55%); border: 3px solid #fff; }
.tut[data-type=hold] .tut-note { font-size: 28px; }
.tut-hand { position: absolute; left: 50%; top: 50%; font-size: 46px; pointer-events: none; animation: tuttap 1.1s infinite; }
.tut-hand[data-dir=r] { animation-name: tutr; } .tut-hand[data-dir=l] { animation-name: tutl; } .tut-hand[data-dir=u] { animation-name: tutu; }
.tut[data-type=hold] .tut-hand { animation: none; transform: translate(0, 12px); }
@keyframes tuttap { 0%, 100% { transform: translate(4px, 34px); } 50% { transform: translate(-4px, 8px); } }
@keyframes tutr { 0% { transform: translate(-70px, 20px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translate(50px, 20px); opacity: 0; } }
@keyframes tutl { 0% { transform: translate(40px, 20px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translate(-90px, 20px); opacity: 0; } }
@keyframes tutu { 0% { transform: translate(-10px, 70px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translate(-10px, -50px); opacity: 0; } }
.tut[data-type=beat] .tut-lane { display: block; }
.tut[data-type=beat] .tut-ring, .tut[data-type=beat] .tut-note { top: 80%; }
.tut[data-type=beat] .tut-ring { width: 108px; height: 108px; }
.tut[data-type=beat] .tut-hand, .tut[data-type=done] .tut-area, .tut[data-type=done] .tut-skip { display: none; }
.tut[data-type=done] { justify-content: center; }
.tut-msg { min-height: 26px; font-size: 18px; } .tut-msg.ok { color: #86efac; } .tut-msg.no { color: #fca5a5; }
.goal-wrap { position: absolute; left: 12px; right: 12px; top: 12px; display: flex; gap: 8px; align-items: stretch; padding: 8px; border-radius: 18px; background: var(--panel); border: 1px solid rgba(255, 201, 77, 0.5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4); }
.goal-wrap .goal-card { position: static; flex: 1; min-width: 0; border: 0; background: none; box-shadow: none; padding: 2px 4px; backdrop-filter: none; -webkit-backdrop-filter: none; }
.goal-wrap .go { flex: none; padding: 8px 14px; font-size: 13px; animation: pulse 1.6s infinite; }
.help-btn { width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); font-weight: 900; flex: none; }
.help-row { display: flex; gap: 12px; align-items: center; padding: 8px 0; text-align: left; }
.help-row .pt { width: 40px; height: 40px; flex: none; font-size: 18px; }
@media (prefers-reduced-motion: reduce) { .goal-wrap .go { animation: none; } }

.heroes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hero { display: flex; flex-direction: column; align-items: center; padding: 9px 4px; border-radius: 13px; background: rgba(255, 255, 255, 0.06); border: 2px solid transparent; }
.hero small { color: var(--muted); font-size: 11px; }
.hero.on { border-color: var(--gold); background: rgba(255, 201, 77, 0.14); }

/* ---------- вибір персонажа, примірка ---------- */
.pick { overflow: hidden; }
.pick-stage { display: flex; align-items: center; width: 100%; flex: 1 1 auto !important; min-height: 180px; touch-action: pan-y; }
.pick-cv { flex: 1; min-width: 0; height: 100%; min-height: 180px; max-height: 60dvh; display: block; }
.pick-ar { width: 44px; height: 72px; font-size: 40px; font-weight: 900; color: var(--gold); flex: none; }
.pick-name { font-size: 28px; font-weight: 900; font-style: italic; text-shadow: 0 0 14px var(--violet); }
.pick p { margin: 0; }
.pick-dots { display: flex; gap: 7px; }
.pick-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); }
.pick-dots i.on { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.back { align-self: flex-start; color: var(--muted); font-weight: 700; padding: 6px 2px; }
.btn.primary.big:disabled { opacity: 1; background: #3a2a5c; color: #8f80b8; box-shadow: none; }
.item.try { border-color: var(--cyan); box-shadow: 0 0 14px rgba(56, 225, 255, 0.4); }
.swatch.txt { background: linear-gradient(135deg, var(--pink), var(--gold)); color: #1a0b3d; font-weight: 900; }
.buybar { position: sticky; bottom: -20px; margin: 10px -4px -8px; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 16px; background: #24104f; border: 1px solid var(--cyan); box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.5); z-index: 4; }
.buybar span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.buybar small { color: var(--cyan); font-size: 10px; font-weight: 900; letter-spacing: 0.1em; }
.custom { display: flex; flex-direction: column; gap: 10px; margin: 0 0 12px; padding: 12px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.scr-style .shop-top { position: sticky; top: -14px; z-index: 3; background: radial-gradient(ellipse at 50% 80%, #3a1a7a, #160a38 75%); }
@media (orientation: portrait) { .scr-style .preview.xl { height: clamp(150px, 30dvh, 300px); } }

/* під час танцю торкання ловить увесь екран, крім кнопок */
.session, .session * { touch-action: none; }
.session .sess-top > *, .session .fs-chips { pointer-events: none; }
.session .sess-top button, .session .fs-chips .chip { pointer-events: auto; }
.session .fs-chips { pointer-events: none; flex-wrap: wrap; overflow: visible; }
.session .fs-chips .chip { padding: 9px 12px; font-size: 13px; }
