/* ==========================================================================
   VibeCheck — Design System
   Chrome de l'app : sombre & éditorial, accent "mood ring" (dégradé animé).
   Chaque carte-résultat porte sa propre palette (définie inline via JS).
   ========================================================================== */

:root {
  /* Chrome global */
  --bg: #0B0B10;
  --bg-elevated: #14141C;
  --bg-card: #1A1A24;
  --border: rgba(245, 241, 232, 0.10);
  --text: #F5F1E8;
  --text-dim: rgba(245, 241, 232, 0.62);
  --text-faint: rgba(245, 241, 232, 0.38);

  /* Mood ring gradient */
  --mood-1: #FF6EC7;
  --mood-2: #7B61FF;
  --mood-3: #00E5FF;
  --mood-gradient: linear-gradient(120deg, var(--mood-1), var(--mood-2) 50%, var(--mood-3));

  /* Typography */
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Space Grotesk", "Helvetica Neue", sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;

  /* Layout */
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --max-w: 480px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

html {
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(255,110,199,0.10), transparent 60%),
    radial-gradient(1000px 600px at 100% 10%, rgba(0,229,255,0.08), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* Icônes SVG inline : taille par défaut + tailles contextuelles */
.icon { display: inline-flex; align-items: center; justify-content: center; vertical-align: -3px; }
.icon svg { width: 16px; height: 16px; display: block; }
.eyebrow .icon svg, .app-footer .icon svg { width: 13px; height: 13px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* --------------------------------------------------------------------------
   App shell
   -------------------------------------------------------------------------- */

#app {
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: 100dvh;
  padding: calc(20px + var(--safe-top)) 20px calc(28px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  position: relative;
}

.screen {
  display: none;
  flex: 1;
  flex-direction: column;
  animation: screen-in 420ms cubic-bezier(.2,.8,.2,1);
}
.screen.is-active { display: flex; }

@keyframes screen-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   Topbar / brand
   -------------------------------------------------------------------------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.brand .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--mood-gradient);
  background-size: 200% 200%;
  animation: mood-shift 6s ease-in-out infinite;
}

.lang-switch {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 11px;
  transition: border-color 150ms ease, color 150ms ease;
}
.lang-switch:hover { border-color: rgba(245,241,232,0.35); color: var(--text); }

@keyframes mood-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* --------------------------------------------------------------------------
   Home screen
   -------------------------------------------------------------------------- */

.home {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding-bottom: 10px;
}

.home-visual {
  width: 128px; height: 128px;
  margin: 0 auto 28px;
  position: relative;
}

.ring-svg { width: 100%; height: 100%; }
.ring-svg circle.ring-track { stroke: var(--border); fill: none; }
.ring-svg circle.ring-fill {
  fill: none;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 14px;
}

h1.title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 9vw, 44px);
  line-height: 1.08;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

h1.title .grad {
  background: var(--mood-gradient);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: mood-shift 6s ease-in-out infinite;
  font-style: italic;
}

.subtitle {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 340px;
  margin: 0 auto 30px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
}

.badge {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.badge svg { width: 13px; height: 13px; flex-shrink: 0; }

.profiles-strip {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.profiles-strip span {
  font-size: 20px;
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  padding: 17px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
  width: 100%;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
  background: var(--mood-gradient);
  background-size: 200% 200%;
  color: #0B0B10;
  animation: mood-shift 8s ease-in-out infinite;
  box-shadow: 0 10px 30px -8px rgba(123, 97, 255, 0.55);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.btn-row { display: flex; gap: 10px; }
.btn-row .btn { width: auto; flex: 1; }

/* --------------------------------------------------------------------------
   Quiz screen
   -------------------------------------------------------------------------- */

.quiz-header {
  margin-bottom: 26px;
}

.progress-track {
  height: 6px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
  margin-bottom: 10px;
}
.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--mood-gradient);
  background-size: 200% 200%;
  animation: mood-shift 4s ease-in-out infinite;
  width: 12.5%;
  transition: width 420ms cubic-bezier(.2,.8,.2,1);
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
}

.question-icon {
  width: 44px; height: 44px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.question-icon svg { width: 22px; height: 22px; color: var(--mood-2); }

h2.question-text {
  font-family: var(--font-display);
  font-size: clamp(24px, 6.5vw, 30px);
  line-height: 1.22;
  font-weight: 600;
  margin: 0 0 26px;
  letter-spacing: -0.01em;
}

.answers {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.answer-btn {
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 17px 18px;
  font-size: 15.5px;
  line-height: 1.4;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}
.answer-btn:hover { border-color: rgba(245,241,232,0.28); }
.answer-btn:active { transform: scale(0.985); }
.answer-btn.is-selected {
  border-color: transparent;
  background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
              var(--mood-gradient) border-box;
  border: 2px solid transparent;
}

.answer-letter {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(245,241,232,0.06);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  flex-shrink: 0;
}

.quiz-footer {
  margin-top: auto;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.quiz-back {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-faint);
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  padding: 8px 0;
}
.quiz-back svg { width: 14px; height: 14px; }
.quiz-back:disabled { opacity: 0; pointer-events: none; }

/* --------------------------------------------------------------------------
   Loading / calcul
   -------------------------------------------------------------------------- */

.loading-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 22px;
}
.loading-ring {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: conic-gradient(var(--mood-1), var(--mood-2), var(--mood-3), var(--mood-1));
  animation: spin 1.1s linear infinite;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.03em;
}

/* --------------------------------------------------------------------------
   Result screen
   -------------------------------------------------------------------------- */

.result-screen { padding-top: 4px; }

.result-intro {
  text-align: center;
  margin-bottom: 20px;
}
.result-intro .eyebrow { margin-bottom: 8px; }
.result-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 6vw, 28px);
  margin: 0;
  font-weight: 600;
}

/* La carte story elle-même : ratio 9:16, capturée en PNG */
.story-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,0.55);
  margin-bottom: 22px;
  border: 1px solid var(--border);
}

.story-card {
  width: 100%;
  aspect-ratio: 9 / 16;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 6.5% 7%;
  background: var(--card-bg, #111);
  color: var(--card-text, #fff);
  font-family: var(--font-body);
  overflow: hidden;
}

.story-card::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(140% 90% at 15% 0%, var(--card-accent, rgba(255,255,255,.25)) 0%, transparent 55%),
    radial-gradient(120% 80% at 100% 100%, var(--card-accent2, rgba(255,255,255,.18)) 0%, transparent 60%);
  opacity: 0.55;
  pointer-events: none;
}

.story-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52vw;
  line-height: 1;
  opacity: 0.10;
  transform: rotate(-8deg) translateY(4%);
  pointer-events: none;
}

.story-header {
  position: relative;
  font-family: var(--font-mono);
  font-size: 3.4vw;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.72;
  margin-bottom: 4%;
}

.story-emoji {
  position: relative;
  font-size: 15vw;
  line-height: 1;
  margin-bottom: 3%;
  filter: drop-shadow(0 10px 25px rgba(0,0,0,0.25));
}

.story-name {
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 9.5vw;
  line-height: 1.03;
  letter-spacing: -0.01em;
  margin: 0 0 3.5%;
}

.story-adjectives {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 2%;
  margin-bottom: 4.5%;
}
.story-adjectives span {
  font-family: var(--font-mono);
  font-size: 3vw;
  letter-spacing: 0.02em;
  border: 1px solid var(--card-text-35, rgba(255,255,255,.35));
  border-radius: 999px;
  padding: 1.6% 3.2%;
  opacity: 0.9;
}

.story-quote {
  position: relative;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 4.3vw;
  line-height: 1.4;
  opacity: 0.92;
  margin-bottom: 5%;
  max-width: 92%;
}

.story-palette {
  position: relative;
  display: flex;
  gap: 2.5%;
  margin-top: auto;
  margin-bottom: 6%;
}
.story-palette div {
  flex: 1;
  height: 5.5vw;
  border-radius: 3px;
}

.story-footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4%;
  border-top: 1px solid var(--card-text-22, rgba(255,255,255,.22));
}
.story-footer-brand {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 3.6vw;
  letter-spacing: 0.02em;
}
.story-footer-cta {
  font-family: var(--font-mono);
  font-size: 2.7vw;
  opacity: 0.75;
  text-align: right;
  max-width: 45%;
  line-height: 1.35;
}

.result-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dim);
  text-align: center;
  margin: 0 0 22px;
  padding: 0 4px;
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + var(--safe-bottom));
  transform: translate(-50%, 20px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  padding: 13px 20px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
  z-index: 50;
  white-space: nowrap;
  box-shadow: 0 16px 40px -12px rgba(0,0,0,0.5);
}
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* --------------------------------------------------------------------------
   Footer note
   -------------------------------------------------------------------------- */

.app-footer {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 24px;
}
.app-footer a { color: var(--text-faint); }

/* --------------------------------------------------------------------------
   Contenu SEO statique (sous le test)
   -------------------------------------------------------------------------- */

.seo-content {
  max-width: var(--max-w);
  margin: 8px auto 0;
  padding: 8px 20px calc(40px + var(--safe-bottom));
  border-top: 1px solid var(--border);
}

.seo-block { margin-top: 44px; }
.seo-block:first-child { margin-top: 28px; }

.seo-block h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  line-height: 1.25;
}

.seo-block > p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-dim);
  margin: 0 0 4px;
}

.seo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.seo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 14px;
  display: block;
  text-decoration: none;
  transition: border-color 150ms ease, transform 150ms ease;
}
.seo-card:hover { border-color: rgba(245,241,232,0.3); transform: translateY(-1px); }
.seo-card-emoji { font-size: 22px; display: block; margin-bottom: 8px; }
.seo-card h3 {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--text);
}
.seo-card p {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-dim);
  margin: 0 0 8px;
}
.seo-card-adj {
  font-family: var(--font-mono);
  font-size: 10.5px !important;
  letter-spacing: 0.02em;
  color: var(--text-faint) !important;
  text-transform: uppercase;
  margin: 0 !important;
}

.seo-steps {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.seo-steps li {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-dim);
}
.seo-steps strong { color: var(--text); font-weight: 600; }

.seo-faq { display: flex; flex-direction: column; gap: 8px; }

.seo-faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 16px;
}
.seo-faq-item summary {
  font-size: 14.5px;
  font-weight: 600;
  padding: 14px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.seo-faq-item summary::-webkit-details-marker { display: none; }
.seo-faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--text-faint);
  flex-shrink: 0;
  transition: transform 200ms ease;
}
.seo-faq-item[open] summary::after { transform: rotate(45deg); }
.seo-faq-item p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0 0 16px;
}

@media (max-width: 380px) {
  .seo-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Small screens fine-tuning
   -------------------------------------------------------------------------- */

@media (max-width: 360px) {
  #app { padding-left: 16px; padding-right: 16px; }
  .answer-btn { padding: 14px 15px; font-size: 14.5px; }
}

@media (min-width: 560px) {
  .home-visual { width: 150px; height: 150px; }
}

/* --------------------------------------------------------------------------
   Écran : Gate email (avant révélation du résultat)
   -------------------------------------------------------------------------- */

.gate-screen {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gate-card {
  width: 100%;
  text-align: center;
  padding: 8px 4px;
}

.gate-icon {
  width: 52px; height: 52px;
  margin: 0 auto 20px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.gate-icon svg { width: 24px; height: 24px; color: var(--mood-2); }

.gate-card h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 7vw, 30px);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.gate-subtitle {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 320px;
  margin: 0 auto 28px;
}

.gate-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 15px 16px;
  margin-bottom: 12px;
  text-align: left;
}
.gate-field .icon { color: var(--text-faint); flex-shrink: 0; }
.gate-field .icon svg { width: 18px; height: 18px; }
.gate-field input {
  border: none;
  background: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15.5px;
  width: 100%;
}
.gate-field input::placeholder { color: var(--text-faint); }
.gate-field:focus-within { border-color: rgba(245,241,232,0.35); }

.gate-error {
  font-size: 13px;
  color: #FF6E6E;
  text-align: left;
  margin: -4px 0 14px;
}

.gate-privacy {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-faint);
  margin: 18px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.gate-privacy .icon svg { width: 12px; height: 12px; }

/* ==========================================================================
   Dedicated profile landing page (/aesthetic/{slug}/)
   Static, JS-independent page for SEO — one per profile, per language.
   Reuses --card-* variables set inline (same pattern as the result story card).
   ========================================================================== */

.profile-page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(20px + var(--safe-top)) 20px calc(40px + var(--safe-bottom));
}

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--text-faint);
  margin: 0 0 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.breadcrumb a { color: var(--text-faint); text-decoration: none; }
.breadcrumb a:hover { color: var(--text-dim); text-decoration: underline; }
.breadcrumb span[aria-current] { color: var(--text-dim); }

.profile-hero {
  border-radius: var(--radius-lg);
  padding: 40px 26px 30px;
  text-align: center;
  margin-bottom: 26px;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--card-bg), var(--card-bg2));
  color: var(--card-text);
  position: relative;
  overflow: hidden;
}
.profile-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(140% 90% at 15% 0%, var(--card-accent, rgba(255,255,255,.25)) 0%, transparent 55%),
    radial-gradient(120% 80% at 100% 100%, var(--card-accent2, rgba(255,255,255,.18)) 0%, transparent 60%);
  opacity: 0.5;
  pointer-events: none;
}
.profile-hero > * { position: relative; }
.profile-hero .emoji { font-size: 54px; line-height: 1; margin-bottom: 14px; display: block; }
.profile-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 8vw, 38px);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.profile-hero .tagline {
  font-size: 15.5px;
  line-height: 1.5;
  opacity: 0.85;
  max-width: 380px;
  margin: 0 auto 18px;
}
.profile-hero .adjectives {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin-bottom: 20px;
}
.profile-hero .adjectives span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  border: 1px solid var(--card-text-35, rgba(255,255,255,.35));
  border-radius: 999px;
  padding: 5px 13px;
}
.profile-hero .palette {
  display: flex; gap: 6px; justify-content: center; max-width: 240px; margin: 0 auto;
}
.profile-hero .palette div { flex: 1; height: 22px; border-radius: 4px; }

.profile-section { margin: 30px 0; }
.profile-section h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 12px;
}
.profile-section p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-dim);
  margin: 0;
}

.loves-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.loves-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14.5px; line-height: 1.5; color: var(--text-dim);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.loves-list li svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--mood-2); }

.profile-cta {
  text-align: center;
  padding: 30px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  margin: 34px 0;
}
.profile-cta p {
  font-size: 14px;
  color: var(--text-dim);
  margin: 0 0 16px;
}
.profile-cta .btn { max-width: 320px; margin: 0 auto; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.related-card {
  display: block;
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  transition: border-color 150ms ease;
}
.related-card:hover { border-color: rgba(245,241,232,0.3); }
.related-card .emoji { font-size: 20px; display: block; margin-bottom: 6px; }
.related-card .name {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

@media (max-width: 380px) {
  .related-grid { grid-template-columns: 1fr; }
}
