/* LifeChat 3.2 — Impero Night Lobby (friendship-first) */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=Outfit:wght@400;500;600;700&display=swap');

:root,
.lc-night,
.lc-disco,
.lc-view {
  --lc-font-display: "Syne", system-ui, sans-serif;
  --lc-font-sans: "Outfit", system-ui, sans-serif;
  --lc-gold: #e8b84a;
  --lc-gold-2: #f5d78a;
  --lc-night-0: #07060a;
  --lc-night-1: #12101a;
  --lc-night-2: #1c1828;
  --lc-ink: #f4efe6;
  --lc-muted: rgba(244, 239, 230, 0.68);
  --lc-border: rgba(232, 184, 74, 0.22);
  --lc-rose: #e86b8a;
  --lc-blue: #e8b84a;
  --lc-cyan: #f5d78a;
  --lc-surface: #16131f;
}

body.nf-option-com_lifechat {
  background:
    radial-gradient(80% 50% at 10% 0%, rgba(232, 184, 74, 0.12), transparent 55%),
    radial-gradient(60% 40% at 90% 10%, rgba(180, 80, 120, 0.14), transparent 50%),
    linear-gradient(180deg, #08070c 0%, #0e0c14 40%, #09080e 100%) !important;
}

.lc-disco,
.lc-night {
  font-family: var(--lc-font-sans);
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1rem 5.5rem;
  color: var(--lc-ink);
}

/* —— Hero: one composition —— */
.lc-night-hero {
  position: relative;
  overflow: hidden;
  min-height: min(72vh, 560px);
  border-radius: 0 0 28px 28px;
  margin: 0 -1rem 1rem;
  padding: 0;
  display: grid;
  align-items: end;
  background:
    radial-gradient(90% 70% at 70% 20%, rgba(232, 184, 74, 0.22), transparent 55%),
    radial-gradient(70% 60% at 10% 80%, rgba(180, 60, 100, 0.2), transparent 50%),
    linear-gradient(165deg, #0a090e 0%, #16121f 55%, #1a1424 100%);
  border-bottom: 1px solid var(--lc-border);
  animation: lc-disco-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.lc-night-hero__glow {
  position: absolute;
  inset: -20% 20% auto;
  height: 55%;
  background: radial-gradient(circle, rgba(245, 215, 138, 0.18), transparent 70%);
  pointer-events: none;
  animation: lc-glow-breathe 5.5s ease-in-out infinite;
}
.lc-night-hero__presence {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.lc-night-hero__face {
  position: absolute;
  top: 18%;
  left: calc(12% + var(--i) * 7.5%);
  transform: translateY(calc(sin(var(--i) * 1.1rad) * 18px));
  animation: lc-face-in 0.55s calc(var(--i) * 0.08s) both;
}
.lc-night-hero__face .lc-userchip__name { display: none; }
.lc-night-hero__face .lc-avatar {
  width: 56px !important;
  height: 56px !important;
  border-radius: 50%;
  border: 2px solid rgba(245, 215, 138, 0.55);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}
.lc-night-hero__empty {
  position: absolute;
  inset: 22% 1rem auto;
  text-align: center;
  color: var(--lc-muted);
  font-weight: 600;
}
.lc-night-hero__copy {
  position: relative;
  z-index: 2;
  padding: 2.2rem 1.35rem 1.6rem;
  background: linear-gradient(180deg, transparent 0%, rgba(8, 7, 12, 0.55) 28%, rgba(8, 7, 12, 0.92) 100%);
}
.lc-night-hero__brand {
  margin: 0;
  font-family: var(--lc-font-display);
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}
.lc-night-hero__brand span {
  color: var(--lc-gold);
}
.lc-night-hero__title {
  margin: 0.45rem 0 0.55rem;
  font-family: var(--lc-font-display);
  font-size: clamp(1.85rem, 5.2vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 16ch;
  color: #fff;
}
.lc-night-hero__lead {
  margin: 0 0 1.1rem;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--lc-muted);
}
.lc-night-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}
.lc-night-hero__fine {
  margin: 0.85rem 0 0;
  font-size: 0.75rem;
  opacity: 0.55;
}

.lc-night-chip {
  display: inline-flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin: 0 0 1rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--lc-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.lc-night-chip strong { color: var(--lc-gold-2); font-weight: 700; }

.lc-ritual {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.5rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid var(--lc-border);
  background:
    linear-gradient(120deg, rgba(232, 184, 74, 0.12), transparent 55%),
    rgba(22, 19, 31, 0.9);
}
.lc-ritual__kicker {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lc-gold);
}
.lc-ritual h2 {
  margin: 0.25rem 0 0;
  font-family: var(--lc-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  max-width: 36rem;
}

/* Buttons */
.lc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none !important;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.lc-btn--gold {
  background: linear-gradient(135deg, #c9962e, #f5d78a 55%, #e8b84a);
  color: #1a1205 !important;
  box-shadow: 0 12px 32px rgba(232, 184, 74, 0.35);
}
.lc-btn--gold:hover { transform: translateY(-2px); }
.lc-btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.lc-btn--sm { padding: 0.5rem 0.95rem; font-size: 0.85rem; }
.lc-btn--pulse {
  animation: lc-match-pulse 2.2s ease-in-out infinite;
}

/* Legacy disco aliases → night buttons */
.lc-disco-btn,
.lc-disco-btn--primary,
.lc-disco-btn--ghost,
.lc-disco-btn--text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none !important;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.lc-disco-btn--primary {
  background: linear-gradient(135deg, #c9962e, #f5d78a 55%, #e8b84a);
  color: #1a1205 !important;
  box-shadow: 0 12px 32px rgba(232, 184, 74, 0.35);
}
.lc-disco-btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.lc-disco-btn--text {
  background: transparent;
  color: rgba(255, 255, 255, 0.75) !important;
}

.lc-disco-section { margin-bottom: 1.75rem; }
.lc-disco-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}
.lc-disco-section__head h2 {
  margin: 0;
  font-family: var(--lc-font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: #fff;
}
.lc-disco-section__head a {
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none !important;
  color: var(--lc-gold) !important;
}

.lc-disco-rooms {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}
.lc-disco-room {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 148px;
  padding: 1rem;
  border-radius: 18px;
  text-decoration: none !important;
  color: #f4efe6 !important;
  background:
    linear-gradient(160deg, rgba(232, 184, 74, 0.16), transparent 45%),
    linear-gradient(180deg, #1a1624, #100e16);
  border: 1px solid rgba(232, 184, 74, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lc-disco-room--voice {
  border-color: rgba(232, 107, 138, 0.35);
  background:
    linear-gradient(160deg, rgba(232, 107, 138, 0.18), transparent 45%),
    linear-gradient(180deg, #1c1420, #100e16);
}
.lc-disco-room:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}
.lc-disco-room__kind {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lc-gold) !important;
  opacity: 0.9;
}
.lc-disco-room__title {
  font-family: var(--lc-font-display);
  font-size: 1.15rem;
  line-height: 1.2;
  color: #fff !important;
}
.lc-disco-room__topic {
  font-size: 0.85rem;
  opacity: 0.8;
  flex: 1;
  color: inherit !important;
}
.lc-disco-room__meta {
  display: flex;
  gap: 0.65rem;
  font-size: 0.75rem;
  opacity: 0.7;
}
.lc-disco-room__meta em { font-style: normal; color: inherit !important; }
.lc-disco-room--empty {
  grid-column: 1 / -1;
  border-style: dashed;
}

.lc-disco-people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 0.65rem;
}
.lc-disco-person {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 0.85rem;
  border-radius: 16px;
  background: rgba(22, 19, 31, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.lc-disco-person .lc-userchip__name {
  color: #fff !important;
  font-weight: 650;
}
.lc-disco-person__why {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--lc-gold-2);
  opacity: 0.9;
}
.lc-disco-person__lv {
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.55;
}
.lc-disco-person__add {
  border: 0;
  background: rgba(232, 184, 74, 0.18);
  color: var(--lc-gold-2);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.lc-disco-comms {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.lc-disco-comm {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  text-decoration: none !important;
  color: inherit !important;
  background: rgba(22, 19, 31, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 650;
}
.lc-disco-comm span { opacity: 0.65; font-weight: 500; font-size: 0.85rem; }

.lc-disco-ice__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.lc-disco-ice__pill {
  border: 1px solid rgba(232, 184, 74, 0.28);
  background: rgba(232, 184, 74, 0.08);
  color: inherit;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}
.lc-disco-ice__pill:hover {
  background: rgba(232, 184, 74, 0.18);
}

.lc-disco-empty,
.lc-disco-nudge {
  font-size: 0.9rem;
  opacity: 0.75;
}
.lc-disco-nudge a { font-weight: 700; color: var(--lc-gold) !important; }

/* —— App bottom nav —— */
.lc-appnav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  width: min(560px, 100%);
  padding: 0.35rem 0.4rem calc(0.45rem + env(safe-area-inset-bottom, 0px));
  background: rgba(10, 9, 14, 0.92);
  border: 1px solid rgba(232, 184, 74, 0.2);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  backdrop-filter: blur(14px);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
}
.lc-appnav__item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: 52px;
  padding: 0.35rem 0.2rem;
  border: 0;
  background: transparent;
  color: rgba(244, 239, 230, 0.55) !important;
  text-decoration: none !important;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 12px;
}
.lc-appnav__item.is-active,
.lc-appnav__item[aria-current="page"],
.lc-appnav__more.is-active > summary {
  color: var(--lc-gold-2) !important;
  background: rgba(232, 184, 74, 0.1);
}
.lc-appnav__item--match .lc-appnav__ico {
  color: var(--lc-gold);
  font-size: 1.15rem;
}
.lc-appnav__ico { font-size: 1.05rem; line-height: 1; }
.lc-appnav__more { position: relative; flex: 1 1 0; }
.lc-appnav__more > summary {
  list-style: none;
  width: 100%;
}
.lc-appnav__more > summary::-webkit-details-marker { display: none; }
.lc-appnav__sheet {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.45rem);
  min-width: 160px;
  padding: 0.45rem;
  border-radius: 14px;
  background: #16131f;
  border: 1px solid rgba(232, 184, 74, 0.25);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  display: grid;
  gap: 0.15rem;
}
.lc-appnav__sheet a {
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  color: #f4efe6 !important;
  text-decoration: none !important;
  font-weight: 650;
  font-size: 0.88rem;
}
.lc-appnav__sheet a:hover { background: rgba(232, 184, 74, 0.12); }

/* —— Match overlay —— */
.lc-match-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(5, 4, 8, 0.72);
  backdrop-filter: blur(8px);
  animation: lc-disco-in 0.28s ease both;
}
.lc-match-card {
  width: min(420px, 100%);
  padding: 1.35rem 1.25rem 1.2rem;
  border-radius: 22px;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(232, 184, 74, 0.22), transparent 60%),
    #16131f;
  border: 1px solid rgba(232, 184, 74, 0.35);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
  text-align: center;
  color: #f4efe6;
}
.lc-match-card__kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lc-gold);
}
.lc-match-card__avatar {
  margin: 0.85rem auto 0.55rem;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(245, 215, 138, 0.55);
  background: #241e30;
}
.lc-match-card__name {
  margin: 0;
  font-family: var(--lc-font-display);
  font-size: 1.45rem;
}
.lc-match-card__ice {
  margin: 0.65rem 0 1.1rem;
  color: var(--lc-muted);
  font-size: 0.95rem;
  line-height: 1.4;
}
.lc-match-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

/* Hide legacy duplicate growth banner on LC pages */
.lc-disco ~ .sx-growth,
.lc-disco .sx-growth { display: none !important; }

.sx-growth {
  position: relative;
  overflow: hidden;
  margin: 1.25rem 0;
  border-radius: 22px;
  padding: 1.4rem 1.35rem;
  border: 1px solid rgba(232, 184, 74, 0.25);
  background:
    radial-gradient(90% 80% at 0% 0%, rgba(232, 184, 74, 0.22), transparent 55%),
    linear-gradient(155deg, #0a090e, #16131f 60%, #1a1420);
  color: #f4efe6;
}
.sx-growth__kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lc-gold);
}
.sx-growth__title {
  margin: 0.35rem 0 0.45rem;
  font-family: var(--lc-font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
}
.sx-growth__btn--primary {
  background: linear-gradient(135deg, #c9962e, #f5d78a) !important;
  color: #1a1205 !important;
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
  font-weight: 700;
  text-decoration: none !important;
}
.sx-growth__btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
  text-decoration: none !important;
}

.lifequest-board,
.lifequest-app { --lq-font-display: "Syne", system-ui, sans-serif; }
.lq-hero-community {
  border-radius: 24px;
  padding: 1.85rem 1.5rem 1.6rem !important;
  margin-bottom: 1.35rem;
  background:
    radial-gradient(100% 80% at 0% 0%, rgba(232, 184, 74, 0.22), transparent 55%),
    linear-gradient(160deg, #0c0a10 0%, #16131f 60%, #1a1420 100%) !important;
  border: 1px solid rgba(232, 184, 74, 0.28) !important;
}
.lq-hero-community .lq-kicker { color: var(--lc-gold) !important; }
.lq-btn-primary {
  background: linear-gradient(135deg, #c9962e, #f5d78a) !important;
  color: #1a1205 !important;
}

@keyframes lc-disco-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes lc-face-in {
  from { opacity: 0; transform: translateY(12px) scale(0.9); }
  to { opacity: 1; transform: none; }
}
@keyframes lc-glow-breathe {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}
@keyframes lc-match-pulse {
  0%, 100% { box-shadow: 0 12px 32px rgba(232, 184, 74, 0.35); }
  50% { box-shadow: 0 12px 40px rgba(245, 215, 138, 0.55); }
}
@media (prefers-reduced-motion: reduce) {
  .lc-night-hero, .lc-night-hero__face, .lc-btn--pulse, .lc-night-hero__glow {
    animation: none !important;
  }
}

@media (min-width: 900px) {
  .lc-night-hero {
    margin: 0 0 1.25rem;
    border-radius: 28px;
    border: 1px solid var(--lc-border);
  }
  .lc-appnav {
    border-radius: 18px;
    bottom: 0.75rem;
  }
  .lc-disco, .lc-night { padding-bottom: 6rem; }
}
