/* ==========================================================================
   MARIE — Design system (Marie × Valaros palette)
   2026-09-16: realigned to match valaros-startseite.html's lighter look —
   near-black --ink for headings/body text, light violet --brand for
   buttons/links/active states/badges, ivory-dominant surface. Dark
   aubergine (--aubergine/--aubergine-text) now stays reserved for exactly
   one spot: Marie's own wordmark in the app bar — her personal identity
   color, not a general UI accent. Gold still used sparingly (fine lines,
   premium, playing-card details). Cormorant Garamond for card
   names/headings only — never for longer meaning text (a lot gets read
   here). See _design/mockup_v3.html for the original reference screens
   this was extracted from.
   ========================================================================== */

:root {
  /* 2026-09-16: was #FAF7F1 (warm cream) — corrected to match
     valaros-startseite.html's actual --bg exactly (#F4F2F9, a cool pale
     lavender). The site's very first, pre-CSS-load inline style tag uses
     #faf9f5 as a flash-of-unstyled-content fallback only; the real value
     once its stylesheet loads is --bg below — that's the one to match. */
  --ivory: #F4F2F9;
  --ivory-sunken: #EAE5F2;
  --aubergine: #49336B;
  /* Same colour as --aubergine in light mode — split into its own token only
     because dark mode needs to lighten aubergine-as-TEXT (readable on a dark
     ground) without also lightening aubergine-as-BACKGROUND (buttons/cards
     that already carry white text and must stay a deep, saturated block). */
  --aubergine-text: #49336B;
  --aubergine-deep: #30253A;
  --gold: #D5B45C;
  --gold-deep: #9a7230;
  /* Matches valaros-startseite.html's --brand/--brand-soft exactly (2026-09-16,
     Harald: align the app's daily-card/buttons/badges with the new lighter
     website palette — dark aubergine stays reserved for Marie's own
     avatar/wordmark, everything else moves to this lighter violet). */
  --brand: #7B5EA7;
  --brand-deep: #63488C;
  --brand-soft: #F0EAFA;
  --brand-text: #5B3F8C;
  /* General heading/body-emphasis text, matching valaros-startseite.html's
     --ink/--ink-soft exactly — this replaces --aubergine-text/-deep almost
     everywhere; those two stay reserved for the "Marie" wordmark only. */
  --ink: #1C1B22;
  --ink-soft: #5B5468;
  --text-muted: #8a7d9c;
  --text-secondary: #4a4156;
  --tile-border: #e6e0d5;
  --white: #ffffff;
  --badge-gold-bg: #f1e6c9;
  --badge-gold-text: #7a5c14;
  --badge-violet-bg: #e6e0f0;
  --badge-violet-text: #4a3a72;
  --danger: #a3455f;
  --danger-bg: #fbebee;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  /* App-shell width — this is a phone app first; on a wide desktop browser
     without this, every screen stretches edge-to-edge while individual
     elements (card thumbnails, avatars) stay phone-sized, looking sparse
     and making small UI (like the two Marie avatars — tiny brand mark up
     top vs. the larger "Marie deutet" active-state indicator) read as
     oddly duplicated instead of two differently-scaled, distinct things.
     Applied to `body` and to the two viewport-fixed overlays below so
     modals/onboarding stay contained to the same shell rather than
     spanning the full browser width. */
  --app-max-width: 480px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

/* Neutral backdrop visible only on viewports wider than the app shell
   itself — on an actual phone (or a narrow browser tab) body already fills
   the viewport, so this never shows. */
html { background: var(--ivory-sunken); }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: var(--app-max-width);
  margin: 0 auto;
  box-shadow: 0 0 0 1px var(--tile-border), 0 8px 40px rgba(28,27,34,0.08);
}

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

h1, h2, h3, .font-display { font-family: var(--font-display); font-weight: 600; }

/* ---------- App bar ---------- */
.app-bar {
  padding: calc(18px + var(--safe-top)) 18px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.app-bar .wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--aubergine-text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.app-bar .wordmark .spark { color: var(--gold); font-size: 15px; }
.app-logo { width: 32px; height: 32px; flex-shrink: 0; background: url('../img/logo-mark.png') center/contain no-repeat; }
.app-bar .actions { display: flex; align-items: center; gap: 10px; }
.avatar-marie {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: url('https://assets.valaros.com/assets/marie-avatar.png') center/cover no-repeat;
  border: 1.5px solid var(--gold);
}
/* Larger avatar for the few moments Marie should actually feel present —
   the home-screen greeting and while she's actively interpreting — vs. the
   tiny app-bar wordmark version everywhere else. See .marie-active/
   .greeting-row below. */
.avatar-marie-lg {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%;
  background: url('https://assets.valaros.com/assets/marie-avatar.png') center/cover no-repeat;
  border: 2px solid var(--gold);
}
.ask-marie .avatar-marie { width: 34px; height: 34px; margin-right: 8px; border-color: var(--gold); }
.ai-toggle { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.ai-toggle .lbl { font-size: 11px; font-weight: 700; color: var(--text-muted); letter-spacing: 0.04em; }
.toggle-track {
  width: 34px; height: 20px; border-radius: 999px; background: var(--tile-border);
  position: relative; transition: background 0.2s ease; flex-shrink: 0;
}
.toggle-track.on { background: var(--brand); }
.toggle-thumb {
  position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; transition: left 0.2s ease; box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.toggle-track.on .toggle-thumb { left: 16px; }

.lang-chip {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--tile-border);
  border-radius: 999px;
  padding: 5px 12px;
  background: var(--white);
}

/* ---------- Screens / containers ---------- */
.screens { flex: 1; position: relative; overflow: hidden; }
.screen {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: none;
  flex-direction: column;
}
.screen.active { display: flex; }

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--ink);
  margin: 4px 18px 12px;
}

/* ---------- shared card surface ---------- */
.surface {
  background: var(--white);
  border: 0.5px solid var(--tile-border);
  border-radius: 14px;
}

/* ---------- playing-card corner pip ---------- */
.pip {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
}
.pip.red { color: var(--danger); }
.pip .r { font-size: 12px; }
.pip .s { font-size: 10px; margin-top: 1px; }

/* ---------- pills / badges ---------- */
.badge { font-size: 11px; font-weight: 600; padding: 4px 11px; border-radius: 999px; display: inline-block; }
.badge.theme { background: var(--brand-soft); color: var(--brand-text); }
.badge.challenge { background: var(--badge-violet-bg); color: var(--badge-violet-text); }

/* ---------- buttons ---------- */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  border-radius: 10px;
  padding: 12px 20px;
  border: none;
  cursor: pointer;
  text-align: center;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:active { background: var(--brand-deep); }
.btn-ghost { background: transparent; color: var(--brand); border: 1px solid var(--tile-border); }
.btn-block { display: block; width: 100%; }

.field {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--tile-border);
  background: var(--white);
  color: var(--ink);
}
.field:focus { outline: none; border-color: var(--gold); }

/* ---------- "Marie" AI surfaces ---------- */
.ask-marie {
  padding: 15px;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border: none;
  width: 100%;
  text-align: left;
}
.ask-marie .spark { color: var(--gold); font-size: 17px; flex-shrink: 0; }
.ask-marie .t { font-family: var(--font-display); font-weight: 600; font-size: 14px; }
.ask-marie .s { font-size: 11px; color: rgba(255,255,255,0.72); margin-top: 1px; }

/* ---------- bottom tab bar ---------- */
.navbar {
  background: var(--white);
  border-top: 0.5px solid var(--tile-border);
  display: flex;
  padding: 8px 4px calc(10px + var(--safe-bottom));
  flex-shrink: 0;
}
.navbar .item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  padding: 4px 0;
  cursor: pointer;
}
.navbar .lbl { font-size: 10px; font-weight: 600; color: var(--text-muted); }
.navbar .item.on .lbl { color: var(--brand); }
.navbar .item.on svg { stroke: var(--brand); }
.navbar .item svg { stroke: var(--text-muted); width: 21px; height: 21px; }
.navbar .item .dotwrap { position: relative; }
.navbar .item .badge-dot {
  position: absolute; top: -2px; right: -4px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); display: none;
}
.navbar .item .badge-dot.show { display: block; }

/* ---------- loading / toast ---------- */
.spinner {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2.5px solid var(--tile-border); border-top-color: var(--brand);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
/* Certificate/milestone confetti — see js/certificate.js's fireConfetti(). */
@keyframes cert-confetti-fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 0.9; }
  100% { transform: translateY(100vh) rotate(540deg); opacity: 0; }
}

.toast {
  position: fixed; left: 50%; bottom: calc(88px + var(--safe-bottom));
  transform: translateX(-50%) translateY(12px);
  background: var(--ink); color: #fff;
  font-size: 13px; padding: 10px 18px; border-radius: 999px;
  opacity: 0; transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none; z-index: 500; max-width: min(86vw, calc(var(--app-max-width) - 40px)); text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- empty / placeholder state ---------- */
.placeholder {
  margin: 40px 18px; text-align: center; color: var(--text-muted); font-size: 13.5px; line-height: 1.6;
}

/* ---------- Legungen ---------- */
.greeting { padding: 4px 18px 18px; }
.greeting-row { display: flex; align-items: center; gap: 16px; }
.greeting-row .avatar-marie-lg { width: 88px; height: 88px; border-width: 3px; box-shadow: 0 0 0 6px rgba(213, 180, 92, 0.18), 0 6px 18px rgba(73, 51, 107, 0.22); }
.greeting .g-title { font-family: var(--font-display); font-weight: 700; font-size: 27px; color: var(--ink); margin: 0 0 3px; }
.greeting .g-sub { font-size: 14px; color: var(--text-secondary); margin: 0; }

/* Shown while an AI reading is being generated — replaces the generic
   .loading-row/.spinner for this one specific "Marie is actively
   interpreting" moment (readings.js's 4 runXReading() functions); the
   plain spinner stays as-is for other loading states (history, connections). */
.marie-active { display: flex; align-items: center; gap: 14px; padding: 22px 0; }
.marie-active .avatar-marie-lg { animation: marie-breathe 1.8s ease-in-out infinite; }
.marie-active .ma-text { font-size: 13.5px; color: var(--text-muted); }
@keyframes marie-breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(213,180,92,0.32); }
  50% { transform: scale(1.06); box-shadow: 0 0 0 9px rgba(213,180,92,0); }
}

.theme-icons { margin: 0 18px 20px; display: flex; gap: 10px; }
.theme-icon { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
.theme-icon .ti-circle {
  width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 22px; background: var(--ivory-sunken); border: 0.5px solid var(--tile-border);
}
.theme-icon .ti-label { font-size: 11.5px; font-weight: 600; color: var(--ink); text-align: center; }

.quick-links { margin: 0 18px 16px; display: flex; flex-direction: column; gap: 8px; }
.quick-link {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; cursor: pointer;
  background: var(--white); border: 0.5px solid var(--tile-border); border-radius: 12px;
}
.quick-link .ql-icon { font-size: 17px; width: 20px; text-align: center; flex-shrink: 0; }
.quick-link .ql-text { flex: 1; font-size: 13px; font-weight: 600; color: var(--ink); }
.quick-link .ql-arrow { color: var(--text-muted); font-size: 17px; flex-shrink: 0; }

.daily-card {
  margin: 0 18px 18px; padding: 14px; display: flex; flex-direction: column; gap: 10px;
  background: var(--white); border: 0.5px solid var(--tile-border); border-radius: 14px;
}
.daily-card .dc-top { display: flex; align-items: flex-start; gap: 13px; }
.daily-card .dc-thumb {
  width: 56px; aspect-ratio: 3/4.3; object-fit: cover; border-radius: 8px; flex-shrink: 0;
  cursor: zoom-in; transition: width 0.2s ease;
}
.daily-card .dc-thumb--large { width: 132px; cursor: zoom-out; }
.daily-card .dc-body { flex: 1; min-width: 0; }
.daily-card .dc-t {
  font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-muted);
  display: flex; align-items: center; gap: 6px;
}
.daily-card .dc-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex-shrink: 0; }
.daily-card .dc-n { font-family: var(--font-display); font-weight: 600; font-size: 17px; margin-top: 2px; color: var(--ink); }
.daily-card .dc-streak { display: block; margin-top: 3px; font-size: 11.5px; font-weight: 600; color: var(--brand); }
.daily-card .badges { margin: 0; }
.daily-card .dc-actions { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.daily-card .dc-link {
  background: none; border: none; padding: 0; font-size: 12.5px; font-weight: 600;
  color: var(--text-secondary); cursor: pointer; font-family: inherit;
}
.daily-card .dc-link--accent { color: var(--brand); }

.spread-list { padding: 0 18px 24px; display: flex; flex-direction: column; gap: 10px; }
.spread-row { display: flex; align-items: center; gap: 13px; padding: 15px 15px; cursor: pointer; }
.spread-row .sr-name { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--ink); }
.spread-row .sr-desc { font-size: 12.5px; color: var(--text-muted); margin-top: 1px; }
.spread-row .sr-n {
  font-size: 11px; font-weight: 700; color: var(--text-muted);
  background: var(--ivory-sunken); border-radius: 999px; padding: 4px 10px; flex-shrink: 0;
}

/* ── Karten selbst ziehen ── */
.pk-wrap { padding: 4px 18px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pk-instr { margin: 0; text-align: center; font-family: var(--font-display); font-size: 19px; color: var(--aubergine-text); min-height: 48px; display: flex; align-items: center; }
.pk-shuffle { background: var(--brand-soft); color: var(--brand-text); border: 1px solid var(--brand); border-radius: 999px; padding: 8px 20px; font-size: 14px; cursor: pointer; }
.pk-stage { position: relative; width: 100%; height: 190px; overflow: visible; }
.pk-fan { --pkr: min(118px, calc((100vw - 36px) / 2 - 58px)); list-style: none; margin: 0; padding: 0; position: absolute; left: 50%; bottom: 0; width: 0; height: 0; }
.pk-card { position: absolute; left: -15px; bottom: 0; width: 30px; height: 52px; border-radius: 4px; cursor: pointer;
  border: 1px solid var(--gold); box-shadow: 0 1px 3px rgba(48,37,58,.35);
  background: repeating-linear-gradient(45deg, var(--brand-deep) 0 3px, var(--aubergine) 3px 6px);
  transform-origin: 15px 52px; transform: rotate(0deg);
  transition: transform .6s cubic-bezier(.2,.8,.2,1), opacity .2s; }
.pk-open .pk-card { transform: rotate(var(--a)) translateY(calc(var(--pkr) * -1)); }
.pk-shuffling .pk-card { transform: rotate(0deg) translateY(0); }
.pk-open .pk-card:hover { filter: brightness(1.2); }
.pk-card.pk-used { visibility: hidden; }
.pk-fly { position: fixed; z-index: 500; border-radius: 4px; border: 1px solid var(--gold); pointer-events: none;
  background: repeating-linear-gradient(45deg, var(--brand-deep) 0 3px, var(--aubergine) 3px 6px);
  transition: left .5s ease, top .5s ease, width .5s ease, height .5s ease; }
.pk-slots { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; width: 100%; }
.pk-slot { width: 74px; min-height: 76px; border: 1.5px dashed var(--brand); border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 6px 4px; text-align: center; background: var(--brand-soft); position: relative; }
.pk-slot-n { position: absolute; top: 4px; left: 6px; font-size: 11px; color: var(--brand-text); }
.pk-slot-l { font-size: 10.5px; line-height: 1.2; color: var(--text-muted); }
.pk-slot-filled { border-style: solid; border-color: var(--gold); }
.pk-slot-filled::before { content: ''; position: absolute; top: 6px; left: 50%; margin-left: -13px; width: 26px; height: 44px; border-radius: 3px; border: 1px solid var(--gold);
  background: repeating-linear-gradient(45deg, var(--brand-deep) 0 3px, var(--aubergine) 3px 6px); }
.pk-slot-filled .pk-slot-n { display: none; }
.pk-reveal { margin-top: 6px; }
@media (prefers-reduced-motion: reduce) { .pk-card, .pk-fly { transition: none; } }
.drawn-grid { padding: 14px 18px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
/* clamp() instead of a fixed px width — scales with the actual viewport
   (min 92px on narrow phones, max 150px on wide/desktop windows) instead of
   staying the same absolute size regardless of screen width. */
.drawn-card { padding: 10px; width: clamp(92px, 27vw, 150px); text-align: center; }
.dc-img-wrap { position: relative; border-radius: 10px; overflow: hidden; margin-bottom: 8px; }
.dc-img-wrap img { width: 100%; aspect-ratio: 3/4.3; object-fit: cover; }
.dc-img-wrap .pip { position: absolute; top: 5px; left: 5px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.dc-label { font-size: 10px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; }
.dc-name { font-family: var(--font-display); font-weight: 600; font-size: 13.5px; color: var(--ink); margin-top: 2px; }
.dc-tap { font-size: 9.5px; color: var(--text-muted); margin-top: 3px; letter-spacing: 0.03em; }
.drawn-card--tappable { cursor: pointer; }

.drawn-grid--small { justify-content: flex-start; padding: 14px 18px 4px; }
/* .rc-card wraps the thumbnail with its position/name labels underneath —
   same idea as .drawn-card above, just for the more compact result-screen
   strip. Widened slightly (was a bare 44-64px image with no caption) since
   there's now text to read under it, not just a small picture. */
.rc-card { width: clamp(64px, 19vw, 92px); text-align: center; }
/* Own default width so bare .rc-thumb usages elsewhere (connections.js,
   courses.js — no .rc-card wrapper, no captions) keep their previous
   size; inside .rc-card it fills the wrapper's own (already-responsive)
   width instead. */
.rc-thumb { width: clamp(44px, 14vw, 64px); aspect-ratio: 3/4.3; object-fit: cover; border-radius: 8px; border: 0.5px solid var(--tile-border); }
.rc-card .rc-thumb { width: 100%; }
.rc-label { font-size: 8.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; margin-top: 5px; }
.rc-name { font-family: var(--font-display); font-weight: 600; font-size: 11px; color: var(--ink); margin-top: 1px; line-height: 1.15; }
.rc-card--tappable { cursor: pointer; }

/* Grand Tableau — a fixed 9×4 house grid (see lenormand-engine.js buildGrandTableauContext),
   deliberately compact/dense rather than the large per-card drawn-grid layout, so the
   grid's own shape (rows, columns, neighbors, corners) stays visually legible. */
.gt-grid { display: grid; grid-template-columns: repeat(9, 1fr); gap: 3px; padding: 12px 12px 6px; }
.gt-cell { position: relative; border-radius: 4px; overflow: hidden; background: var(--ivory-sunken); border: 0.5px solid var(--tile-border); }
.gt-cell img { width: 100%; aspect-ratio: 3/4.3; object-fit: cover; display: block; }
.gt-cell--tappable { cursor: pointer; }
.gt-cell--sig { outline: 2px solid var(--gold); outline-offset: -2px; }
.gt-num { position: absolute; bottom: 1px; right: 2px; font-size: 7px; line-height: 1; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.85); font-weight: 700; }

.no-ai-hint { margin: 0 18px 14px; padding: 14px 15px; border-radius: 14px; background: var(--ivory-sunken); border: 1px dashed var(--tile-border); }
.no-ai-hint-t { font-family: var(--font-display); font-weight: 600; font-size: 13.5px; color: var(--ink); margin: 0 0 5px; }
.no-ai-hint p { font-size: 12.5px; line-height: 1.55; color: var(--text-secondary); margin: 4px 0 0; }

.return-link {
  display: block; margin-top: 18px; text-align: center; font-size: 13px; font-weight: 600;
  color: var(--brand); text-decoration: none;
}

.loading-row { display: flex; align-items: center; gap: 10px; padding: 20px 0; color: var(--text-muted); font-size: 13.5px; }

/* ---------- Mehr / Auth ---------- */
.auth-tab { font-size: 14px; font-weight: 600; color: var(--text-muted); cursor: pointer; }
.auth-tab.on { color: var(--brand); }

/* ---------- Kurse ---------- */
.course-list { padding: 0 18px 24px; display: flex; flex-direction: column; gap: 10px; }
.course-card { display: flex; align-items: center; gap: 14px; padding: 16px; cursor: pointer; }
.course-emoji { font-size: 22px; width: 40px; height: 40px; border-radius: 10px; background: var(--ivory-sunken); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.course-info { flex: 1; min-width: 0; }
.course-name { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--ink); }
.course-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.course-progress-bar { height: 4px; border-radius: 2px; background: var(--ivory-sunken); margin-top: 8px; overflow: hidden; }
.course-progress-fill { height: 100%; background: var(--gold); }
.course-arrow { font-size: 20px; color: var(--text-muted); flex-shrink: 0; }

.lesson-title-block { padding: 4px 18px 14px; }
.lesson-summary { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.lesson-body { padding: 0 18px; }
.exercise-response { padding: 13px 15px; margin: 10px 0 18px; }
.lesson-nav { display: flex; justify-content: space-between; padding: 10px 18px 30px; gap: 10px; }

/* ---------- Quiz ---------- */
.quiz-opt {
  padding: 13px 15px; font-size: 14.5px; color: var(--ink); text-align: left;
  cursor: pointer; font-family: var(--font-body);
}
.quiz-opt--correct { border-color: var(--gold) !important; background: var(--badge-gold-bg); }
.quiz-opt--wrong { border-color: var(--danger) !important; background: var(--danger-bg); }

/* ---------- Karten grid ---------- */
.deck-grid {
  padding: 0 14px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
@media (min-width: 560px) { .deck-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 820px) { .deck-grid { grid-template-columns: repeat(6, 1fr); } }

.mini-card { position: relative; aspect-ratio: 3/4.3; overflow: hidden; cursor: pointer; padding: 0; }
.mini-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mini-card .scrim {
  position: absolute; left: 0; right: 0; bottom: 0; height: 46%;
  background: linear-gradient(to top, rgba(20,10,30,0.82), transparent);
}
.mini-card .pip { position: absolute; top: 6px; left: 7px; color: #fff; }
.mini-card .num {
  position: absolute; top: 6px; right: 7px; font-size: 9px; color: rgba(255,255,255,0.85); font-weight: 700;
  background: rgba(0,0,0,0.28); border-radius: 6px; padding: 1px 5px;
}
.mini-card .name {
  position: absolute; left: 7px; right: 7px; bottom: 6px;
  font-family: var(--font-display); font-weight: 600; font-size: 12.5px; color: #fff; line-height: 1.2;
}

/* ---------- Karten detail ---------- */
.detail-head { padding: 10px 18px 0; display: flex; align-items: center; gap: 12px; }
.detail-head .back { font-size: 22px; color: var(--text-muted); background: none; border: none; cursor: pointer; padding: 0; line-height: 1; }
.detail-head .crumbs { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }

.hero-frame {
  margin: 10px 18px 14px; position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--tile-border);
}
.hero-frame::after {
  content: ""; position: absolute; inset: 6px; border: 0.5px solid rgba(213,180,92,0.55); border-radius: 11px; pointer-events: none;
}
.hero-frame img { display: block; width: 100%; aspect-ratio: 3/4.3; object-fit: cover; }
.hero-frame .pip { position: absolute; top: 14px; left: 14px; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.5); }

.hero-title { padding: 0 18px; }
.hero-title .name { font-weight: 700; font-size: 25px; color: var(--ink); }
.hero-title .kw { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.tabbar { display: flex; gap: 14px; padding: 16px 18px 10px; border-bottom: 0.5px solid var(--tile-border); margin-bottom: 16px; overflow-x: auto; }
.tabbar .t { font-size: 13px; font-weight: 600; color: var(--text-muted); padding: 6px 1px 10px; position: relative; white-space: nowrap; cursor: pointer; }
.tabbar .t.on { color: var(--brand); }
.tabbar .t.on::after { content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--brand); }

.detail-body { padding: 0 18px 28px; }

.glance-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.glance-item { padding: 12px 6px; text-align: center; }
.glance-item .v { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--ink); }
.glance-item .l { font-size: 10.5px; color: var(--text-muted); margin-top: 2px; }

.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }

.lede { font-size: 14px; line-height: 1.65; color: var(--text-secondary); margin: 0 0 16px; }

.combo-cat { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--gold-deep); margin: 16px 0 8px; }
.combo-item { padding: 11px 13px; margin-bottom: 7px; }
.combo-item b { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--ink); }
.combo-item span { display: block; font-size: 12.5px; color: var(--text-secondary); margin-top: 3px; line-height: 1.5; }

.yn-box { padding: 13px 15px; margin-bottom: 16px; font-size: 13px; line-height: 1.55; color: var(--text-secondary); }
.yn-box b { color: var(--ink); }

/* ---------- full combination picker (35-card matrix) ---------- */
.combo-picker-toggle {
  width: 100%; text-align: left; padding: 12px 14px; margin: 4px 0 12px;
  font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; cursor: pointer;
}
.combo-picker-toggle .arrow { transition: transform .2s; color: var(--gold-deep); }
.combo-picker-toggle.open .arrow { transform: rotate(90deg); }
.combo-picker-search {
  width: 100%; box-sizing: border-box; padding: 9px 12px; margin-bottom: 10px;
  border: 0.5px solid var(--tile-border); border-radius: 10px; font-family: var(--font-body); font-size: 13px;
}
.combo-picker-grid { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.combo-picker-chip {
  display: flex; align-items: center; gap: 6px; padding: 5px 11px 5px 6px;
  background: var(--badge-gold-bg); color: var(--badge-gold-text);
  border: none; border-radius: 999px; font-family: var(--font-body); font-size: 12px; font-weight: 600; cursor: pointer;
}
.combo-picker-chip img { width: 18px; height: 26px; object-fit: cover; border-radius: 2px; }
.combo-picker-chip.active { background: var(--brand); color: #fff; }
.combo-picker-chip.hidden { display: none; }
.combo-picker-result { padding: 14px 15px; margin-bottom: 10px; }
.combo-picker-result .title { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--ink); margin-bottom: 6px; }
.combo-picker-result p { font-size: 13px; line-height: 1.6; color: var(--text-secondary); margin: 0; }
.combo-picker-empty { font-size: 12.5px; color: var(--text-secondary); padding: 4px 2px 14px; }

.symbol-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 4px; }
.symbol-table td { padding: 9px 4px; border-bottom: 0.5px solid var(--tile-border); vertical-align: top; }
.symbol-table td:first-child { width: 40%; color: var(--ink); }
.symbol-table td:last-child { color: var(--text-secondary); }

.ask-marie { margin-top: 6px; }

/* ---------- Text-to-speech ---------- */
.tts-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px;
  background: var(--badge-violet-bg); color: var(--badge-violet-text);
  border: none; border-radius: 999px; font-family: var(--font-body); font-size: 12.5px; font-weight: 600;
  cursor: pointer; margin-bottom: 14px;
}
.tts-btn-icon { font-size: 13px; }
.tts-btn--playing { background: var(--brand); color: #fff; }

/* ---------- Paywall ---------- */
.modal-overlay {
  position: fixed; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--app-max-width);
  background: rgba(36,26,51,0.55); z-index: 900;
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-overlay .modal {
  background: var(--ivory); width: 100%; max-width: 480px;
  border-radius: 20px 20px 0 0; padding: 28px 24px calc(24px + var(--safe-bottom));
  position: relative; transform: translateY(16px); transition: transform 0.2s ease;
  max-height: 88vh; overflow-y: auto;
}
.modal-overlay.open .modal { transform: translateY(0); }

/* ---------- Onboarding (first-launch, full-screen) ---------- */
.onboarding-overlay {
  position: fixed; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--app-max-width);
  z-index: 1200; background: var(--ivory);
  display: flex; flex-direction: column;
  padding-top: var(--safe-top); padding-bottom: var(--safe-bottom);
}
.ob-skip {
  position: absolute; top: calc(18px + var(--safe-top)); right: 18px; z-index: 1;
  background: none; border: none; font-size: 12.5px; font-weight: 600; color: var(--text-muted); cursor: pointer; padding: 6px;
}
.ob-screen {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 28px; text-align: center; overflow-y: auto;
}
.ob-avatar {
  width: 96px; height: 96px; flex-shrink: 0; border-radius: 50%; margin: 0 auto 22px;
  background: url('https://assets.valaros.com/assets/marie-avatar.png') center/cover no-repeat;
  border: 2.5px solid var(--gold);
}
.ob-icon { font-size: 40px; color: var(--gold); margin-bottom: 12px; flex-shrink: 0; }
.ob-title { font-family: var(--font-display); font-weight: 700; font-size: 23px; color: var(--ink); margin: 0 0 12px; text-wrap: balance; }
.ob-body { font-size: 14.5px; color: var(--text-secondary); line-height: 1.6; max-width: 320px; margin: 0; }
.ob-highlights { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; width: 100%; max-width: 340px; text-align: left; }
.ob-highlight {
  display: flex; align-items: center; gap: 12px; background: var(--white);
  border: 0.5px solid var(--tile-border); border-radius: 12px; padding: 12px 14px;
}
.ob-highlight .oh-icon { font-size: 19px; flex-shrink: 0; width: 24px; text-align: center; }
.ob-highlight .oh-text { font-size: 12.5px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.ob-footer { padding: 16px 28px calc(24px + var(--safe-bottom)); flex-shrink: 0; }
.ob-dots { display: flex; justify-content: center; gap: 7px; margin-bottom: 18px; }
.ob-dot { width: 7px; height: 7px; border-radius: 4px; background: var(--tile-border); transition: all 0.2s; }
.ob-dot.active { background: var(--gold); width: 20px; }
.modal-close {
  position: absolute; top: 14px; right: 16px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--white); border: 0.5px solid var(--tile-border); color: var(--text-muted);
  font-size: 18px; line-height: 1; cursor: pointer;
}
.paywall-lock { text-align: center; font-size: 30px; color: var(--gold); margin-bottom: 6px; }
.paywall-title { text-align: center; font-size: 22px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.paywall-desc { text-align: center; font-size: 13.5px; line-height: 1.6; color: var(--text-muted); margin: 0 0 18px; }
.paywall-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.paywall-feature {
  display: flex; align-items: center; gap: 11px; font-size: 13.5px; color: var(--ink);
  background: var(--white); border: 0.5px solid var(--tile-border); border-radius: 12px; padding: 11px 13px;
}
.paywall-feature span:first-child { font-size: 17px; flex-shrink: 0; }
.paywall-plans { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.paywall-plan {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left;
  background: var(--white); border: 1px solid var(--tile-border); border-radius: 12px; padding: 12px 14px;
  font-family: var(--font-body); color: var(--ink); cursor: pointer;
}
.paywall-plan.on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.paywall-plan .pp-name { font-weight: 600; font-size: 14px; }
.paywall-plan .pp-sub { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.paywall-plan .pp-price { font-weight: 700; font-size: 15px; white-space: nowrap; }
.paywall-plan .pp-badge { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 10.5px; font-weight: 600; vertical-align: 1px; }
.paywall-terms { font-size: 11px; line-height: 1.5; color: var(--text-muted); text-align: center; margin: 10px 0 0; }
.paywall-terms a { color: var(--text-muted); text-decoration: underline; }
.lang-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 6px; }
.lang-option {
  display: flex; align-items: center; justify-content: space-between; width: 100%; text-align: left;
  background: var(--white); border: 1px solid var(--tile-border); border-radius: 12px; padding: 14px 16px;
  font-family: var(--font-body); font-size: 15px; color: var(--ink); cursor: pointer;
}
.lang-option.on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; font-weight: 600; }
.lang-option .lo-check { color: var(--brand); font-weight: 700; }
.paywall-restore {
  display: block; width: 100%; text-align: center; background: none; border: none;
  font-family: var(--font-body); font-size: 12.5px; color: var(--text-muted); text-decoration: underline;
  padding: 14px 0 0; cursor: pointer;
}

/* ---------- Mehr / Premium row ---------- */
.premium-row {
  display: flex; align-items: center; gap: 12px; padding: 15px;
  background: var(--brand); border-radius: 14px; color: #fff; cursor: pointer;
}
.premium-row .icon { font-size: 20px; color: var(--gold); flex-shrink: 0; }
.premium-row .t { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.premium-row .s { font-size: 11.5px; color: rgba(255,255,255,0.72); margin-top: 1px; }
.premium-row.is-active { background: var(--white); border: 0.5px solid var(--tile-border); color: var(--ink); cursor: default; }
.premium-row.is-active .s { color: var(--text-muted); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ==========================================================================
   Dark mode — toggled from Mehr ▸ Privatsphäre ▸ Dark Mode (js/privacy.js
   sets/clears [data-theme] on <html>; a tiny inline snippet in index.html's
   <head> applies it before first paint). Manual only, no OS auto-detection:
   the in-app switch is the single source of truth, same as every other
   preference in this app. Keeps the aubergine/gold identity on a dark
   ground rather than a generic near-black — --aubergine/--gold stay
   unchanged since they're used as saturated background blocks (with
   white text already on top); only the tokens that sit as TEXT or as the
   page/card ground itself are redefined here.
   ========================================================================== */
:root[data-theme="dark"] {
  --ivory: #1c1620;
  --ivory-sunken: #140f18;
  --white: #251d2c;
  --aubergine-text: #b6a0dd;
  --aubergine-deep: #f1eaf7;
  --ink: #F1EEF8;
  --ink-soft: #B6AFC9;
  --brand: #A68BD1;
  --brand-deep: #C4AEE6;
  --brand-soft: #2A2440;
  --brand-text: #D8C9F0;
  --gold-deep: #d9b567;
  --text-muted: #a696bd;
  --text-secondary: #c7bcd6;
  --tile-border: #3a2e45;
  --badge-gold-bg: #45361f;
  --badge-gold-text: #e8c979;
  --badge-violet-bg: #372c4d;
  --badge-violet-text: #cabdf0;
  --danger: #e2879b;
  --danger-bg: #3d232c;
}

/* Back arrow in an app-bar, same pill look as the language chip (not .lang-chip: app.js writes the language code into those) */
.back-chip { background: var(--white); border: 0.5px solid var(--tile-border); color: var(--text-muted); border-radius: 999px; padding: 5px 13px 6px; font-size: 20px; line-height: 1; cursor: pointer; margin-right: 8px; }

/* ── Card back + turn-over animation (tap to flip; spreads and the daily card) ───────────── */
.cflip { position: relative; width: 100%; aspect-ratio: 3 / 4.3; perspective: 800px; }
.cflip-inner { position: absolute; inset: 0; transform-style: preserve-3d; -webkit-transform-style: preserve-3d;
  transition: transform .75s cubic-bezier(.3, .7, .2, 1); }
.cflip.flipped .cflip-inner { transform: rotateY(180deg); }
.cflip.no-anim .cflip-inner { transition: none; }
.cflip-back, .cflip-face { position: absolute; inset: 0; border-radius: 10px; overflow: hidden; box-sizing: border-box;
  backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.cflip-face { transform: rotateY(180deg); }
.dc-img-wrap .cflip-face img, .cflip-face img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; display: block; }
.cflip-back {
  border: 1.5px solid var(--gold);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23D5B45C' d='M12 2l2.4 7.2L22 12l-7.6 2.8L12 22l-2.4-7.2L2 12l7.6-2.8z'/%3E%3C/svg%3E") center / 34% no-repeat,
    repeating-linear-gradient(45deg, var(--brand-deep) 0 5px, var(--aubergine) 5px 10px);
  box-shadow: inset 0 0 0 3px var(--aubergine), inset 0 0 0 4px rgba(213, 180, 92, 0.7);
}
.dc-img-wrap--flip { overflow: visible; border-radius: 0; }

/* Spreads: cards are dealt face-down one after another, then turned over by tapping. */
.deal-in { animation: dealIn .55s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 150ms); }
@keyframes dealIn { from { opacity: 0; transform: translateY(-18px) scale(.94); } to { opacity: 1; transform: none; } }
.drawn-card[data-flip] { cursor: pointer; }
.drawn-card[data-flip]:not(.is-flipped) .dc-name,
.drawn-card[data-flip]:not(.is-flipped) .dc-tap { visibility: hidden; }
.drawn-card[data-flip] .dc-name { transition: opacity .4s ease .35s; }
.deal-bar { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 2px 18px 12px; }
.deal-hint { font-size: 13px; color: var(--text-muted); text-align: center; }
.deal-all { background: none; border: 1px solid var(--brand); color: var(--brand-text); border-radius: 999px; padding: 5px 14px; font-size: 12.5px; cursor: pointer; }
.deal-all[hidden] { display: none; }

/* Home: daily card starts face-down. */
.daily-card .dc-flip { width: 56px; flex-shrink: 0; cursor: pointer; transition: width .2s ease; }
.daily-card .dc-flip--large { width: 132px; }
.daily-card .dc-flip .cflip-back, .daily-card .dc-flip .cflip-face { border-radius: 8px; }
.daily-card .dc-n--hint { font-family: var(--font-body, inherit); font-weight: 500; font-size: 13.5px; color: var(--text-muted); }

@media (prefers-reduced-motion: reduce) {
  .cflip-inner { transition-duration: .01s; }
  .deal-in { animation: none; }
}


/* System start screen (Kipper / Fortune cards) */
.sh-wrap { padding: 4px 18px 28px; display: flex; flex-direction: column; gap: 10px; }
.sh-intro { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--text-secondary); }
.sh-good { background: var(--brand-soft); border-radius: 14px; padding: 12px 14px; }
.sh-good-t { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--brand-text); margin-bottom: 4px; }
.sh-good p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--text-secondary); }
.sh-h { margin: 12px 0 0; font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--ink); }
.sh-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sh-chip { background: var(--brand-soft); color: var(--brand-text); border: 1px solid var(--brand); border-radius: 999px; padding: 8px 16px; font-size: 14px; cursor: pointer; }
.sh-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sh-card { display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; padding: 0; cursor: pointer; color: var(--text-secondary); font-size: 11.5px; line-height: 1.2; text-align: center; }
.sh-card img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; border: 1px solid var(--tile-border); background: var(--ivory-sunken); }

/* Slim Valaros bar shown on the Legungen screen when the visitor came from the website (web only) */
.site-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-shrink: 0; padding: calc(9px + var(--safe-top)) 14px 9px; background: var(--aubergine); box-shadow: 0 2px 10px rgba(48,37,58,0.18); position: relative; z-index: 20; }
.site-bar[hidden] { display: none; }
.site-bar-logo { display: inline-flex; align-items: center; gap: 6px; flex: none; text-decoration: none; color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1; }
.site-bar-logo svg { width: 20px; height: 20px; }
.site-bar-logo svg path:first-child { fill: #fff; }
.site-bar-logo em { font-style: italic; color: var(--gold); }
.site-bar-back { min-width: 0; max-width: 62%; flex: 0 1 auto; background: #fff; color: var(--aubergine); border-radius: 999px; padding: 8px 15px; font-size: 13.5px; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 1px 4px rgba(0,0,0,0.18); }
.site-bar-back:active { transform: scale(0.97); }
.has-site-bar .app-bar { padding-top: 12px; }

/* Premium account explanation (paywall) */
.paywall-note { margin: 0 0 14px; font-size: 12.5px; line-height: 1.5; color: var(--text-secondary); text-align: center; }
.paywall-note:empty { display: none; }
.paywall-account, .paywall-web { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; padding: 14px; border-radius: 14px; background: var(--brand-soft); }
.paywall-account[hidden], .paywall-web[hidden] { display: none; }
.paywall-account p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-secondary); }
.pa-title { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--brand-text); }
.pw-steps { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; line-height: 1.5; color: var(--ink); }
.pw-soon { margin: 0; font-size: 12px; color: var(--text-muted); }
#paywall-modal.web-mode #paywall-purchase, #paywall-modal.web-mode #paywall-restore, #paywall-modal.web-mode #paywall-plans, #paywall-modal.web-mode #paywall-terms { display: none !important; }
.paywall-web .btn[hidden], .paywall-account .btn[hidden], #paywall-purchase[hidden] { display: none !important; }

/* Paywall v2 */
.pw-hero { position: relative; display: flex; justify-content: center; margin: 2px 0 10px; }
.pw-hero .avatar-marie-lg { width: 84px; height: 84px; border-width: 3px; box-shadow: 0 0 0 6px rgba(213, 180, 92, 0.18), 0 6px 18px rgba(73, 51, 107, 0.22); }
.pw-hero .pw-spark { position: absolute; top: 2px; left: calc(50% + 34px); color: var(--gold); font-size: 18px; }
.paywall-title { text-wrap: balance; }
.paywall-features { gap: 8px; margin-bottom: 16px; }
.paywall-plan { align-items: center; }
.paywall-plan .pp-left { display: flex; flex-direction: column; min-width: 0; }
.paywall-plan .pp-right { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; }
.paywall-plan .pp-was { font-size: 11.5px; color: var(--text-muted); text-decoration: line-through; }
.paywall-plan .pp-trial { display: inline-block; margin-top: 3px; font-size: 11.5px; font-weight: 700; color: var(--brand-text); }
.paywall-plan.pw-best { border-color: var(--gold); background: var(--brand-soft); }
.paywall-plan.pw-best.on { border-color: var(--brand); }
.paywall-plan .pp-badge { background: var(--gold); color: #3a2a0a; }
.pw-trial-note { margin: 8px 0 0; font-size: 12px; line-height: 1.45; color: var(--text-secondary); text-align: center; }
.pw-trial-note[hidden] { display: none; }
.pw-cta { position: sticky; bottom: calc(-1 * (24px + var(--safe-bottom))); z-index: 3; margin: 0 -24px 0; padding: 10px 24px 12px; background: var(--ivory); box-shadow: 0 -8px 14px -10px rgba(36,26,51,.25); }
.pw-cta .btn { margin: 0; }
@media (max-height: 760px) { .pw-hero .avatar-marie-lg { width: 68px; height: 68px; } .pw-hero .pw-spark { left: calc(50% + 26px); } .paywall-features { gap: 6px; } .paywall-feature { padding: 9px 12px; } }
