/* Vantelyra consumer web — styled per the vantelyra-design-system skill.
   Dark-first, gold hairlines, Cormorant display serif, tracked-caps labels. */
@import url("tokens/fonts.css");
@import url("tokens/colors.css");
@import url("tokens/typography.css");
@import url("tokens/spacing.css");
@import url("tokens/effects.css");

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font: var(--text-body-md);
  color: var(--text-body);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold-300); text-decoration: none; transition: color var(--duration-fast) var(--ease); }
a:hover { color: var(--gold-100); }

/* Top bar — blurred, hairline underline, wordmark left */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: var(--surface-overlay);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-2);
}
.topbar-inner {
  max-width: 680px; margin: 0 auto; padding: var(--space-3) var(--space-5);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
}
.brand img { height: 22px; display: block; }
.topbar nav { display: flex; align-items: center; gap: var(--space-5); }
.topbar nav a, .link-button {
  font: var(--text-label); letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--ink-2);
}
.topbar nav a:hover, .link-button:hover { color: var(--gold-100); }
.cta { color: var(--gold-300) !important; }

.container { max-width: 680px; margin: 0 auto; padding: var(--space-7) var(--space-5) var(--space-10); }
.footer {
  max-width: 680px; margin: 0 auto; padding: var(--space-6) var(--space-5);
  color: var(--ink-3); font: var(--text-body-sm); text-align: center;
  border-top: 1px solid var(--line-3);
}

/* Type */
h1 { font: var(--text-display-lg); letter-spacing: var(--tracking-display); margin: 0 0 var(--space-2); }
h2 { font: var(--text-display-sm); margin: var(--space-8) 0 var(--space-3); }
.eyebrow {
  font: var(--text-label); letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 var(--space-2);
}
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }
.small { font: var(--text-body-sm); }

/* Flourish — one per view, under the title */
.flourish {
  display: flex; align-items: center; gap: var(--space-3);
  margin: var(--space-4) 0 var(--space-6); color: var(--gold-400);
}
.flourish::before, .flourish::after { content: ""; height: 1px; flex: 1; background: var(--line-2); }
.flourish span { font-size: 9px; }

/* Cards */
.card {
  background: var(--surface-card);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--space-5) var(--space-5);
  margin-bottom: var(--space-4);
  transition: border-color var(--duration-fast) var(--ease);
}
.card:hover { border-color: var(--line-1); }
.card h3 { font: var(--text-display-sm); margin: 0 0 var(--space-1); }
.card h3 a { color: var(--ink-1); }
.card h3 a:hover { color: var(--gold-200); }
.card-row { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); flex-wrap: wrap; }

/* Goal tile — flat bg-2 with the nouveau tile, protection gradient for text */
.feed-cover {
  border-radius: var(--radius-sm); height: 132px; margin-bottom: var(--space-4);
  background:
    linear-gradient(180deg, transparent 40%, rgba(11, 10, 8, 0.85)),
    url("../img/bg-nouveau-pattern.png") var(--bg-2);
  background-size: cover, 420px;
  display: flex; align-items: flex-end; padding: var(--space-3) var(--space-4);
}
.feed-cover span {
  font: var(--text-label); letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--gold-200);
}
/* Cover with a real goal image (GIF/web image): the image fills the cover and the difficulty
   badge sits over a gradient scrim for legibility. */
.feed-cover-image { position: relative; overflow: hidden; background: var(--bg-2); }
.feed-cover-image img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.feed-cover-image::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, transparent 40%, rgba(11, 10, 8, 0.85));
}
.feed-cover-image span { position: relative; z-index: 2; }
/* Inline content image for achievements and tasks. */
.content-image {
  display: block; width: 100%; max-height: 220px; object-fit: cover;
  border-radius: var(--radius-sm); border: 1px solid var(--line-2); margin: var(--space-3) 0;
}

/* Badges & tags */
.badge {
  display: inline-block; font: var(--text-label); letter-spacing: var(--tracking-caps);
  text-transform: uppercase; border-radius: var(--radius-xs);
  padding: 3px 8px; border: 1px solid var(--line-2); color: var(--ink-2);
}
.badge-ok { color: var(--positive); border-color: currentColor; }
.badge-warn { color: var(--caution); border-color: currentColor; }

/* Buttons — sheen-gold primary, ghost secondary, wine-tinted danger */
button, .button {
  font: var(--text-label); letter-spacing: var(--tracking-caps); text-transform: uppercase;
  border: none; border-radius: var(--radius-sm); cursor: pointer;
  padding: 10px 18px;
  background: var(--sheen-gold); color: var(--ink-inverse);
  box-shadow: var(--shadow-glow);
  transition: transform var(--duration-fast) var(--ease), filter var(--duration-fast) var(--ease);
  display: inline-block;
}
button:hover, .button:hover { filter: brightness(1.06); }
button:active, .button:active { transform: scale(0.98); }
button:focus-visible, .button:focus-visible { outline: none; box-shadow: var(--focus-ring); }
button.secondary {
  background: transparent; color: var(--gold-300);
  border: 1px solid var(--line-1); box-shadow: none;
}
button.secondary:hover { color: var(--gold-100); }
button.danger {
  background: transparent; color: var(--wine-200);
  border: 1px solid var(--wine-400); box-shadow: none;
}
.link-button { background: none; border: none; box-shadow: none; cursor: pointer; padding: 0; }
.inline-form { display: inline; }

/* Forms */
form.stack { display: grid; gap: var(--space-4); max-width: 420px; }
label {
  font: var(--text-label); letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--ink-2); display: block; margin-bottom: var(--space-2);
}
input[type="text"], input[type="email"], input[type="password"] {
  width: 100%; padding: 12px 14px; font: var(--text-body-md); color: var(--ink-1);
  border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  background: var(--bg-1);
  transition: border-color var(--duration-fast) var(--ease);
}
input:hover { border-color: var(--line-1); }
input:focus { outline: none; box-shadow: var(--focus-ring); border-color: transparent; }

/* Flash messages */
.flash {
  border-radius: var(--radius-sm); padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-5); font: var(--text-body-sm);
  border: 1px solid var(--line-2); background: var(--bg-1);
}
.flash-error { color: var(--negative); border-color: rgba(182, 83, 96, 0.4); }
.flash-ok { color: var(--gold-200); }

/* Progress — gold sheen fill on hairline track */
.progress-track {
  background: var(--bg-2); border-radius: var(--radius-pill); height: 6px;
  overflow: hidden; margin: var(--space-3) 0 var(--space-4);
}
.progress-fill { background: var(--sheen-gold); height: 100%; transition: width var(--duration-slow) var(--ease); }

/* Stats — numerals are heroes, set in the display serif */
.stat-row { display: flex; gap: var(--space-4); flex-wrap: wrap; margin: var(--space-6) 0; }
.stat {
  background: var(--surface-card); border: 1px solid var(--line-2);
  border-radius: var(--radius-md); box-shadow: var(--shadow-card);
  padding: var(--space-3) var(--space-5); min-width: 108px;
}
.stat b {
  font: var(--text-display-md); font-feature-settings: var(--numeric-features);
  display: block; color: var(--gold-200);
}
.stat span {
  font: var(--text-label); letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--ink-3);
}

/* Milestone checklist */
ul.checklist { list-style: none; padding: 0; margin: var(--space-2) 0 0; }
ul.checklist li {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-2) 0; border-bottom: 1px solid var(--line-3);
}
ul.checklist li:last-child { border-bottom: none; }
.tick { color: var(--gold-400); }
.lock {
  font: var(--text-label); letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--ink-3);
}
.diamond { color: var(--gold-400); font-size: 9px; }

/* Accent italic — Cormorant italic gold, the art-nouveau flourish word */
.accent-italic { font-style: italic; color: var(--gold-300); }

/* Landing — invite-only gate per ui_kits/landing */
.landing { display: flex; justify-content: center; padding: var(--space-5) 0; }
.landing-card {
  width: 100%; max-width: 440px; position: relative;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 48px 24px 36px;
  background: var(--bg-1); border: 1px solid var(--line-1);
  border-radius: var(--radius-arch); box-shadow: var(--shadow-raised);
}
.landing-inset {
  position: absolute; inset: 8px; pointer-events: none;
  border: 1px solid var(--line-2); border-radius: 190px 190px 4px 4px;
}
.landing-logo { width: 82%; max-width: 320px; height: auto; margin-top: 28px; }
.landing-whiplash { margin: 30px 0 40px; }
.landing-portrait {
  position: relative; width: min(280px, 72%); aspect-ratio: 853 / 1844;
  border-radius: var(--radius-arch); border: 1px solid var(--line-1);
  background: var(--ink-1); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.landing-portrait::before { content: ""; position: absolute; inset: 0; background: var(--sheen-surface); }
.landing-portrait img { width: 100%; display: block; position: relative; }
.landing-eyebrow {
  font: var(--text-label); letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--gold-300); margin: 40px 0 14px;
}
.landing-title { font: 600 2.75rem/1.08 var(--font-display); letter-spacing: var(--tracking-display); margin: 0; }
.landing-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 36px; width: 100%; max-width: 340px; }
.landing-google { height: 52px; display: flex; align-items: center; justify-content: center; }
.landing-note { margin-top: 16px; font: var(--text-body-sm); color: var(--ink-3); }
.landing-foot {
  margin-top: 36px; padding-top: 28px;
  font: var(--text-label); letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--ink-3);
}

/* Evidence forms — inline input + submit */
.evidence-form { display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }
.evidence-form input[type="text"], .evidence-form input[type="url"] { width: auto; flex: 1; min-width: 180px; }
.evidence-form input[type="file"] { color: var(--ink-2); font: var(--text-body-sm); max-width: 230px; }

/* ============================================================================
   Progression App shell (from Claude Design: "Progression App.dc.html")
   Mobile-first tabbed app: Today / Discover / Review / Draw / You
   ========================================================================== */
body.app-shell {
  background: var(--bg-0) url("../img/bg-nouveau-pattern.png") center top / 420px repeat;
}
/* The legacy global button rule (uppercase, tracked caps, gold glow) must not bleed into the
   app-shell's composite button components — they carry their own typography per element. */
button.pill, button.tstat, button.task-card, button.tier-node, button.tier-detail, button.draw-banner {
  text-transform: none; letter-spacing: normal; box-shadow: none; font: inherit; padding: 0;
}
button.tstat { padding: 14px 8px; box-shadow: var(--shadow-card); }
button.task-card, button.tier-detail { box-shadow: var(--shadow-card); }
button.tier-detail { padding: 14px 15px; }
button.draw-banner { box-shadow: var(--shadow-glow); padding: 14px 16px; }
button.pill { padding: 7px 12px; font: 600 0.8125rem/1 var(--font-display); font-feature-settings: var(--numeric-features); }
.app-frame {
  max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh;
  background: var(--bg-0); position: relative;
  display: flex; flex-direction: column;
  border-left: 1px solid var(--line-2); border-right: 1px solid var(--line-2);
}
@media (max-width: 500px) { .app-frame { border: none; } }

/* Top app bar */
.appbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px 6px; flex: none; }
.appbar .brand img { height: 18px; display: block; }
.appbar-pills { display: flex; gap: 8px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent; cursor: pointer; color: var(--ink-1);
  font: 600 0.8125rem/1 var(--font-display); font-feature-settings: var(--numeric-features);
  transition: border-color var(--duration-fast) var(--ease); text-decoration: none;
}
.pill:hover { border-color: var(--line-1); color: var(--ink-1); }
.pill .gem { color: var(--gold-400); font-size: 8px; }
.pill-gold { border-color: var(--line-1); background: var(--accent-muted); color: var(--gold-200); }

/* Screen content */
.screen { flex: 1; overflow-y: auto; padding: 10px 20px 130px; scrollbar-width: none; animation: rise 480ms var(--ease); }
.screen::-webkit-scrollbar { display: none; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes sweepGold { 0% { transform: translateX(-140%); } 100% { transform: translateX(320%); } }

.screen-head { display: flex; flex-direction: column; gap: 4px; margin: 14px 0 6px; }
.screen-head .label, .cap {
  font: var(--text-label); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--ink-3);
}
.screen-head .title { font: var(--text-display-md); letter-spacing: var(--tracking-display); }

/* Bottom tab bar */
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 40;
  width: 100%; max-width: 480px;
  display: flex; padding: 10px 8px calc(14px + env(safe-area-inset-bottom, 12px));
  border-top: 1px solid var(--line-3); background: var(--surface-overlay); backdrop-filter: blur(16px);
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 6px 0; color: var(--ink-3);
}
.tabbar a span { font: 600 9px/1 var(--font-body); letter-spacing: var(--tracking-caps); text-transform: uppercase; }
.tabbar a.active, .tabbar a:hover { color: var(--gold-300); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 108px; transform: translateX(-50%); z-index: 60;
  background: var(--bg-1); border: 1px solid var(--line-1); border-radius: 999px; padding: 11px 20px;
  box-shadow: var(--shadow-raised); font: var(--text-label); letter-spacing: var(--tracking-caps);
  text-transform: uppercase; color: var(--gold-200); white-space: nowrap; max-width: 92vw;
  overflow: hidden; text-overflow: ellipsis; animation: rise 260ms var(--ease);
}
.toast.toast-error { color: var(--wine-200); border-color: var(--wine-300); }

/* Dialog (multiplier etc.) */
dialog.av {
  background: var(--sheen-surface), var(--bg-1); color: var(--ink-1); border: 1px solid var(--line-1);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-raised); padding: 26px 24px; max-width: 340px; width: 88%;
  text-align: center;
}
dialog.av::backdrop { background: var(--surface-overlay); backdrop-filter: blur(10px); }
dialog.av .eyebrow { color: var(--gold-300); }
dialog.av h2 { font: var(--text-display-md); margin: 4px 0 12px; }

/* ---------------- Today ---------------- */
.arc-wrap { position: relative; width: 100%; height: 150px; margin: 4px 0 2px; }
.arc-wrap svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.arc-center { position: absolute; left: 0; right: 0; bottom: 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.arc-banked {
  font: 600 2.75rem/1 var(--font-display); font-feature-settings: var(--numeric-features);
  background: var(--sheen-gold); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tstat-row { display: flex; gap: 10px; margin: 14px 0 24px; }
.tstat {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px;
  background: var(--surface-card); border: 1px solid var(--line-2); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card); padding: 14px 8px; color: var(--ink-1); cursor: default;
}
.tstat b { font: 600 1.375rem/1 var(--font-display); color: var(--gold-300); display: inline-flex; align-items: center; gap: 5px; }
.tstat b.wine { color: var(--wine-200); }
button.tstat { cursor: pointer; }

.task-list { display: flex; flex-direction: column; gap: 10px; }
.task-card {
  position: relative; display: flex; align-items: stretch; width: 100%; text-align: left;
  background: var(--surface-card); border: 1px solid var(--line-2); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card); overflow: hidden; cursor: pointer; padding: 0; color: var(--ink-1);
  font: inherit;
}
.task-card:hover { border-color: var(--line-1); }
.task-card .bar { flex: none; width: 4px; }
.task-card .inner { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 15px 16px; }
.task-card .ring {
  width: 26px; height: 26px; border-radius: 50%; flex: none; border: 1px solid var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; font-size: 10px; color: var(--ink-3);
}
.task-card.done .ring { border-color: transparent; background: var(--sheen-gold); color: var(--ink-inverse); }
.task-card.pending .ring { border-color: var(--gold-500); color: var(--gold-300); }
.task-card .tmain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.task-card .tgoal { font: var(--text-label); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--gold-300); }
.task-card.done .tgoal { color: var(--ink-3); }
.task-card.pending .tgoal { color: var(--gold-200); }
.task-card .ttitle { font: var(--text-body-md); font-weight: 500; }
.task-card.done .ttitle { text-decoration: line-through; color: var(--ink-3); }
.task-card .tstatus { font: var(--text-label); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--ink-3); }
.task-card .tproj { font: 500 1.0625rem/1 var(--font-display); font-feature-settings: var(--numeric-features); color: var(--gold-300); flex: none; }
.task-card.done .tproj, .task-card.pending .tproj { color: var(--ink-3); font: var(--text-label); letter-spacing: var(--tracking-caps); text-transform: uppercase; }
.task-card .pulse { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: var(--radius-md); }
.task-card .pulse::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 42%;
  background: linear-gradient(100deg, transparent, rgba(197,157,95,.20), transparent);
  animation: sweepGold 2.4s var(--ease) infinite;
}
.all-done {
  margin-top: 20px; text-align: center; background: var(--sheen-surface), var(--surface-card);
  border: 1px solid var(--line-1); border-radius: var(--radius-md); box-shadow: var(--shadow-card);
  padding: 30px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px;
}

/* Bottom sheet */
.sheet-scrim {
  position: fixed; inset: 0; z-index: 50; background: var(--surface-overlay); backdrop-filter: blur(16px);
  display: none; align-items: flex-end; justify-content: center;
}
.sheet-scrim.open { display: flex; }
.sheet {
  width: 100%; max-width: 480px; max-height: 88%; overflow-y: auto; scrollbar-width: none;
  background: var(--sheen-surface), var(--bg-1); border-top: 1px solid var(--line-1);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: var(--shadow-raised);
  padding: 14px 22px 36px; display: flex; flex-direction: column; gap: 14px; animation: rise 260ms var(--ease);
}
.sheet .grab { width: 36px; height: 3px; border-radius: 999px; background: var(--line-1); align-self: center; flex: none; }
.sheet .stitle { font: var(--text-display-sm); letter-spacing: var(--tracking-display); }
.sheet .terms { border-top: 1px solid var(--line-3); border-bottom: 1px solid var(--line-3); padding: 4px 0; margin: 4px 0; }
.sheet .term { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-3); }
.sheet .term:last-child { border-bottom: none; }
.sheet .term .v { font: var(--text-body-sm); text-align: right; }
.btn-primary {
  width: 100%; padding: 15px 22px; border-radius: var(--radius-sm); border: none; cursor: pointer;
  background: var(--sheen-gold); color: var(--ink-inverse); box-shadow: var(--shadow-glow);
  font: 600 11px/1 var(--font-body); letter-spacing: var(--tracking-caps); text-transform: uppercase;
}
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: .5; cursor: default; }
.btn-ghost {
  width: 100%; padding: 12px 22px; border-radius: var(--radius-sm); border: 1px solid var(--line-2);
  background: transparent; color: var(--ink-2); cursor: pointer;
  font: 600 10px/1 var(--font-body); letter-spacing: var(--tracking-caps); text-transform: uppercase;
}
.btn-ghost:hover { border-color: var(--line-1); }
.sheet textarea, .sheet input[type="text"], .sheet input[type="url"] {
  width: 100%; background: transparent; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 14px; font: var(--text-body-md); color: var(--ink-1); outline: none; resize: none;
}
.sheet textarea:focus, .sheet input:focus { border-color: var(--line-1); }
.drop {
  min-height: 120px; border: 1px dashed var(--line-1); border-radius: var(--radius-md); background: transparent;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: var(--gold-300); font: var(--text-label); letter-spacing: var(--tracking-caps); text-transform: uppercase;
  cursor: pointer; padding: 16px;
}
.result-big {
  font: 600 3rem/1 var(--font-display); letter-spacing: var(--tracking-display);
  font-feature-settings: var(--numeric-features);
  background: var(--sheen-gold); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------------- Discover ---------------- */
.disc-search { position: relative; margin-bottom: 16px; }
.disc-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.disc-search input {
  width: 100%; background: transparent; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 12px 38px 12px 40px; font: var(--text-body-md); color: var(--ink-1); outline: none;
}
.disc-search input:focus { border-color: var(--line-1); box-shadow: var(--focus-ring); }
.chip-rail { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px 20px; padding: 0 20px 2px; }
.chip-rail::-webkit-scrollbar { display: none; }
.chip-cat { flex: none; display: flex; flex-direction: column; align-items: center; gap: 7px; width: 56px; color: var(--ink-3); }
.chip-cat .disc {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent;
  display: flex; align-items: center; justify-content: center; font: 600 1.125rem/1 var(--font-display);
}
.chip-cat span.lab {
  font: 9px/1.1 var(--font-body); font-weight: 600; letter-spacing: var(--tracking-caps); text-transform: uppercase;
  text-align: center; max-width: 60px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.chip-cat.active { color: var(--gold-200); }
.chip-cat.active .disc { border-color: var(--gold-500); background: var(--accent-muted); box-shadow: 0 0 0 1px var(--gold-500); }
.pursuits { display: flex; flex-direction: column; gap: 18px; }
.pursuit { display: flex; flex-direction: column; gap: 11px; color: var(--ink-1); }
.pursuit .cover {
  position: relative; height: 200px; border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--line-2); background: var(--bg-2);
}
.pursuit .cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pursuit .cover .mood { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: var(--text-label); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--ink-3); }
.pursuit .cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, rgba(11,10,8,.85)); }
.pursuit .cover .tag {
  position: absolute; top: 12px; z-index: 2; font: var(--text-label); letter-spacing: var(--tracking-caps);
  text-transform: uppercase; color: var(--gold-200); border: 1px solid var(--gold-500);
  background: var(--accent-muted); border-radius: 2px; padding: 4px 8px;
}
.pursuit .cover .tag.left { left: 12px; } .pursuit .cover .tag.right { right: 12px; }
.pursuit .cover .foot { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2; display: flex; flex-direction: column; gap: 3px; }
.pursuit .cover .domain { font: var(--text-label); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--gold-200); }
.pursuit .cover .ptitle { font: 600 italic 1.75rem/1.05 var(--font-display); letter-spacing: var(--tracking-display); color: #F3EBE0; }
.pursuit .meta { display: flex; align-items: center; gap: 12px; }
.pursuit .meta .view { margin-left: auto; color: var(--gold-300); font: var(--text-label); letter-spacing: var(--tracking-caps); text-transform: uppercase; }
.pursuit .desc { font: var(--text-body-md); color: var(--ink-2); }

/* ---------------- Goal details ---------------- */
.backlink {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 0; color: var(--gold-300);
  font: var(--text-label); letter-spacing: var(--tracking-caps); text-transform: uppercase; background: none; border: none; cursor: pointer;
}
.gcover { position: relative; height: 210px; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line-2); }
.gcover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gcover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(11,10,8,.85)); }
.gcover .foot { position: absolute; left: 18px; right: 18px; bottom: 14px; z-index: 2; display: flex; flex-direction: column; gap: 4px; }
.gcover .gtitle { font: 600 italic 2.125rem/1.08 var(--font-display); color: #F3EBE0; }
.gcover-arch {
  height: 180px; border-radius: var(--radius-arch) var(--radius-arch) var(--radius-md) var(--radius-md);
  background: var(--bg-2); border: 1px solid var(--line-2); display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end; gap: 6px; padding-bottom: 20px;
}
.gcover-arch .gtitle { font: 600 italic 2.125rem/1.08 var(--font-display); }
.journey .step { display: flex; align-items: center; gap: 16px; padding: 14px 2px; border-bottom: 1px solid var(--line-3); }
.journey .num { font: 600 1.25rem/1 var(--font-display); font-feature-settings: var(--numeric-features); color: var(--ink-3); width: 28px; }
.journey .step.now .num { color: var(--gold-300); }
.journey .step.locked { opacity: .45; }
.journey .jtitle { flex: 1; font: var(--text-body-md); font-weight: 500; }
.journey .jstate { font: var(--text-label); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--ink-3); }
.journey .step.done .jstate { color: var(--teal-300); }
.journey .step.now .jstate { color: var(--gold-300); }
.terms-card { background: var(--surface-card); border: 1px solid var(--line-2); border-radius: var(--radius-md); padding: 4px 18px; }
.terms-card .term { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line-3); }
.terms-card .term:last-child { border-bottom: none; }
.terms-card .term .v { font: var(--text-body-sm); color: var(--ink-1); text-align: right; }

/* ---------------- Draw (garden path) ---------------- */
.draw-banner {
  width: 100%; text-align: left; cursor: pointer; margin: 8px 0 16px; background: var(--sheen-gold);
  border: none; border-radius: var(--radius-md); box-shadow: var(--shadow-glow); padding: 14px 16px;
  display: flex; align-items: center; gap: 12px; color: var(--ink-inverse);
}
.draw-banner:active { transform: scale(0.99); }
.draw-banner .k { font: 600 10px/1 var(--font-body); letter-spacing: var(--tracking-caps); text-transform: uppercase; opacity: .75; }
.draw-banner .v { font: 600 1.375rem/1.02 var(--font-display); letter-spacing: var(--tracking-display); }
.draw-banner .vr { font: 600 0.9375rem/1.05 var(--font-display); letter-spacing: var(--tracking-display); }
.path-wrap { position: relative; width: 100%; height: 520px; }
.path-wrap > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tier-node {
  position: absolute; transform: translate(-50%,-50%); width: 132px; display: flex; flex-direction: column;
  align-items: center; gap: 5px; background: transparent; border: none; cursor: pointer; padding: 0; color: var(--ink-1);
}
.tier-node .medal {
  position: relative; flex: none; width: 58px; height: 58px; border-radius: 50%; overflow: visible;
  background: #F3EBE0; border: 1px solid var(--line-2); box-shadow: var(--shadow-card);
  display: flex; align-items: center; justify-content: center;
  font: 600 1.5rem/1 var(--font-display); color: var(--ink-inverse);
}
.tier-node.current .medal { box-shadow: var(--shadow-glow); border-color: var(--gold-400); }
.tier-node .medal img { width: 118%; height: 118%; object-fit: contain; position: absolute; }
.tier-node .medal .cnt {
  position: absolute; right: -4px; bottom: -4px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px; background: var(--bg-0); border: 1px solid var(--line-1); color: var(--gold-300);
  font: 600 9px/15px var(--font-body); display: flex; align-items: center; justify-content: center;
}
.tier-node .tname { font: 600 0.8125rem/1.05 var(--font-display); letter-spacing: var(--tracking-display); text-align: center; text-wrap: balance; }
.tier-node.locked { color: var(--ink-3); }
.tier-node.locked .medal { opacity: .6; }
.tier-node .tstate { font: 9px/1.1 var(--font-body); font-weight: 600; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--ink-3); }
.tier-node.current .tstate { color: var(--gold-300); }
.tier-node.cleared .tstate { color: var(--teal-300); }
.tier-node.target .tstate { color: var(--gold-200); }
.you-token { position: absolute; transform: translate(-50%,-50%); z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 3px; pointer-events: none; }
.you-token .dot { width: 26px; height: 26px; border-radius: 50%; background: var(--sheen-gold); border: 1px solid var(--gold-200); color: var(--ink-inverse); display: flex; align-items: center; justify-content: center; font-size: 9px; }
.you-token .lab { font: 9px/1 var(--font-body); font-weight: 600; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--gold-200); background: var(--bg-1); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 7px; }
.standing { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 2px 0 14px; padding-top: 14px; border-top: 1px solid var(--line-3); }
.standing .big { font: 600 2rem/1 var(--font-display); letter-spacing: var(--tracking-display); font-feature-settings: var(--numeric-features); color: var(--gold-300); }
.standing .teal { color: var(--teal-300); }
.tier-detail {
  width: 100%; text-align: left; background: var(--sheen-surface), var(--surface-card); border: 1px solid var(--line-1);
  border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: 14px 15px; cursor: pointer;
  display: flex; flex-direction: column; gap: 11px; color: var(--ink-1); font: inherit;
}
.tier-detail:hover { border-color: var(--gold-500); }
.arch-medal {
  position: relative; flex: none; width: 46px; height: 60px; border-radius: var(--radius-arch); overflow: hidden;
  background: #F3EBE0; border: 1px solid var(--line-1); display: flex; align-items: center; justify-content: center;
  font: 600 1.4rem/1 var(--font-display); color: var(--ink-inverse);
}
.prize-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.prize-cell { display: flex; flex-direction: column; gap: 7px; }
.prize-cell .pimg { position: relative; width: 100%; height: 132px; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line-2); background: var(--bg-2); display: grid; place-items: center; }
.prize-cell .pimg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* No-image prize: a gold-hairline card that names the prize, so it reads clearly as a prize. */
.prize-cell .pimg-empty {
  background: var(--sheen-surface), var(--surface-card); border-color: var(--line-1); padding: 12px;
}
.prize-cell .pimg-empty .pname {
  font: 500 italic 1.0625rem/1.2 var(--font-display); letter-spacing: var(--tracking-display);
  color: var(--gold-200); text-align: center; text-wrap: balance;
}
.prize-cell .plabel { font: 500 0.9375rem/1.15 var(--font-display); letter-spacing: var(--tracking-display); text-wrap: balance; }

/* ---------------- You ---------------- */
.you-head { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; margin: 20px 0 26px; }
.you-avatar { width: 92px; height: 118px; object-fit: cover; border-radius: var(--radius-arch); border: 1px solid var(--line-1); background: var(--ink-1); display: block; }
.you-name { font: 600 1.9rem/1 var(--font-display); letter-spacing: var(--tracking-display); }
.you-rank {
  display: inline-flex; align-items: center; gap: 8px; font: var(--text-label); letter-spacing: var(--tracking-caps);
  text-transform: uppercase; color: var(--gold-300); border: 1px solid var(--gold-500); border-radius: 999px; padding: 6px 12px;
}
.you-lifetime { font: 600 2.9rem/0.9 var(--font-display); letter-spacing: var(--tracking-display); font-feature-settings: var(--numeric-features); }
.ach-rail { display: flex; flex-wrap: nowrap; gap: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; margin-bottom: 26px; }
.ach-rail::-webkit-scrollbar { display: none; }
.ach-medal { display: flex; flex-direction: column; align-items: center; gap: 7px; width: 70px; flex: none; }
.ach-medal .disc {
  width: 60px; height: 60px; border-radius: 50%; border: 1px solid var(--gold-500); background: var(--surface-card);
  box-shadow: var(--shadow-card); display: grid; place-items: center; color: var(--gold-300);
}
.ach-medal .lab { font: 600 9px/1.25 var(--font-body); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--ink-3); text-align: center; }
.wgoal { background: var(--surface-card); border: 1px solid var(--line-2); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: 14px 16px; display: flex; flex-direction: column; gap: 9px; color: var(--ink-1); }
.wgoal:hover { border-color: var(--line-1); }
.wgoal .prog { width: 100%; height: 3px; border-radius: 999px; background: var(--line-3); overflow: hidden; display: block; }
.wgoal .prog i { display: block; height: 100%; background: var(--sheen-gold); border-radius: 999px; }
.you-links { display: flex; flex-direction: column; margin-bottom: 20px; }
.you-links > * { display: flex; justify-content: space-between; padding: 16px 2px; border-bottom: 1px solid var(--line-3); font: var(--text-body-md); color: var(--ink-2); background: none; border-left: none; border-right: none; border-top: none; cursor: pointer; width: 100%; text-align: left; }
.you-links .chev { color: var(--gold-400); }

/* ---------------- Review ---------------- */
.review-chips { display: flex; gap: 8px; margin-bottom: 18px; }
.review-chips button {
  cursor: pointer; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent;
  color: var(--ink-3); font: 600 10px/1 var(--font-body); letter-spacing: var(--tracking-caps); text-transform: uppercase;
}
.review-chips button.active { background: var(--sheen-gold); color: var(--ink-inverse); border-color: transparent; }
.review-card { background: var(--surface-card); border: 1px solid var(--line-2); border-radius: var(--radius-md); box-shadow: var(--shadow-card); overflow: hidden; display: flex; flex-direction: column; margin-bottom: 14px; }
.review-card .rhead { display: flex; align-items: center; gap: 12px; padding: 14px 16px 12px; }
.review-card .avatar {
  width: 38px; height: 38px; flex: none; border-radius: 50%; border: 1px solid var(--line-1); background: var(--bg-2);
  display: grid; place-items: center; font: 600 12px/1 var(--font-display); color: var(--gold-300);
}
.review-card .rmedia { position: relative; margin: 0 16px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line-2); background: var(--bg-2); }
.review-card .rmedia img { display: block; width: 100%; max-height: 260px; object-fit: cover; }
.review-card .rquote { margin: 0 16px; padding: 14px 16px; border-left: 2px solid var(--gold-500); background: var(--bg-1); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font: italic 500 1.0625rem/1.45 var(--font-display); }
.review-card .ractions { display: flex; gap: 10px; padding: 14px 16px 16px; margin-top: 2px; }
.review-card .ractions .approve { flex: 1; cursor: pointer; padding: 12px 0; border-radius: var(--radius-sm); border: none; background: var(--sheen-gold); color: var(--ink-inverse); box-shadow: var(--shadow-glow); font: 600 10px/1 var(--font-body); letter-spacing: var(--tracking-caps); text-transform: uppercase; }
.review-card .ractions .decline { flex: 1; cursor: pointer; padding: 12px 0; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); font: 600 10px/1 var(--font-body); letter-spacing: var(--tracking-caps); text-transform: uppercase; }
.review-card .reason { margin: 0 16px; }
.review-card .reason input { width: 100%; background: transparent; border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 10px 12px; font: var(--text-body-sm); color: var(--ink-1); outline: none; }

/* ---------------- Theme switch (You page) — adult/dark salon vs day salon ---------------- */
.switch { position: relative; width: 44px; height: 26px; display: inline-block; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch .track {
  position: absolute; inset: 0; border-radius: 999px; background: var(--bg-2);
  border: 1px solid var(--line-1); transition: background var(--duration-base) var(--ease);
  pointer-events: none;
}
.switch .knob {
  position: absolute; top: 4px; left: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--ink-3); transition: transform var(--duration-base) var(--ease), background var(--duration-base) var(--ease);
  pointer-events: none;
}
.switch input:checked ~ .track { background: var(--accent-muted); border-color: var(--gold-500); }
.switch input:checked ~ .knob { transform: translateX(18px); background: var(--gold-400); }

/* Light ("day salon") theme: swap the wordmark, drop the midnight pattern, retract the horns. */
/* Show exactly one wordmark per theme. Scoped under .appbar .brand so these win over the
   `.appbar .brand img { display: block }` rule (equal element, more classes). */
.appbar .brand .logo-on-light { display: none; }
html[data-theme="light"] .appbar .brand .logo-on-dark { display: none; }
html[data-theme="light"] .appbar .brand .logo-on-light { display: block; }
html[data-theme="light"] body.app-shell {
  background: var(--bg-0) url("../img/bg-nouveau-pattern-light.png") center top / 420px repeat;
}
html[data-theme="light"] .tabbar a .horns { display: none; }
