/* ══════════════════════════════════════════════════════════════════
   Playmeet Landing v2 — Professional redesign
   ══════════════════════════════════════════════════════════════════ */

/* ── Mode glow tokens ── */
:root {
  --lp-glow:       #64d2ff;
  --lp-glow-rgb:   100, 210, 255;
  --lp-glow-soft:  rgba(100, 210, 255, 0.14);
  --lp-surface:    #0e0f1a;
  --lp-surface2:   #12131f;
  --lp-border:     rgba(255,255,255,.07);
  --lp-border2:    rgba(255,255,255,.11);
  --lp-text:       #e8edf5;
  --lp-muted:      #6a7690;
  --lp-muted2:     #3e4a60;
  --lp-radius-xl:  28px;
  --lp-radius-lg:  20px;
  --lp-radius-md:  14px;
  --lp-radius-sm:  10px;
}
body[data-landing-mode="video"]  { --lp-glow: #64d2ff; --lp-glow-rgb: 100,210,255; --lp-glow-soft: rgba(100,210,255,.14); }
body[data-landing-mode="music"]  { --lp-glow: #c084fc; --lp-glow-rgb: 192,132,252; --lp-glow-soft: rgba(192,132,252,.16); }
body[data-landing-mode="clip"]   { --lp-glow: #fb7185; --lp-glow-rgb: 251,113,133; --lp-glow-soft: rgba(251,113,133,.14); }
body[data-landing-mode="draw"]   { --lp-glow: #fbbf24; --lp-glow-rgb: 251,191,36;  --lp-glow-soft: rgba(251,191,36,.13);  }
body[data-landing-mode="game"]   { --lp-glow: #34d399; --lp-glow-rgb: 52,211,153;  --lp-glow-soft: rgba(52,211,153,.13);  }
body[data-landing-mode="voice"]  { --lp-glow: #a78bfa; --lp-glow-rgb: 167,139,250; --lp-glow-soft: rgba(167,139,250,.14); }

/* ══ GLOBAL JOIN-SCREEN SHELL ══════════════════════════════════════ */
#join-screen {
  background:
    radial-gradient(ellipse 80% 40% at 70% -5%, rgba(var(--lp-glow-rgb),.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at -10% 30%, rgba(124,58,237,.08) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 110% 80%, rgba(34,197,94,.05) 0%, transparent 50%),
    #0a0a0f;
  transition: background 0.5s ease;
}

.landing-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 20px 100px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ══ TOPBAR ══════════════════════════════════════════════════════ */
.landing-topbar {
  position: sticky;
  top: 8px;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px 10px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(10,10,18,.82);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
  box-shadow:
    0 1px 0 rgba(255,255,255,.05) inset,
    0 12px 40px rgba(0,0,0,.5),
    0 0 0 1px rgba(0,0,0,.3);
}

.landing-brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.landing-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(var(--lp-glow-rgb),.18), rgba(124,58,237,.22));
  border: 1px solid rgba(var(--lp-glow-rgb),.2);
  display: grid;
  place-items: center;
  box-shadow: 0 0 16px rgba(var(--lp-glow-rgb),.1);
  transition: box-shadow .3s, border-color .3s;
  flex-shrink: 0;
}
.landing-brand-mark svg {
  width: 19px;
  height: 19px;
  stroke: var(--lp-glow);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .3s;
}
.landing-brand-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -.025em;
  color: #f1f5f9;
}
.landing-brand-copy { display: none; }

.landing-desktop-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}
.landing-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #7a8aa0;
  font: inherit;
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
  transition: color .15s, background .15s, border-color .15s;
  white-space: nowrap;
}
.landing-nav-btn:hover {
  color: #cbd5e1;
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.08);
}
.landing-nav-btn.active {
  color: #e2e8f0;
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.1);
}

.landing-nav-live-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(52,211,153,.14);
  border: 1px solid rgba(52,211,153,.22);
  color: #34d399;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .05em;
}

.landing-nav-create {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px !important;
  border-radius: 11px !important;
  background: linear-gradient(135deg,
    rgba(var(--lp-glow-rgb),.22) 0%,
    rgba(124,58,237,.18) 100%) !important;
  border: 1px solid rgba(var(--lp-glow-rgb),.3) !important;
  color: var(--lp-glow) !important;
  font-weight: 700 !important;
  box-shadow: 0 0 24px rgba(var(--lp-glow-rgb),.1), inset 0 1px 0 rgba(255,255,255,.07);
  transition: background .2s, box-shadow .2s, border-color .2s, transform .12s !important;
}
.landing-nav-create:hover {
  background: linear-gradient(135deg,
    rgba(var(--lp-glow-rgb),.32) 0%,
    rgba(124,58,237,.26) 100%) !important;
  box-shadow: 0 0 36px rgba(var(--lp-glow-rgb),.22), inset 0 1px 0 rgba(255,255,255,.1) !important;
  transform: translateY(-1px);
}

.landing-auth-slot {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ══ HERO LAYOUT ═════════════════════════════════════════════════ */
.lp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: 16px;
  align-items: start;
}

/* ── Left panel ── */
.lp-hero-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 36px 32px;
  border-radius: var(--lp-radius-xl);
  border: 1px solid var(--lp-border);
  background:
    radial-gradient(ellipse 70% 55% at 0% 0%, rgba(var(--lp-glow-rgb),.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(124,58,237,.05) 0%, transparent 55%),
    linear-gradient(160deg, rgba(255,255,255,.038) 0%, rgba(255,255,255,.012) 100%),
    var(--lp-surface);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.04) inset,
    0 24px 64px rgba(0,0,0,.4);
  overflow: hidden;
  position: relative;
  transition: background .5s ease, border-color .4s ease;
}
.lp-hero-left::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse 80% 60% at 0% 0%, rgba(var(--lp-glow-rgb),.05) 0%, transparent 55%);
  pointer-events: none;
  transition: background .5s ease;
}

/* Live eyebrow badge */
.lp-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(52,211,153,.1);
  border: 1px solid rgba(52,211,153,.22);
  color: #4ade80;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.lp-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  will-change: opacity, transform;
  animation: lp-pulse-dot 2.4s ease-in-out infinite;
}
@keyframes lp-pulse-dot {
  0%,100% { opacity: 1;   scale: 1; }
  50%      { opacity: .65; scale: 1.3; }
}

/* Hero heading */
.lp-hero-h1 {
  display: flex;
  flex-direction: column;
  gap: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.6rem, 4.8vw, 4rem);
  line-height: .96;
  letter-spacing: -.06em;
  margin: 0;
}
.lp-hero-prefix {
  color: #c8d4e8;
  font-weight: 700;
}
.lp-hero-morph {
  display: block;
  background: linear-gradient(125deg, var(--lp-glow) 0%, #a855f7 55%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  animation: lp-grad-shift 7s linear infinite;
  transition: opacity .25s ease, filter .25s ease;
  will-change: opacity, filter;
}
@keyframes lp-grad-shift {
  0%    { filter: hue-rotate(0deg); }
  100%  { filter: hue-rotate(30deg); }
}
.lp-hero-morph.morph-out { opacity: 0; filter: blur(12px); }
.lp-hero-morph.morph-in  { opacity: 1; filter: blur(0); }

.lp-hero-sub {
  margin: 0;
  color: #6a7a96;
  font-size: .98rem;
  line-height: 1.65;
  max-width: 50ch;
}

/* ── Mode pill strip ── */
.lp-mode-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.lp-mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.04);
  color: #6a7a96;
  font: inherit;
  font-size: .81rem;
  font-weight: 700;
  cursor: pointer;
  transition: color .15s, background .15s, border-color .15s, box-shadow .15s, transform .1s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  letter-spacing: .01em;
}
.lp-mode-pill svg {
  width: 13px; height: 13px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}
.lp-mode-pill:hover {
  color: #c8d4e8;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.16);
  transform: translateY(-1px);
}
.lp-mode-pill.active {
  color: var(--lp-glow);
  background: rgba(var(--lp-glow-rgb),.12);
  border-color: rgba(var(--lp-glow-rgb),.38);
  box-shadow: 0 0 18px rgba(var(--lp-glow-rgb),.18), 0 2px 8px rgba(0,0,0,.2);
}

/* ── Quick-start bar ── */
.lp-quickstart {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.lp-input {
  flex: 1;
  min-width: 0;
  height: 50px;
  padding: 0 16px;
  border-radius: var(--lp-radius-md);
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.055);
  color: #f1f5f9;
  font: inherit;
  font-size: .9rem;
  transition: border-color .18s, box-shadow .18s, background .18s;
  outline: none;
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset;
}
.lp-input::placeholder { color: #3e4e66; }
.lp-input:focus {
  border-color: rgba(var(--lp-glow-rgb),.48);
  background: rgba(255,255,255,.07);
  box-shadow: 0 0 0 3px rgba(var(--lp-glow-rgb),.1), 0 1px 0 rgba(255,255,255,.04) inset;
}
.lp-input-name {
  max-width: 175px;
  flex: 0 0 auto;
}

.lp-btn-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 50px;
  padding: 0 24px;
  border-radius: var(--lp-radius-md);
  border: none;
  background: linear-gradient(135deg, var(--lp-glow) 0%, color-mix(in srgb, var(--lp-glow) 55%, #7c3aed) 100%);
  color: #03060a;
  font: inherit;
  font-size: .9rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: .01em;
  box-shadow:
    0 6px 28px rgba(var(--lp-glow-rgb),.38),
    0 1px 0 rgba(255,255,255,.25) inset;
  transition: filter .18s, transform .12s, box-shadow .18s;
  -webkit-tap-highlight-color: transparent;
}
.lp-btn-start svg { stroke: currentColor; flex-shrink: 0; }
.lp-btn-start:hover {
  filter: brightness(1.08) saturate(1.1);
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(var(--lp-glow-rgb),.48), 0 1px 0 rgba(255,255,255,.25) inset;
}
.lp-btn-start:active {
  transform: translateY(0);
  filter: brightness(.95);
  transition-duration: 60ms;
}

/* Divider */
.lp-divider-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lp-divider-line { flex: 1; height: 1px; background: rgba(255,255,255,.07); }
.lp-divider-text { color: var(--lp-muted2); font-size: .75rem; letter-spacing: .03em; white-space: nowrap; }

/* Join row */
.lp-join-row { display: flex; gap: 8px; align-items: stretch; }
.lp-input-room { flex: 1; }
.lp-btn-join {
  height: 50px;
  padding: 0 20px;
  border-radius: var(--lp-radius-md);
  border: 1px solid rgba(255,255,255,.11);
  background: rgba(255,255,255,.055);
  color: #c8d4e8;
  font: inherit;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset;
  transition: background .15s, border-color .15s, transform .1s;
}
.lp-btn-join:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.2);
  transform: translateY(-1px);
}
.lp-btn-join:active { transform: translateY(0); }

.lp-join-hint {
  margin: -8px 0 0;
  color: var(--lp-muted2);
  font-size: .74rem;
  line-height: 1.4;
}

/* ── Right column ── */
.lp-hero-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Mode feature card */
.lp-mode-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: var(--lp-radius-xl);
  border: 1px solid rgba(var(--lp-glow-rgb),.18);
  background:
    linear-gradient(160deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.01) 100%),
    var(--lp-surface);
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.04) inset, 0 20px 56px rgba(0,0,0,.4);
  transition: border-color .35s, box-shadow .35s;
}
.lp-mode-card:hover {
  border-color: rgba(var(--lp-glow-rgb),.28);
  box-shadow: 0 0 0 1px rgba(255,255,255,.05) inset, 0 24px 64px rgba(0,0,0,.5), 0 0 48px rgba(var(--lp-glow-rgb),.07);
}

.lp-mode-card-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse 90% 70% at 90% 10%, rgba(var(--lp-glow-rgb),.16) 0%, transparent 55%);
  pointer-events: none;
  transition: background .4s;
}

.lp-mode-card-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 17px;
  color: var(--lp-glow);
  background: rgba(var(--lp-glow-rgb),.1);
  border: 1px solid rgba(var(--lp-glow-rgb),.2);
  box-shadow: 0 0 28px rgba(var(--lp-glow-rgb),.18), inset 0 1px 0 rgba(255,255,255,.08);
  transition: color .3s, background .3s, box-shadow .3s, border-color .3s;
}
.lp-mode-card-icon svg {
  width: 26px; height: 26px;
  stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.lp-mode-card-body { display: flex; flex-direction: column; gap: 6px; }
.lp-mode-card-kicker {
  color: var(--lp-glow);
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .75;
}
.lp-mode-card-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.035em;
  color: #f1f5f9;
  line-height: 1.1;
}
.lp-mode-card-note {
  margin: 0;
  color: var(--lp-muted);
  font-size: .84rem;
  line-height: 1.55;
}
.lp-mode-card-meta { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 2px; }

.lp-mode-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(var(--lp-glow-rgb),.1);
  border: 1px solid rgba(var(--lp-glow-rgb),.22);
  color: var(--lp-glow);
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: background .3s, border-color .3s, color .3s;
}

/* Hidden by default — JS reveals when mode selected */
#create-room-mode-chip { display: none; }
#advanced-room-feedback { display: none; }

/* Advanced room CTA */
.lp-create-advanced-wrap { display: flex; flex-direction: column; gap: 6px; }

/* People online card */
.lp-friends-card {
  padding: 18px;
  border-radius: var(--lp-radius-lg);
  border: 1px solid rgba(244,114,182,.1);
  background:
    linear-gradient(160deg, rgba(255,255,255,.035) 0%, rgba(255,255,255,.01) 100%),
    var(--lp-surface);
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.03) inset;
}
.lp-friends-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8494aa;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.lp-friends-header svg { stroke: #f472b6; flex-shrink: 0; }
.lp-friends-refresh {
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: #4e5e78;
  cursor: pointer;
  margin-left: auto;
  transition: color .15s, background .15s, transform .15s;
}
.lp-friends-refresh:hover {
  color: #8494aa;
  background: rgba(255,255,255,.08);
  transform: rotate(90deg);
}
.lp-friends-refresh svg { stroke: currentColor; }
#meet-friends-list { max-height: 210px; overflow-y: auto; }

/* ══ SOCIAL PROOF STRIP ══════════════════════════════════════════ */
.lp-proof-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 16px 28px;
  border-radius: 18px;
  border: 1px solid var(--lp-border);
  background:
    linear-gradient(90deg, rgba(var(--lp-glow-rgb),.025) 0%, transparent 40%, rgba(124,58,237,.025) 100%),
    rgba(255,255,255,.025);
  box-shadow: 0 0 0 1px rgba(255,255,255,.03) inset;
}
.lp-proof-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 32px;
  text-align: center;
}
.lp-proof-item strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: #e8edf5;
  letter-spacing: -.02em;
}
.lp-proof-item span {
  color: var(--lp-muted2);
  font-size: .71rem;
  margin-top: 2px;
  letter-spacing: .02em;
}
.lp-proof-sep {
  width: 1px;
  height: 30px;
  background: rgba(255,255,255,.07);
  flex-shrink: 0;
}

/* ══ DIRECTORY ═══════════════════════════════════════════════════ */
.lp-directory {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  border-radius: var(--lp-radius-xl);
  border: 1px solid var(--lp-border);
  background:
    linear-gradient(160deg, rgba(255,255,255,.03) 0%, rgba(255,255,255,.01) 100%),
    var(--lp-surface);
  box-shadow: 0 0 0 1px rgba(255,255,255,.03) inset;
}
.lp-directory-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.lp-directory-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: #eef2f8;
  letter-spacing: -.03em;
  margin: 0;
}
.lp-directory-sub {
  margin: 4px 0 0;
  color: var(--lp-muted2);
  font-size: .8rem;
}
.lp-directory-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Search */
.lp-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.lp-search-wrap svg {
  position: absolute;
  left: 11px;
  stroke: #3e4e66;
  pointer-events: none;
  transition: stroke .15s;
}
.lp-search-wrap:focus-within svg { stroke: var(--lp-muted); }
.lp-search-wrap input {
  height: 38px;
  padding: 0 12px 0 34px;
  border-radius: var(--lp-radius-sm);
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.05);
  color: #e2e8f0;
  font: inherit;
  font-size: .81rem;
  width: 210px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.lp-search-wrap input::placeholder { color: #3a4658; }
.lp-search-wrap input:focus {
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 0 0 3px rgba(255,255,255,.04);
}

/* Filters */
.lp-dir-filters { display: flex; gap: 6px; }
.lp-dir-filters select {
  height: 38px;
  padding: 0 28px 0 11px;
  border-radius: var(--lp-radius-sm);
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.05);
  color: #8494aa;
  font: inherit;
  font-size: .79rem;
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234e5e78' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  transition: border-color .15s;
}
.lp-dir-filters select:focus { border-color: rgba(255,255,255,.18); outline: none; }

.lp-dir-count {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(52,211,153,.09);
  border: 1px solid rgba(52,211,153,.2);
  color: #34d399;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .05em;
  white-space: nowrap;
}
.lp-dir-refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(244,114,182,.22);
  background: rgba(244,114,182,.07);
  color: #f9a8d4;
  font: inherit;
  font-size: .76rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.lp-dir-refresh-btn:hover { background: rgba(244,114,182,.14); }

/* Room grid */
.lp-rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

/* Room card hover tint */
.room-item { cursor: pointer; }
.room-item:hover .room-item-cta {
  background: rgba(var(--lp-glow-rgb, 100,210,255), .13);
  border-color: rgba(var(--lp-glow-rgb, 100,210,255), .32);
  color: var(--lp-glow, #64d2ff);
}

/* ══ HIDE OLD SECTIONS ═══════════════════════════════════════════ */
.landing-mode-grid { display: none !important; }
.landing-mode-panel .landing-section-head { display: none !important; }
.landing-room-actions-row { display: none !important; }
.landing-hero { display: none !important; }
.landing-main-grid { display: none !important; }
.landing-directory-section:not(.lp-directory) { display: none !important; }
.landing-meet-panel { display: none !important; }

/* ══ TOPBAR DESKTOP HIDE LABEL ══════════════════════════════════ */
@media (max-width: 860px) {
  .landing-nav-create span { display: none; }
  .landing-nav-create { padding: 8px 10px !important; gap: 0 !important; }
}

/* ══ RESPONSIVE — TABLET (≤900px) ═══════════════════════════════ */
@media (max-width: 900px) {
  .lp-hero { grid-template-columns: 1fr; }
  .lp-hero-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .lp-friends-card { grid-column: 1 / -1; }
  .lp-create-advanced-wrap { grid-column: 1 / -1; }
  .lp-hero-left { gap: 18px; }
}

/* ══ RESPONSIVE — MOBILE (≤640px) ═══════════════════════════════ */
@media (max-width: 640px) {
  #join-screen { padding: 10px 10px 88px; }

  .landing-shell { padding: 10px 10px 88px; gap: 12px; }

  /* Topbar */
  .landing-topbar {
    padding: 9px 12px;
    border-radius: 16px;
    gap: 10px;
    top: 6px;
  }
  .landing-desktop-nav { display: none; }
  .landing-brand-mark { width: 34px; height: 34px; border-radius: 10px; }
  .landing-brand-mark svg { width: 18px; height: 18px; }
  .landing-brand-title { font-size: .97rem; }

  /* Hero */
  .lp-hero { gap: 11px; }
  .lp-hero-left { padding: 22px 18px; gap: 16px; border-radius: 22px; }
  .lp-hero-h1 { font-size: clamp(2.1rem, 9vw, 2.8rem); }
  .lp-hero-sub { font-size: .87rem; }

  /* Pills */
  .lp-mode-strip { gap: 5px; }
  .lp-mode-pill { padding: 7px 11px; font-size: .78rem; }
  .lp-mode-pill svg { width: 13px; height: 13px; }

  /* Quick-start */
  .lp-quickstart { flex-wrap: wrap; }
  .lp-input-name { max-width: none; flex: 1 1 100%; }
  .lp-btn-start  { flex: 1; }
  .lp-input, .lp-btn-start, .lp-btn-join { height: 46px; }

  /* Right col stack */
  .lp-hero-right { grid-template-columns: 1fr; gap: 10px; }
  .lp-friends-card { grid-column: auto; }
  .lp-create-advanced-wrap { grid-column: auto; }

  /* Mode card */
  .lp-mode-card { padding: 18px; border-radius: 20px; gap: 13px; }
  .lp-mode-card-icon { width: 48px; height: 48px; border-radius: 14px; }
  .lp-mode-card-icon svg { width: 22px; height: 22px; }
  .lp-mode-card-title { font-size: 1.25rem; }

  /* Proof strip */
  .lp-proof-strip { padding: 11px 14px; }
  .lp-proof-item { padding: 0 16px; }
  .lp-proof-item strong { font-size: .85rem; }
  .lp-proof-sep { height: 22px; }
  .lp-proof-item:nth-child(n+4),
  .lp-proof-sep:nth-child(n+4) { display: none; }

  /* Directory */
  .lp-directory { padding: 16px; border-radius: 20px; gap: 14px; }
  .lp-directory-controls { width: 100%; flex-wrap: wrap; }
  .lp-search-wrap { width: 100%; }
  .lp-search-wrap input { width: 100%; }
  .lp-dir-filters { width: 100%; }
  .lp-dir-filters select { flex: 1; }
  .lp-rooms-grid { grid-template-columns: 1fr; gap: 10px; }
}

/* ══ RESPONSIVE — SMALL (≤400px) ════════════════════════════════ */
@media (max-width: 400px) {
  .lp-hero-left { padding: 18px 14px; gap: 14px; }
  .lp-mode-pill { padding: 7px 9px; }
  .lp-mode-pill .lp-mode-label { display: none; }
  .lp-mode-pill svg { width: 15px; height: 15px; }
  .lp-proof-item:nth-child(n+2),
  .lp-proof-sep { display: none; }
}

/* ══ ANIMATIONS ══════════════════════════════════════════════════ */
@keyframes lp-fade-up {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.lp-hero-left  { animation: lp-fade-up .5s cubic-bezier(.22,1,.36,1) both; will-change: opacity; }
.lp-hero-right { animation: lp-fade-up .54s .07s cubic-bezier(.22,1,.36,1) both; will-change: opacity; }
.lp-proof-strip{ animation: lp-fade-up .46s .12s cubic-bezier(.22,1,.36,1) both; will-change: opacity; }
.lp-directory  { animation: lp-fade-up .46s .16s cubic-bezier(.22,1,.36,1) both; will-change: opacity; }

@media (prefers-reduced-motion: reduce) {
  .lp-hero-left, .lp-hero-right, .lp-proof-strip, .lp-directory { animation: none; }
  .lp-live-dot { animation: none; }
  .lp-hero-morph { animation: none; transition: none; }
}

/* ══ MOBILE BOTTOM NAV — enhanced ═══════════════════════════════ */
@media (max-width: 640px) {
  #landing-mobile-nav {
    background: rgba(10,10,18,.9);
    backdrop-filter: blur(24px) saturate(1.5);
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
    border-top: 1px solid rgba(255,255,255,.07);
    box-shadow: 0 -12px 32px rgba(0,0,0,.5);
  }
}

/* ══ TOPBAR AUTH SLOT — sign-in btn ══════════════════════════════ */
.lp-signin-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.06);
  color: #c8d4e8;
  font: inherit;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s;
  white-space: nowrap;
}
.lp-signin-btn:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.18);
  transform: translateY(-1px);
}
