@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600&family=Inter:wght@300;400;500;600&display=swap');


/* Zodiac Star Chart — styles */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: #04050f; color: #e8e8f0; font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
body { overscroll-behavior: none; }
#game-scaler { margin: 0 auto; }
#game-root {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 10%, #1a1240 0%, transparent 55%),
    radial-gradient(ellipse at 80% 80%, #2a0d50 0%, transparent 55%),
    linear-gradient(180deg, #060818 0%, #030410 100%);
  color: #e8e8f0;
}
/* Transient loading overlay (chart casting, synastry) */
.loading-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  z-index: 60;
  background: rgba(4, 5, 15, 0.85);
  backdrop-filter: blur(6px);
  animation: fade-in 180ms ease-out;
}
.loading-overlay img {
  width: 150px; height: 225px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 0 40px rgba(200, 165, 255, 0.35), 0 0 80px rgba(139, 92, 184, 0.25);
  animation: loading-pulse 2s ease-in-out infinite;
}
@keyframes loading-pulse {
  0%, 100% { box-shadow: 0 0 40px rgba(200, 165, 255, 0.35), 0 0 80px rgba(139, 92, 184, 0.25); }
  50% { box-shadow: 0 0 60px rgba(200, 165, 255, 0.55), 0 0 120px rgba(139, 92, 184, 0.4); }
}
.loading-overlay .loading-label {
  margin-top: 20px;
  font-size: 13px; letter-spacing: 3px; text-transform: uppercase;
  color: #d4c5f0;
  animation: splash-pulse 1.8s ease-in-out infinite;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
/* Starfield canvas — sits between bg and content */
.starfield {
  position: absolute; inset: 0;
  z-index: 0; pointer-events: none;
}
/* Splash */
.splash {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  z-index: 50;
  overflow: hidden;
  background: #04050f;
  animation: splash-intro 700ms ease-out;
}
@keyframes splash-intro { from { opacity: 0; } to { opacity: 1; } }
.splash-art {
  position: absolute;
  top: 50%; left: 50%;
  width: 100%; height: auto; max-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: contain;
  animation: splash-zoom 8s ease-out forwards;
}
@keyframes splash-zoom {
  from { transform: translate(-50%, -50%) scale(1); }
  to   { transform: translate(-50%, -50%) scale(1.05); }
}
.splash-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 40%, rgba(4, 5, 15, 0.55) 100%),
    linear-gradient(180deg, transparent 50%, rgba(4, 5, 15, 0.85) 100%);
  pointer-events: none;
}
.splash-content {
  position: relative; z-index: 2;
  text-align: center;
  padding-bottom: 60px;
}
.splash-progress {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 4px;
  text-transform: uppercase;
  animation: splash-pulse 1.8s ease-in-out infinite;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}
@keyframes splash-pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
/* Screens */
.screen {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  overflow: hidden;
  z-index: 2;
}
/* ===== Start screen — full-bleed card with Enter button ===== */
.start-screen {
  padding: 0;
  overflow: hidden;
  background: #000;
}
/* Hide the starfield when start screen is showing so the card sits on pure black. */
#game-root.is-start > .starfield { display: none; }
.start-art {
  position: absolute;
  top: 50%; left: 50%;
  width: 100%;
  height: auto;
  max-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: contain;
  animation: start-breathe 14s ease-in-out infinite alternate;
}
@keyframes start-breathe {
  from { transform: translate(-50%, -50%) scale(1.0); }
  to   { transform: translate(-50%, -50%) scale(1.04); }
}
.start-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center 40%, transparent 45%, rgba(4, 5, 15, 0.3) 80%, rgba(4, 5, 15, 0.7) 100%),
    linear-gradient(180deg, rgba(4, 5, 15, 0.5) 0%, transparent 15%, transparent 70%, rgba(4, 5, 15, 0.8) 92%, rgba(4, 5, 15, 0.95) 100%);
  pointer-events: none;
}
.start-foot {
  position: absolute; left: 0; right: 0; bottom: 36px;
  padding: 0 36px;
  z-index: 2;
  display: flex; justify-content: center;
  animation: start-rise 800ms 200ms cubic-bezier(0.2, 0.9, 0.3, 1) backwards;
}
@keyframes start-rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.start-btn {
  width: 100%;
  max-width: 300px;
  padding: 20px;
  min-height: 56px;
  font-size: 17px;
  letter-spacing: 8px;
  font-family: 'Cormorant Garamond', serif;
  text-transform: uppercase;
  font-weight: 500;
}
/* ===== Input screen ===== */
.input-screen {
  padding: 0;
  overflow: hidden;
}
.input-bg-art {
  position: absolute;
  top: 50%; left: 50%;
  width: 100%;
  height: auto;
  max-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: contain;
  opacity: 0.32;
  filter: blur(2px) saturate(120%);
  animation: input-bg-drift 30s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes input-bg-drift {
  from { transform: translate(-50%, -50%) scale(1); }
  to   { transform: translate(-50%, -50%) scale(1.05); }
}
.input-bg-scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at top, rgba(30, 20, 55, 0.45) 0%, transparent 55%),
    linear-gradient(180deg, rgba(8, 6, 22, 0.6) 0%, rgba(6, 4, 18, 0.85) 100%);
  pointer-events: none;
}
.input-scroll {
  position: absolute; inset: 0;
  padding: 28px 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 1;
}
.screen-header { margin-bottom: 24px; text-align: center; }
.title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px; font-weight: 400; letter-spacing: 3px;
  margin: 0 0 8px 0;
  background: linear-gradient(135deg, #fff 0%, #d4a5e8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(200, 165, 255, 0.3);
}
.subtitle { font-size: 14px; color: #a8a0c8; margin: 0; letter-spacing: 1px; }
.birth-form .field { margin-bottom: 22px; }
.birth-form label {
  display: block; font-size: 13px; text-transform: uppercase; letter-spacing: 2.5px;
  color: #b8a0d8; margin-bottom: 10px; font-weight: 500;
}
.birth-form .hint { text-transform: none; letter-spacing: 0; color: #8a83a8; margin-left: 6px; font-size: 12px; font-weight: 300; }
.birth-form .row { display: flex; gap: 8px; align-items: center; }
.birth-form .time-row.disabled .inp { opacity: 0.3; }
.inp, .sel {
  background: rgba(18, 14, 40, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(200, 165, 255, 0.22);
  color: #fff;
  padding: 14px 14px;
  border-radius: 10px;
  font-size: 16px;  /* ≥16px prevents iOS auto-zoom on focus */
  font-family: inherit;
  flex: 1; min-width: 0;
  min-height: 48px;
  outline: none;
  transition: border-color 180ms, box-shadow 180ms, background 180ms;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.inp:focus, .sel:focus {
  border-color: #c8a5ff;
  box-shadow: 0 0 0 2px rgba(200, 165, 255, 0.18), 0 0 20px rgba(139, 92, 184, 0.25);
  background: rgba(30, 20, 60, 0.7);
}
.colon { color: #b8a0d8; font-size: 20px; }
.chk { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #a8a0c8; text-transform: none; letter-spacing: 0.5px; margin: 0; font-weight: 400; min-height: 44px; padding: 0 8px; }
.chk input { width: 18px; height: 18px; accent-color: #c8a5ff; }
.seg {
  background: rgba(20, 16, 45, 0.55);
  backdrop-filter: blur(10px);
  border-radius: 12px; padding: 4px;
  border: 1px solid rgba(139, 92, 184, 0.2);
}
.seg-btn {
  flex: 1; padding: 14px; background: transparent; color: #a8a0c8; border: none;
  border-radius: 8px; font-size: 15px; font-family: inherit; cursor: pointer;
  letter-spacing: 1px;
  min-height: 44px;
  transition: all 160ms;
}
.seg-btn.active {
  background: linear-gradient(135deg, rgba(139, 92, 184, 0.6), rgba(90, 58, 138, 0.6));
  color: #fff;
  box-shadow: 0 2px 10px rgba(139, 92, 184, 0.3);
}
.search-wrap { position: relative; }
.city-inp { width: 100%; }
.city-results {
  position: absolute; top: 100%; left: 0; right: 0;
  max-height: 260px; overflow-y: auto;
  background: rgba(15, 12, 35, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(139, 92, 184, 0.35);
  border-radius: 10px;
  z-index: 20; margin-top: 6px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}
.city-opt {
  padding: 14px 14px; border-bottom: 1px solid rgba(139, 92, 184, 0.12);
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; font-size: 15px;
  min-height: 48px;
  transition: background 120ms;
}
.city-opt:hover, .city-opt:active { background: rgba(139, 92, 184, 0.2); }
.c-country { color: #a8a0c8; font-size: 13px; }
.btn-primary {
  width: 100%; padding: 18px;
  min-height: 52px;
  color: #fff; border-radius: 14px;
  font-size: 15px; font-weight: 500; letter-spacing: 2.5px; cursor: pointer;
  margin-top: 18px;
  text-transform: uppercase;
  font-family: inherit;
  position: relative;
  transition: transform 120ms, box-shadow 200ms, background 200ms, border-color 200ms;
}
.btn-primary.glass {
  background: linear-gradient(135deg, rgba(200, 165, 255, 0.22), rgba(139, 92, 184, 0.12));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(200, 165, 255, 0.4);
  box-shadow:
    0 4px 24px rgba(139, 92, 184, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}
.btn-primary.glass::before {
  content: ''; position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse at top left, rgba(255, 255, 255, 0.22), transparent 50%);
  pointer-events: none;
}
.btn-primary.glass:hover {
  background: linear-gradient(135deg, rgba(200, 165, 255, 0.35), rgba(139, 92, 184, 0.2));
  border-color: rgba(200, 165, 255, 0.6);
  box-shadow:
    0 6px 32px rgba(200, 165, 255, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary.glass:active { transform: scale(0.98); box-shadow: 0 2px 12px rgba(139, 92, 184, 0.3); }
.btn-primary.glass:disabled { opacity: 0.5; cursor: wait; }
.err { color: #ff7a6b; font-size: 14px; margin-top: 12px; text-align: center; min-height: 18px; }
/* ===== Chart screen ===== */
.chart-screen { padding: 0; }
.chart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(139, 92, 184, 0.15);
  background: rgba(10, 8, 25, 0.5);
  backdrop-filter: blur(12px);
}
.icon-btn {
  background: rgba(139, 92, 184, 0.12); color: #fff; border: 1px solid rgba(139, 92, 184, 0.25);
  font-size: 22px; cursor: pointer;
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 160ms;
}
.icon-btn:active { background: rgba(139, 92, 184, 0.3); }
.chart-title { flex: 1; text-align: center; padding: 0 8px; }
.t-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px; font-weight: 500; letter-spacing: 2px;
  color: #fff;
}
.t-meta { font-size: 12px; color: #a8a0c8; letter-spacing: 0.8px; margin-top: 3px; }
/* Big three strip */
.big-three-strip {
  display: flex; align-items: center;
  padding: 14px 20px;
  gap: 8px;
  border-bottom: 1px solid rgba(139, 92, 184, 0.15);
  background: linear-gradient(180deg, rgba(15, 12, 35, 0.4), rgba(15, 12, 35, 0.2));
  backdrop-filter: blur(10px);
}
.bt-item {
  flex: 1; text-align: center;
  padding: 2px 0;
  position: relative;
}
.bt-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 2px;
  color: #a8a0c8; margin-bottom: 5px;
}
.bt-sign {
  display: flex; align-items: center; justify-content: center; gap: 4px;
}
.bt-sym {
  color: var(--c);
  display: inline-flex; align-items: center;
}
.bt-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px; font-weight: 500; color: #fff;
  letter-spacing: 0.5px;
}
.bt-divider {
  width: 1px; height: 28px;
  background: linear-gradient(180deg, transparent, rgba(139, 92, 184, 0.35), transparent);
}
/* Tabs */
.tabs {
  display: flex;
  background: rgba(10, 8, 25, 0.6);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(139, 92, 184, 0.15);
  position: relative;
  z-index: 2;
}
.tab {
  flex: 1; padding: 16px 4px;
  min-height: 48px;
  background: transparent; border: none;
  color: #8a83a8; font-size: 13px;
  text-transform: uppercase; letter-spacing: 1.8px;
  font-family: inherit; cursor: pointer;
  position: relative;
  transition: color 180ms;
}
.tab.active { color: #fff; }
.tab.active::after {
  content: '';
  position: absolute; bottom: 0; left: 15%; right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #c8a5ff, transparent);
  box-shadow: 0 0 12px rgba(200, 165, 255, 0.7);
}
.tab-content { flex: 1; overflow: hidden; position: relative; transition: opacity 120ms; }
.scroll-view {
  position: absolute; inset: 0;
  overflow-y: auto; padding: 16px;
  -webkit-overflow-scrolling: touch;
}
.scroll-view.no-pad { padding: 0; }
/* ===== Chart wheel ===== */
.wheel-wrap {
  padding: 16px 0 8px;
  display: flex; justify-content: center;
  position: relative;
}
.wheel-wrap::before {
  content: '';
  position: absolute;
  inset: 20px 30px auto 30px; height: 300px;
  background: radial-gradient(ellipse at center, rgba(139, 92, 184, 0.25) 0%, transparent 60%);
  filter: blur(30px);
  z-index: 0;
}
.chart-svg {
  width: 100%; max-width: 390px; height: auto; display: block;
  position: relative; z-index: 1;
}
.legend {
  padding: 20px 16px 24px;
  margin: 8px 12px 20px;
  background: rgba(15, 12, 35, 0.5);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(139, 92, 184, 0.18);
  border-radius: 14px;
}
.leg-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px; font-weight: 500;
  color: #fff; margin-bottom: 14px;
  letter-spacing: 2px; text-align: center;
}
.leg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.leg-row {
  display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 8px;
  font-size: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(139, 92, 184, 0.1);
  position: relative;
}
.leg-sym { font-size: 19px; color: var(--c); text-shadow: 0 0 10px color-mix(in srgb, var(--c) 50%, transparent); }
.leg-name { color: #e8e8f0; font-size: 14px; }
.leg-pos { color: #a8a0c8; font-size: 13px; font-variant-numeric: tabular-nums; }
.leg-sign { font-size: 14px; }
.retro, .retro-sm { color: #ff9b8a; font-size: 12px; font-weight: 600; }
.retro-sm { font-size: 13px; margin-left: 2px; }
/* ===== Cards ===== */
.card {
  background: linear-gradient(135deg, rgba(22, 18, 50, 0.48), rgba(15, 12, 38, 0.32));
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(200, 165, 255, 0.16);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.65;
  color: #d8d0e8;
  box-shadow:
    0 4px 28px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(ellipse at top left, rgba(255, 255, 255, 0.05), transparent 55%);
}
.card > * { position: relative; }
.card h3 {
  font-family: 'Cormorant Garamond', serif;
  margin: 0 0 10px 0;
  font-size: 20px; color: #fff;
  font-weight: 500; letter-spacing: 1.5px;
}
.card h4 {
  margin: 0 0 6px 0;
  font-size: 15px; color: #fff;
  font-weight: 500; letter-spacing: 0.5px;
}
.card p { margin: 0; }
.card p + p { margin-top: 8px; }
.card strong { color: #fff; font-weight: 600; }
.section-label {
  font-size: 12px; text-transform: uppercase; letter-spacing: 2.5px;
  color: #c8a5ff; margin: 22px 4px 14px;
  font-weight: 500;
  display: flex; align-items: center; gap: 10px;
}
.section-label::before, .section-label::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 165, 255, 0.3));
}
.section-label::before { background: linear-gradient(90deg, rgba(200, 165, 255, 0.3), transparent); }
.big-three-card {
  background: linear-gradient(135deg, rgba(139, 92, 184, 0.18), rgba(90, 58, 138, 0.08));
  border-color: rgba(200, 165, 255, 0.3);
}
.balance-card {
  text-align: center;
}
.balance-viz {
  display: flex; justify-content: center;
  margin: 10px auto 14px;
}
.element-svg { filter: drop-shadow(0 0 12px rgba(139, 92, 184, 0.3)); }
.balance-text { text-align: left; font-size: 12.5px; color: #c8c0e0; line-height: 1.6; }
.modality-chart { margin: 4px 0 14px; }
.mod-row { display: grid; grid-template-columns: 80px 1fr 28px; align-items: center; gap: 12px; margin-bottom: 8px; font-size: 13px; }
.mod-label { color: #a8a0c8; letter-spacing: 1px; text-transform: uppercase; font-size: 12px; }
.mod-track { height: 8px; background: rgba(255, 255, 255, 0.06); border-radius: 4px; overflow: hidden; }
.mod-fill { height: 100%; border-radius: 4px; transition: width 400ms ease-out; box-shadow: 0 0 8px currentColor; }
.mod-count { color: #fff; font-size: 14px; text-align: right; font-variant-numeric: tabular-nums; }
.pattern-card {
  background: linear-gradient(135deg, rgba(200, 165, 255, 0.14), rgba(139, 92, 184, 0.06));
  border-color: rgba(200, 165, 255, 0.35);
  position: relative; padding-top: 30px;
}
.pattern-badge {
  position: absolute; top: -1px; left: 14px;
  background: linear-gradient(135deg, #c8a5ff, #8b5cb8);
  color: #fff;
  font-size: 9px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 2px 12px rgba(139, 92, 184, 0.4);
}
.planet-card {
  border-left: 3px solid var(--sign-color, #8b5cb8);
  position: relative;
}
.planet-card::before {
  content: ''; position: absolute; left: -3px; top: 0; bottom: 0; width: 3px;
  background: var(--sign-color, #8b5cb8);
  box-shadow: 0 0 12px var(--sign-color, #8b5cb8);
}
.planet-card-header {
  display: grid; grid-template-columns: 40px 1fr; gap: 14px;
  align-items: center; margin-bottom: 12px;
}
.pc-sym {
  font-size: 26px; text-align: center;
  text-shadow: 0 0 14px currentColor;
}
.pc-title { min-width: 0; }
.pc-name { font-size: 16px; font-weight: 600; color: #fff; letter-spacing: 0.5px; }
.pc-pos { font-size: 13px; color: #a8a0c8; margin-top: 3px; font-variant-numeric: tabular-nums; }
.aspect-card { border-left: 3px solid transparent; position: relative; padding-left: 18px; }
.aspect-card::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 2px; }
.aspect-card.flowing::before { background: #5ed68c; box-shadow: 0 0 10px #5ed68c; }
.aspect-card.tense::before { background: #ff7a6b; box-shadow: 0 0 10px #ff7a6b; }
.aspect-card.friction::before { background: #ffaa4a; box-shadow: 0 0 10px #ffaa4a; }
.aspect-card.awkward::before { background: #c8a5ff; box-shadow: 0 0 10px #c8a5ff; }
.aspect-card.neutral::before { background: #f0c674; box-shadow: 0 0 10px #f0c674; }
.aspect-card.subtle::before { background: #7a7594; }
/* ===== Daily ===== */
.today-card {
  background: linear-gradient(135deg, rgba(139, 92, 184, 0.22), rgba(90, 58, 138, 0.08));
  border-color: rgba(200, 165, 255, 0.3);
  padding: 20px 22px;
}
.today-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; gap: 16px;
}
.today-date {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 500; color: #fff; letter-spacing: 1px;
}
.today-phase {
  font-size: 13px; color: #d4a5e8; letter-spacing: 2px; text-transform: uppercase; margin-top: 5px;
}
.today-moon { flex-shrink: 0; }
.moon-svg { filter: drop-shadow(0 0 16px rgba(255, 249, 232, 0.35)); }
.moon-card { font-size: 15px; color: #d0c8e0; }
.transit-card { padding-left: 20px; }
.transit-card .t-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px; margin-bottom: 10px;
}
.transit-card .t-meta {
  font-size: 12px; color: #b8a0d8;
  text-transform: uppercase; letter-spacing: 1.5px;
  display: block; margin-top: 3px;
}
.t-harmony-dot {
  width: 12px; height: 12px; border-radius: 50%;
  flex-shrink: 0; margin-top: 5px;
}
.t-harmony-dot.flowing { background: #5ed68c; box-shadow: 0 0 10px #5ed68c; }
.t-harmony-dot.tense { background: #ff7a6b; box-shadow: 0 0 10px #ff7a6b; }
.t-harmony-dot.friction { background: #ffaa4a; box-shadow: 0 0 10px #ffaa4a; }
.t-harmony-dot.awkward { background: #c8a5ff; box-shadow: 0 0 10px #c8a5ff; }
.t-harmony-dot.neutral { background: #f0c674; box-shadow: 0 0 10px #f0c674; }
.t-harmony-dot.subtle { background: #7a7594; }
/* ===== Details ===== */
.house-card {
  border-left: 3px solid var(--sign-color, #8b5cb8);
  padding: 14px 18px;
}
.h-header { display: flex; align-items: center; gap: 14px; }
.h-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(200, 165, 255, 0.35), rgba(139, 92, 184, 0.25));
  border: 1px solid rgba(200, 165, 255, 0.3);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 500; font-size: 14px; font-family: 'Cormorant Garamond', serif;
  flex-shrink: 0;
}
.h-body { flex: 1; min-width: 0; }
.h-theme { color: #d8d0e8; font-size: 14px; line-height: 1.4; }
.h-cusp { font-size: 13px; color: #a8a0c8; margin-top: 3px; font-variant-numeric: tabular-nums; }
.aspect-row {
  display: grid; grid-template-columns: 1fr 28px 1fr 48px; align-items: center; gap: 10px;
  padding: 12px 16px; font-size: 13px;
}
.ar-left, .ar-right { color: #e8e8f0; }
.ar-mid { text-align: center; font-size: 16px; color: #c8a5ff; }
.ar-orb { text-align: right; color: #a8a0c8; font-variant-numeric: tabular-nums; font-size: 12px; }
/* Scrollbar */
.scroll-view::-webkit-scrollbar, .city-results::-webkit-scrollbar { width: 4px; }
.scroll-view::-webkit-scrollbar-thumb, .city-results::-webkit-scrollbar-thumb {
  background: rgba(200, 165, 255, 0.35); border-radius: 2px;
}
/* ===== Tier toggle (Simple / Standard) ===== */
.tier-toggle {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-bottom: 22px;
}
.tier-btn {
  position: relative;
  padding: 18px 16px;
  min-height: 100px;
  background: linear-gradient(135deg, rgba(18, 14, 40, 0.55), rgba(15, 10, 35, 0.35));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(139, 92, 184, 0.2);
  border-radius: 14px;
  color: #d0c8e0;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: all 180ms;
  overflow: hidden;
}
.tier-btn::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(ellipse at top left, rgba(255, 255, 255, 0.08), transparent 60%);
  pointer-events: none;
}
.tier-btn.active {
  background: linear-gradient(135deg, rgba(200, 165, 255, 0.22), rgba(139, 92, 184, 0.1));
  border-color: rgba(200, 165, 255, 0.6);
  box-shadow:
    0 4px 20px rgba(200, 165, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.tier-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; font-weight: 500; letter-spacing: 2px;
  color: #fff; margin-bottom: 4px;
}
.tier-price {
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  color: #c8a5ff; margin-bottom: 10px;
  display: inline-flex; align-items: center;
}
.tier-btn.unlocked .tier-price { color: #5ed68c; }
.tier-desc { font-size: 13px; color: #a8a0c8; line-height: 1.45; }
.tp-wallet, .btn-wallet {
  display: inline-flex; vertical-align: -0.22em;
  margin-right: 4px;
  filter: drop-shadow(0 0 4px rgba(34, 197, 94, 0.45));
}
.mat-icon { display: inline-block; }
/* ===== Upgrade card insights list ===== */
.insights-list {
  list-style: none; padding: 0;
  margin: 14px 0 16px;
  text-align: left;
}
.insights-list li {
  display: grid; grid-template-columns: 32px 1fr;
  gap: 14px; align-items: flex-start;
  padding: 12px 0;
  border-top: 1px solid rgba(200, 165, 255, 0.12);
}
.insights-list li:first-child { border-top: none; }
.il-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(200, 165, 255, 0.08);
  filter: drop-shadow(0 0 8px rgba(200, 165, 255, 0.15));
}
.insights-list li > div { display: flex; flex-direction: column; gap: 3px; }
.insights-list strong { color: #fff; font-size: 15px; font-weight: 500; letter-spacing: 0.3px; }
.insights-list li span { color: #a8a0c8; font-size: 13px; line-height: 1.5; }
/* ===== Info panel (below select dropdowns) ===== */
.info-panel {
  margin-top: 10px;
  padding: 11px 13px;
  background: rgba(200, 165, 255, 0.06);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(200, 165, 255, 0.18);
  border-radius: 10px;
  animation: info-in 260ms ease-out;
}
@keyframes info-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.info-tag {
  display: inline-block;
  font-size: 11px; letter-spacing: 1.8px; text-transform: uppercase;
  color: #c8a5ff;
  background: rgba(200, 165, 255, 0.12);
  padding: 4px 10px; border-radius: 10px;
  margin-bottom: 8px;
}
.info-text {
  font-size: 14px; color: #c8c0e0; line-height: 1.55;
}
/* ===== Simple reading screen ===== */
.simple-hero {
  text-align: center;
  padding: 32px 20px;
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(20, 14, 50, 0.7), rgba(15, 10, 40, 0.5));
  border-color: color-mix(in srgb, var(--sign-color) 35%, transparent);
}
.hero-glow {
  position: absolute; inset: -10% -20% auto -20%; height: 80%;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--sign-color) 35%, transparent), transparent 65%);
  filter: blur(24px); pointer-events: none;
}
.hero-sym {
  position: relative;
  color: var(--sign-color);
  line-height: 1;
  display: inline-flex; justify-content: center;
}
.hero-name {
  position: relative;
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px; font-weight: 400; letter-spacing: 4px;
  color: #fff;
  margin-top: 8px;
}
.hero-degree {
  position: relative;
  font-size: 14px; letter-spacing: 2px; color: #d4a5e8;
  margin-top: 8px; text-transform: uppercase;
}
.hero-meta {
  position: relative;
  font-size: 13px; color: #a8a0c8;
  margin-top: 12px; letter-spacing: 0.5px;
}
.simple-themes {
  list-style: none; padding: 0; margin: 10px 0 16px;
}
.simple-themes li {
  padding: 10px 16px;
  background: rgba(139, 92, 184, 0.08);
  border-left: 2px solid #c8a5ff;
  border-radius: 6px;
  margin-bottom: 8px;
  font-size: 14px;
  color: #d0c8e0;
  line-height: 1.55;
}
.trait-pair {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px;
}
.trait-col { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.trait-label {
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: #a8a0c8; margin-bottom: 6px;
}
.trait-label.strengths { color: #5ed68c; }
.trait-label.shadows { color: #ff9b8a; }
.trait-pill {
  font-size: 13px; padding: 5px 12px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.trait-pill.flow { background: rgba(94, 214, 140, 0.14); color: #a8e0bc; border: 1px solid rgba(94, 214, 140, 0.3); }
.trait-pill.tense { background: rgba(255, 122, 107, 0.12); color: #ffc0b5; border: 1px solid rgba(255, 122, 107, 0.3); }
.moon-est {
  background: rgba(20, 30, 55, 0.5);
  border-color: rgba(108, 197, 232, 0.25);
}
.moon-est h4 { color: #a5d0e8; letter-spacing: 1px; }
.upgrade-hint {
  font-size: 13px; color: #a8a0c8; font-style: italic;
  padding-top: 10px; margin-top: 10px;
  border-top: 1px solid rgba(139, 92, 184, 0.15);
}
.simple-inner { padding: 16px 20px 10px; }
.sin-row {
  display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; align-items: center;
  padding: 10px 0 6px;
}
.sin-sym { font-size: 19px; color: var(--c); text-shadow: 0 0 10px color-mix(in srgb, var(--c) 60%, transparent); }
.sin-name { color: #fff; font-size: 15px; font-weight: 500; }
.sin-sign { font-size: 14px; }
.sin-text {
  font-size: 14px; color: #c0b8d8;
  margin: 0 0 14px 36px;
  line-height: 1.6;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(139, 92, 184, 0.08);
}
.simple-inner .sin-text:last-of-type { border-bottom: none; margin-bottom: 0; }
.upgrade-card {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(200, 165, 255, 0.16), rgba(139, 92, 184, 0.06));
  border-color: rgba(200, 165, 255, 0.35);
  text-align: center;
  padding: 22px 20px;
}
.up-glow {
  position: absolute; inset: -20%;
  background: radial-gradient(ellipse at center, rgba(200, 165, 255, 0.25), transparent 55%);
  filter: blur(20px); pointer-events: none;
}
.upgrade-card h3, .upgrade-card p { position: relative; }
.upgrade-card h3 { margin-bottom: 10px; }
.upgrade-card p { margin-bottom: 16px; color: #d4c5f0; font-size: 15px; line-height: 1.55; }
.upgrade-card .btn-primary { margin-top: 8px; position: relative; }
/* ===== Library ===== */
.lib-screen { padding: 0; }
.lib-new {
  width: 100%;
  padding: 16px;
  min-height: 52px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(200, 165, 255, 0.18), rgba(139, 92, 184, 0.08));
  border: 1px dashed rgba(200, 165, 255, 0.4);
  border-radius: 12px;
  color: #d4c5f0;
  font-family: inherit;
  font-size: 15px; letter-spacing: 2px; text-transform: uppercase;
  cursor: pointer;
  transition: all 160ms;
}
.lib-new:hover { background: linear-gradient(135deg, rgba(200, 165, 255, 0.3), rgba(139, 92, 184, 0.15)); }
.lib-card {
  display: flex; align-items: stretch; padding: 0;
  overflow: hidden; min-height: 72px;
}
.lib-main {
  flex: 1; padding: 16px 18px;
  cursor: pointer;
  min-width: 0;
  display: flex; flex-direction: column; justify-content: center;
}
.lib-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px; color: #fff; letter-spacing: 1px;
  margin-bottom: 5px;
}
.lib-sub { font-size: 13px; color: #a8a0c8; letter-spacing: 0.5px; }
.lib-del {
  width: 52px; align-self: stretch;
  background: rgba(255, 122, 107, 0.1);
  border: none; border-left: 1px solid rgba(139, 92, 184, 0.15);
  color: #ff7a6b; font-size: 16px; cursor: pointer;
  transition: background 160ms;
}
.lib-del:hover { background: rgba(255, 122, 107, 0.25); }
.empty-state {
  padding: 44px 20px;
  text-align: center;
  color: #8a83a8;
  font-size: 15px;
  line-height: 1.8;
}
.back-floating {
  position: absolute; top: 14px; left: 14px; z-index: 10;
}
/* ===== Explore screen ===== */
.explore-screen { padding: 0; }
.sub-tabs {
  display: flex;
  overflow-x: auto;
  background: rgba(10, 8, 25, 0.6);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(139, 92, 184, 0.15);
  scrollbar-width: none;
}
.sub-tabs::-webkit-scrollbar { display: none; }
.sub-tab {
  flex-shrink: 0;
  padding: 14px 18px;
  min-height: 48px;
  background: transparent;
  border: none;
  color: #8a83a8;
  font-size: 12px; text-transform: uppercase; letter-spacing: 1.8px;
  font-family: inherit; cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 160ms;
}
.sub-tab.active { color: #fff; border-bottom-color: #c8a5ff; box-shadow: 0 2px 8px rgba(200, 165, 255, 0.3); }
/* ===== Dignity cards ===== */
.dignity-card { border-left: 3px solid transparent; position: relative; }
.dignity-card.strong::before, .dignity-card.mild-strong::before {
  content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 2px;
  background: #5ed68c; box-shadow: 0 0 10px #5ed68c;
}
.dignity-card.mild-strong::before { background: #a8e0bc; box-shadow: 0 0 6px #a8e0bc; }
.dignity-card.weak::before, .dignity-card.mild-weak::before {
  content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 2px;
  background: #ff7a6b; box-shadow: 0 0 10px #ff7a6b;
}
.dignity-card.mild-weak::before { background: #ffaa4a; box-shadow: 0 0 6px #ffaa4a; }
.dignity-card.peregrine::before {
  content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 2px;
  background: #7a7594;
}
.d-header { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 14px; }
.d-sym { font-size: 26px; color: #fff; text-align: center; }
.d-name { font-size: 16px; color: #fff; font-weight: 500; }
.d-deg { font-size: 13px; color: #a8a0c8; font-variant-numeric: tabular-nums; margin-top: 3px; }
.d-score {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px; font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.d-score.pos { color: #5ed68c; text-shadow: 0 0 12px rgba(94, 214, 140, 0.6); }
.d-score.neg { color: #ff7a6b; text-shadow: 0 0 12px rgba(255, 122, 107, 0.6); }
.d-breakdown { list-style: none; padding: 0; margin: 12px 0 0; font-size: 13px; }
.d-breakdown li {
  display: grid; grid-template-columns: 100px 42px 1fr; gap: 10px;
  padding: 6px 0; border-top: 1px solid rgba(139, 92, 184, 0.1);
  align-items: center;
}
.d-rule { color: #c8a5ff; text-transform: uppercase; letter-spacing: 1.5px; font-size: 11px; }
.d-val { font-variant-numeric: tabular-nums; font-size: 13px; }
.d-val.pos { color: #5ed68c; }
.d-val.neg { color: #ff7a6b; }
.d-note { color: #a8a0c8; font-size: 12px; line-height: 1.4; }
/* ===== Events ===== */
.event-list { list-style: none; padding: 0; margin: 8px 0 0; font-size: 14px; }
.event-list li {
  display: flex; justify-content: space-between; padding: 10px 0;
  border-top: 1px solid rgba(139, 92, 184, 0.1);
  gap: 12px;
}
.event-list li:first-child { border-top: none; }
.ev-date { color: #a8a0c8; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.voc-card { background: linear-gradient(135deg, rgba(139, 92, 184, 0.2), rgba(90, 58, 138, 0.05)); border-color: rgba(200, 165, 255, 0.3); }
/* ===== Timeline ===== */
.transit-row { border-left: 3px solid transparent; position: relative; padding-left: 18px; }
.transit-row::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 2px; }
.transit-row.flowing::before { background: #5ed68c; box-shadow: 0 0 8px #5ed68c; }
.transit-row.tense::before { background: #ff7a6b; box-shadow: 0 0 8px #ff7a6b; }
.transit-row.neutral::before { background: #f0c674; box-shadow: 0 0 8px #f0c674; }
.transit-row.awkward::before { background: #c8a5ff; box-shadow: 0 0 8px #c8a5ff; }
.tr-header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; color: #fff; font-weight: 500; }
.tr-asp { font-size: 18px; color: #c8a5ff; }
.tr-body { color: #e8e8f0; }
.tr-dates { font-size: 13px; color: #a8a0c8; margin-top: 6px; font-variant-numeric: tabular-nums; }
.pass-count {
  font-size: 11px; color: #c8a5ff; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 3px 8px;
  background: rgba(200, 165, 255, 0.15); border-radius: 8px;
  margin-left: auto;
}
/* ===== Progressions ===== */
.prog-list { font-size: 14px; }
.prog-header, .prog-row {
  display: grid; grid-template-columns: 26px 88px 1fr auto; gap: 12px;
  align-items: center; padding: 8px 0;
}
.prog-header {
  color: #c8a5ff; font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px;
  border-bottom: 1px solid rgba(139, 92, 184, 0.2); padding-bottom: 10px; margin-bottom: 6px;
}
.prog-row { border-top: 1px solid rgba(139, 92, 184, 0.08); }
.pr-sym { font-size: 18px; color: #fff; text-align: center; }
.pr-name { color: #e8e8f0; }
.pr-pos { color: #d0c8e0; font-variant-numeric: tabular-nums; }
.pr-delta { color: #a8a0c8; font-variant-numeric: tabular-nums; font-size: 13px; }
.mini { font-size: 13px; color: #a8a0c8; margin-top: 8px; }
/* ===== Returns ===== */
.return-card { display: flex; justify-content: space-between; align-items: center; font-size: 15px; padding: 16px 18px; }
.ret-idx { color: #c8a5ff; letter-spacing: 1px; font-size: 15px; }
.ret-date { color: #fff; font-variant-numeric: tabular-nums; font-size: 14px; }
/* ===== Synastry ===== */
.syn-score { background: linear-gradient(135deg, rgba(200, 165, 255, 0.14), rgba(139, 92, 184, 0.06)); }
.ss-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 14px; color: #c8a5ff; text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 10px;
}
.ss-total {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px; color: #fff; font-weight: 500; letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
}
.ss-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: rgba(255, 255, 255, 0.05); gap: 2px; }
.ss-flow { background: linear-gradient(90deg, #3E8C54, #5ed68c); box-shadow: 0 0 8px #5ed68c; }
.ss-tension { background: linear-gradient(90deg, #ff7a6b, #ff5c4d); box-shadow: 0 0 8px #ff7a6b; }
.ss-legend { display: flex; justify-content: space-between; margin-top: 10px; font-size: 13px; }
.ss-legend .flow { color: #5ed68c; }
.ss-legend .tension { color: #ff7a6b; }
.wheel-mini { display: flex; justify-content: center; }
.wheel-mini .chart-svg { max-width: 300px; }
/* ===== Planet popover ===== */
.planet-popover {
  position: absolute; inset: 0;
  background: rgba(3, 4, 12, 0.78);
  backdrop-filter: blur(10px);
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: pp-fade 180ms ease-out;
}
@keyframes pp-fade { from { opacity: 0 } to { opacity: 1 } }
.pp-inner {
  width: 100%;
  max-width: 340px;
  background: linear-gradient(180deg, rgba(20, 14, 50, 0.95), rgba(15, 10, 40, 0.95));
  border: 1px solid color-mix(in srgb, var(--c) 50%, transparent);
  border-radius: 16px;
  padding: 20px 22px;
  position: relative;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.7), 0 0 30px color-mix(in srgb, var(--c) 25%, transparent);
}
.pp-close {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08); border: none;
  color: #fff; cursor: pointer; font-size: 14px;
}
.pp-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.pp-sym { font-size: 38px; color: var(--c); text-shadow: 0 0 18px var(--c); }
.pp-name { font-family: 'Cormorant Garamond', serif; font-size: 22px; color: #fff; letter-spacing: 1px; }
.pp-pos { font-size: 13px; color: #a8a0c8; margin-top: 3px; font-variant-numeric: tabular-nums; }
.pp-meaning { font-size: 14px; color: #d0c8e0; line-height: 1.6; margin: 0 0 16px; }
.pp-dignity {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; background: rgba(200, 165, 255, 0.08);
  border-radius: 10px; margin-bottom: 12px;
}
.pp-d-label { font-size: 12px; color: #c8a5ff; text-transform: uppercase; letter-spacing: 2px; }
.pp-d-score { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 500; font-variant-numeric: tabular-nums; }
.pp-d-score.pos { color: #5ed68c; }
.pp-d-score.neg { color: #ff7a6b; }
.pp-dig-list { list-style: none; padding: 0; margin: 0 0 16px; font-size: 13px; }
.pp-dig-list li { display: flex; justify-content: space-between; padding: 5px 0; border-top: 1px solid rgba(139, 92, 184, 0.1); }
.pp-section-label {
  font-size: 12px; color: #c8a5ff;
  text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 8px; margin-top: 6px;
}
.pp-asp-list { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.pp-asp-list li {
  display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px;
  padding: 6px 0; border-top: 1px solid rgba(139, 92, 184, 0.1);
  border-left: 2px solid transparent; padding-left: 8px;
}
.pp-asp-list li.flowing { border-left-color: #5ed68c; }
.pp-asp-list li.tense { border-left-color: #ff7a6b; }
.pp-asp-list li.neutral { border-left-color: #f0c674; }
.pp-asp-list li.awkward { border-left-color: #c8a5ff; }
.pp-asp-list li.friction { border-left-color: #ffaa4a; }
/* ===== Friends tab ===== */
.tab-content-inner { position: absolute; inset: 0; }
.loading { text-align: center; font-size: 14px; color: #a8a0c8; letter-spacing: 1px; animation: splash-pulse 1.8s ease-in-out infinite; }
.empty-friends { text-align: center; padding: 28px 22px; }
.empty-friends h4 { font-family: 'Cormorant Garamond', serif; font-size: 20px; color: #fff; margin-bottom: 8px; letter-spacing: 1px; }
.empty-friends p { color: #a8a0c8; font-size: 14px; line-height: 1.55; }
.friend-card { padding: 16px 18px; cursor: pointer; min-height: 72px; transition: transform 120ms, background 160ms, border-color 160ms; }
.friend-card:active { transform: scale(0.99); }
.friend-card.busy { opacity: 0.5; pointer-events: none; }
.fc-head { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; }
.fc-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  overflow: hidden; position: relative; flex-shrink: 0;
  background: rgba(200, 165, 255, 0.1);
  border: 1px solid rgba(200, 165, 255, 0.22);
  display: flex; align-items: center; justify-content: center;
}
.fc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.fc-avatar.dimmed { opacity: 0.5; filter: grayscale(0.5); }
.fc-avatar.locked-avatar img { filter: blur(6px) brightness(0.7); }
.avatar-initials {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; color: #d4c5f0; letter-spacing: 1px;
}
.fc-lock {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  background: rgba(0, 0, 0, 0.2);
  text-shadow: 0 0 8px rgba(200, 165, 255, 0.7);
}
.fc-info { min-width: 0; }
.fc-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px; color: #fff; font-weight: 500; letter-spacing: 0.5px;
  margin-bottom: 5px;
}
.fc-sub { font-size: 13px; color: #a8a0c8; }
.fc-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.fc-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; color: #fff;
  background: color-mix(in srgb, var(--c) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
}
.fc-badge .sign-icon { color: var(--c); vertical-align: -0.2em; }
.fc-chevron {
  font-size: 26px; color: #c8a5ff;
  padding-right: 6px;
  opacity: 0.6;
}
.friend-card.unlocked { border-color: rgba(200, 165, 255, 0.3); }
.friend-card.unlocked:hover { background: rgba(30, 22, 55, 0.6); border-color: rgba(200, 165, 255, 0.5); }
.fc-unlock-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 12px;
  min-height: 36px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  font-weight: 600;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.unlock-price { display: inline-flex; align-items: center; gap: 5px; font-size: 15px; }
.up-num { color: #fff; }
.fc-error {
  margin-top: 12px;
  padding: 10px 12px;
  background: rgba(255, 122, 107, 0.12);
  border: 1px solid rgba(255, 122, 107, 0.3);
  border-radius: 8px;
  color: #ffb5a9;
  font-size: 13px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px;
}
.linkish {
  background: transparent; border: none; color: #c8a5ff;
  font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; letter-spacing: 1px; text-decoration: underline;
  min-height: 44px; padding: 10px 4px;
}
.linkish:hover { color: #fff; }
.friend-card.waiting { opacity: 0.6; cursor: default; }
.friend-card.waiting:active { transform: none; }
/* ===== Life area cards ===== */
.intro-card { background: linear-gradient(135deg, rgba(200, 165, 255, 0.12), rgba(139, 92, 184, 0.05)); border-color: rgba(200, 165, 255, 0.25); }
.life-card { padding: 20px 20px 16px; position: relative; }
.life-card h3.la-title {
  margin: 0; padding: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px; font-weight: 500; letter-spacing: 2px; color: #fff;
}
.la-header {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(200, 165, 255, 0.15);
}
.la-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(200, 165, 255, 0.09);
  border: 1px solid rgba(200, 165, 255, 0.22);
  flex-shrink: 0;
}
.life-heart .la-icon { background: rgba(255, 155, 188, 0.1); border-color: rgba(255, 155, 188, 0.3); }
.life-briefcase .la-icon { background: rgba(200, 165, 255, 0.1); border-color: rgba(200, 165, 255, 0.3); }
.life-wallet .la-icon { background: rgba(34, 197, 94, 0.1); border-color: rgba(34, 197, 94, 0.3); }
.life-sun .la-icon { background: rgba(240, 198, 116, 0.1); border-color: rgba(240, 198, 116, 0.3); }
.life-infinity .la-icon { background: rgba(94, 214, 140, 0.1); border-color: rgba(94, 214, 140, 0.3); }
.life-card p { margin-bottom: 14px; font-size: 15px; line-height: 1.7; color: #d8d0e8; }
.life-card p:last-of-type { margin-bottom: 16px; }
.la-factors {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding-top: 12px;
  border-top: 1px solid rgba(139, 92, 184, 0.15);
}
.la-factor {
  font-size: 12px; letter-spacing: 0.5px;
  color: #a8a0c8;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(139, 92, 184, 0.1);
  border: 1px solid rgba(139, 92, 184, 0.22);
  font-variant-numeric: tabular-nums;
}
/* ===== Sign icon (SVG) ===== */
.sign-icon {
  display: inline-block;
  vertical-align: -0.18em;
  flex-shrink: 0;
}
/* ===== Planet popover zodiac glyph alignment ===== */
.pp-pos .sign-icon, .leg-sign .sign-icon, .hc-sign .sign-icon, .pr-pos .sign-icon, .sin-sign .sign-icon {
  vertical-align: -0.22em;
  margin-right: 2px;
}
.bt-sym .sign-icon {
  filter: drop-shadow(0 0 10px color-mix(in srgb, currentColor 60%, transparent));
}
.hero-sym .sign-icon {
  filter: drop-shadow(0 0 24px currentColor) drop-shadow(0 0 48px color-mix(in srgb, currentColor 60%, transparent));
}
.hc-sign { display: inline-flex; align-items: center; gap: 4px; }
/* Sign badge (reusable) */
.sign-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px 3px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--sign-color) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--sign-color) 50%, transparent);
  font-size: 11px; color: #fff;
}
.sign-badge .sb-sym { color: var(--sign-color); font-size: 14px; }
