:root {
  --bg: #fef6e4;
  --bg-2: #f9e7c4;
  --ink: #172c66;
  --ink-soft: #5b6a99;
  --paper: #ffffff;
  --pink: #f582ae;
  --cyan: #8bd3dd;
  --yellow: #fbe038;
  --coral: #ff8e72;
  --line: #172c66;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Space Grotesk", -apple-system, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  font-size: 16px;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(245,130,174,.18), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(139,211,221,.22), transparent 45%),
    radial-gradient(circle at 50% 100%, rgba(251,224,56,.18), transparent 50%);
}
button { font-family: inherit; }

/* === TOP BAR === */
.topbar {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 20px 36px;
  border-bottom: 3px solid var(--line);
  background: var(--paper);
  position: sticky; top: 0; z-index: 5;
}
.logo { display: flex; align-items: center; gap: 16px; }
.logo-mark {
  width: 60px; height: 60px;
  display: grid; place-items: center;
  background: var(--ink); color: var(--yellow);
  font-family: "JetBrains Mono", monospace;
  font-weight: 700; font-size: 34px;
  border-radius: 14px;
  transform: rotate(-4deg);
  box-shadow: 4px 4px 0 var(--pink);
}
.logo-title { font-size: 30px; font-weight: 700; letter-spacing: 1px; }
.logo-title .year {
  background: var(--yellow);
  padding: 0 8px; border-radius: 4px;
  font-family: "JetBrains Mono", monospace;
}
.logo-sub { font-size: 14px; color: var(--ink-soft); text-transform: lowercase; letter-spacing: .5px; }

.live-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px; font-weight: 700; letter-spacing: 2px;
}
.pulse {
  width: 10px; height: 10px; background: #ff4d6d; border-radius: 50%;
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,77,109,.7); }
  70% { box-shadow: 0 0 0 14px rgba(255,77,109,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,77,109,0); }
}

/* === MAP === */
.map { max-width: 1280px; margin: 36px auto 60px; padding: 0 36px; }
.map-label, .map-foot {
  text-align: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 16px 0;
}
.map-foot { display: flex; gap: 26px; justify-content: center; }
.legend { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; }
.legend i { width: 16px; height: 16px; border-radius: 4px; border: 2px solid var(--line); display: inline-block; }

.floor {
  display: grid;
  grid-template-columns: 1.5fr 1.5fr 1fr;
  grid-template-rows: 1.2fr 1fr;
  grid-template-areas:
    "main_stage main_stage hall_b"
    "smoking_room qna       networking";
  gap: 20px;
  background:
    repeating-linear-gradient(45deg, rgba(23,44,102,.04) 0 12px, transparent 12px 24px),
    var(--paper);
  padding: 24px;
  border: 3px solid var(--line);
  border-radius: 22px;
  box-shadow: 10px 10px 0 var(--ink);
  min-height: 620px;
}
.room {
  position: relative;
  background: var(--paper);
  border: 3px solid var(--line);
  border-radius: 16px;
  padding: 22px 22px 16px;
  cursor: pointer; overflow: hidden;
  transition: transform .12s ease, box-shadow .12s ease;
  display: flex; flex-direction: column;
}
.room:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--line); }
.room::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 16px;
  background: var(--accent, var(--pink));
  border-bottom: 3px solid var(--line);
}
.room[data-kind="talk"] { --accent: var(--pink); }
.room[data-kind="chat"] { --accent: var(--cyan); }
.room[data-kind="qna"]  { --accent: var(--yellow); }

.room-no {
  position: absolute; top: 26px; right: 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  background: var(--ink); color: var(--bg);
  padding: 3px 9px; border-radius: 4px;
  letter-spacing: 1px;
}
.room-kind {
  margin-top: 18px; display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; text-transform: uppercase; letter-spacing: 2px;
  color: var(--ink); background: var(--accent);
  padding: 4px 10px; border-radius: 4px; border: 2px solid var(--line);
  align-self: flex-start;
}
.room-title { margin: 12px 0 8px; font-size: 30px; font-weight: 700; line-height: 1.1; }
.room-topic {
  font-size: 16px; color: var(--ink-soft); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.room-foot {
  margin-top: auto; padding-top: 14px;
  display: flex; align-items: center; justify-content: space-between;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; color: var(--ink-soft);
}
.room-people { display: inline-flex; gap: 4px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.room-last {
  font-style: italic; max-width: 65%; font-size: 13px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.room[data-id="main_stage"]   { grid-area: main_stage; }
.room[data-id="hall_b"]       { grid-area: hall_b; }
.room[data-id="smoking_room"] { grid-area: smoking_room; }
.room[data-id="qna"]          { grid-area: qna; }
.room[data-id="networking"]   { grid-area: networking; }

/* === STAGE === */
.stage {
  position: fixed; inset: 0; z-index: 20;
  display: flex; flex-direction: column;
  background: var(--bg);
  overflow: hidden;
}
.stage[hidden] { display: none; }

.stage-bar {
  display: flex; align-items: flex-start; gap: 18px;
  padding: 18px 32px 16px;
  background: var(--paper);
  border-bottom: 3px solid var(--line);
  position: relative; z-index: 3;
}
#back {
  background: var(--yellow); color: var(--ink);
  border: 3px solid var(--line);
  border-radius: 10px; padding: 10px 16px;
  font-weight: 700; font-size: 15px;
  cursor: pointer; box-shadow: 3px 3px 0 var(--ink);
  transition: transform .1s, box-shadow .1s;
  align-self: center;
  display: inline-flex; align-items: center; gap: 6px;
}
#back .back-arrow { font-size: 17px; line-height: 1; }
#back:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--ink); }
.stage-bar-mid { flex: 1; min-width: 0; }
.spot-kind-tag {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; text-transform: uppercase; letter-spacing: 2px;
  padding: 4px 11px; border: 2px solid var(--line); border-radius: 4px;
  background: var(--pink); margin-bottom: 8px;
}
.stage-bar-mid h2 { margin: 0 0 4px; font-size: 28px; line-height: 1.15; }
.stage-bar-mid p { margin: 0; font-size: 15px; color: var(--ink-soft); line-height: 1.4; }

/* feed */
.stage-feed {
  flex: 1; overflow-y: auto;
  padding: 26px 36px 30px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative; z-index: 2;
}
.msg {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 4px 4px 0 var(--ink);
  max-width: 760px;
}
.msg.land { animation: land .35s ease; }
@keyframes land {
  from { transform: scale(.96); }
  to   { transform: scale(1); }
}
.msg-head { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.msg-avatar-mini {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%; border: 2px solid var(--line);
  font-size: 14px;
  flex-shrink: 0;
}
.msg-name { font-weight: 700; font-size: 16px; cursor: pointer; }
.msg-name:hover { text-decoration: underline; }
.msg-role { color: var(--ink-soft); font-size: 12px; font-family: "JetBrains Mono", monospace; }
.msg-time { margin-left: auto; font-size: 12px; color: var(--ink-soft); font-family: "JetBrains Mono", monospace; }
.msg-body { font-size: 17px; line-height: 1.5; white-space: pre-wrap; }

.action {
  display: inline-block;
  font-style: italic;
  font-family: "JetBrains Mono", monospace;
  font-size: .82em;
  color: var(--coral);
  background: rgba(255,142,114,.13);
  border: 1.5px dashed rgba(255,142,114,.55);
  padding: 1px 8px;
  border-radius: 999px;
  margin: 0 3px;
  vertical-align: 1px;
  line-height: 1.3;
}
.action::before { content: "✱ "; opacity: .65; margin-right: 1px; }
.bubble .action { font-size: .78em; }

/* ремарка рассказчика — описание сцены, идёт отдельной строкой в ленте */
.ambient {
  align-self: center;
  max-width: 78%;
  text-align: center;
  font-style: italic;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  padding: 12px 36px;
  margin: 6px 0;
  border-top: 1.5px dashed rgba(23,44,102,.35);
  border-bottom: 1.5px dashed rgba(23,44,102,.35);
  position: relative;
  background: rgba(255,255,255,.55);
}
.ambient::before, .ambient::after {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  color: var(--coral);
  font-size: 18px;
  font-style: normal;
}
.ambient::before { content: "✦"; left: 14px; }
.ambient::after  { content: "✦"; right: 14px; }
.ambient.mini {
  font-size: 12px;
  padding: 6px 24px;
  margin: 4px 0 6px;
  max-width: 100%;
  border-radius: 6px;
}
.ambient.mini::before, .ambient.mini::after { font-size: 13px; }
.empty { color: var(--ink-soft); text-align: center; padding: 40px 20px;
  font-family: "JetBrains Mono", monospace; font-size: 13px; }

/* === STAGE FLOOR === */
.stage-floor-wrap {
  border-top: 3px solid var(--line);
  background: var(--paper);
  padding: 14px 24px 22px;
  position: relative; z-index: 3;
}
.stage-floor-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; text-transform: uppercase; letter-spacing: 2px;
  color: var(--ink-soft); text-align: center; margin-bottom: 12px;
}
.stage-floor {
  display: flex; gap: 30px; justify-content: center; flex-wrap: wrap;
}
.avatar {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  position: relative; cursor: pointer;
  transition: transform .25s ease;
}
.avatar:hover { transform: translateY(-3px); }
.avatar.speaking { transform: translateY(-8px); }
.avatar-circle {
  width: 64px; height: 64px; border-radius: 50%;
  border: 3px solid var(--line);
  display: grid; place-items: center;
  font-size: 32px;
  box-shadow: 3px 3px 0 var(--ink);
  position: relative;
}
.avatar.speaking .avatar-circle {
  animation: nod 0.55s infinite ease-in-out;
}
@keyframes nod {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-3px) rotate(3deg); }
}
.avatar-name {
  font-size: 12px; font-family: "JetBrains Mono", monospace;
  text-align: center; max-width: 100px; line-height: 1.2;
}

/* === BUBBLE === */
.bubble {
  position: fixed;
  background: var(--paper);
  border: 3px solid var(--line);
  border-radius: 20px;
  padding: 12px 16px;
  max-width: 340px;
  min-width: 60px;
  box-shadow: 4px 4px 0 var(--ink);
  z-index: 40;
  pointer-events: none;
  font-size: 17px;
  line-height: 1.4;
  transform: translate(-50%, 0) scale(.6);
  opacity: 0;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), opacity .2s;
  will-change: transform, opacity;
}
.bubble.shown { transform: translate(-50%, 0) scale(1); opacity: 1; }
.bubble.flying { transition: transform .75s cubic-bezier(.4,0,.2,1), opacity .5s .2s; }
.bubble::after {
  content: ""; position: absolute;
  bottom: -11px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 11px solid transparent; border-right: 11px solid transparent;
  border-top: 12px solid var(--line);
}
.bubble::before {
  content: ""; position: absolute;
  bottom: -7px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 8px solid transparent; border-right: 8px solid transparent;
  border-top: 9px solid var(--paper);
  z-index: 1;
}
/* idle — фоновое "что-делает", чуть меньше и кремовое */
.bubble.idle {
  font-family: "JetBrains Mono", monospace;
  font-style: italic;
  font-size: 13px;
  padding: 6px 12px;
  background: var(--bg);
  color: var(--ink);
  min-width: 0;
  display: inline-flex; align-items: center; gap: 5px;
}
.bubble.idle::before { border-top-color: var(--bg); }
.bubble.idle .idle-mark {
  color: var(--coral);
  font-style: normal;
  font-weight: 700;
}
.avatar.idling .avatar-circle {
  animation: idleBob 2.2s infinite ease-in-out;
}
@keyframes idleBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.bubble.thinking { padding: 13px 18px; }
.bubble.thinking .dots { display: inline-flex; gap: 6px; }
.bubble.thinking .dots span {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--ink);
  animation: think 1.1s infinite;
}
.bubble.thinking .dots span:nth-child(2) { animation-delay: .15s; }
.bubble.thinking .dots span:nth-child(3) { animation-delay: .3s; }
@keyframes think {
  0%, 80%, 100% { transform: scale(.5); opacity: .35; }
  40% { transform: scale(1); opacity: 1; }
}

/* === ZONE DECOR === */
.zone-decor {
  position: absolute;
  top: 100px; left: 0; right: 0; bottom: 170px;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
/* smoking room — cigarette + smoke wisps */
.cigarette {
  position: absolute; left: 48px; bottom: 30px;
  font-size: 64px; transform: rotate(-18deg);
  filter: drop-shadow(0 0 8px rgba(255,80,0,.5));
  animation: cigGlow 1.8s infinite;
}
@keyframes cigGlow {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(255,80,0,.4)); }
  50% { filter: drop-shadow(0 0 18px rgba(255,80,0,.95)); }
}
.smoke {
  position: absolute;
  left: 70px; bottom: 80px;
  width: 70px; height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120,120,150,.55), transparent 70%);
  opacity: 0;
  animation: smokeRise 6s infinite ease-out;
}
.smoke.s2 { left: 110px; animation-delay: 2s; }
.smoke.s3 { left: 50px;  animation-delay: 4s; }
@keyframes smokeRise {
  0% { transform: translate(0,0) scale(.5); opacity: 0; }
  15% { opacity: .65; }
  100% { transform: translate(50px,-380px) scale(2); opacity: 0; }
}

/* main stage — spotlight beams + sparkles */
.spotlight {
  position: absolute; top: -40px;
  width: 280px; height: 700px;
  background: linear-gradient(to bottom, rgba(255,230,80,.55), rgba(255,230,80,0) 75%);
  filter: blur(28px);
  transform-origin: top center;
  animation: spotSway 6s infinite ease-in-out;
}
.spotlight.l { left: 12%; }
.spotlight.r { right: 12%; animation-delay: -3s; }
@keyframes spotSway {
  0%, 100% { transform: rotate(-10deg); }
  50% { transform: rotate(10deg); }
}
.sparkle {
  position: absolute; font-size: 30px;
  animation: twinkle 2s infinite;
}
.sparkle.k1 { top: 40px; left: 40%; }
.sparkle.k2 { top: 110px; right: 28%; animation-delay: 1s; }
.sparkle.k3 { top: 200px; left: 25%; animation-delay: .5s; }
@keyframes twinkle {
  0%, 100% { opacity: .3; transform: scale(.7) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.2) rotate(25deg); }
}

/* hall_b — blue spotlight */
.spotlight.blue {
  background: linear-gradient(to bottom, rgba(120,200,255,.5), rgba(120,200,255,0) 75%);
  left: 25%;
}
.spotlight.blue.r2 { left: auto; right: 25%; animation-delay: -3s; }

/* networking — champagne + bubbles */
.champagne {
  position: absolute; bottom: 30px; left: 60px;
  font-size: 64px;
  animation: clink 3s infinite ease-in-out;
}
@keyframes clink {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(8deg); }
}
.fizz {
  position: absolute;
  width: 12px; height: 12px; border-radius: 50%;
  background: rgba(255,240,180,.7);
  border: 2px solid rgba(220,170,80,.7);
  animation: rise 4s infinite ease-out;
}
.fizz.f1 { left: 80px;  bottom: 70px; }
.fizz.f2 { left: 100px; bottom: 60px; animation-delay: 1s; }
.fizz.f3 { left: 70px;  bottom: 80px; animation-delay: 2s; }
.fizz.f4 { left: 110px; bottom: 70px; animation-delay: 3s; }
.fizz.f5 { left: 90px;  bottom: 75px; animation-delay: 2.5s; }
@keyframes rise {
  0% { transform: translateY(0) scale(.8); opacity: 0; }
  20% { opacity: .9; }
  100% { transform: translateY(-420px) scale(1.3); opacity: 0; }
}

/* qna — microphone + floating question marks */
.mic {
  position: absolute; bottom: 40px; right: 70px;
  font-size: 64px;
  animation: micWobble 2s infinite ease-in-out;
}
@keyframes micWobble {
  0%, 100% { transform: rotate(-6deg) translateY(0); }
  50% { transform: rotate(8deg) translateY(-6px); }
}
.qm {
  position: absolute;
  font-size: 44px; font-weight: 700;
  font-family: "Space Grotesk", sans-serif;
  opacity: 0;
  animation: qmFloat 4.5s infinite;
}
.qm.q1 { left: 25%; top: 50%; color: var(--pink); }
.qm.q2 { left: 55%; top: 70%; color: var(--cyan); animation-delay: 1.5s; }
.qm.q3 { left: 75%; top: 35%; color: var(--coral); animation-delay: 3s; }
@keyframes qmFloat {
  0% { opacity: 0; transform: translateY(40px) rotate(-15deg); }
  25% { opacity: .85; }
  100% { opacity: 0; transform: translateY(-200px) rotate(25deg); }
}

/* === PERSONA PAGE === */
.persona {
  position: fixed; inset: 0; z-index: 50;
  background: var(--bg);
  overflow-y: auto;
  background-image:
    radial-gradient(circle at 80% 0%, rgba(245,130,174,.25), transparent 40%),
    radial-gradient(circle at 0% 70%, rgba(139,211,221,.3), transparent 45%);
}
.persona[hidden] { display: none; }
#persona-close {
  position: fixed; top: 22px; left: 24px; z-index: 51;
  background: var(--ink); color: var(--yellow);
  width: 46px; height: 46px; border: 3px solid var(--line); border-radius: 50%;
  font-size: 26px; cursor: pointer; line-height: 1;
  box-shadow: 3px 3px 0 var(--pink);
}
.persona-inner {
  max-width: 760px; margin: 0 auto; padding: 84px 32px 80px;
}
.persona-hero {
  display: flex; align-items: center; gap: 28px;
  margin-bottom: 16px;
}
.persona-avatar {
  width: 130px; height: 130px; border-radius: 50%;
  border: 4px solid var(--line);
  display: grid; place-items: center;
  font-size: 64px;
  background: var(--yellow);
  box-shadow: 6px 6px 0 var(--ink);
}
.persona-hero h2 { margin: 0 0 4px; font-size: 38px; line-height: 1; }
.persona-role { font-size: 16px; color: var(--ink-soft); font-family: "JetBrains Mono", monospace; }
.persona-style {
  background: var(--paper);
  border: 3px solid var(--line); border-radius: 14px;
  padding: 16px 18px; font-size: 16px; line-height: 1.5;
  box-shadow: 4px 4px 0 var(--ink);
  margin: 18px 0 26px;
}
.persona-section {
  margin: 28px 0 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px; text-transform: uppercase; letter-spacing: 2px;
  color: var(--ink-soft);
}
.persona-facts {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.persona-facts li {
  background: var(--paper);
  border: 2px solid var(--line); border-radius: 12px;
  padding: 12px 14px 12px 40px; font-size: 16px; line-height: 1.45;
  position: relative;
}
.persona-facts li::before {
  content: "★"; position: absolute; left: 14px; top: 10px;
  font-size: 18px; color: var(--pink);
}
.persona-rooms { display: flex; gap: 10px; flex-wrap: wrap; }
.persona-rooms .roomchip {
  background: var(--paper); border: 2px solid var(--line); border-radius: 10px;
  padding: 8px 14px; cursor: pointer; font-weight: 700; font-size: 14px;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .1s, box-shadow .1s;
}
.persona-rooms .roomchip:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--ink); }
.persona-rooms .roomchip[data-kind="talk"] { background: var(--pink); }
.persona-rooms .roomchip[data-kind="chat"] { background: var(--cyan); }
.persona-rooms .roomchip[data-kind="qna"]  { background: var(--yellow); }

.persona-recent { display: flex; flex-direction: column; gap: 10px; }
.persona-recent .rmsg {
  background: var(--paper);
  border: 2px solid var(--line); border-radius: 12px;
  padding: 12px 14px; cursor: pointer;
  transition: transform .1s;
}
.persona-recent .rmsg:hover { transform: translateX(3px); }
.persona-recent .rmsg-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; color: var(--ink-soft);
  display: flex; gap: 8px; margin-bottom: 5px;
}
.persona-recent .rmsg-room {
  background: var(--yellow);
  padding: 1px 7px; border-radius: 4px; border: 1px solid var(--line);
  color: var(--ink); font-weight: 700;
}
.persona-recent .rmsg-body { font-size: 15px; line-height: 1.45; }

/* === HIGHLIGHTS SIDEBAR === */
.map-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}
.highlights {
  position: sticky; top: 100px;
  background: var(--paper);
  border: 3px solid var(--line); border-radius: 18px;
  box-shadow: 8px 8px 0 var(--ink);
  overflow: hidden;
}
.highlights-head {
  padding: 14px 18px 12px;
  border-bottom: 3px solid var(--line);
  background: var(--yellow);
}
.highlights-title { font-size: 20px; font-weight: 700; }
.highlights-sub {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: 2px;
}
.highlights-list {
  padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
  max-height: calc(100vh - 240px);
  overflow-y: auto;
}
.highlights-empty {
  color: var(--ink-soft);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; text-align: center; padding: 20px 8px;
}
.hl-item {
  background: var(--bg);
  border: 2px solid var(--line); border-radius: 12px;
  padding: 10px 12px; cursor: pointer;
  transition: transform .12s, box-shadow .12s;
}
.hl-item:hover { transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--ink); }
.hl-head {
  display: flex; align-items: center; gap: 7px;
  margin-bottom: 6px;
}
.hl-avatar {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--line);
  display: grid; place-items: center;
  font-size: 11px;
}
.hl-name { font-weight: 700; font-size: 13px; flex: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl-spot {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px; text-transform: uppercase; letter-spacing: 1px;
  background: var(--ink); color: var(--paper);
  padding: 2px 6px; border-radius: 3px;
}
.hl-body {
  font-size: 13px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 7px;
}
.hl-foot {
  display: flex; align-items: center; gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}
.hl-hearts { display: inline-flex; align-items: center; gap: 3px; color: var(--coral); font-weight: 700; }
.hl-bots { display: inline-flex; gap: 1px; flex-wrap: wrap; }
.hl-bot {
  display: inline-block; font-size: 13px;
  filter: grayscale(.15);
}
.hl-approved {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--ink-soft);
}
.hl-approved b { color: var(--ink); font-weight: 700; }
.hl-approved-lbl { color: var(--ink-soft); }

.hl-waiting {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 13px;
  background: var(--yellow);
  border: 2px dashed var(--line);
  border-radius: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--ink);
}
.hl-waiting-dots { display: inline-flex; gap: 4px; flex-shrink: 0; }
.hl-waiting-dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ink);
  animation: think 1.1s infinite;
  display: inline-block;
}
.hl-waiting-dots span:nth-child(2) { animation-delay: .15s; }
.hl-waiting-dots span:nth-child(3) { animation-delay: .3s; }

/* === LIKE BUTTON в сообщении === */
.msg-foot {
  display: flex; align-items: center; gap: 10px;
  margin-top: 8px; padding-top: 6px;
  border-top: 1.5px dashed rgba(23,44,102,.18);
}
.like-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: transparent;
  border: 2px solid var(--line); border-radius: 999px;
  padding: 3px 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; font-weight: 700;
  cursor: pointer;
  color: var(--ink);
  transition: background .12s, transform .12s;
}
.like-btn:hover { background: rgba(255,142,114,.18); }
.like-btn.liked { background: var(--coral); color: var(--paper); border-color: var(--line); }
.like-btn .heart { font-size: 13px; }
.like-btn.bump { animation: bump .35s ease; }
@keyframes bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.25); }
  100% { transform: scale(1); }
}
.msg-bots {
  display: inline-flex; gap: 2px; align-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; color: var(--ink-soft);
}
.msg-bots .lbl { margin-right: 4px; }
.msg-bot {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--line); font-size: 11px;
}

#footer-link {
  position: fixed;
  top: 14px; right: 16px;
  z-index: 100;
  background: var(--paper);
  border: 2.5px solid var(--line);
  border-radius: 14px;
  padding: 5px 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .12s, box-shadow .12s, background .12s;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
#footer-link:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
  background: var(--yellow);
}
#footer-link .fl-l1, #footer-link .fl-l2 { white-space: nowrap; }
#footer-link .fl-run {
  display: inline-block;
  animation: run 1.6s infinite ease-in-out;
}
@keyframes run {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

@media (max-width: 980px) {
  .map-grid { grid-template-columns: 1fr; }
  .highlights { position: static; }
  .highlights-list { max-height: 420px; }
}

/* === ПЛАНШЕТ И ТЕЛЕФОН === */
@media (max-width: 900px) {
  /* топбар — отодвигаем содержимое от футер-ссылки в правом углу */
  .topbar {
    padding: 12px 16px 10px;
    padding-right: 150px;
    gap: 10px;
  }
  .logo { gap: 10px; }
  .logo-mark {
    width: 40px; height: 40px;
    font-size: 22px;
    box-shadow: 2px 2px 0 var(--pink);
    border-radius: 10px;
  }
  .logo-title { font-size: 18px; letter-spacing: 0; }
  .logo-title .year { padding: 0 5px; }
  .logo-sub { display: none; }
  .live-badge {
    padding: 5px 10px; font-size: 11px;
    letter-spacing: 1.2px; gap: 6px;
  }
  .live-badge .pulse { width: 7px; height: 7px; }

  /* футер-ссылка — две строки */
  #footer-link {
    top: 10px; right: 10px;
    height: auto;
    padding: 5px 12px;
    font-size: 11px;
    border-width: 2px;
    border-radius: 12px;
    box-shadow: 2px 2px 0 var(--ink);
    line-height: 1.15;
  }
  #footer-link:hover { box-shadow: 3px 3px 0 var(--ink); }

  /* карта */
  .map { padding: 0 12px; margin: 18px auto 60px; }
  .map-label, .map-foot {
    font-size: 11px; letter-spacing: 1.2px; margin: 12px 0;
  }
  .map-grid { gap: 14px; }

  .floor {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-template-areas:
      "main_stage"
      "hall_b"
      "qna"
      "smoking_room"
      "networking";
    padding: 12px;
    gap: 11px;
    min-height: 0;
    border-radius: 16px;
    box-shadow: 6px 6px 0 var(--ink);
  }
  .room { padding: 16px 14px 12px; min-height: 130px; }
  .room::before { height: 11px; }
  .room-no { top: 18px; right: 10px; font-size: 10px; padding: 2px 7px; }
  .room-kind { margin-top: 14px; font-size: 10px; padding: 3px 8px; letter-spacing: 1.5px; }
  .room-title { font-size: 22px; margin: 8px 0 5px; line-height: 1.1; }
  .room-topic { font-size: 13px; -webkit-line-clamp: 3; line-height: 1.4; }
  .room-foot { font-size: 11px; padding-top: 10px; }
  .room-last { font-size: 12px; max-width: 62%; }
  .dot { width: 7px; height: 7px; }

  /* хайлайты */
  .highlights {
    border-radius: 14px;
    box-shadow: 6px 6px 0 var(--ink);
  }
  .highlights-head { padding: 12px 14px 10px; }
  .highlights-title { font-size: 17px; }
  .highlights-sub { font-size: 10px; letter-spacing: 1.4px; }
  .highlights-list { padding: 11px; gap: 9px; }
  .hl-item { padding: 11px 13px; }
  .hl-head { gap: 7px; margin-bottom: 6px; }
  .hl-avatar { width: 22px; height: 22px; font-size: 11px; }
  .hl-name { font-size: 13px; }
  .hl-spot { font-size: 9px; padding: 2px 6px; }
  .hl-body { font-size: 13px; -webkit-line-clamp: 3; }
  .hl-foot { font-size: 11px; gap: 8px; flex-wrap: wrap; }
  .hl-bot { font-size: 13px; }
  .hl-approved { font-size: 10px; }
  .hl-waiting { padding: 8px 11px; font-size: 10px; gap: 8px; letter-spacing: 1.2px; }

  /* сцена (зал): row1 — back+kind абсолютно в углу, заголовок и тема ниже на всю ширину */
  .stage-bar {
    display: block;
    position: relative;
    padding: 60px 14px 14px;
  }
  .stage-bar-mid { display: contents; }

  #back {
    position: absolute;
    top: 10px; left: 14px;
    height: 30px; width: 38px;
    padding: 0; margin: 0;
    border-width: 2px;
    box-shadow: 2px 2px 0 var(--ink);
    display: inline-flex; align-items: center; justify-content: center;
    gap: 0;
    font-size: 0;
  }
  #back .back-arrow { font-size: 18px; font-weight: 700; }
  #back .back-label { display: none; }

  .spot-kind-tag {
    position: absolute;
    top: 10px; left: 62px;
    height: 30px;
    padding: 0 11px;
    font-size: 11px;
    letter-spacing: 1.5px;
    margin: 0;
    border-width: 2px;
    display: inline-flex; align-items: center;
    line-height: 1;
  }

  .stage-bar-mid h2 {
    text-align: center;
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
  }
  .stage-bar-mid p {
    text-align: center;
    margin: 6px 0 0;
    font-size: 14px;
    line-height: 1.35;
  }

  .stage-feed { padding: 14px 12px 18px; gap: 10px; }
  .msg { padding: 10px 12px; border-radius: 12px; box-shadow: 3px 3px 0 var(--ink); }
  .msg-head { gap: 6px; margin-bottom: 4px; }
  .msg-avatar-mini { width: 24px; height: 24px; font-size: 12px; border-width: 1.5px; }
  .msg-name { font-size: 14px; }
  .msg-role { display: none; }
  .msg-time { font-size: 11px; }
  .msg-body { font-size: 15px; line-height: 1.45; }
  .msg-foot { gap: 8px; padding-top: 6px; margin-top: 8px; }
  .like-btn { padding: 3px 9px; font-size: 11px; border-width: 1.5px; }
  .like-btn .heart { font-size: 12px; }
  .msg-bots { font-size: 11px; }
  .msg-bot { width: 20px; height: 20px; font-size: 11px; border-width: 1.5px; }

  .stage-floor-wrap { padding: 10px 10px 14px; }
  .stage-floor-label { font-size: 10px; margin-bottom: 8px; letter-spacing: 1.6px; }
  .stage-floor {
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: center;
    padding: 0 6px 4px;
    scrollbar-width: none;
  }
  .stage-floor::-webkit-scrollbar { display: none; }
  .avatar { flex-shrink: 0; width: 56px; }
  .avatar-circle {
    width: 42px; height: 42px; font-size: 22px;
    border-width: 2px;
    box-shadow: 2px 2px 0 var(--ink);
  }
  .avatar-name {
    font-size: 10px;
    max-width: 56px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* баббл */
  .bubble {
    max-width: calc(100vw - 32px);
    font-size: 15px;
    padding: 10px 13px;
    border-width: 2px;
    box-shadow: 3px 3px 0 var(--ink);
  }

  /* ремарка */
  .ambient { font-size: 13px; padding: 9px 28px; max-width: 92%; }
  .ambient::before { left: 8px; font-size: 15px; }
  .ambient::after  { right: 8px; font-size: 15px; }

  /* действие */
  .action { font-size: .78em; padding: 1px 7px; }

  /* страница персонажа */
  #persona-close {
    top: 10px; left: 10px;
    width: 38px; height: 38px; font-size: 20px;
    border-width: 2px;
  }
  .persona-inner { padding: 60px 16px 50px; }
  .persona-hero {
    flex-direction: column; text-align: center; gap: 14px;
    margin-bottom: 8px;
  }
  .persona-avatar {
    width: 96px; height: 96px; font-size: 46px;
    box-shadow: 4px 4px 0 var(--ink);
    border-width: 3px;
  }
  .persona-hero h2 { font-size: 26px; }
  .persona-role { font-size: 14px; }
  .persona-style { font-size: 15px; padding: 13px 15px; }
  .persona-section { font-size: 12px; margin: 22px 0 10px; letter-spacing: 1.6px; }
  .persona-facts li { font-size: 15px; padding: 11px 13px 11px 36px; }
  .persona-rooms .roomchip { font-size: 13px; padding: 7px 12px; }
  .persona-recent .rmsg-body { font-size: 14px; }
  .persona-recent .rmsg-meta { font-size: 11px; }
}

/* === МАЛЕНЬКИЙ ТЕЛЕФОН === */
@media (max-width: 420px) {
  .topbar { padding-right: 140px; }
  #footer-link { font-size: 10px; padding: 4px 10px; }
  .logo-title { font-size: 16px; }
  .logo-mark { width: 36px; height: 36px; font-size: 20px; }
  .room-title { font-size: 20px; }
  .stage-bar { padding-top: 56px; }
  .stage-bar-mid h2 { font-size: 19px; }
  .msg-body { font-size: 14px; }
  .avatar { width: 50px; }
  .avatar-name { max-width: 50px; }
}
