/* Тотем FM — активность Discord. Ночной костёр шамана: фон из обложки, визуализатор-барабан в центре. */

@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap;
  src: url("fonts/manrope-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap;
  src: url("fonts/manrope-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-weight: 800; font-display: swap;
  src: url("fonts/manrope-cyrillic-800-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 800; font-display: swap;
  src: url("fonts/manrope-latin-800-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Unbounded"; font-weight: 700; font-display: swap;
  src: url("fonts/unbounded-cyrillic-700-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-weight: 700; font-display: swap;
  src: url("fonts/unbounded-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }

:root {
  --night: #0f1c19;          /* ночь в сосновом лесу */
  --ochre: #e8b04b;          /* краска тотема */
  --spirit: #5fe0c8;         /* свечение духов */
  --bone: #ede6d6;           /* кость, текст */
  --bone-dim: rgba(237, 230, 214, 0.62);
  --accent: #e8b04b;         /* главный цвет обложки — подставляется из JS */
  --totem: min(44vh, 70vw);  /* размер визуализатора */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--night);
  color: var(--bone);
  font-family: "Manrope", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

/* ---------- фон: размытая обложка, как в Яндекс Музыке, только темнее — ночь ---------- */
.bg { position: fixed; inset: 0; overflow: hidden; will-change: transform, filter; }
.fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.bg img {
  position: absolute; inset: -15%;
  width: 130%; height: 130%;
  object-fit: cover;
  filter: blur(64px) saturate(1.35) brightness(0.42);
  opacity: 0;
  transition: opacity 1.4s ease;
}
.bg img.on { opacity: 1; }
.bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 38%, transparent 0%, rgba(15, 28, 25, 0.35) 45%, rgba(9, 18, 16, 0.92) 100%),
    linear-gradient(to bottom, transparent 55%, rgba(9, 18, 16, 0.75));
}

/* ---------- сцена ---------- */
.stage {
  position: relative;
  will-change: transform;
  height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(10px, 2.2vh, 22px);
  padding: 16px 16px clamp(16px, 4vh, 40px);
  text-align: center;
}

.brand {
  position: fixed; top: 14px; left: 16px; z-index: 2;
  display: flex; align-items: baseline; gap: 10px;
  font-weight: 600; font-size: 13px; color: var(--bone-dim);
}
.brand b { font-family: "Unbounded", sans-serif; font-weight: 700; font-size: 13px; color: var(--ochre); letter-spacing: 0.02em; }

/* ---------- барабан: визуализатор + аватар ---------- */
.totem {
  position: relative;
  width: var(--totem); height: var(--totem);
  flex: none;
}
.totem canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.avatar {
  position: absolute; left: 50%; top: 50%;
  width: 40%; height: 40%;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(var(--pulse, 1));
  background: var(--night) center / cover no-repeat;
  box-shadow:
    0 0 0 3px rgba(237, 230, 214, 0.85),
    0 0 calc(24px + var(--glow, 0) * 50px) color-mix(in srgb, var(--accent) 70%, transparent);
  will-change: transform;
}

/* ---------- трек ---------- */
.meta {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  max-width: min(720px, 92vw);
  transition: opacity 0.45s ease, filter 0.45s ease, transform 0.45s ease;
}
.meta.swap { opacity: 0; filter: blur(8px); transform: translateY(6px); }
.cover {
  width: clamp(44px, 7vh, 64px); height: clamp(44px, 7vh, 64px);
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  margin-bottom: 4px;
}
.cover[hidden] { display: none; }
.artist { font-weight: 600; font-size: clamp(13px, 1.8vh, 16px); color: var(--bone-dim); }
.title {
  font-family: "Unbounded", sans-serif; font-weight: 700;
  font-size: clamp(18px, 3.2vh, 30px);
  line-height: 1.15;
  max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.progress {
  width: clamp(160px, 26vw, 280px); height: 3px; margin-top: 8px;
  border-radius: 2px;
  background: rgba(237, 230, 214, 0.16);
  overflow: hidden;
}
.progress i { display: block; height: 100%; width: 0; background: var(--ochre); border-radius: 2px; }

/* ---------- текст песни: строки как в Яндекс Музыке ---------- */
.lyrics {
  position: relative;
  width: min(820px, 94vw);
  height: calc(var(--lh) * 3);
  --lh: clamp(30px, 5.2vh, 52px);
  flex-shrink: 0;            /* не сжимать окно из трёх строк, иначе текущая строка уезжает вниз */
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 28%, #000 72%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 28%, #000 72%, transparent);
  transition: opacity 0.5s ease;
}
.lyrics.off { opacity: 0; }
.lines {
  position: absolute; left: 0; right: 0; top: 0;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.line {
  height: var(--lh);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: clamp(18px, 3.5vh, 34px);
  line-height: 1.15;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--bone);
  opacity: 0.26;
  filter: blur(1.2px);
  transform: scale(0.94);
  transition: opacity 0.5s ease, filter 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.line.now { opacity: 1; filter: none; transform: none; }
/* припев: текущая строка крупнее и светится */
.hype .line.now {
  transform: scale(1.1);
  text-shadow: 0 0 18px color-mix(in srgb, var(--accent) 80%, transparent), 0 0 42px color-mix(in srgb, var(--accent) 45%, transparent);
}
.hype .title { text-shadow: 0 0 24px color-mix(in srgb, var(--accent) 55%, transparent); }
.line.gap { letter-spacing: 0.4em; }

/* ---------- субтитры Гром'Баса ---------- */
.speech {
  position: absolute; left: 50%; bottom: clamp(16px, 4vh, 40px);
  transform: translate(-50%, 8px);
  width: min(760px, 92vw);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
.speech.on { opacity: 1; transform: translate(-50%, 0); }
.speech .who { font-weight: 600; font-size: 13px; color: var(--spirit); }
.speech .say {
  font-weight: 800; font-size: clamp(15px, 2.4vh, 22px); line-height: 1.35;
  color: var(--bone);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- чиби-Гром'Бас за столом (правый нижний угол) ---------- */
:root { --orc: clamp(170px, min(27vw, 44vh), 430px); }
.orc-scene { display: none; }
.orc-on .orc-scene {
  display: block;
  position: fixed; right: clamp(4px, 1.2vw, 24px); bottom: 0; z-index: 3;
  width: var(--orc); aspect-ratio: 400 / 340;
  pointer-events: none;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45));
}
.orc-scene svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
/* центр не налезает на угол с орком */
.orc-on .lyrics { width: min(820px, 94vw, calc(100vw - 2 * var(--orc) - 32px)); }
.orc-on .meta { max-width: min(720px, 92vw, calc(100vw - 2 * var(--orc) - 32px)); }
.orc-on .speech { display: none; }   /* субтитры теперь в пузыре */

#steam .s1, #steam .s2 { animation: steam 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: bottom; }
#steam .s2 { animation-delay: 1.6s; }
@keyframes steam {
  0% { opacity: 0; transform: translateY(6px) scaleY(0.6); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-14px) scaleY(1.1); }
}

/* пузырь речи: бумага, тёмный контур, хвостик к голове */
.orc-bubble {
  position: absolute;
  bottom: calc(100% + var(--orc) * 0.05);
  right: calc(100% - var(--bx, 55%) - var(--orc) * 0.22);
  width: min(380px, calc(var(--orc) * 1.25), 46vw);
  padding: 12px 16px 13px;
  background: #f7f0e1;
  color: #2b1d14;
  border: 3px solid #2b1d14;
  border-radius: 22px;
  box-shadow: 0 6px 0 rgba(43, 29, 20, 0.35), 0 16px 34px rgba(0, 0, 0, 0.35);
  transform-origin: 82% 110%;
  opacity: 0;
  transform: scale(0.4) rotate(4deg);
  transition: right 0.25s linear;
}
.orc-bubble::before, .orc-bubble::after {
  content: ""; position: absolute; right: 16%;
  border-style: solid; border-color: transparent;
}
.orc-bubble::before { bottom: -22px; border-width: 22px 4px 0 18px; border-top-color: #2b1d14; }
.orc-bubble::after { bottom: -15px; right: calc(16% + 3px); border-width: 16px 2px 0 13px; border-top-color: #f7f0e1; }
.orc-bubble b {
  position: absolute; top: -13px; left: 16px;
  padding: 2px 10px 3px;
  font-family: "Unbounded", sans-serif; font-weight: 700; font-size: 11px; letter-spacing: 0.03em;
  color: #2b1d14; background: #e8b04b;
  border: 2.5px solid #2b1d14; border-radius: 999px;
}
.orc-bubble .txt {
  max-height: calc(1.35em * 4);
  overflow: hidden;
  font-weight: 800; font-size: clamp(13px, calc(var(--orc) * 0.042), 17px); line-height: 1.35;
}
.orc-bubble .txt.long {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 1.1em);
          mask-image: linear-gradient(to bottom, transparent 0, #000 1.1em);
}
.orc-bubble.on { opacity: 1; transform: none; }
.orc-bubble.pop { animation: bubble-pop 0.55s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
.orc-bubble.out { animation: bubble-out 0.35s ease-in both; }
@keyframes bubble-pop {
  0% { opacity: 0; transform: scale(0.3) rotate(8deg) translateY(20px); }
  60% { opacity: 1; transform: scale(1.06) rotate(-2deg); }
  100% { opacity: 1; transform: scale(1) rotate(-1deg); }
}
@keyframes bubble-out {
  from { opacity: 1; transform: scale(1) rotate(-1deg); }
  to { opacity: 0; transform: scale(0.6) rotate(5deg) translateY(16px); }
}
@media (prefers-reduced-motion: reduce) {
  .orc-bubble.pop, .orc-bubble.out { animation: none; }
}

/* ---------- тишина ---------- */
.idle .progress, .idle .cover { visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  .lines, .line, .meta, .bg img, .speech { transition: none; }
  .avatar { transform: translate(-50%, -50%); }
}

/* узкий экран (телефон) — визуализатор меньше, текст в две строки видимости */
@media (max-aspect-ratio: 3/4) {
  :root { --totem: min(62vw, 38vh); }
}

/* =====================================================================
   Интерактив: кто у костра, кнопки эфира, реакции, тосты, мемы, заказы
   ===================================================================== */
:root {
  --panel: rgba(13, 24, 21, 0.92);
  --line: rgba(237, 230, 214, 0.14);
  --ember: #e2583e;
  --parchment: #f1e3c2;
  --ink: #2b1d14;
}
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--spirit); outline-offset: 3px; }

/* ---------- кто у костра ---------- */
.camp {
  position: fixed; top: 44px; left: 14px; z-index: 4;
  list-style: none; display: flex; flex-direction: column; gap: 8px;
  max-height: calc(100vh - 140px); overflow: hidden;
}
.camp li {
  position: relative; display: flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 13px; color: var(--bone-dim);
  transition: opacity 0.8s ease, filter 0.8s ease, transform 0.8s ease;
}
.camp img {
  width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none;
  background: #22332e;
  box-shadow: 0 0 0 2px rgba(232, 176, 75, 0.75), 0 0 14px rgba(232, 176, 75, 0.25);
}
.camp span { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.camp li.arriving { animation: rise-from-fire 0.9s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
.camp li.leaving { opacity: 0; filter: blur(6px) grayscale(1); transform: translate(10px, -18px) scale(0.9); }
.camp .spark {
  position: absolute; left: 14px; top: 14px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--ochre); box-shadow: 0 0 6px var(--ochre); opacity: 0; pointer-events: none;
  animation: spark-fly 0.9s ease-out both;
}
.camp li:not(.arriving) .spark { display: none; }
@keyframes rise-from-fire {
  0% { opacity: 0; transform: translateY(26px) scale(0.6); filter: brightness(2.2) saturate(0); }
  60% { opacity: 1; filter: brightness(1.4); }
  100% { opacity: 1; transform: none; filter: none; }
}
@keyframes spark-fly {
  0% { opacity: 1; transform: translate(0, 0); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)); }
}

/* ---------- кнопки эфира и реакции ---------- */
.controls { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center; }
.acts, .reacts { display: flex; gap: 8px; }
.reacts { padding-left: 18px; border-left: 1px solid var(--line); }
.act {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(237, 230, 214, 0.07);
  border: 1.5px solid rgba(237, 230, 214, 0.2);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.act svg { width: 19px; height: 19px; fill: none; stroke: var(--bone); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.act:hover:not(:disabled) { background: rgba(237, 230, 214, 0.14); border-color: rgba(237, 230, 214, 0.45); }
.act.like:hover:not(:disabled) svg { fill: var(--ember); stroke: var(--ember); }
.act.add:hover:not(:disabled) { border-color: var(--ochre); }
.act:disabled { opacity: 0.3; cursor: not-allowed; }
.act.pressed { animation: press 0.35s ease; }
@keyframes press { 40% { transform: scale(0.84); } 70% { transform: scale(1.1); } }
.reacts button {
  width: 34px; height: 34px; border-radius: 10px; border: 0; background: transparent;
  font-size: 19px; line-height: 1; transition: transform 0.15s ease, background 0.15s ease;
}
.reacts button:hover { background: rgba(237, 230, 214, 0.1); transform: translateY(-2px) scale(1.12); }
.reacts button:active { transform: scale(0.9); }
body:not(.interactive) .controls { display: none; }
.by {
  font-weight: 800; font-size: 12px; color: var(--ink);
  background: var(--ochre); border-radius: 999px; padding: 2px 10px 3px;
}
.by[hidden] { display: none; }

.floaters { position: fixed; inset: 0; pointer-events: none; z-index: 6; overflow: hidden; }
.floater {
  position: absolute; bottom: -60px; display: flex; flex-direction: column; align-items: center;
  animation: float-up 3.4s cubic-bezier(0.3, 0.6, 0.4, 1) forwards;
}
.floater b { font-size: 36px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4)); }
.floater small { font-weight: 600; font-size: 11px; color: var(--bone); background: rgba(13, 24, 21, 0.7); padding: 1px 7px; border-radius: 999px; }
@keyframes float-up {
  0% { transform: translate(0, 0) scale(0.6); opacity: 0; }
  12% { opacity: 1; transform: translate(calc(var(--drift) * 0.1), -12vh) scale(1.1); }
  100% { transform: translate(var(--drift), -78vh) scale(0.9); opacity: 0; }
}

/* ---------- тосты ---------- */
.toasts {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 8;
  display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none;
  width: min(520px, 92vw);
}
.toast {
  display: flex; align-items: center; gap: 8px; max-width: 100%;
  padding: 6px 14px 6px 6px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line);
  font-weight: 600; font-size: 13px; color: var(--bone);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  animation: toast-in 0.35s cubic-bezier(0.2, 1.3, 0.4, 1) both;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.toast:not(:has(img)) { padding-left: 14px; }
.toast img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.toast span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast.out { opacity: 0; transform: translateY(-8px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-12px) scale(0.92); } }

/* ---------- кнопка заказа: билет ---------- */
.order-open {
  position: fixed; left: 14px; bottom: 14px; z-index: 5;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px 10px 13px; border: 0; border-radius: 10px;
  background: var(--ochre); color: var(--ink);
  font-family: "Unbounded", sans-serif; font-weight: 700; font-size: 12px;
  -webkit-mask: radial-gradient(circle 6px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 6px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 6px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 6px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.order-open:hover { transform: translateY(-2px); filter: brightness(1.08); }
.order-open svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.order-open em {
  font-style: normal; font-family: "Manrope", sans-serif; font-weight: 800; font-size: 11px;
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center;
  background: var(--ink); color: var(--ochre);
}
.order-open em[hidden] { display: none; }
body:not(.interactive) .order-open { display: none; }
.drawer-open .order-open { opacity: 0; pointer-events: none; }

/* ---------- панель заказа ---------- */
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 9;
  width: min(390px, 100vw);
  display: flex; flex-direction: column; gap: 12px;
  padding: 18px 16px 16px;
  background: var(--panel); backdrop-filter: blur(14px);
  border-right: 2px solid rgba(232, 176, 75, 0.55);
  box-shadow: 20px 0 50px rgba(0, 0, 0, 0.45);
  transform: translateX(-105%); visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1), visibility 0s linear 0.35s;
}
.drawer.open { transform: none; visibility: visible; transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1); }
.drawer header { display: flex; align-items: center; justify-content: space-between; }
.drawer h2 { font-family: "Unbounded", sans-serif; font-weight: 700; font-size: 17px; color: var(--ochre); }
.drawer h3 { font-weight: 800; font-size: 13px; color: var(--bone-dim); margin-top: 4px; }
.drawer .hint { font-size: 12.5px; line-height: 1.45; color: var(--bone-dim); }
.x {
  width: 30px; height: 30px; border-radius: 50%; border: 0;
  background: rgba(237, 230, 214, 0.08); font-size: 20px; line-height: 1;
}
.x:hover { background: rgba(237, 230, 214, 0.16); }
.search { display: flex; flex-direction: column; gap: 8px; }
.search input {
  width: 100%; padding: 11px 14px; border-radius: 10px;
  background: rgba(237, 230, 214, 0.06); border: 1.5px solid var(--line);
  color: var(--bone); font: 600 14px "Manrope", sans-serif;
}
.search input::placeholder { color: rgba(237, 230, 214, 0.4); }
.search input:focus { border-color: var(--ochre); outline: none; }
.src { display: flex; gap: 4px; padding: 3px; border-radius: 9px; background: rgba(237, 230, 214, 0.06); align-self: flex-start; }
.src button { border: 0; background: transparent; padding: 5px 12px; border-radius: 7px; font-weight: 800; font-size: 12px; color: var(--bone-dim); }
.src button[aria-checked="true"] { background: var(--bone); color: var(--ink); }
.results, .queue { list-style: none; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.results { flex: 1 1 50%; min-height: 60px; }
.queue { flex: 0 1 auto; max-height: 34%; }
.results li, .queue li {
  display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 10px;
  padding: 6px; border-radius: 10px;
}
.results li:hover, .queue li:hover { background: rgba(237, 230, 214, 0.06); }
.results img, .queue img { width: 42px; height: 42px; border-radius: 7px; object-fit: cover; background: #22332e; }
.info { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.info b { font-weight: 800; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.info span, .info small { font-weight: 600; font-size: 12px; color: var(--bone-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.info small { color: var(--spirit); }
.results li button, .queue li button {
  border: 1.5px solid var(--ochre); background: transparent; color: var(--ochre);
  padding: 6px 11px; border-radius: 999px; font-weight: 800; font-size: 12px;
}
.results li button:hover:not(:disabled) { background: var(--ochre); color: var(--ink); }
.results li button.done { border-color: var(--spirit); color: var(--spirit); }
.queue li button { border-color: var(--line); color: var(--bone-dim); }
.results .note, .queue .note { display: block; padding: 10px 6px; font-size: 13px; color: var(--bone-dim); }

/* ---------- мем: свиток разведчиков ---------- */
.meme {
  position: fixed; inset: 0; z-index: 7; display: grid; place-items: center; pointer-events: none;
}
.meme[hidden] { display: none; }
.meme .scroll {
  pointer-events: auto; position: relative;
  width: min(460px, 86vw); padding: 16px 18px 20px;
  background: radial-gradient(ellipse at 50% 40%, #f6ebd0, var(--parchment) 60%, #dcc79c);
  color: var(--ink); border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  transform-origin: 50% 0; transform: scaleY(0.04) rotate(-1deg); opacity: 0;
  transition: transform 0.55s cubic-bezier(0.2, 1.1, 0.3, 1), opacity 0.2s ease;
}
.meme .scroll::before, .meme .scroll::after {                       /* деревянные скалки свитка */
  content: ""; position: absolute; left: -12px; right: -12px; height: 14px; border-radius: 7px;
  background: linear-gradient(#a06a3b, #6e4428); box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
}
.meme .scroll::before { top: -7px; }
.meme .scroll::after { bottom: -7px; }
.meme.open .scroll { transform: rotate(-1deg); opacity: 1; }
.meme-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.meme-head b { font-family: "Unbounded", sans-serif; font-weight: 700; font-size: 13px; }
.meme-head .x { background: rgba(43, 29, 20, 0.1); color: var(--ink); }
.meme img { display: block; width: 100%; max-height: 52vh; object-fit: contain; border-radius: 4px; background: rgba(43, 29, 20, 0.08); }
.meme p { margin-top: 10px; font-weight: 800; font-size: 14px; line-height: 1.35; }
.meme .timer { position: absolute; left: 18px; right: 18px; bottom: 10px; height: 3px; border-radius: 2px; background: var(--ochre); transform-origin: left; }

@media (prefers-reduced-motion: reduce) {
  .camp li.arriving, .floater, .toast, .act.pressed { animation: none; }
  .meme .scroll, .drawer { transition: none; }
}
/* узкий экран: у костра только аватарки, панель на весь экран */
@media (max-width: 640px) {
  .camp span { display: none; }
  .reacts { padding-left: 0; border-left: 0; }
}
