/* Палитра — с постера AMORA: тёплый чёрный, огненно-оранжевый, персиковый неон. */
:root {
  --bg: #070505;
  --surface: #130D0B;
  --surface-2: #1B1310;
  --line: #2A1B16;
  --line-strong: #3D2820;
  --fg: #FFF1E6;
  --muted: #A8968C;
  --accent: #FF5A1F;
  --accent-hot: #FF8A3D;
  --accent-deep: #C21A05;
  --on-accent: #0A0605;
  --glow: rgba(255, 90, 31, 0.5);
  --neon: 0 0 6px rgba(255, 122, 47, 0.9), 0 0 18px rgba(255, 74, 10, 0.55);

  --font-display: 'Unbounded', sans-serif;
  --font-body: 'Inter Tight', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; }
body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(120% 55% at 50% -12%, rgba(255, 74, 10, 0.20), transparent 62%),
    var(--bg);
  background-attachment: fixed;
  color: var(--fg);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--fg); }
button { font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible { outline: 2px solid var(--accent-hot); outline-offset: 2px; }
.scroll { scrollbar-width: none; }
.scroll::-webkit-scrollbar { display: none; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 90, 31, 0.75); }
  70% { box-shadow: 0 0 0 10px rgba(255, 90, 31, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 90, 31, 0); }
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* Метка LIVE: ровное свечение, от краёв мягко расходится кольцо (без мигания). */
@keyframes tag-ring { from { transform: scale(1); opacity: 0.8; } to { transform: scale(1.45); opacity: 0; } }
/* --pulse-delay выставляет app.js по часам, чтобы все пульсации шли в такт и не сбивались при обновлении экрана. */
.live { animation: pulse 1.8s infinite; animation-delay: var(--pulse-delay, 0s); }
.rise { animation: rise .35s ease both; }

.app { max-width: 480px; margin: 0 auto; min-height: 100dvh; position: relative; }

/* Шапка */
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center;
  padding: calc(16px + env(safe-area-inset-top)) 20px 12px;
  background: linear-gradient(var(--bg) 70%, rgba(7, 5, 5, 0));
}
.brand {
  font-family: var(--font-display); font-size: 15px; font-weight: 800; letter-spacing: 0.06em;
  color: #FFE3CC; text-shadow: var(--neon);
}
.brand .logo {
  display: block; height: 22px; width: auto;
  filter: drop-shadow(0 0 4px rgba(255, 122, 47, 0.9)) drop-shadow(0 0 12px rgba(255, 74, 10, 0.5));
}
.clock { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.clock .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

main { padding: 8px 20px calc(120px + env(safe-area-inset-bottom)); }

/* Заголовки экранов */
.eyebrow { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.14em; margin-bottom: 8px; }
.title { margin: 0 0 24px; font-family: var(--font-display); font-size: 44px; line-height: 0.95; font-weight: 800; letter-spacing: -0.04em; }
.title.big { font-size: 52px; margin-bottom: 28px; }
.title .pt { color: var(--accent); text-shadow: var(--neon); }
.lead { margin: -18px 0 18px; font-size: 14px; color: var(--muted); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; }

/* Сейчас */
.now-list { display: flex; flex-direction: column; gap: 10px; }
.now-card {
  all: unset; cursor: pointer; position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 14px; padding: 18px 18px 16px;
  border-radius: 22px; background: var(--surface); border: 1px solid var(--line);
}
.now-card:focus-visible { outline: 2px solid var(--accent-hot); outline-offset: 2px; }
.now-card .num {
  position: absolute; right: -6px; top: -18px;
  font-family: var(--font-display); font-size: 112px; font-weight: 800; line-height: 1; letter-spacing: -0.06em;
  color: transparent; -webkit-text-stroke: 1px var(--line-strong);
}
.now-card > *:not(.num) { position: relative; }
.stage-row { display: flex; align-items: center; gap: 8px; }
.stage-row .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--glow); }
.stage-row .dot.off { background: var(--line-strong); box-shadow: none; }
.stage-name { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.12em; }
.artist { font-family: var(--font-display); font-size: 28px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.stage-name .promo { color: var(--accent-hot); }
.artist.long { font-size: 22px; }
.artist.xlong { font-size: 18px; line-height: 1.2; }
.bar-row { display: flex; align-items: center; gap: 10px; }
.bar { flex: 1; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bar > div { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--accent-deep), var(--accent), var(--accent-hot)); }
.mono-s { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.next-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.next-row b { color: var(--fg); font-weight: 500; }
.next-row .mono-s { font-size: 12px; }
.note { padding: 18px; font-size: 15px; line-height: 1.4; color: var(--muted); }
.note strong { color: var(--fg); font-weight: 600; }

/* Лайнап */
.seg {
  display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 4px; padding: 4px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 24px;
}
.seg button {
  height: 44px; border-radius: 999px; border: 0; background: transparent; color: var(--fg);
  font-family: var(--font-display); font-size: 14px; font-weight: 600; transition: background .2s, color .2s;
}
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); box-shadow: 0 0 18px var(--glow); }
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ''; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.set { position: relative; padding: 14px 0 18px; }
.set.past { opacity: 0.3; }
.set .tdot {
  position: absolute; left: -22px; top: 20px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg); border: 1px solid #6E5A50;
}
.set.past .tdot { background: var(--line-strong); border-color: var(--line-strong); }
.set.on .tdot { background: var(--accent); border-color: var(--accent); }
.set-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.set-time { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.set.on .set-time { color: var(--accent-hot); }
.tag {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.12em;
  color: var(--on-accent); background: var(--accent); padding: 3px 9px 3px 7px; border-radius: 999px;
  box-shadow: 0 0 12px rgba(255, 90, 31, 0.55);
}
.tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--on-accent); }
.tag::after {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; border: 1px solid var(--accent-hot);
  animation: tag-ring 1.8s ease-out infinite; animation-delay: var(--pulse-delay, 0s); pointer-events: none;
}
/* Настройку «уменьшить движение» сознательно не учитываем: на многих Android её включает обычное
   энергосбережение, и гости теряли всю анимацию. Наши эффекты мелкие и спокойные (свечение, пунктир). */
.set-artist { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.set.on .set-artist { font-size: 30px; }
.set-artist.long { font-size: 19px; }
.set.on .set-artist.long { font-size: 24px; }
.set-artist.xlong, .set.on .set-artist.xlong { font-size: 17px; line-height: 1.25; }
.stage-head { margin: -8px 0 18px; }
.sh-promo { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--accent); }
.sh-name { margin-top: 4px; font-size: 15px; color: var(--muted); }
.sh-promo { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.genre {
  font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-hot); padding: 4px 9px; border: 1px solid rgba(255, 90, 31, 0.45); border-radius: 999px;
  white-space: nowrap;
}

/* Карта */
/* Фильтры переносятся на вторую строку: в браузере на компьютере горизонтальную прокрутку не пролистать. */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.chips button {
  flex: 1 1 auto; height: 40px; padding: 0 8px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--fg);
  font-size: 14px; font-weight: 500; transition: background .2s, color .2s;
}
.chips button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
/* Схема музея: SVG-план + значки поверх (значки не масштабируются вместе с планом). */
.map {
  position: relative; aspect-ratio: 1110 / 735; border-radius: 24px; overflow: hidden;
  background-color: #0E0908;
  background-image: radial-gradient(#22160F 1px, transparent 1px);
  background-size: 12px 12px;
  border: 1px solid var(--line);
  touch-action: manipulation;
}
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.map .walls {
  fill: none; stroke: #7A5A4C; stroke-width: 1; stroke-linejoin: round; stroke-linecap: round;
  vector-effect: non-scaling-stroke; pointer-events: none;
}
.route { pointer-events: none; opacity: 0.6; transition: opacity .25s; }
.route.on { opacity: 1; }
.route .line {
  fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 6 6; animation: route-flow 0.9s linear infinite;
}
.route .head { fill: var(--accent); }
/* Свечение элементов схемы — SVG-фильтром #glow (его кладёт app.js): CSS drop-shadow() Safari на них не рисует. */
.route.on .head { filter: url(#glow); }
@keyframes route-flow { to { stroke-dashoffset: -12; } }
.room { fill: rgba(255, 241, 230, 0.06); cursor: pointer; transition: fill .25s, opacity .25s; }
.room.stage { fill: rgba(255, 90, 31, 0.22); }
.room.on { fill: rgba(255, 90, 31, 0.34); }
.room.wc { fill: rgba(255, 241, 230, 0.12); }
.room.dim { opacity: 0.25; }
.room.hit { fill: rgba(255, 90, 31, 0.6); }
.room.sel { fill: var(--accent); filter: url(#glow); }
.pin {
  position: absolute; transform: translate(-50%, -50%); z-index: 1;
  min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); color: var(--fg); border: 1px solid var(--line-strong);
  font-size: 11px; font-weight: 600; white-space: nowrap;
  transition: background .25s, color .25s, opacity .25s, box-shadow .25s;
}
.pin.stage { min-width: 32px; height: 32px; padding: 0; background: var(--fg); color: var(--on-accent); border-color: var(--fg); font-family: var(--font-display); font-size: 12px; }
.pin.dim { opacity: 0.2; }
.pin.hit, .pin.sel { background: var(--accent); color: var(--on-accent); border-color: var(--accent); box-shadow: 0 0 20px var(--glow); }
.pin.sel { z-index: 2; }
.pin::before { content: ''; position: absolute; inset: -8px; }
.map.far .pin.stage { min-width: 26px; height: 26px; font-size: 10px; }
.map.far .pin:not(.stage):not(.hit):not(.sel) {
  min-width: 10px; width: 10px; height: 10px; padding: 0; font-size: 0;
  background: var(--accent-hot); border-color: var(--bg);
}
.map-reset {
  position: absolute; right: 10px; top: 10px; z-index: 3; height: 32px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(19, 13, 11, 0.85); color: var(--fg); font-size: 12px; font-weight: 600;
}
.places { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.place {
  display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line); color: var(--fg); text-align: left; width: 100%;
}
button.place { font: inherit; }
.place.sel { border-color: rgba(255, 90, 31, 0.5); box-shadow: 0 0 0 1px rgba(255, 90, 31, 0.15), 0 10px 30px rgba(255, 74, 10, 0.12); }
.place .z {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 14px; background: var(--accent); color: var(--on-accent);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 18px;
}
.place .z.ico { background: var(--surface-2); color: var(--accent-hot); border: 1px solid var(--line-strong); }
.place .t { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.place .n { font-size: 17px; font-weight: 600; }
.place .pr { font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--accent); }
.place .h { font-size: 14px; line-height: 1.35; color: var(--muted); }
.place .h b { color: var(--fg); font-weight: 500; }
.place .h .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 6px; vertical-align: 2px; }
.place .go {
  flex-shrink: 0; height: 40px; padding: 0 14px; border-radius: 999px; border: 0;
  background: var(--fg); color: var(--on-accent); font-size: 13px; font-weight: 600;
}

/* Таймер до старта */
.cd { margin: -6px 0 22px; }
.cd-cap { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 10px; }
.cd-row { display: flex; align-items: flex-start; justify-content: space-between; }
.cd-u { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.cd-n {
  font-family: var(--font-display); font-weight: 800; font-size: 40px; font-size: min(44px, 11vw); line-height: 1;
  letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: #FFE3CC;
  text-shadow: 0 0 10px rgba(255, 122, 47, 0.45), 0 0 26px rgba(255, 74, 10, 0.25);
}
.cd-u.sec .cd-n { color: var(--accent); text-shadow: var(--neon); }
.cd-l { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; color: var(--muted); }
.cd-sep {
  font-family: var(--font-display); font-weight: 800; font-size: 32px; font-size: min(36px, 9vw); line-height: 1.1;
  color: var(--accent); text-shadow: var(--neon);
}

/* Плашка «Вход открыт» на главном экране */
.entry {
  display: flex; flex-direction: column; gap: 10px; padding: 18px; margin-bottom: 10px; border-radius: 22px; color: var(--on-accent);
  background: linear-gradient(135deg, var(--accent-hot), var(--accent) 45%, var(--accent-deep));
  box-shadow: 0 10px 40px rgba(255, 74, 10, 0.25);
}
.entry .l { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; }
/* Время входа — одной строкой: размер подстраивается под ширину плашки (≈16px на телефоне, до 22px шире). */
.entry { container-type: inline-size; }
.entry .big {
  font-family: var(--font-display); font-size: 16px; font-size: min(22px, 5.3cqi); font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.15; white-space: nowrap;
}
.entry .sub { margin-top: -4px; font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: -0.01em; }
.entry .x { font-size: 14px; }
.entry .note-s { padding-top: 10px; border-top: 1px solid rgba(10, 6, 5, 0.18); font-size: 12px; line-height: 1.35; opacity: 0.85; }
.entry .note-s a { color: var(--on-accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.entry .note-s a:hover { color: var(--on-accent); text-decoration-thickness: 2px; }

/* Меню бара */
.menu { display: flex; flex-direction: column; gap: 10px; }
.menu-sec { padding: 18px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.menu-sec h2 { margin: 0 0 12px; font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: var(--accent); }
.mi { padding: 10px 0; border-top: 1px solid var(--line); }
.mi:first-of-type { border-top: 0; padding-top: 0; }
.mi-row { display: flex; align-items: baseline; gap: 8px; }
.mi-n { font-size: 16px; font-weight: 500; }
.mi-dots { flex: 1; min-width: 12px; border-bottom: 1px dotted var(--line-strong); transform: translateY(-4px); }
.mi-p { font-family: var(--font-mono); font-size: 14px; color: var(--accent-hot); white-space: nowrap; }
.mi-d { margin-top: 3px; font-size: 13px; color: var(--muted); }

/* Нижнее меню */
.tabs {
  position: fixed; z-index: 10; left: 50%; transform: translateX(-50%);
  bottom: calc(20px + env(safe-area-inset-bottom)); width: min(448px, calc(100% - 32px));
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 6px; border-radius: 999px;
  background: rgba(30, 20, 17, 0.72);
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 200, 170, 0.08); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}
.tabs button {
  height: 52px; border: 0; border-radius: 999px; background: transparent; color: var(--muted);
  font-size: 13px; font-weight: 600; letter-spacing: -0.01em; transition: background .2s, color .2s;
}
.tabs button[aria-current="page"] { background: var(--fg); color: var(--on-accent); }
