:root {
  --bg: #0b0612;
  --surface: #170e24;
  --surface-2: #120a1d;
  --surface-3: #241638;
  --line: #2f2045;
  --line-2: #45305f;
  --text: #f8f3ff;
  --soft: #d9cceb;
  --muted: #ab9cc4;
  --accent: #c026d3;
  --accent-bright: #e879f9;
  --on-accent: #ffffff;
  --glow: 0 0 22px rgba(217, 70, 239, 0.45);
  --ok: #5cc8a8;
  --danger-bg: #3a1526;
  --danger: #ffb4c8;
  --radius: 16px;
  --display: 'Montserrat', system-ui, sans-serif;
  --body: 'Manrope', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); }
body { min-height: 100vh; -webkit-font-smoothing: antialiased; }
a { color: var(--text); }
a:hover { color: var(--accent-bright); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- спільне ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo span { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--text); }
.logo b { color: var(--accent-bright); font-weight: 700; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line-2);
  background: transparent; text-decoration: none; font-weight: 600; font-size: 16px; color: var(--text);
}
.btn-primary { background: var(--accent); border-color: var(--accent-bright); color: var(--on-accent); font-weight: 700; }
.btn-primary:hover { color: var(--on-accent); filter: brightness(1.06); }
.btn-lg { min-height: 56px; padding: 0 26px; font-size: 17px; }
.btn-danger { background: var(--danger-bg); border-color: var(--danger-bg); color: var(--danger); font-weight: 700; }
.icon-btn {
  width: 48px; height: 48px; flex: 0 0 auto; border-radius: 50%; border: 0; background: var(--surface);
  display: inline-flex; align-items: center; justify-content: center; color: var(--text);
}
.icon-btn[aria-pressed='false'] { background: var(--danger-bg); color: var(--danger); }
.icon-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; background: #3b3450; object-fit: cover;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex: 0 0 auto;
}

/* ---------- головна ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 24px; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.site-nav a.link { text-decoration: none; font-weight: 500; font-size: 15px; }
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 48px; padding-bottom: 96px; }
.hero-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.pill { align-self: flex-start; padding: 6px 14px; border-radius: 999px; background: var(--surface); color: var(--soft); font-size: 14px; font-weight: 600; margin: 0; }
.hero h1 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(36px, 5.5vw, 56px); line-height: 1.08; letter-spacing: -0.02em; }
.lead { margin: 0; font-size: 19px; line-height: 1.55; color: #b8b2c4; max-width: 520px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 8px; }
.fine { margin: 0; font-size: 14px; color: var(--muted); }
.hero-card { flex: 1 1 480px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.frame { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; background: var(--surface-3); display: flex; align-items: center; justify-content: center; }
.sync-badge { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(11, 6, 18, 0.8); font-size: 13px; font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.faces-demo { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.faces-demo div { aspect-ratio: 4 / 3; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 22px; }
.band { background: var(--surface-2); padding: 88px 0; }
.section { padding: 88px 0; }
.section h2, .band h2 { margin: 0 0 40px; font-family: var(--display); font-weight: 700; font-size: clamp(28px, 4vw, 36px); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card { background: var(--surface); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.card.outline { background: transparent; border: 1px solid var(--line); padding: 24px; }
.card .num { font-family: var(--display); font-weight: 700; font-size: 28px; color: var(--accent-bright); }
.card h3 { margin: 0; font-size: 20px; font-weight: 700; }
.card p { margin: 0; font-size: 16px; line-height: 1.55; color: #b8b2c4; }
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 32px; padding-bottom: 32px; font-size: 14px; color: var(--muted); }
.site-footer a { color: var(--muted); }
.user-chip { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }

/* ---------- кімната ---------- */
.room-header { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.room-title { display: flex; flex-direction: column; gap: 2px; padding-left: 14px; border-left: 1px solid var(--line); min-width: 0; }
.room-title h1 { margin: 0; font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-title span { font-size: 13px; color: var(--muted); }
.grow { flex: 1 1 auto; }
.invite { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.invite-link { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--surface); font-size: 14px; color: var(--soft); max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.stage { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px; padding: 20px; }
.main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.side { flex: 1 1 320px; min-width: 0; align-self: stretch; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; min-height: 480px; max-height: calc(100vh - 110px); position: sticky; top: 20px; }

.player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); background: #000; overflow: hidden; }
.player video.film { width: 100%; height: 100%; display: block; background: #000; }
.player:fullscreen { border-radius: 0; aspect-ratio: auto; }
.overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 24px; }
.overlay.dim { background: rgba(11, 6, 18, 0.84); }
.overlay p { margin: 0; }
.overlay .big { font-family: var(--display); font-weight: 700; font-size: clamp(18px, 2.4vw, 24px); }
.overlay .sub { font-size: 15px; color: var(--soft); }
.overlay .small { font-size: 13px; color: var(--muted); }
.drop { background: var(--surface-3); border: 2px dashed var(--line-2); border-radius: var(--radius); }
.drop.over { border-color: var(--accent-bright); background: #2a1840; }
.progress { width: min(360px, 80%); height: 8px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.progress > div { height: 100%; width: 0; background: var(--accent); transition: width 0.2s; }
.spinner { width: 56px; height: 56px; border-radius: 50%; border: 6px solid var(--line); border-top-color: var(--accent-bright); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }

.controls { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px 12px; background: linear-gradient(to top, rgba(11,6,18,0.92), rgba(11,6,18,0)); display: flex; flex-direction: column; gap: 6px; transition: opacity 0.25s; }
.player.idle .controls { opacity: 0; }
.player.idle { cursor: none; }
.controls-row { display: flex; align-items: center; gap: 10px; }
.play-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--text); color: var(--bg); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.ghost-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--text); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.time { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
input[type='range'] { accent-color: var(--accent-bright); }
.seek { width: 100%; margin: 0; height: 24px; }
.volume { width: 90px; }
.badge-top { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: rgba(11, 6, 18, 0.8); font-size: 13px; font-weight: 600; }
.toast { position: absolute; top: 14px; right: 14px; padding: 7px 12px; border-radius: 999px; background: rgba(11, 6, 18, 0.85); font-size: 13px; color: var(--soft); }

.faces { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tile { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; background: #3b3450; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile.self video { transform: scaleX(-1); }
.tile .initial { font-family: var(--display); font-weight: 700; font-size: 26px; }
.tile img.pic { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.tile .name { position: absolute; left: 8px; bottom: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(11,6,18,0.6); font-size: 13px; font-weight: 600; }
.tile .flag { position: absolute; top: 8px; right: 8px; padding: 3px 8px; border-radius: 999px; background: var(--bg); font-size: 12px; font-weight: 700; color: var(--accent-bright); }
.tile.waiting { outline: 2px solid var(--accent); outline-offset: -2px; }
.tile .muted-ico { position: absolute; top: 8px; left: 8px; width: 26px; height: 26px; border-radius: 50%; background: var(--danger-bg); color: var(--danger); display: inline-flex; align-items: center; justify-content: center; }

.toolbar { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.tabs { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); }
.tabs button { flex: 1 1 0; min-height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-weight: 600; font-size: 14px; }
.tabs button[aria-selected='true'] { background: var(--surface-3); color: var(--text); font-weight: 700; }
.panel { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.msg { display: flex; gap: 10px; }
.msg .avatar { width: 32px; height: 32px; font-size: 13px; }
.msg-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.msg-head { font-size: 13px; font-weight: 700; }
.msg-head time { font-weight: 500; color: var(--muted); margin-left: 6px; }
.msg-text { font-size: 15px; line-height: 1.45; color: #e4dfea; overflow-wrap: anywhere; }
.sys { align-self: center; padding: 6px 12px; border-radius: 999px; background: var(--surface-3); font-size: 12px; font-weight: 600; color: var(--soft); margin: 0; text-align: center; }
.person { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.chat-form { padding: 12px; border-top: 1px solid var(--line); display: flex; gap: 8px; }
.chat-form input { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font-size: 15px; }
.chat-form button { width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--accent); color: var(--on-accent); display: inline-flex; align-items: center; justify-content: center; }

.gate { position: fixed; inset: 0; z-index: 10; background: rgba(11, 6, 18, 0.92); display: flex; align-items: center; justify-content: center; padding: 20px; }
.gate-card { width: min(440px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.gate-card h2 { margin: 0; font-family: var(--display); font-size: 22px; }
.gate-card p { margin: 0; color: var(--soft); line-height: 1.5; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; }
.check input { width: 20px; height: 20px; accent-color: var(--accent-bright); }
.preview { aspect-ratio: 4 / 3; border-radius: 14px; background: var(--surface-3); overflow: hidden; }
.preview video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }

/* ---------- телефон ---------- */
@media (max-width: 720px) {
  .room-header { padding: 10px 12px; gap: 10px; }
  .room-header .logo span, .invite-link { display: none; }
  .room-title { border-left: 0; padding-left: 0; }
  .stage { padding: 0; gap: 0; }
  .main { gap: 10px; }
  .player { border-radius: 0; }
  .faces { display: flex; overflow-x: auto; gap: 8px; padding: 0 12px; }
  .tile { flex: 0 0 84px; height: 100px; aspect-ratio: auto; }
  .tile .initial { font-size: 20px; }
  .tile img.pic { width: 40px; height: 40px; }
  .tile .name { font-size: 11px; }
  .toolbar { padding: 0 12px; justify-content: space-between; }
  .side { border-radius: 0; border-left: 0; border-right: 0; position: static; max-height: none; min-height: 360px; margin-top: 10px; }
  .volume { display: none; }
}

/* ---------- кімната без прокрутки сторінки ---------- */
body.room-page { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.room-page .room-header { flex: 0 0 auto; }
.room-page .stage { flex: 1 1 auto; min-height: 0; flex-wrap: nowrap; align-items: stretch; gap: 16px; padding: 16px; }
.room-page .main { flex: 1 1 auto; min-width: 0; min-height: 0; gap: 12px; }
.room-page .player { flex: 1 1 auto; min-height: 160px; aspect-ratio: auto; width: 100%; }
.room-page .player video.film { object-fit: contain; }
.room-page .faces { flex: 0 0 auto; display: flex; gap: 10px; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.room-page .tile { flex: 0 0 140px; height: 105px; aspect-ratio: auto; }
.room-page .toolbar { flex: 0 0 auto; }
.room-page .side { flex: 0 0 340px; min-height: 0; max-height: none; position: static; }
.room-page .panel { min-height: 0; }

@media (max-width: 720px) {
  .room-page .stage { flex-direction: column; padding: 0; gap: 0; }
  .room-page .main { flex: 0 0 auto; gap: 8px; }
  .room-page .player { flex: 0 0 auto; min-height: 0; aspect-ratio: 16 / 9; }
  .room-page .faces { padding: 0 12px; gap: 8px; }
  .room-page .tile { flex: 0 0 72px; height: 88px; }
  .room-page .tile .initial { font-size: 18px; }
  .room-page .tile img.pic { width: 36px; height: 36px; }
  .room-page .toolbar { padding: 0 12px; gap: 8px; }
  .room-page .toolbar .icon-btn { width: 44px; height: 44px; }
  .room-page .side { flex: 1 1 auto; min-height: 0; margin-top: 8px; border-radius: 0; border-left: 0; border-right: 0; border-bottom: 0; }
  .room-page .tabs { padding: 4px 8px; }
  .room-page .tabs button { min-height: 40px; }
  .room-page .panel { padding: 10px 12px; gap: 10px; }
  .room-page .chat-form { padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); }
}

/* Невисокі екрани (ноутбуки 768px, телефон боком) */
@media (max-height: 560px) and (min-width: 721px) {
  .room-page .tile { flex-basis: 96px; height: 72px; }
  .room-page .stage { padding: 10px; gap: 10px; }
}

/* ---------- Мої кімнати ---------- */
.my-rooms { padding-bottom: 72px; }
.my-rooms h2 { margin: 0 0 20px; font-family: var(--display); font-weight: 700; font-size: clamp(24px, 3.5vw, 30px); }
.room-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.room-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 10px; }
.room-card:hover { border-color: var(--line-2); }
.room-card h3 { margin: 0; padding-right: 40px; font-size: 18px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-card .meta { margin: 0; font-size: 14px; color: var(--muted); }
.room-card .film { margin: 0; font-size: 14px; color: var(--soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-card .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ok); }
.live .dot { background: var(--ok); }
.quiet { font-size: 13px; color: var(--muted); }
.room-card .enter { min-height: 44px; padding: 0 18px; font-size: 15px; }
.room-card .forget { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; }
.room-card .forget:hover { background: var(--surface-3); color: var(--text); }
.owner-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--surface-3); font-size: 12px; font-weight: 600; color: var(--soft); }

/* ---------- Демонстрація екрана ---------- */
.screen-view { position: absolute; inset: 0; background: #000; display: flex; align-items: center; justify-content: center; }
.screen-view video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.screen-wait { position: absolute; margin: 0; color: var(--soft); font-size: 15px; }
.screen-stop { position: absolute; right: 14px; bottom: 14px; min-height: 44px; }
#share-btn[aria-pressed='false'] { background: var(--surface); color: var(--text); }
#share-btn[aria-pressed='true'] { background: var(--accent); color: var(--on-accent); }

/* Кімната намертво закріплена на весь екран (Safari інакше дає трохи прокрутити) */
html:has(body.room-page) { height: 100%; overflow: hidden; overscroll-behavior: none; }
body.room-page { position: fixed; inset: 0; height: auto; width: 100%; overscroll-behavior: none; }

/* ---------- Слабкий інтернет: підказка й завантаження наперед ---------- */
.hint-bar { position: absolute; left: 12px; right: 12px; top: 56px; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(11, 6, 18, 0.92); border: 1px solid var(--line-2); font-size: 14px; color: var(--soft); }
.hint-bar span { flex: 1 1 220px; }
.hint-bar .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
.hint-close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; }
.hint-close:hover { background: var(--surface-3); color: var(--text); }
@media (max-width: 720px) { .hint-bar { top: 44px; font-size: 13px; padding: 8px 10px; } }

/* Повний екран для трансляції */
.screen-fs { position: absolute; right: 14px; bottom: 14px; background: rgba(11, 6, 18, 0.75); }
.screen-fs:hover { background: rgba(11, 6, 18, 0.95); }
.screen-view .screen-stop { right: 70px; }
.player:fullscreen .screen-view video, .player:-webkit-full-screen .screen-view video { object-fit: contain; }

/* ---------- Фінальний екран ---------- */
.finish { z-index: 3; background: radial-gradient(ellipse at center, rgba(46, 18, 66, 0.97), rgba(11, 6, 18, 0.98)); gap: 10px; overflow-y: auto; justify-content: safe center; animation: finish-in 0.6s ease both; }
@keyframes finish-in { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .finish { animation: none; } }
.finish-kicker { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 5vw, 52px); letter-spacing: 0.02em; color: var(--accent-bright); }
.finish-title { max-width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.finish-people { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 4px 0; }
.finish-person { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--surface-3); font-size: 13px; font-weight: 600; }
.finish-person .avatar { width: 26px; height: 26px; font-size: 12px; }
.rating { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stars { display: flex; gap: 2px; }
.star { width: 44px; height: 44px; border: 0; background: transparent; color: var(--line-2); display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.star svg { width: 30px; height: 30px; }
.star.on, .stars:hover .star { color: var(--accent-bright); }
.stars .star:hover ~ .star { color: var(--line-2); }
.star[aria-pressed='true'] svg { filter: drop-shadow(0 0 6px rgba(232, 121, 249, 0.6)); }
.finish-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
@media (max-width: 720px) {
  .finish { gap: 4px; padding: 10px; }
  .finish-kicker { font-size: 24px; }
  .finish .big { font-size: 15px; }
  .finish-meta, .finish-people, #ratings-summary, #rate-label { display: none; }
  .star { width: 36px; height: 36px; }
  .star svg { width: 24px; height: 24px; }
  .finish-actions .btn { min-height: 40px; padding: 0 14px; font-size: 14px; }
}


/* ================= Стиль банера: неоновий пурпур ================= */
body { background: var(--bg); }
.hero-centered { background: radial-gradient(700px 320px at 50% 30%, rgba(192, 38, 211, 0.14), transparent 70%); }
a:hover { color: var(--accent-bright); }
:focus-visible { outline-color: var(--accent-bright); }
input[type='range'] { accent-color: var(--accent-bright); }

/* Логотип як на банері: жирний курсив + рукописне «.party» */
.logo span { font-family: 'Montserrat', system-ui, sans-serif; font-weight: 900; font-style: italic; font-size: 24px; letter-spacing: -0.02em; color: #fff; line-height: 1; }
.logo b { font-family: 'Pacifico', cursive; font-weight: 400; font-style: normal; font-size: 1.04em; position: relative; top: -0.04em; letter-spacing: 0; color: var(--accent-bright); text-shadow: 0 0 14px rgba(217, 70, 239, 0.65); margin-left: 1px; }
.logo:hover span { color: #fff; }

/* Кнопки з неоновим світінням */
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: var(--glow); }
.btn-primary:hover { color: var(--on-accent); filter: brightness(1.12); box-shadow: 0 0 30px rgba(217, 70, 239, 0.6); }
.chat-form button { color: var(--on-accent); box-shadow: var(--glow); }
.play-btn { box-shadow: 0 0 18px rgba(217, 70, 239, 0.35); }
.tile.waiting { outline-color: var(--accent-bright); }
.card { border: 1px solid var(--line); }
.card.outline:hover, .room-card:hover { border-color: var(--line-2); box-shadow: 0 0 0 1px rgba(217, 70, 239, 0.15); }
.pill { background: rgba(192, 38, 211, 0.14); color: var(--soft); border: 1px solid rgba(232, 121, 249, 0.25); }
.finish-kicker { text-shadow: 0 0 24px rgba(217, 70, 239, 0.6); }
.progress > div { box-shadow: 0 0 12px rgba(217, 70, 239, 0.7); }

/* Головна: банер на всю ширину й текст по центру під ним */
.hero-banner { max-width: 1400px; margin: 0 auto; padding: 0 16px; }
.hero-banner img { display: block; width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 6%, #000 68%, transparent 97%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 6%, #000 68%, transparent 97%);
  mask-composite: intersect; }
.hero-centered { flex-direction: column; text-align: center; padding-top: 8px; padding-bottom: 80px; gap: 0; }
.hero-centered .hero-text { flex: 0 1 auto; align-items: center; max-width: 760px; }
.hero-centered .pill { align-self: center; }
.hero-centered h1 { font-size: clamp(30px, 4.6vw, 52px); }
.hero-centered .lead { margin: 0 auto; }
.hero-centered .cta { justify-content: center; }
#create { width: 100%; max-width: 620px; }

@media (max-width: 720px) {
  .site-nav .link { display: none; }
  .site-header { flex-wrap: nowrap; padding-top: 14px; padding-bottom: 10px; }
  .hero-banner { padding: 0; }
  .hero-banner img { border-radius: 0; }
  .hero-centered { padding-top: 0; }
  .logo span { font-size: 21px; }
}

/* =====================================================================
   ПРОФЕСІЙНІ ЕФЕКТИ ТА ДЕТАЛІ
   ===================================================================== */
::selection { background: rgba(217, 70, 239, 0.45); color: #fff; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
* { scrollbar-width: thin; scrollbar-color: #4b2f66 transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #3a2452; border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: #5b3a80; background-clip: padding-box; }

/* Кнопки: плавність, підйом, натискання */
.btn, .icon-btn, .ghost-btn, .play-btn, .star, .chat-form button, .tabs button, .hint-close {
  transition: transform 0.18s ease, box-shadow 0.25s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}
.btn:hover { transform: translateY(-1px); border-color: var(--line-2); }
.btn:active, .icon-btn:active, .play-btn:active, .chat-form button:active, .star:active { transform: translateY(0) scale(0.97); }
.icon-btn:hover:not(:disabled) { background: var(--surface-3); }
.star:hover { transform: scale(1.12); }

/* Відблиск, що пробігає по головних кнопках */
.shine { position: relative; overflow: hidden; isolation: isolate; }
.shine::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.28) 48%, transparent 66%); transform: translateX(-120%); animation: shine 5s ease-in-out 1.2s infinite; }
@keyframes shine { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

/* Поява при прокрутці */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* Шапка: липка, після прокрутки — «скло» */
.header-bar { position: sticky; top: 0; z-index: 20; transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease; }
.header-bar.scrolled { background: rgba(11, 6, 18, 0.72); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 1px 0 rgba(232, 121, 249, 0.12), 0 10px 30px rgba(0, 0, 0, 0.35); }
.header-bar .site-header { padding-top: 16px; padding-bottom: 16px; }
.site-nav .link { position: relative; padding: 6px 0; }
.site-nav .link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--accent-bright); transform: scaleX(0); transition: transform 0.25s ease; }
.site-nav .link:hover::after { transform: scaleX(1); }
.site-nav .link:hover { color: var(--text); }

/* Банер: м'яке світіння позаду */
.hero-banner { position: relative; overflow: hidden; }
.hero-banner img { will-change: transform; transition: transform 0.05s linear; }
.hero-glow { position: absolute; left: 50%; top: 55%; width: 60%; height: 50%; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(192, 38, 211, 0.35), transparent); filter: blur(30px); animation: glow-breathe 6s ease-in-out infinite; pointer-events: none; }
@keyframes glow-breathe { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }

/* Герой */
.grad { background: linear-gradient(92deg, #f0abfc, #e879f9 40%, #c026d3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; margin-right: 8px; box-shadow: 0 0 0 0 rgba(92, 200, 168, 0.6); animation: pulse 2s infinite; vertical-align: 1px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(92, 200, 168, 0.55); } 70% { box-shadow: 0 0 0 9px rgba(92, 200, 168, 0); } 100% { box-shadow: 0 0 0 0 rgba(92, 200, 168, 0); } }
.trust { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; color: var(--muted); font-size: 14px; }
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { color: var(--ok); }
.field { flex: 1 1 260px; min-width: 0; min-height: 56px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-size: 16px; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.field::placeholder { color: var(--muted); }
.field:focus { outline: none; border-color: var(--accent-bright); box-shadow: 0 0 0 4px rgba(217, 70, 239, 0.18); }

/* Заголовки секцій */
.eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-bright); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }

/* Кроки з лінією-зв'язкою */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; position: relative; }
.step { position: relative; overflow: hidden; }
.step::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(232, 121, 249, 0.55), transparent 45%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.step .num { position: absolute; top: 18px; right: 22px; font-size: 44px; line-height: 1; opacity: 0.16; color: #fff !important; font-style: italic; }
.step-icon, .feature-icon { width: 52px; height: 52px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; color: var(--accent-bright); background: rgba(192, 38, 211, 0.14); border: 1px solid rgba(232, 121, 249, 0.25); box-shadow: inset 0 0 18px rgba(217, 70, 239, 0.15); }
.feature-icon { width: 46px; height: 46px; border-radius: 14px; }
.card { transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(232, 121, 249, 0.18); }
.features { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* Питання */
.faq-wrap { max-width: 860px; }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: border-color 0.25s ease, background-color 0.25s ease; }
.faq details[open] { border-color: rgba(232, 121, 249, 0.35); background: #1c1129; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font-weight: 700; font-size: 17px; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: 0 0 auto; width: 10px; height: 10px; border-right: 2px solid var(--accent-bright); border-bottom: 2px solid var(--accent-bright); transform: rotate(45deg) translateY(-3px); transition: transform 0.25s ease; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { margin: 0; padding: 0 20px 18px; color: #c9bddb; line-height: 1.6; }
.faq details[open] p { animation: faq-open 0.3s ease; }
@keyframes faq-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Фінальний заклик */
.final-cta { text-align: center; padding: 96px 24px 104px; display: flex; flex-direction: column; align-items: center; gap: 18px; position: relative; }
.final-cta::before { content: ''; position: absolute; left: 50%; top: 50%; width: min(720px, 90%); height: 260px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(192, 38, 211, 0.22), transparent); pointer-events: none; z-index: -1; }
.final-cta h2 { margin: 0; font-family: var(--display); font-size: clamp(28px, 4vw, 40px); }
.final-cta .lead { margin: 0; }

/* Футер */
.site-footer { border-top: 1px solid var(--line); background: linear-gradient(to bottom, rgba(23, 14, 36, 0.6), transparent); }
.footer-inner { display: flex !important; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 28px; padding-top: 40px !important; padding-bottom: 24px !important; }
.footer-brand p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 26px; font-size: 15px; }
.footer-links a { color: var(--soft); text-decoration: none; }
.footer-links a:hover { color: var(--accent-bright); }
.footer-bottom { padding-top: 0 !important; padding-bottom: 32px !important; }
.footer-bottom p { margin: 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; width: 100%; }

/* Мої кімнати: поява, «живі» кімнати, скелетон */
.room-card { animation: card-in 0.5s cubic-bezier(.2,.7,.2,1) both; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.room-card:hover { transform: translateY(-3px); }
@keyframes card-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.room-card.is-live { border-color: rgba(92, 200, 168, 0.35); box-shadow: 0 0 0 1px rgba(92, 200, 168, 0.12), 0 10px 30px rgba(92, 200, 168, 0.06); }
.live .dot { animation: pulse 2s infinite; }
.skeleton { min-height: 150px; pointer-events: none; }
.sk { display: block; border-radius: 8px; background: linear-gradient(90deg, #1f1430 0%, #2b1c40 50%, #1f1430 100%); background-size: 200% 100%; animation: sk 1.3s linear infinite; }
.sk-title { height: 20px; width: 60%; }
.sk-line { height: 14px; width: 40%; }
.sk-btn { height: 40px; width: 110px; border-radius: 999px; margin-left: auto; margin-top: auto; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }

@media (max-width: 720px) {
  .header-bar .site-header { padding-top: 12px; padding-bottom: 12px; }
  .final-cta { padding: 64px 20px 72px; }
  .features { grid-template-columns: 1fr; }
  .step .num { font-size: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .shine::after, .hero-glow, .live-dot, .live .dot, .sk, .room-card { animation: none !important; }
  .card:hover, .btn:hover, .room-card:hover { transform: none; }
}

/* =====================  КІМНАТА: ДЕТАЛІ  ===================== */
/* Плавна поява оверлеїв і тостів */
.overlay:not([hidden]) { animation: fade-in 0.28s ease both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.toast { z-index: 6; border: 1px solid var(--line-2); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); animation: toast-in 0.3s cubic-bezier(.2,.7,.2,1) both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Плеєр: рамка й тінь */
.room-page .player { box-shadow: 0 0 0 1px var(--line), 0 24px 60px rgba(0, 0, 0, 0.45); }

/* Повзунок: зіграно / підвантажено / решта */
.seek-wrap { position: relative; }
.seek { -webkit-appearance: none; appearance: none; height: 22px; background: transparent; cursor: pointer; --played: 0%; --buffered: 0%; }
.seek::-webkit-slider-runnable-track { height: 5px; border-radius: 5px; background: linear-gradient(to right, var(--accent-bright) 0 var(--played), rgba(255, 255, 255, 0.38) var(--played) var(--buffered), rgba(255, 255, 255, 0.14) var(--buffered) 100%); transition: height 0.15s ease; }
.seek::-moz-range-track { height: 5px; border-radius: 5px; background: linear-gradient(to right, var(--accent-bright) 0 var(--played), rgba(255, 255, 255, 0.38) var(--played) var(--buffered), rgba(255, 255, 255, 0.14) var(--buffered) 100%); }
.seek::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; margin-top: -5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(217, 70, 239, 0.35), 0 0 14px rgba(217, 70, 239, 0.7); transform: scale(0.85); transition: transform 0.15s ease; }
.seek::-moz-range-thumb { width: 15px; height: 15px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(217, 70, 239, 0.35), 0 0 14px rgba(217, 70, 239, 0.7); }
.seek:hover::-webkit-slider-runnable-track { height: 7px; }
.seek:hover::-webkit-slider-thumb { transform: scale(1.1); margin-top: -4px; }
.seek-tip { position: absolute; bottom: 26px; transform: translateX(-50%); padding: 3px 8px; border-radius: 8px; background: rgba(11, 6, 18, 0.92); border: 1px solid var(--line-2); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; pointer-events: none; white-space: nowrap; }
.volume { -webkit-appearance: none; appearance: none; height: 22px; background: transparent; }
.volume::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.25); }
.volume::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; margin-top: -4.5px; border-radius: 50%; background: #fff; }
.volume::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.25); }
.volume::-moz-range-thumb { width: 13px; height: 13px; border: 0; border-radius: 50%; background: #fff; }
.ghost-btn:hover { background: rgba(255, 255, 255, 0.1); }
.play-btn:hover { transform: scale(1.06); }

/* Хто говорить: неонова рамка, що «дихає» */
.tile { transition: box-shadow 0.2s ease, outline-color 0.2s ease; }
.tile.speaking { box-shadow: 0 0 0 3px var(--ok), 0 0 18px rgba(92, 200, 168, 0.55); }
.tile .name { transition: background-color 0.2s ease; }
.tile.speaking .name { background: rgba(92, 200, 168, 0.85); color: #06140f; }

/* Реакції */
.react-wrap { position: relative; }
.react-pop { position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); z-index: 8; display: grid; grid-template-columns: repeat(4, 44px); gap: 4px; padding: 8px; border-radius: 18px; background: rgba(23, 14, 36, 0.96); border: 1px solid var(--line-2); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(217, 70, 239, 0.15); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: pop-in 0.18s cubic-bezier(.2,.8,.2,1.2) both; }
@keyframes pop-in { from { opacity: 0; transform: translateX(-50%) translateY(6px) scale(0.92); } to { opacity: 1; transform: translateX(-50%); } }
.react-choice { width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; font-size: 24px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; transition: transform 0.15s ease, background-color 0.15s ease; }
.react-choice:hover { background: var(--surface-3); transform: scale(1.2) translateY(-2px); }
.react-choice:active { transform: scale(0.9); }
#react-btn[aria-expanded='true'] { background: var(--surface-3); color: var(--accent-bright); }
.react-layer { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 4; }
.reaction { position: absolute; bottom: 70px; display: flex; flex-direction: column; align-items: center; gap: 2px; animation: float-up var(--dur, 3s) cubic-bezier(.25,.7,.3,1) forwards; }
.reaction-emoji { font-size: clamp(30px, 4vw, 44px); line-height: 1; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5)); }
.reaction-name { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: rgba(11, 6, 18, 0.7); color: var(--soft); white-space: nowrap; }
@keyframes float-up {
  0% { opacity: 0; transform: translate(0, 20px) scale(0.6); }
  12% { opacity: 1; transform: translate(0, 0) scale(1.15); }
  20% { transform: translate(0, -20px) scale(1); }
  100% { opacity: 0; transform: translate(var(--drift, 0), -260px) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  @keyframes float-up { 0% { opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; } }
}

/* Чат: бульбашки, свої праворуч, групування */
.msg { animation: msg-in 0.25s ease both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.msg-body { max-width: 82%; }
.msg-text { display: inline-block; padding: 8px 12px; border-radius: 4px 16px 16px 16px; background: var(--surface-3); margin-top: 3px; }
.msg.grouped { margin-top: -8px; }
.msg.grouped .avatar { visibility: hidden; height: 0; }
.msg.grouped .msg-head { display: none; }
.msg.grouped .msg-text { border-radius: 16px; }
.msg.mine { flex-direction: row-reverse; }
.msg.mine .msg-body { align-items: flex-end; text-align: left; }
.msg.mine .msg-head { text-align: right; }
.msg.mine .msg-text { background: linear-gradient(135deg, #a21caf, #c026d3); color: #fff; border-radius: 16px 4px 16px 16px; box-shadow: 0 4px 14px rgba(192, 38, 211, 0.25); }
.msg.mine.grouped .msg-text { border-radius: 16px; }
.sys { animation: msg-in 0.25s ease both; }
.unread { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; box-shadow: var(--glow); animation: pop-badge 0.3s cubic-bezier(.2,.8,.2,1.3); }
@keyframes pop-badge { from { transform: scale(0.4); } to { transform: scale(1); } }
.chat-form input { transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.chat-form input:focus { outline: none; border-color: var(--accent-bright); box-shadow: 0 0 0 3px rgba(217, 70, 239, 0.18); }

/* Запросити: стан «Скопійовано» */
#invite-btn.done { background: var(--ok); border-color: var(--ok); color: #06140f; box-shadow: 0 0 22px rgba(92, 200, 168, 0.45); }

/* Вікно входу */
.gate { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); background: rgba(11, 6, 18, 0.86); }
.gate-card { position: relative; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(232, 121, 249, 0.15), 0 0 60px rgba(192, 38, 211, 0.18); animation: gate-in 0.4s cubic-bezier(.2,.7,.2,1) both; }
@keyframes gate-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
.gate-room { margin: 0; display: inline-flex; align-items: center; align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: rgba(192, 38, 211, 0.14); border: 1px solid rgba(232, 121, 249, 0.25); font-size: 13px; font-weight: 700; color: var(--soft); max-width: 100%; }
.gate-room span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview { position: relative; }
.preview-off { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 14px; background: radial-gradient(circle at 50% 40%, #2a1840, var(--surface-3)); }
.preview-off[hidden] { display: none; }
.big-avatar { width: 72px; height: 72px; font-size: 28px; overflow: hidden; }
.big-avatar img { width: 100%; height: 100%; object-fit: cover; }
.check input { cursor: pointer; }

@media (max-width: 720px) {
  .react-pop { grid-template-columns: repeat(4, 40px); left: auto; right: -40px; transform: none; }
  @keyframes pop-in { from { opacity: 0; transform: translateY(6px) scale(0.92); } to { opacity: 1; transform: none; } }
  .react-choice { width: 40px; height: 40px; font-size: 22px; }
  .reaction { bottom: 30px; }
  .reaction-name { display: none; }
}

/* ===================== Запрошення й 404 ===================== */
.invite-page { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: radial-gradient(900px 500px at 50% 0%, rgba(192, 38, 211, 0.18), transparent 70%), var(--bg); }
.inv { width: min(560px, 100%); display: flex; flex-direction: column; align-items: center; }
.inv-banner { width: 100%; height: auto; margin-bottom: -28px; border-radius: 20px; -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent); mask-image: linear-gradient(to bottom, #000 60%, transparent); }
.inv-card { position: relative; width: 100%; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 32px 28px; border-radius: 28px; background: rgba(23, 14, 36, 0.92); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(192, 38, 211, 0.15); animation: gate-in 0.5s cubic-bezier(.2,.7,.2,1) both; }
.inv-card .eyebrow { margin: 6px 0 0; }
.inv-card h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(26px, 5vw, 36px); line-height: 1.15; overflow-wrap: anywhere; }
.inv-card .lead { font-size: 17px; }
.inv-card .btn { width: 100%; max-width: 380px; }
.nf-code { margin: 4px 0 -6px; font-family: var(--display); font-weight: 900; font-style: italic; font-size: clamp(72px, 16vw, 120px); line-height: 1; background: linear-gradient(92deg, #f0abfc, #c026d3); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 30px rgba(192, 38, 211, 0.45)); }
