/*
 * live.css — Live Group Chat UI
 *
 * DESIGN: intentionally simpler than the WGC template.
 * Clean / discord-flavored card layout. No shared classes with WGC renderer.
 * None of the real render templates leak through here.
 */

:root {
  --lr-bg: #0b0d13;
  --lr-surface: #111320;
  --lr-surface-2: #1a1d2e;
  --lr-border: rgba(255, 255, 255, 0.06);
  --lr-text: #e1e3e8;
  --lr-text-dim: #6b6f80;
  --lr-accent: #ff2d78;
  --lr-accent-2: #7c5cff;
  --lr-success: #06d6a0;
  --lr-radius: 10px;
}

/* ── LOBBY ───────────────────────────────────────────────────────────── */

.live-lobby {
  max-width: 980px;
  margin: 0 auto;
  padding: 60px 24px 120px;
  color: var(--lr-text);
}
.live-hero {
  text-align: center;
  padding: 40px 20px 60px;
}
.live-badge {
  display: inline-block;
  background: rgba(255, 77, 139, 0.15);
  border: 1px solid rgba(255, 77, 139, 0.35);
  color: var(--lr-accent);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
  letter-spacing: 0.6px;
}
.live-hero h1 {
  font-size: 44px;
  font-weight: 900;
  margin: 0 0 12px;
  background: linear-gradient(135deg, var(--lr-accent), var(--lr-accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.live-hero p {
  font-size: 15px;
  color: var(--lr-text-dim);
  max-width: 520px;
  margin: 0 auto 28px;
  line-height: 1.6;
}
.live-cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.live-btn-primary {
  background: linear-gradient(135deg, var(--lr-accent), var(--lr-accent-2));
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s;
}
.live-btn-primary:hover { transform: translateY(-1px); }
.live-btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.live-btn-secondary {
  background: var(--lr-surface);
  color: var(--lr-text);
  border: 1px solid var(--lr-border);
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.live-btn-close {
  background: transparent;
  color: var(--lr-text-dim);
  border: none;
  padding: 10px 20px;
  font-size: 13px;
  cursor: pointer;
  margin-top: 8px;
}
.live-proof {
  margin-top: 20px;
  font-size: 12px;
  color: var(--lr-text-dim);
}
.live-proof #live-active-count {
  color: var(--lr-success);
  font-weight: 700;
}
.live-section { margin-top: 50px; }
.live-section h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 4px;
}
.live-section-sub {
  font-size: 13px;
  color: var(--lr-text-dim);
  margin: 0 0 20px;
}
.skin-claim-card {
  width: 140px;
  background: rgba(255,255,255,0.03);
  border: 2px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 16px 12px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.skin-claim-card:hover { border-color: rgba(255,255,255,0.15); }
.skin-claim-card.selected { border-color: #ff2d78; background: rgba(255,45,120,0.08); }
.skin-claim-card .skin-preview {
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 10px;
  background: rgba(255,255,255,0.02);
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.skin-claim-card .skin-preview-flag { font-size: 24px; flex-shrink: 0; }
.skin-claim-card .skin-preview-body { text-align: left; }
.skin-claim-card .skin-preview-name { font-size: 11px; font-weight: 700; color: #b0b0c8; }
.skin-claim-card .skin-preview-text { font-size: 12px; color: #dcdce8; margin-top: 2px; }
.skin-claim-card .skin-label { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.skin-claim-card .skin-desc { font-size: 10px; color: #666; line-height: 1.4; }
.skin-claim-card .skin-check {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.1);
  margin: 10px auto 0; transition: all 0.2s;
}
.skin-claim-card.selected .skin-check {
  background: #ff2d78; border-color: #ff2d78;
}

.skin-preview-golden .skin-preview-name {
  background: linear-gradient(135deg, #FFD700, #FFA500, #FFD700);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.skin-preview-golden .skin-preview {
  border: 1px solid #FFD700; box-shadow: 0 0 8px rgba(255,215,0,0.15);
}
.skin-preview-fire .skin-preview {
  border: 1px solid transparent;
  background-image: linear-gradient(rgba(20,20,32,1), rgba(20,20,32,1)), linear-gradient(135deg, #ff4500, #ff8c00, #ff4500);
  background-origin: border-box; background-clip: padding-box, border-box;
}
.skin-preview-crown .skin-preview { border: 1px solid #FFD700; }

.live-sort {
  color: #555;
  text-decoration: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s;
}
.live-sort:hover { color: #aaa; }
.live-sort.active {
  color: #ff2d78;
  font-weight: 600;
}
.live-section-label {
  font-size: 13px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
}
.live-room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.live-room-card {
  background: var(--lr-surface);
  border: 1px solid var(--lr-border);
  border-radius: 14px;
  padding: 18px 20px;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
  -webkit-user-drag: none;
  user-select: none;
}
.live-room-card:hover {
  border-color: var(--lr-accent);
  transform: translateY(-2px);
}
.live-room-card.event {
  background: linear-gradient(135deg, rgba(255,45,120,0.04), rgba(175,82,222,0.03));
  border-color: rgba(175,82,222,0.12);
}
.live-room-card.event:hover { border-color: #af52de; }
.live-room-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.live-room-card-title {
  font-size: 15px;
  font-weight: 700;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.live-room-card-ability {
  font-size: 10px;
  color: #af52de;
  font-weight: 600;
  flex-shrink: 0;
  letter-spacing: 0.3px;
}
.live-room-card-meta {
  font-size: 12px;
  color: var(--lr-text-dim);
  margin-bottom: 4px;
}
.live-room-card-sub {
  font-size: 12px;
  color: #666;
  font-style: italic;
  margin-top: 4px;
}
.live-room-card-join {
  float: right;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--lr-text);
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  margin-top: 8px;
  min-height: 32px;
  transition: all 0.15s;
}
.live-room-card-join:hover {
  background: var(--lr-accent);
  border-color: var(--lr-accent);
  color: #fff;
}
@media (max-width: 600px) {
  .live-lobby { padding: 20px 14px 80px; }
  .live-hero { padding: 24px 8px 36px; }
  .live-hero h1 { font-size: 28px; }
  .live-hero p { font-size: 13px; margin-bottom: 20px; }
  .live-cta-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .live-cta-row .live-btn-primary,
  .live-cta-row .live-btn-secondary { width: 100%; padding: 14px; font-size: 14px; text-align: center; }
  .live-room-grid { grid-template-columns: 1fr; }
  .live-room-card { padding: 16px; }
  .live-room-card-join { min-height: 44px; padding: 10px 20px; font-size: 13px; }
  .live-section-label { font-size: 13px; }
  .live-proof { font-size: 11px; }
  .live-skin-grid { grid-template-columns: 1fr; }
}
.live-room-card-flags {
  font-size: 18px;
  line-height: 1;
}
.live-empty {
  color: var(--lr-text-dim);
  text-align: center;
  padding: 40px;
  font-size: 13px;
}

.live-skin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.live-skin-card {
  background: var(--lr-surface);
  border: 1px solid var(--lr-border);
  border-radius: var(--lr-radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.live-skin-card h4 { margin: 0 0 6px; font-size: 15px; }
.live-skin-card p {
  margin: 0 0 14px;
  font-size: 12px;
  color: var(--lr-text-dim);
  flex: 1;
  min-height: 36px;
}
.live-skin-card .live-skin-action {
  margin-top: auto;
}
.live-skin-card .live-skin-action button {
  width: 100%;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--lr-accent), var(--lr-accent-2));
  color: #fff;
}
.live-skin-price { font-weight: 800; color: var(--lr-accent); font-size: 14px; }
.live-skin-owned {
  display: block;
  width: 100%;
  text-align: center;
  background: rgba(6, 214, 160, 0.15);
  color: var(--lr-success);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}

/* Modals */
.live-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.live-modal.hidden { display: none; }
.live-modal-back {
  position: absolute; top: 12px; left: 12px;
  background: none; border: none; color: #888; cursor: pointer; padding: 4px;
  border-radius: 6px; transition: color 0.15s;
}
.live-modal-back:hover { color: #fff; }
.live-modal-box {
  background: var(--lr-surface);
  border: 1px solid var(--lr-border);
  border-radius: 16px;
  padding: 28px;
  max-width: 580px;
  width: 100%;
  text-align: center;
  margin: auto 0;
  position: relative;
}
@media (max-width: 560px) {
  .live-modal-box { max-width: 100%; padding: 20px 16px; border-radius: 12px; }
}
.live-modal-box h3 { margin: 0 0 16px; font-size: 18px; }
.live-modal-box .live-field-label,
.live-modal-box .live-tag-row,
.live-modal-box .live-preset-grid,
.live-modal-box label { text-align: left; }
.live-modal-box input {
  width: 100%;
  padding: 12px 16px;
  background: var(--lr-bg);
  border: 1px solid var(--lr-border);
  border-radius: 10px;
  color: var(--lr-text);
  font-size: 14px;
  font-family: inherit;
  margin-bottom: 14px;
  box-sizing: border-box;
}
.live-hint {
  font-size: 12px;
  color: var(--lr-text-dim);
  margin-bottom: 14px;
}

/* ── LIVE ROOM (chat page) — Mockup V2 ─────────────────────────────── */

.lr-body {
  margin: 0; padding: 0;
  background: #0b0b16;
  color: #e4e4f0;
  font-family: 'Outfit', -apple-system, sans-serif;
  height: 100vh;
  overflow: hidden;
}
.hidden { display: none !important; }

.lr-root {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.lr-header {
  padding: 14px 18px;
  background: linear-gradient(180deg, rgba(255,45,120,0.03) 0%, transparent 100%);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
}
.lr-back {
  color: #666; text-decoration: none; cursor: pointer; padding: 4px; display: flex; align-items: center;
}
.lr-back:hover { color: #aaa; }
.lr-room-icon {
  width: 44px; height: 44px; border-radius: 14px;
  background: linear-gradient(135deg, #ff2d55, #af52de);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.lr-group-name { font-size: 16px; font-weight: 700; color: #f0f0f8; }
.lr-header-sub { font-size: 12px; color: #555; margin-top: 3px; }
.lr-header-mid { flex: 1; min-width: 0; }
.lr-meta {
  display: flex; flex-direction: column; align-items: flex-end; gap: 4;
  font-size: 12px; color: #777; flex-shrink: 0;
}
.lr-btn-header-action {
  width: 38px; height: 38px; border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 14px; color: #777; transition: all 0.2s;
}
.lr-btn-header-action:hover { background: rgba(255,45,85,0.12); border-color: rgba(255,45,85,0.2); color: #ff2d55; }

.lr-msg-progress {
  padding: 6px 16px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.01);
}
.lr-msg-progress-text { font-size: 12px; color: #444; font-weight: 500; }
.lr-msg-progress-bar {
  width: 130px; height: 4px; border-radius: 3px;
  background: rgba(255,255,255,0.04); overflow: hidden;
}
.lr-msg-progress-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, #ff2d55, #af52de);
  transition: width 0.3s;
}

.lr-player-dropdown {
  position: absolute; top: 60px; right: 12px;
  background: #12121e; border-radius: 14px; padding: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  min-width: 220px; max-height: 300px; overflow-y: auto;
  z-index: 100; box-shadow: 0 12px 40px rgba(0,0,0,0.6);
}
.lr-player-dropdown .lr-player-row {
  display: flex; align-items: center; gap: 8;
  padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.03);
}
.lr-player-dropdown .lr-flag { font-size: 18px; }
.lr-player-dropdown .lr-player-country { font-size: 12px; font-weight: 600; }
.lr-player-dropdown .lr-player-handle { color: #555; font-size: 10px; }
.lr-player-dropdown .lr-player-kick { background: none; border: none; color: #ff6b6b; cursor: pointer; margin-left: auto; }

.lr-picker {
  flex: 1; padding: 24px 16px;
  max-width: 900px; margin: 0 auto;
  overflow-y: auto; width: 100%;
  box-sizing: border-box;
}
.lr-picker h2 { margin: 0 0 6px; font-size: 20px; }
.lr-picker p { color: #666; font-size: 13px; margin: 0 0 16px; }
.lr-picker input {
  width: 100%; padding: 12px 16px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; color: #e4e4f0; font-size: 16px; margin-bottom: 14px;
  font-family: inherit; outline: none; box-sizing: border-box;
  -webkit-appearance: none;
}
.lr-picker input:focus { border-color: #ff2d55; }
.lr-picker-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px;
}
.lr-picker-country {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; padding: 12px 14px; cursor: pointer;
  font-size: 13px; transition: all 0.15s; min-height: 44px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
}
.lr-picker-country .lr-flag { font-size: 28px; flex-shrink: 0; line-height: 1; }
.lr-picker-country > div { flex: 1; min-width: 0; }
.lr-picker-country:hover { border-color: #ff2d55; background: rgba(255,45,85,0.06); }
.lr-picker-country.taken { opacity: 0.3; cursor: not-allowed; }

.lr-chat {
  flex: 1; display: flex; flex-direction: column; overflow: hidden;
}
.lr-messages {
  flex: 1; overflow-y: auto; padding: 4px 16px 20px; display: flex;
  flex-direction: column; gap: 10px; scroll-behavior: smooth;
}
.lr-msg {
  padding: 14px 16px; border-radius: 18px;
  background: rgba(255,255,255,0.03);
  display: flex; gap: 14px; align-items: flex-start;
  transition: all 0.2s;
}
.lr-msg:hover { background: rgba(255,255,255,0.05); }
.lr-msg-avatar {
  font-size: 30px; line-height: 1; margin-top: 2px; flex-shrink: 0;
}
.lr-msg-body { flex: 1; min-width: 0; padding-top: 2px; }
.lr-msg-head { display: block; margin-bottom: 5px; }
.lr-msg-country {
  font-size: 14px; font-weight: 700; color: #b0b0c8;
}
.lr-msg-handle { display: none; }
.lr-msg-time-sep { text-align: center; color: #444; font-size: 11px; margin: 12px 0 8px; font-weight: 500; }
.lr-msg-text {
  font-size: 16px; color: #dcdce8; line-height: 1.55;
  display: block; word-break: break-word;
}
.lr-msg-report {
  background: none; border: none; color: #555; cursor: pointer;
  font-size: 10px; padding: 0 2px; opacity: 0; transition: opacity 0.15s;
  float: right; margin-top: 2px;
}
.lr-msg:hover .lr-msg-report { opacity: 0.6; }
.lr-msg-report:hover { color: #ff6b6b; opacity: 1 !important; }

.skin-golden-name .lr-msg-country {
  background: linear-gradient(135deg, #FFD700, #FFA500, #FFD700);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.skin-golden-name .lr-msg {
  border: 2px solid #FFD700; box-shadow: 0 0 16px rgba(255,215,0,0.2);
}
.skin-fire-bubbles .lr-msg {
  border: 2px solid transparent;
  background-image: linear-gradient(#141420, #141420), linear-gradient(135deg, #ff4500, #ff8c00, #ff4500);
  background-origin: border-box; background-clip: padding-box, border-box;
}
.skin-crown-frame .lr-msg { border: 2px solid #FFD700; }

.lr-input-row {
  padding: 14px 16px 34px;
  border-top: 1px solid rgba(255,255,255,0.04);
  background: linear-gradient(180deg, rgba(11,11,22,0.95), #0b0b16);
  display: flex; align-items: center; gap: 10px;
}
.lr-input-row input {
  flex: 1; min-width: 0; height: 46px; border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 0 16px; font-size: 15px; color: #e4e4f0;
  font-family: inherit; outline: none;
}
.lr-input-row input:focus { border-color: rgba(255,45,85,0.3); }
.lr-input-row input::placeholder { color: #4a4a5a; }
.lr-send-btn {
  width: 46px; height: 46px; border-radius: 14px;
  background: linear-gradient(135deg, #ff2d55, #af52de);
  border: none; color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(255,45,85,0.25);
  transition: transform 0.15s, box-shadow 0.15s;
}
.lr-send-btn:hover { transform: scale(1.04); box-shadow: 0 6px 20px rgba(255,45,85,0.35); }
.lr-send-btn:disabled { opacity: 0.3; cursor: not-allowed; box-shadow: none; transform: none; }

.lr-player-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0; font-size: 13px;
}
.lr-player-row .lr-flag { font-size: 18px; }
.lr-player-ident { flex: 1; min-width: 0; }
.lr-player-country { font-size: 12px; font-weight: 600; }
.lr-player-handle { font-size: 10px; color: #555;
}

/* ─── Player-row badges (champion / mod / team) ─────────────────────── */
.lr-badge-champ { font-size: 12px; margin-left: 4px; filter: drop-shadow(0 0 4px rgba(255,215,0,0.6)); }
.lr-badge-mod { font-size: 11px; margin-left: 4px; }
.lr-badge-team {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 999px;
  margin-left: 4px;
  color: #fff;
}
.lr-badge-team-a { background: #ff2d78; }
.lr-badge-team-b { background: #06d6a0; color: #032018; }

/* Champion badge inline in message header too */
.lr-msg-champ { font-size: 11px; margin-left: 2px; }

/* ─── Lobby wait screen ─────────────────────────────────────────────── */
.lr-lobby-wait {
  position: fixed;
  inset: 0;
  background: var(--lr-bg, #0f1115);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  gap: 16px;
}
.lr-lobby-wait.hidden { display: none; }
.lr-lobby-wait h2 { margin: 0; font-size: 22px; }
.lr-lobby-sub { color: var(--lr-text-dim); font-size: 14px; margin: 0; }
.lr-lobby-link-row {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 480px;
  align-items: center;
  max-width: 480px;
}
.lr-lobby-link-row input {
  flex: 1;
  background: var(--lr-surface);
  border: 1px solid var(--lr-border);
  color: var(--lr-text);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-family: monospace;
}
.lr-lobby-players {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 480px;
  margin-top: 8px;
}
.lr-lobby-player-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--lr-surface);
  border: 1px solid var(--lr-border);
  border-radius: 999px;
  font-size: 13px;
}
.lr-lobby-player-handle { color: var(--lr-text-dim); font-size: 10px; }
.lr-lobby-hint { color: var(--lr-text-dim); font-size: 12px; min-height: 16px; }
.lr-empty { color: var(--lr-text-dim); font-size: 13px; padding: 12px; }

/* ─── Typing indicator ──────────────────────────────────────────────── */
.lr-typing {
  min-height: 18px;
  padding: 12px 18px;
  font-size: 13px;
  color: #4a4a5a;
  display: flex; align-items: center; gap: 8px;
}

.lr-msg-action {
  padding: 12px 18px;
  font-size: 14px; font-style: italic; color: #5a5a70; line-height: 1.5;
}
.lr-msg-ooc {
  text-align: center;
  font-size: 12px; color: #4a4a60; padding: 4px 18px;
}
.lr-msg-whisper {
  background: rgba(168, 85, 247, 0.04);
}
.lr-msg-whisper .lr-msg-text {
  color: #c4a5f0;
  font-style: italic;
}
.lr-whisper-tag {
  font-size: 9px;
  color: #a855f7;
  font-weight: 600;
  margin-left: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.lr-msg-gif {
  max-width: 240px;
  max-height: 240px;
  border-radius: 12px;
  display: block;
}

/* ─── System "X left the chat" messages ─────────────────────────────── */
.lr-msg-system {
  text-align: center;
  font-size: 13px; color: #4a4a60; font-weight: 500;
  padding: 16px 0;
}
.lr-msg-ability {
  text-align: center; padding: 14px 18px; margin: 6px 0;
  font-size: 13px; font-weight: 600; line-height: 1.5;
  background: linear-gradient(135deg, rgba(255,45,85,0.06), rgba(175,82,222,0.06));
  border-radius: 16px; border: 1px solid rgba(175,82,222,0.1); color: #c89dff;
}

/* ─── Preset / tag / mode pickers in Create modal ───────────────── */
.live-field-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--lr-text-dim, #8a8e99);
  margin: 18px 0 8px;
}
.live-preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 6px;
  margin-bottom: 4px;
}
.live-preset-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 8px 6px;
  font-size: 11px;
  text-align: center;
  cursor: pointer;
  color: var(--lr-text, #e6e8eb);
  transition: all 0.15s;
  line-height: 1.3;
}
.live-preset-card:hover { border-color: rgba(255,255,255,0.2); }
.live-preset-card.active {
  background: rgba(255,45,120,0.18);
  border-color: #ff2d78;
}
.live-preset-card .live-preset-emoji {
  display: block;
  font-size: 18px;
  margin-bottom: 2px;
}
.live-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}
.live-tag-chip {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  color: var(--lr-text, #e6e8eb);
  cursor: pointer;
  font-weight: 600;
}
.live-tag-chip.active {
  background: #ff2d78;
  border-color: #ff2d78;
  color: #fff;
}
.live-tag-chip:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Room card tag/mode badges */
.live-room-card-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.live-room-card-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--lr-text-dim, #8a8e99);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}
.live-room-card-badge.battle { background: rgba(255,45,120,0.15); color: #ff2d78; }

/* ─── Leaked DMs reaction bar ──────────────────────────────────────── */
.lr-react-bar {
  display: flex;
  gap: 6px;
  margin-top: 4px;
  align-items: center;
}
.lr-react-bar button {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.1s;
}
.lr-react-bar button:hover { transform: scale(1.15); }
.lr-react-counts {
  font-size: 11px;
  color: var(--lr-text-dim, #8a8e99);
  margin-left: 4px;
}

/* ─── @mention highlight ──────────────────────────────────────────── */
.lr-mention {
  color: #06d6a0;
  font-weight: 700;
  background: rgba(6, 214, 160, 0.08);
  padding: 1px 4px;
  border-radius: 4px;
}
.lr-msg-mentioned {
  background: rgba(255,45,120,0.04) !important;
  border-left: 2px solid #ff2d78;
}
.lr-msg-mentioned .lr-msg-text-old {
  box-shadow: 0 0 0 2px rgba(6, 214, 160, 0.5);
  border-radius: 14px;
}
.lr-msg-mentioned {
  animation: lrMentionFlash 1.2s ease-out;
}
@keyframes lrMentionFlash {
  0% { background: rgba(6, 214, 160, 0.15); }
  100% { background: transparent; }
}

.lr-sidebar-actions {
  border-top: 1px solid var(--lr-border);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lr-btn-end {
  background: var(--lr-accent);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.lr-btn-leave {
  background: transparent;
  color: var(--lr-text-dim);
  border: 1px solid var(--lr-border);
  padding: 12px;
  border-radius: 10px;
  font-size: 13px;
  cursor: pointer;
}

/* Overlays */
.lr-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lr-overlay-box {
  background: var(--lr-surface);
  border: 1px solid var(--lr-border);
  border-radius: 16px;
  padding: 40px 32px;
  max-width: 420px;
  width: 100%;
  text-align: center;
}
.lr-overlay-title {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 8px;
}
.lr-overlay-sub {
  font-size: 13px;
  color: var(--lr-text-dim);
  margin-bottom: 24px;
}
.lr-btn-boost {
  width: 100%;
  background: linear-gradient(135deg, var(--lr-accent), var(--lr-accent-2));
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  margin-bottom: 10px;
}
.lr-btn-neutral {
  width: 100%;
  background: var(--lr-surface-2);
  color: var(--lr-text);
  border: 1px solid var(--lr-border);
  padding: 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 10px;
}
.lr-btn-ghost {
  display: block;
  color: var(--lr-text-dim);
  font-size: 12px;
  text-decoration: underline;
  padding: 8px;
}

.lr-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--lr-accent);
  border-radius: 50%;
  animation: lr-spin 1s linear infinite;
  margin: 0 auto 18px;
}
@keyframes lr-spin { to { transform: rotate(360deg); } }

/* Report button on messages */
.lr-msg-report {
  background: transparent;
  border: none;
  color: var(--lr-text-dim);
  font-size: 13px;
  cursor: pointer;
  padding: 2px 6px;
  margin-left: 4px;
  opacity: 0;
  transition: opacity 0.15s;
}
.lr-msg:hover .lr-msg-report { opacity: 1; }
.lr-msg-report:hover { color: var(--lr-accent); }
.lr-msg-report:disabled { cursor: default; }

/* Kick button in player list */
.lr-player-row {
  position: relative;
}
.lr-player-kick {
  background: transparent;
  border: none;
  color: var(--lr-text-dim);
  font-size: 12px;
  cursor: pointer;
  margin-left: auto;
  padding: 2px 6px;
  opacity: 0;
  transition: opacity 0.15s, color 0.15s;
}
.lr-player-row:hover .lr-player-kick { opacity: 1; }
.lr-player-kick:hover { color: #ef4444; }

/* Toast notifications */
.lr-toasts {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 11000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.lr-toast {
  background: var(--lr-surface);
  border: 1px solid var(--lr-border);
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 13px;
  color: var(--lr-text);
  max-width: 320px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  animation: lr-toast-in 0.25s ease-out;
}
.lr-toast-error { border-color: rgba(239, 68, 68, 0.5); color: #fca5a5; }
.lr-toast-success { border-color: rgba(6, 214, 160, 0.5); color: #6ee7b7; }
.lr-toast-out { animation: lr-toast-out 0.4s ease-in forwards; }
@keyframes lr-toast-in { from { transform: translateX(100%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lr-toast-out { to { transform: translateX(100%); opacity: 0; } }
@media (max-width: 480px) {
  .lr-header { padding: 10px 12px; gap: 10px; }
  .lr-room-icon { width: 36px; height: 36px; border-radius: 10px; font-size: 18px; }
  .lr-group-name { font-size: 14px; }
  .lr-header-sub { font-size: 11px; }
  .lr-meta { font-size: 11px; gap: 2px; }
  .lr-picker { padding: 16px 12px; }
  .lr-picker h2 { font-size: 18px; }
  .lr-picker-grid { grid-template-columns: repeat(2, 1fr); gap: 4px; }
  .lr-picker-country { padding: 10px 8px; font-size: 11px; border-radius: 10px; gap: 4px; }
  .lr-picker-country .lr-flag { font-size: 22px !important; }
  .lr-messages { padding: 4px 10px 16px; gap: 8px; }
  .lr-msg { padding: 10px 12px; border-radius: 14px; gap: 10px; }
  .lr-msg-avatar { font-size: 24px; }
  .lr-msg-country { font-size: 12px; }
  .lr-msg-text { font-size: 14px; }
  .lr-input-row { padding: 8px 8px 16px; gap: 6px; }
  .lr-input-row input { height: 40px; font-size: 14px; border-radius: 12px; padding: 0 12px; min-width: 0; }
  .lr-send-btn { width: 40px; height: 40px; min-width: 40px; border-radius: 12px; font-size: 14px; }
  .lr-send-btn[style*="padding:0 12px"] { width: auto; min-width: 36px; padding: 0 8px !important; }
  .lr-msg-progress { padding: 6px 12px; }
  .lr-lobby-wait { padding: 20px 16px; }
  .lr-spectator-cta { padding: 12px 12px 28px; }
  .lr-overlay-box { padding: 28px 20px; max-width: 340px; }
  .lr-overlay-title { font-size: 18px; }
  .lr-btn-boost, .lr-btn-neutral { font-size: 13px; padding: 12px; }
  .lr-btn-ghost { font-size: 11px; }
}
@media (max-width: 360px) {
  .lr-input-row { gap: 4px; padding: 6px 6px 14px; }
  .lr-send-btn { width: 36px; height: 36px; min-width: 36px; border-radius: 10px; }
  .lr-send-btn[style*="padding:0 12px"] { min-width: 32px; padding: 0 6px !important; font-size: 12px; }
  .lr-input-row input { height: 36px; font-size: 13px; border-radius: 10px; padding: 0 10px; }
}
@keyframes pulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 0.8; } }
@keyframes livePulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } }
@keyframes btnPulse { 0% { transform: scale(1); } 50% { transform: scale(1.02); } 100% { transform: scale(1); } }
.lr-messages::-webkit-scrollbar { width: 3px; }
.lr-messages::-webkit-scrollbar-track { background: transparent; }
.lr-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 3px; }

.lr-live-indicator {
  padding: 8px 18px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.lr-live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #ff2d55; animation: livePulse 2s infinite;
}
.lr-live-label { font-size: 12px; color: #ff2d55; font-weight: 600; letter-spacing: 0.5px; }
.lr-live-sub { font-size: 12px; color: #444; margin-left: 4px; }

.lr-spectator-cta {
  padding: 14px 20px 32px;
  border-top: 1px solid rgba(255,255,255,0.04);
  background: linear-gradient(180deg, rgba(11,11,22,0.95), #0b0b16);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.lr-spectator-cta-text { font-size: 14px; color: #888; font-weight: 500; }
.lr-spectator-cta-btn {
  width: 100%; max-width: 320px; padding: 14px 0; text-align: center; border-radius: 14px;
  background: linear-gradient(135deg, #ff2d55, #af52de);
  font-size: 15px; font-weight: 700; color: #fff; cursor: pointer;
  box-shadow: 0 4px 16px rgba(255,45,85,0.25); letter-spacing: 0.3px;
  border: none; font-family: inherit; transition: transform 0.15s;
}
.lr-spectator-cta-btn:hover { transform: scale(1.02); }
.lr-spectator-cta-link {
  font-size: 11px; color: #555; cursor: pointer;
  text-decoration: underline; text-decoration-color: rgba(255,255,255,0.1);
  text-underline-offset: 3px;
}

.skin-inner-circle .lr-msg-country {
  background: linear-gradient(135deg, #a855f7, #06d6a0, #a855f7);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: innerCircleShift 3s ease infinite;
}
.skin-inner-circle .lr-msg {
  border: 1px solid rgba(168, 85, 247, 0.3);
  box-shadow: 0 0 20px rgba(6, 214, 160, 0.08),
              0 0 40px rgba(168, 85, 247, 0.05);
}
@keyframes innerCircleShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Rainbow Glitter Frame — seasonal May 2026 */
.skin-rainbow-glitter .lr-msg {
  border: 2px solid transparent;
  background-image: linear-gradient(var(--lr-surface, #1a1c22), var(--lr-surface, #1a1c22)),
                    linear-gradient(135deg, #ff0050, #ff8c00, #ffe600, #00c853, #2979ff, #aa00ff, #ff0050);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  background-size: 100% 100%, 300% 300%;
  animation: rainbowGlitter 4s linear infinite;
}
.skin-rainbow-glitter .lr-msg-country {
  background: linear-gradient(90deg, #ff0050, #ff8c00, #ffe600, #00c853, #2979ff, #aa00ff);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbowText 3s linear infinite;
}
@keyframes rainbowGlitter {
  0% { background-position: 0 0, 0% 50%; }
  100% { background-position: 0 0, 100% 50%; }
}
@keyframes rainbowText {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* ─── Ability visual effects ─────────────────────────────────────── */
.lr-flash-overlay {
  position: fixed; inset: 0; z-index: 99999; pointer-events: none;
  opacity: 0.3; transition: opacity 0.3s;
}
.lr-emoji-rain {
  position: fixed; top: -40px; z-index: 99998; pointer-events: none;
  font-size: 28px; animation: emojifall 2.5s linear forwards;
}
@keyframes emojifall {
  to { top: 110vh; opacity: 0; }
}
.lr-chancla {
  position: fixed; top: 50%; left: -50px; z-index: 99998; pointer-events: none;
  font-size: 48px; animation: chanclafly 0.8s ease-in forwards;
}
@keyframes chanclafly {
  to { left: 110vw; transform: rotate(720deg); }
}
.lr-msg.chefs-kiss {
  border: 2px solid gold !important; position: relative;
}
.lr-msg.flipped .lr-msg-text {
  transform: scaleY(-1);
}

.lr-poll-card {
  background: linear-gradient(135deg, rgba(255,45,120,0.06), rgba(175,82,222,0.04));
  border: 1px solid rgba(175,82,222,0.2);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lr-poll-card.closed { opacity: 0.6; border-color: rgba(255,255,255,0.06); background: rgba(255,255,255,0.02); }
.lr-poll-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; color: #af52de; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}
.lr-poll-head .lr-poll-close-btn {
  margin-left: auto;
  background: none; border: none; color: #666; cursor: pointer; font-size: 14px; padding: 0 4px;
}
.lr-poll-head .lr-poll-close-btn:hover { color: #ff6b6b; }
.lr-poll-question { font-size: 15px; font-weight: 700; color: #fff; line-height: 1.3; }
.lr-poll-options { display: flex; flex-direction: column; gap: 6px; }
.lr-poll-option {
  position: relative;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 14px;
}
.lr-poll-option:hover { border-color: rgba(175,82,222,0.4); background: rgba(175,82,222,0.05); }
.lr-poll-option.voted { border-color: #af52de; background: rgba(175,82,222,0.15); font-weight: 600; }
.lr-poll-option.disabled { cursor: default; }
.lr-poll-option.disabled:hover { border-color: rgba(255,255,255,0.06); background: rgba(255,255,255,0.04); }
.lr-poll-option-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(255,45,120,0.15), rgba(175,82,222,0.18));
  z-index: 0;
  transition: width 0.4s ease;
}
.lr-poll-option-text { position: relative; z-index: 1; }
.lr-poll-option-count { position: relative; z-index: 1; font-size: 12px; color: #aaa; font-weight: 600; }
.lr-poll-foot { font-size: 11px; color: #666; display: flex; justify-content: space-between; align-items: center; }
.lr-poll-creator { display: flex; align-items: center; gap: 4px; }
.lr-poll-input-option {
  display: flex; align-items: center; gap: 6px;
}
.lr-poll-input-option input {
  flex: 1; min-width: 0; padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03); color: #fff; font-size: 13px; font-family: inherit; box-sizing: border-box;
}
.lr-poll-input-option .lr-poll-remove {
  background: none; border: none; color: #666; cursor: pointer; font-size: 16px; padding: 4px 8px;
}
.lr-poll-input-option .lr-poll-remove:hover { color: #ff6b6b; }
@media (max-width: 480px) {
  .lr-poll-card { padding: 12px 14px; }
  .lr-poll-question { font-size: 14px; }
  .lr-poll-option { font-size: 13px; padding: 9px 12px; }
}
