:root {
  /* Violet retro palette */
  --bg-base: #1A0F2E;
  --bg-header: #2A1B4A;
  --bg-input: #3A2860;
  --bg-bubble: #4B2D8C;
  --bg-bubble-hi: #5F3AAC;
  --text-primary: #FFFFFF;
  --text-secondary: #B8A8E0;
  --text-muted: #8878B8;
  --text-link: #FFD6A5;
  --text-accent: #FFB8D1;
  --divider: rgba(255,255,255,0.08);
  --accent: #FF7AB6;
  --accent-2: #9D7CFF;
  --accent-3: #FFB86B;
  --shadow: 0 4px 16px rgba(0,0,0,0.35);
  --radius-bubble: 16px;
  --radius-small: 10px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* Градиент на html — по спецификации его фон пропагируется на канву всего
   viewport, включая safe-area сверху и снизу в iOS 26 Safari. Body — прозрачный,
   чтобы канва просвечивала везде. */
html {
  background-color: var(--bg-base);
  background-image:
    radial-gradient(ellipse at top left, #2D1654 0%, #1A0F2E 55%),
    linear-gradient(180deg, #1A0F2E 0%, #140A26 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}
body {
  background: transparent;
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
}
a { color: var(--text-link); text-decoration: none; }
button { font-family: inherit; }

.app {
  min-height: 100vh;
  width: 100%;
  display: block;
  position: relative;
}

/* ===== Material-style animated gradient background ===== */
/* Сам градиент теперь живёт на html (пропагируется на канву всего viewport).
   Этот слой — только для анимированных блобов и шума поверх градиента. */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: transparent;
}
.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  mix-blend-mode: screen;
  will-change: transform;
}
.blob-1 {
  width: 620px; height: 620px;
  background: radial-gradient(circle, #C471ED 0%, transparent 70%);
  top: -10%; left: -8%;
  animation: blobFloat1 28s ease-in-out infinite;
}
.blob-2 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, #F64F8C 0%, transparent 70%);
  bottom: -15%; right: -10%;
  animation: blobFloat2 34s ease-in-out infinite;
}
.blob-3 {
  width: 440px; height: 440px;
  background: radial-gradient(circle, #4C9FFF 0%, transparent 70%);
  top: 45%; left: 55%;
  opacity: 0.32;
  animation: blobFloat3 40s ease-in-out infinite;
}
@keyframes blobFloat1 {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(80px, 120px) scale(1.1); }
}
@keyframes blobFloat2 {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-100px, -80px) scale(1.15); }
}
@keyframes blobFloat3 {
  0%,100% { transform: translate(-50%,-50%) scale(1); }
  50% { transform: translate(calc(-50% + 60px), calc(-50% - 90px)) scale(1.08); }
}
.bg-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.35 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.45'/></svg>");
  opacity: 0.08;
  pointer-events: none;
}

.layout {
  display: block;
  width: 100%;
  position: relative;
  z-index: 1;
}

.icon-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.icon-btn:hover { background: rgba(255,255,255,0.08); color: var(--text-primary); }

/* ===== AVATAR ===== */
.avatar-wrap { position: relative; flex-shrink: 0; }
.avatar {
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.avatar.initial {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
}
.online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background: #66E5A1;
  border-radius: 50%;
  border: 2px solid var(--bg-header);
  box-shadow: 0 0 0 3px rgba(102,229,161,0.2);
}

/* ===== CHAT PANE ===== */
.chat-pane {
  display: block;
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
  background: transparent;
}

/* Sticky container for header + pinned bar */
.chat-top {
  position: sticky;
  top: 0;
  z-index: 5;
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.22s ease;
  will-change: transform;
  padding-top: env(safe-area-inset-top, 0px);
}
.chat-top-hidden {
  transform: translate3d(0, -110%, 0);
  opacity: 0;
  pointer-events: none;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(180deg, rgba(42,27,74,0.85) 0%, rgba(42,27,74,0.55) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--divider);
  border-bottom: none;
  border-radius: 22px 22px 0 0;
  margin: 16px 20px 0;
  overflow: hidden;
}
.chat-header-trigger {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  width: 100%;
  background: none;
  border: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}
.chat-header-trigger:hover { background: rgba(255,255,255,0.04); }
.chat-header-trigger:active { background: rgba(255,255,255,0.08); }
.chat-header-info { flex: 1; min-width: 0; }
.chat-header-name {
  font-weight: 600;
  font-size: 17px;
  color: var(--text-primary);
}
.chat-header-status {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Pinned bar */
.pinned-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 24px;
  background: rgba(26,15,46,0.55);
  backdrop-filter: blur(14px);
  border: 1px solid var(--divider);
  border-top: 1px solid rgba(255,255,255,0.04);
  border-radius: 0 0 22px 22px;
  margin: 0 20px 4px;
  overflow: hidden;
  width: calc(100% - 40px);
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
  transition: background 0.15s;
}
.pinned-bar:hover { background: rgba(40,25,65,0.75); }
.pinned-bar:active { background: rgba(50,32,80,0.85); }
.pinned-stripe {
  width: 3px;
  height: 34px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
  border-radius: 2px;
}
.pinned-body { flex: 1; min-width: 0; }
.pinned-title {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}
.pinned-text {
  font-size: 13px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

/* ===== STREAM ===== */
.stream {
  padding: 16px 0 32px;
  padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
}
.stream-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.day-divider {
  align-self: center;
  margin: 6px 0 14px;
}
.day-divider span {
  background: rgba(26,15,46,0.75);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 4px 14px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--divider);
}

/* ===== BUBBLES ===== */
.bubble-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 2px 0;
}
.bubble {
  max-width: 78%;
  background: linear-gradient(180deg, var(--bg-bubble-hi) 0%, var(--bg-bubble) 100%);
  border-radius: var(--radius-bubble);
  padding: 9px 13px 7px;
  position: relative;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.08);
  color: var(--text-primary);
  word-wrap: break-word;
  border: 1px solid rgba(255,255,255,0.06);
}
.bubble.no-pad { padding: 3px; }
.bubble.muted {
  background: transparent;
  box-shadow: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  padding: 4px 8px;
  align-self: center;
}

.text-content {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.text-content > span:first-child { flex: 1; min-width: 0; font-size: 15px; }

.meta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: rgba(255,255,255,0.5);
  font-size: 11px;
  white-space: nowrap;
  margin-left: auto;
  flex-shrink: 0;
}
.meta-seen { color: var(--accent); }

/* Photo message */
.photo-msg {
  border-radius: 13px;
  overflow: hidden;
  max-width: 340px;
  position: relative;
}
.photo-msg img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: cover;
}
.photo-caption {
  padding: 8px 10px 6px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 14px;
}
.photo-caption > span:first-child { flex: 1; min-width: 0; }
.photo-meta {
  position: absolute;
  bottom: 8px;
  right: 10px;
  background: rgba(0,0,0,0.45);
  padding: 2px 8px;
  border-radius: 10px;
  backdrop-filter: blur(4px);
}

/* Link preview */
.link-preview {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 360px;
}
.link-accent {
  display: flex;
  gap: 12px;
  padding: 8px 10px 8px 14px;
  border-radius: var(--radius-small);
  background: rgba(255,255,255,0.06);
  position: relative;
}
.link-accent::before {
  content: "";
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
}
.link-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
}
.link-body { flex: 1; min-width: 0; }
.link-site {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-transform: lowercase;
}
.link-title {
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  margin-top: 2px;
}
.link-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 3px;
  line-height: 1.35;
}
.link-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 4px;
  font-size: 13px;
  color: var(--text-link) !important;
  font-weight: 500;
}

/* Video preview */
.video-msg {
  border-radius: 13px;
  overflow: hidden;
  max-width: 380px;
  background: #000;
}
.video-thumb {
  position: relative;
  cursor: pointer;
  aspect-ratio: 16/9;
  background: #000;
  display: block;
}
.video-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px 3px 6px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}
.video-badge svg { flex-shrink: 0; }
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255,122,182,0.85);
  border: 3px solid rgba(255,255,255,0.9);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, background 0.15s;
  box-shadow: 0 4px 16px rgba(255,122,182,0.5);
}
.play-btn:hover { transform: translate(-50%, -50%) scale(1.1); }
.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}
.video-frame {
  aspect-ratio: 16/9;
  background: #000;
}
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-caption {
  padding: 9px 13px;
  font-size: 13.5px;
  color: #fff !important;
  display: flex;
  gap: 10px;
  align-items: flex-end;
  background: linear-gradient(180deg, var(--bg-bubble-hi) 0%, var(--bg-bubble) 100%);
  text-decoration: none;
}
.video-caption:hover { filter: brightness(1.08); }
.video-caption > span:first-child { flex: 1; }

/* Contact card */
.contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 2px;
  color: #fff !important;
}
.contact-ico {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(255,122,182,0.35);
}
.contact-label {
  font-size: 12px;
  color: var(--text-secondary);
}
.contact-value {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-link);
}

/* Socials */
.socials-card { display: flex; flex-direction: column; gap: 8px; min-width: 240px; }
.socials-title {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.socials-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.social-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 4px;
  color: #fff !important;
  border-radius: 8px;
  transition: background 0.15s;
}
.social-item:hover { background: rgba(255,255,255,0.06); }
.social-ico {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.socials-disclaimer {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-muted);
}
.socials-disclaimer em { font-style: italic; }

/* ===== PROFILE POPUP ===== */
.profile-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 5, 20, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalIn 0.2s ease-out;
}
@keyframes modalIn { from { opacity: 0; } to { opacity: 1; } }

.profile-card {
  background: linear-gradient(180deg, rgba(50,32,90,0.98) 0%, rgba(35,22,65,0.98) 100%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 22px;
  width: 100%;
  max-width: 380px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 28px 22px 22px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  animation: cardIn 0.25s cubic-bezier(0.2,0.7,0.3,1);
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.profile-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255,255,255,0.08);
  border: none;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.profile-close:hover { background: rgba(255,255,255,0.16); }

.profile-photo-wrap {
  display: flex;
  justify-content: center;
  margin: 6px 0 14px;
}
.profile-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,122,182,0.45);
  box-shadow: 0 8px 24px rgba(255,122,182,0.3);
}
.profile-name {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}
.profile-sub {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
  margin-bottom: 20px;
}

.profile-section {
  margin-top: 14px;
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,0.06);
}
.profile-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  font-weight: 700;
  padding: 6px 10px 4px;
}
.profile-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 10px;
  color: #fff !important;
  transition: background 0.15s;
}
.profile-row:hover { background: rgba(255,255,255,0.06); }
.profile-row-ico {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.profile-row-ico.mail {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
}
.profile-row-body { flex: 1; min-width: 0; }
.profile-row-label {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}
.profile-row-value {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-disclaimer {
  margin-top: 16px;
  padding: 10px 4px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-muted);
  text-align: center;
}
.profile-disclaimer em { font-style: italic; }

/* ===== TYPING LOADER ===== */
.typing-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: radial-gradient(ellipse at top left, #2D1654 0%, #1A0F2E 55%), linear-gradient(180deg, #1A0F2E 0%, #140A26 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transition: opacity 0.5s ease, visibility 0.5s;
}
.typing-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.typing-loader-bubble {
  background: linear-gradient(180deg, var(--bg-bubble-hi) 0%, var(--bg-bubble) 100%);
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.06);
}
.typing-loader-bubble .dots { display: flex; gap: 6px; align-items: center; }
.typing-loader-bubble .dots span {
  width: 10px;
  height: 10px;
  background: rgba(255,255,255,0.85);
  border-radius: 50%;
  animation: typingBounce 1.2s infinite ease-in-out;
}
.typing-loader-bubble .dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-loader-bubble .dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}
.typing-loader-label {
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

/* ===== 80s RETRO LOADER (kept but unused) ===== */
.retro-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #0B0420 0%, #2A0A4A 50%, #FF2E88 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.6s ease, visibility 0.6s;
}
.retro-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Neon grid receding to horizon */
.retro-grid {
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: 0;
  height: 55%;
  background-image:
    linear-gradient(#FF2E88 1px, transparent 1px),
    linear-gradient(90deg, #FF2E88 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(500px) rotateX(60deg);
  transform-origin: center bottom;
  animation: gridScroll 1.2s linear infinite;
  opacity: 0.75;
  filter: drop-shadow(0 0 6px #FF2E88);
}
@keyframes gridScroll {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 60px, 0 0; }
}

/* Retro sun */
.retro-sun {
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: linear-gradient(180deg, #FFE155 0%, #FF6B9D 50%, #B52DFF 100%);
  box-shadow:
    0 0 60px rgba(255,107,157,0.6),
    0 0 120px rgba(255,46,136,0.4);
}
.retro-sun::before,
.retro-sun::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  background: #0B0420;
  height: 4px;
}
.retro-sun::before { bottom: 38%; box-shadow: 0 16px 0 #0B0420, 0 36px 0 #0B0420, 0 60px 0 #0B0420; }
.retro-sun::after { display: none; }

.retro-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
}
.retro-pre {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: 0.4em;
  color: #FFE155;
  margin-bottom: 18px;
  text-shadow: 0 0 8px rgba(255,225,85,0.7);
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.retro-title {
  font-family: 'Inter', sans-serif;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0.02em;
}
.retro-word {
  display: block;
  font-size: clamp(44px, 10vw, 96px);
  background: linear-gradient(180deg, #FFFFFF 0%, #FFE155 40%, #FF6B9D 70%, #B52DFF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 0 30px rgba(255,107,157,0.5);
  filter: drop-shadow(3px 3px 0 #5B1BA0) drop-shadow(6px 6px 0 #FF2E88);
  transform: skewX(-6deg);
}
.retro-word-2 {
  animation: retroBounce 2s ease-in-out infinite;
}
@keyframes retroBounce {
  0%,100% { transform: skewX(-6deg) translateY(0); }
  50% { transform: skewX(-6deg) translateY(-6px); }
}

.retro-loading-bar {
  margin: 30px auto 10px;
  width: min(260px, 80%);
  height: 12px;
  background: rgba(0,0,0,0.45);
  border: 2px solid #FF2E88;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(255,46,136,0.6);
}
.retro-loading-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #FFE155 0%, #FF6B9D 100%);
  animation: loadFill 1.8s ease-out infinite;
  box-shadow: 0 0 10px #FF6B9D;
}
@keyframes loadFill {
  0% { width: 0; }
  100% { width: 100%; }
}
.retro-loading-text {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.35em;
  color: #FFE155;
  text-shadow: 0 0 6px rgba(255,225,85,0.6);
}

.retro-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    180deg,
    rgba(0,0,0,0) 0px,
    rgba(0,0,0,0) 2px,
    rgba(0,0,0,0.18) 3px,
    rgba(0,0,0,0) 4px
  );
  mix-blend-mode: multiply;
}

/* Responsive */
@media (max-width: 768px) {
  .chat-header { margin: 10px 10px 0; border-radius: 18px 18px 0 0; }
  .pinned-bar { margin: 0 10px 4px; border-radius: 0 0 18px 18px; padding: 10px 14px; width: calc(100% - 20px); }
  .chat-header-trigger { padding: 12px 14px; }
  .stream-inner { padding: 0 14px; }
  .bubble { max-width: 85%; }
  .photo-msg, .video-msg, .link-preview { max-width: 280px; }
  .profile-photo { width: 100px; height: 100px; }
}
