/* ── reset ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 18px;              /* base: 1rem = 18px everywhere */
  color-scheme: light;          /* force light mode — prevents Arc/Safari dark overrides */
  background: #FFFFF0;
}
[hidden] { display: none !important; }

/* Kill ALL browser default link styling */
a {
  color: inherit;
  text-decoration: none;
  -webkit-text-decoration: none;
}

/* ── page shell ─────────────────────────────────────────────────────────────── */
body {
  font-family: var(--sans);
  background: #FFFFF0;                    /* hard fallback — never goes dark */
  background: var(--bg);
  color: #1a1a0a;                         /* hard fallback */
  color: var(--ink);
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   TOP BAR
   Figma: 1440×800 frame. Logo at x=80 y=80. Top-right nav at y=88/152.
   Left/right padding: 80px. Top padding: 80px.
   ═══════════════════════════════════════════════════════════════════════════════ */

.top-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  height: 180px;           /* 80px top padding + 100px content — fixed so garden gets symmetric space */
  padding: 80px 80px 0;
  flex-shrink: 0;
  box-sizing: border-box;
}

/* ── logo group (logo + demo link stacked) ───────────────────────────────── */
.logo-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.demo-link {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--ink-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: none;
}
.demo-link:hover,
.demo-link:active {
  color: #81A7CD;
}

/* IDEA 🌱 GARDEN */
.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 1rem;              /* 18px */
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}

.logo__icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ── Breadcrumb ─────────────────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--ink-muted);
  margin-top: 8px;
  white-space: nowrap;
}

.breadcrumb__item {
  color: var(--ink-muted);
  text-decoration: none;
}

.breadcrumb__item:hover {
  color: var(--ink);
}

.breadcrumb__sep {
  color: var(--ink-muted);
  user-select: none;
}

.breadcrumb__current {
  color: var(--ink);
}

/* top-right nav — Rewards then Dormant stacked */
.top-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}

.top-nav__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 1rem;              /* 18px */
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
  transition: opacity 150ms;
}

.top-nav__item:hover { color: #81A7CD; }

/* Top-right nav icons — natural proportions, capped at 36px height */
.top-nav .nav-icon {
  height: 36px;
  width: auto;
  max-height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

/* Bottom nav icons — natural proportions, capped at 36px height */
.bottom-nav .nav-icon {
  height: 36px;
  width: auto;
  max-height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   GARDEN — fills remaining space, land centred
   ═══════════════════════════════════════════════════════════════════════════════ */

.garden-main {
  flex: 1 1 0;             /* grow to fill all space between the two fixed-height bars */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  /* Shift blob up ~35px to compensate for top-nav being taller than bottom-nav
     (two stacked items vs one row), making it appear visually centred */
  padding-bottom: 85px;  /* 35 + 50 — pulls blob up toward top nav */
}

/* Land container — responsive, capped at 560px so it never overwhelms the page.
   The exported SVG is the full 1440×800 Figma frame; the blob sits at
   x=455 y=218 w=530 h=372 inside it. We scale the SVG so the blob width
   fills the container, then offset to show only the blob region.
   overflow: visible — SVG areas outside the blob are transparent so they
   never show; removing the clip prevents the bottom soil edge being cut. */
.garden-land {
  position: relative;
  width: min(100%, 560px);          /* generous max so it reads clearly but doesn't dominate */
  max-height: calc(100% - 0px);    /* never exceed the padded garden area */
  aspect-ratio: 530 / 390;         /* blob 530×372 + 18px bottom buffer for soil edge */
  overflow: visible;
}

.garden-land__img {
  /* Scale full 1440px-wide SVG so blob width (530px) = 100% of container */
  position: absolute;
  width: calc(1440 / 530 * 100%);   /* ≈ 271.7% */
  height: auto;
  left: calc(-455 / 530 * 100%);    /* shift blob x=455 to container left  ≈ -85.8% */
  top:  calc(-218 / 530 * 100%);    /* shift blob y=218 to container top    ≈ -41.1% */
  display: block;
  user-select: none;
  pointer-events: none;
}

/* Plants layer over land */
#garden-plants {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ── individual plant ─────────────────────────────────────────────────────────
   .plant is a zero-size anchor at (gardenX%, gardenY%).
   No transform — the anchor point never moves regardless of plant stage size.  */
.plant {
  position: absolute;
  width: 0;
  height: 0;
  cursor: pointer;
  pointer-events: none; /* body handles clicks via bubbling */
}

/* .plant__body: left/bottom set by JS so centre_point aligns with anchor */
.plant__body {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: all;
  z-index: 1;
}

/* ── plant tooltip ────────────────────────────────────────────────────────── */
.plant__tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink);
  pointer-events: none;
  opacity: 0;
  transition: opacity 120ms var(--ease);
  z-index: 50;
  box-shadow: 0 2px 8px rgba(26,26,10,0.08);
}
.plant__body:hover .plant__tooltip { opacity: 1; }
/* Elevate the entire .plant on hover so the tooltip escapes sibling stacking contexts.
   .plant has position:absolute but no z-index (no stacking context) by default;
   adding z-index:100 here creates one that outranks all other plants. */
.plant:has(.plant__body:hover) { z-index: 100; }

.plant__tooltip::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--border);
}
/* ::after sits inside ::before with no vertical shift — shows the border stroke
   on all three sides of the pointer (not just the sides) */
.plant__tooltip::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--bg);
}

/* Width-only sizing; height:auto preserves SVG aspect ratio */
.plant__img {
  display: block;
  height: auto;
  position: relative;
  z-index: 1;
}

.plant--seed      .plant__img { height: 12px;  width: auto; }
.plant--sprout    .plant__img { height: 24px;  width: auto; }
.plant--sapling   .plant__img { height: 64px;  width: auto; }
.plant--blooming  .plant__img { height: 200px; width: auto; }
.plant--overgrown .plant__img { height: 220px; width: auto; }

/* placeholder circle */
.plant__placeholder {
  border-radius: 50%;
  background: rgba(128,197,12,0.2);
  border: 1.5px solid rgba(128,197,12,0.5);
}
.plant--seed      .plant__placeholder { width: 14px; height: 14px; }
.plant--sprout    .plant__placeholder { width: 22px; height: 22px; }
.plant--sapling   .plant__placeholder { width: 30px; height: 30px; }
.plant--blooming  .plant__placeholder { width: 42px; height: 42px; }
.plant--overgrown .plant__placeholder { width: 50px; height: 50px; }

/* Shadow centred on the anchor point — never moves between stages */
.plant__shadow {
  position: absolute;
  width: 36px;
  aspect-ratio: 3 / 1;
  background: #00A81F;
  border-radius: 50%;
  z-index: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   BOTTOM ACTION ROW
   4 items: [icon 28px] [label] — spaced evenly
   ═══════════════════════════════════════════════════════════════════════════════ */

.bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 180px;           /* same as top-bar — guarantees symmetric remaining space for garden */
  padding: 0 80px 80px;
  flex-shrink: 0;
  box-sizing: border-box;
}

.bottom-nav__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 1rem;              /* 18px */
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 150ms;
  cursor: pointer;
}

.bottom-nav__item:hover { color: #81A7CD; }

/* ═══════════════════════════════════════════════════════════════════════════════
   PLANT DETAIL PANEL
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ── plant drawer ────────────────────────────────────────────────────────────
   Reuses .seed-drawer for the shell; these rules handle the interior layout. */

.plant-drawer__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  overflow-y: auto;
}

.plant-drawer__info-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.plant-drawer__field-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.plant-drawer__field-value {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.45;
}

.plant-drawer__idea-name {
  font-weight: 500;
}

.plant-drawer__qualifier {
  font-weight: 400;
  color: var(--ink-muted);
}

.plant-drawer__qualifier--required {
  color: var(--ink-muted);
}

.plant-drawer__section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.plant-drawer__section-header {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.plant-drawer__count {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: #81A7CD;
}

/* 3-slot grid for links and images */
.plant-drawer__slots {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.plant-drawer__slot {
  width: 40px;
  height: 40px;
  border: 1px solid #e5e5d6;
  border-radius: var(--r-md);
  background: #f5f5e4;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 150ms;
  flex-shrink: 0;
  overflow: hidden;
  padding: 0;
}

.plant-drawer__slot:hover { border-color: #81A7CD; }

/* Active link slot expands in-place: becomes input container */
.plant-drawer__slot--active {
  flex: 1;
  width: auto;
  height: 40px;
  justify-content: flex-start;
  gap: 8px;
  padding: 8px;
  overflow: visible;
}

.plant-drawer__slot--filled {
  border-color: #81A7CD;
  background: rgba(129,167,205,0.08);
}

/* Thumbnail inside a filled image slot */
.plant-drawer__slot img.plant-drawer__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--r-md) - 1px);
  mix-blend-mode: luminosity;
  opacity: 0.5;
}

/* Wrapper for a filled image slot — needed for the × overlay */
.plant-drawer__img-wrap {
  position: relative;
  flex-shrink: 0;
}

/* Filled image slot expands slightly to 70×70 */
.plant-drawer__img-wrap .plant-drawer__slot--filled {
  width: 70px;
  height: 70px;
}

.plant-drawer__img-remove {
  position: absolute;
  top: -15px;
  right: -15px;
  border-radius: 50%;
  background: #f5f5e4;
  border: 1px solid #e5e5d6;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 150ms;
}

.plant-drawer__img-remove:hover { border-color: #81A7CD; }

/* Filled link chip */
.plant-drawer__link-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid #e5e5d6;
  border-radius: var(--r-md);
  background: #f5f5e4;
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
}

.plant-drawer__link-chip-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  opacity: 0.5;
  flex-shrink: 0;
}

.plant-drawer__link-chip-remove:hover { opacity: 1; }

/* Input inside the expanded active link slot */
.plant-drawer__link-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--ink);
  padding: 0;
}

.plant-drawer__link-input::placeholder { color: var(--ink-muted); }

/* Check button inside active link slot */
.plant-drawer__link-check {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  opacity: 0.6;
}

.plant-drawer__link-check:hover { opacity: 1; }

/* Bottom actions row: Pluck it + dormant icon */
.plant-drawer__actions {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-top: 20px;
  flex-shrink: 0;
}

.plant-drawer__pluck {
  flex: 1;
  margin-top: 0 !important; /* override seed-drawer__submit's margin-top: auto */
}

.plant-drawer__dormant-btn {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 150ms;
}

.plant-drawer__dormant-btn:hover {
  border-color: #81A7CD;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   MODALS & DIALOGS
   ═══════════════════════════════════════════════════════════════════════════════ */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  backdrop-filter: blur(4px);
}

.modal-backdrop[hidden] { display: none; }

/* ── Dormant confirmation dialog — Figma node 261-2272 ── */
.dormant-dialog {
  position: fixed;
  inset: 0;
  background: rgba(39, 39, 39, 0.32);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: fadeIn 220ms var(--ease) both;
}

.dormant-dialog[hidden] { display: none; }

.dormant-dialog__card {
  background: #fffff0;
  border: 1px solid #e5e5d6;
  border-radius: 16px;
  padding: 24px;
  width: 388px;
  max-width: calc(100vw - 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  animation: popIn 260ms var(--ease) both;
}

.dormant-dialog__icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex-shrink: 0;
}

.dormant-dialog__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  text-align: center;
}

.dormant-dialog__title {
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 500;
  color: #272727;
  line-height: normal;
  margin: 0;
}

.dormant-dialog__body {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 400;
  color: #929292;
  line-height: normal;
  margin: 0;
}

.dormant-dialog__actions {
  display: flex;
  gap: 16px;
  width: 100%;
}

.dormant-dialog__cancel,
.dormant-dialog__confirm {
  flex: 1;
  padding: 12px 16px;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
}

.dormant-dialog__cancel {
  background: #fffff0;
  border: 1px solid #81a7cd;
  color: #81a7cd;
}

.dormant-dialog__cancel:hover,
.dormant-dialog__cancel:active {
  background: #fffff0;
  border-color: #7699bc;
  color: #7699bc;
}

.dormant-dialog__confirm {
  background: #81a7cd;
  border: none;
  color: #fffff0;
}

.dormant-dialog__confirm:hover,
.dormant-dialog__confirm:active {
  background: #7699bc;
  color: #fffff0;
}

.modal {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s8);
  width: min(400px, calc(100vw - var(--s8)));
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  animation: popIn 200ms var(--ease) both;
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}

.modal h2 { font-family: var(--serif); font-size: 1.25rem; }
.modal__actions { display: flex; gap: var(--s3); align-items: center; }

/* modal form inputs */
.modal input {
  width: 100%;
  padding: 10px var(--s4);
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  outline: none;
  transition: border-color 150ms;
}

.modal input::placeholder { color: var(--ink-muted); }
.modal input:focus { border-color: var(--land-grass); }

/* ═══════════════════════════════════════════════════════════════════════════════
   SEED DRAWER
   Slides in from the right — matches Figma node 198:5455
   420px wide panel, cream bg, 80px top/bottom · 56px left/right padding.
   ═══════════════════════════════════════════════════════════════════════════════ */

.seed-drawer {
  position: fixed;
  inset-block: 0;
  inset-inline-end: 0;
  width: min(420px, 100vw);
  background: var(--bg);
  border-left: 1px solid var(--border);
  padding: 80px 24px;
  display: flex;
  flex-direction: column;
  z-index: 60;
  animation: slideIn 240ms var(--ease) both;
}

.seed-drawer[hidden] { display: none !important; }

/* "← Back" link at the top */
.seed-drawer__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 32px;
  transition: none;
}

/* freeze all visual properties on hover/active — no browser-default bleed-through */
.seed-drawer__back:hover,
.seed-drawer__back:active {
  background: none;
  color: var(--ink);
  opacity: 1;
  transform: none;
  box-shadow: none;
}

/* Form fills remaining vertical space so button sits at the very bottom */
.seed-drawer__form {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 24px;
}

/* field + floating label (label shows once the field has text) */
.seed-drawer__field { position: relative; }
.seed-drawer__label {
  position: absolute;
  top: -10px;
  left: 12px;
  z-index: 1;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  color: #afafaf;
  background: linear-gradient(to bottom, var(--bg) 2.778%, #f5f5e4);
  opacity: 0;
  pointer-events: none;
}
.seed-drawer__field:has(input:not(:placeholder-shown), textarea:not(:placeholder-shown)) .seed-drawer__label { opacity: 1; }

/* Single-line input */
.seed-drawer__input {
  width: 100%;
  height: 45px;
  padding: 11px;
  background: #f5f5e4;
  border: 1px solid #e5e5d6;
  border-radius: 12px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  outline: none;
  transition: border-color 180ms;
  resize: none;
}

.seed-drawer__input::placeholder { color: #c4c4a8; font-weight: 400; }
/* border stays the same colour whether focused or not */

/* Wrapper gives the textarea a relative context for the custom resize handle */
.seed-drawer__textarea-wrap {
  position: relative;
  /* height is driven by the textarea inside */
}

/* Textarea — native resize handle hidden; drag is handled via JS + custom icon */
.seed-drawer__textarea {
  display: block;
  width: 100%;
  height: 124px;
  min-height: 80px;
  /* bottom-right padding keeps text away from the custom icon */
  padding: 11px 11px 28px;
  background: #f5f5e4;
  border: 1px solid #e5e5d6;
  border-radius: 12px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  outline: none;
  transition: border-color 180ms;
  resize: none;          /* hide native handle — custom icon used instead */
  line-height: normal;
  box-sizing: border-box;
}

.seed-drawer__textarea::placeholder { color: #c4c4a8; font-weight: 400; }
/* border stays the same colour whether focused or not */

/* Custom resize icon — 8px from the bottom-right corner of the textarea border.
   The SVG has fill="#D0D0B5" baked in; no tinting needed — show at full colour. */
.seed-drawer__resize-handle {
  position: absolute;
  bottom: 9px;   /* 1px border + 8px gap */
  right: 9px;
  width: 16px;
  height: 16px;
  cursor: nwse-resize;
  user-select: none;
  pointer-events: all;
}

/* "Plant the seed" button — pinned to bottom, no transitions, no hover effects */
.seed-drawer__submit {
  margin-top: auto;
  width: 100%;
  height: 48px;
  background: #D8D8D8;   /* disabled/empty state */
  color: #787878;
  border: none;
  border-radius: var(--r-md);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  cursor: default;
  transition: none;
  flex-shrink: 0;
}

.seed-drawer__submit:disabled { pointer-events: none; }

/* freeze hover/active in disabled state */
.seed-drawer__submit:hover,
.seed-drawer__submit:active {
  background: #D8D8D8;
  color: #787878;
  transform: none;
  box-shadow: none;
}

/* filled state — both fields have content */
.seed-drawer__submit--filled {
  background: #81A7CD;
  color: #FFFFF0;
  cursor: pointer;
}

.seed-drawer__submit--filled:hover,
.seed-drawer__submit--filled:active {
  background: #7699BC;
  color: #FFFFF0;
  transform: none;
  box-shadow: none;
}

/* Blur the garden behind the open drawer */
.seed-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26,26,10,.20);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 59;
  animation: fadeIn 200ms var(--ease) both;
}

.seed-drawer-backdrop[hidden] { display: none !important; }

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   SUCCESS CARD — centered modal over the blurred garden
   Matches Figma node 219:6747: cream card, lime border, seed illustration,
   blue CTA button.
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Backdrop — dims + blurs the garden behind */
.success-card {
  position: fixed;
  inset: 0;
  background: rgba(26,26,10,.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  animation: fadeIn 220ms var(--ease) both;
}

.success-card[hidden] { display: none; }

/* The card itself */
.success-card__dialog {
  position: relative;
  background: var(--bg);
  border: none;
  border-radius: 20px;
  padding: 40px 40px 36px;
  width: min(400px, calc(100vw - 48px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  animation: popIn 260ms var(--ease) both;
}

/* Close button — top-right corner, uses icon_close.svg */
.success-card__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
}
/* no hover effect */

/* Seed illustration */
.success-card__seed {
  width: 40px;
  height: auto;
  margin-bottom: 8px;
}

/* Title */
.success-card__title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
}

/* Date line — blue + italic */
.success-card__date {
  font-size: 0.8rem;
  color: #81A7CD;
  font-style: italic;
  margin-bottom: 4px;
}

/* Body copy — uniform grey, no special styling on the idea name */
.success-card__body {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.6;
  font-weight: 400;
  margin-bottom: 8px;
}

/* CTA button — no transitions, no hover effects */
.success-card__cta {
  width: 100%;
  height: 44px;
  background: #81A7CD;
  color: #FFFFF0;
  border: none;
  border-radius: var(--r-md);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  margin-top: 8px;
  transition: none;
}

/* freeze hover/active — nothing changes on mouse interaction */
.success-card__cta:hover,
.success-card__cta:active {
  background: #7699BC;
  color: #FFFFF0;
  transform: none;
  box-shadow: none;
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   HARVEST SUCCESS CARD
   Shown after "Pluck it" — matches Figma node 219-7430.
   ═══════════════════════════════════════════════════════════════════════════════ */

.harvest-card {
  position: fixed;
  inset: 0;
  background: rgba(39, 39, 39, 0.32);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  animation: fadeIn 220ms var(--ease) both;
}

.harvest-card[hidden] { display: none; }

.harvest-card__dialog {
  position: relative;
  background: #fffff0;
  border: 1px solid #e5e5d6;
  border-radius: 16px;
  padding: 24px;
  width: 388px;
  max-width: calc(100vw - 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  animation: popIn 260ms var(--ease) both;
}

.harvest-card__close {
  position: absolute;
  top: 23px;
  right: 23px;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
}

.harvest-card__plant {
  width: 64px;
  height: 72px;
  object-fit: contain;
  flex-shrink: 0;
}

.harvest-card__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  text-align: center;
}

.harvest-card__title {
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 500;
  color: #272727;
  line-height: normal;
  margin: 0;
}

.harvest-card__body {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 400;
  color: #929292;
  line-height: normal;
  margin: 0;
}

.harvest-card__cta {
  width: 100%;
  background: #81a7cd;
  color: #fffff0;
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  flex-shrink: 0;
}

.harvest-card__cta:hover,
.harvest-card__cta:active {
  background: #7699BC;
  color: #fffff0;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  height: 38px;
  padding: 0 var(--s5);
  border: none;
  border-radius: var(--r-full);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 150ms, transform 150ms;
  white-space: nowrap;
}

.btn:active { transform: scale(0.96); }
.btn:disabled { opacity: 0.35; cursor: not-allowed; }

.btn--primary  { background: var(--ink); color: var(--bg); }
.btn--primary:hover { opacity: 0.8; }

.btn--secondary {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--ink);
}
.btn--secondary:hover { background: rgba(26,26,10,.06); }

.btn--ghost {
  background: transparent;
  color: var(--ink-muted);
  height: auto;
  padding: var(--s1) var(--s2);
}
.btn--ghost:hover { color: var(--ink); }

/* ═══════════════════════════════════════════════════════════════════════════════
   SECONDARY PAGES (Library, Arrange, Vases, Dormant)
   These use a simple nav bar + page body
   ═══════════════════════════════════════════════════════════════════════════════ */

body.page {
  height: auto;
  overflow: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--s6);
  padding: 0 var(--s8);
  height: 52px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 50;
}

.nav__logo {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

.nav__links { display: flex; gap: 2px; list-style: none; margin-left: auto; }

.nav__links a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 1rem;
  padding: var(--s2) var(--s3);
  border-radius: var(--r-md);
  transition: color 150ms, background 150ms;
}

.nav__links a:hover         { color: var(--ink); background: rgba(26,26,10,.05); }
.nav__links a[aria-current] { color: var(--ink); font-weight: 500; }

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s6) var(--s8);
  border-bottom: 1px solid var(--border);
}

.page-header h1 { font-family: var(--serif); font-size: 1.5rem; }

/* ── library page ─────────────────────────────────────────────────────────── */

.library-page {
  height: auto;
  overflow: auto;
  background: #fbfbea;
}

.library-top-bar {
  padding: 80px 80px 0;
}

.library-main {
  padding: 64px 80px 80px;
}

.library-empty {
  font-family: var(--mono);
  font-size: 1rem;
  color: #929292;
  padding: 40px 0;
}

.library-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 64px 80px;
}

.flower-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  cursor: default;
}

.flower-card__illustration {
  height: 120px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.flower-card__illustration img {
  height: 120px;
  width: auto;
  object-fit: contain;
}

.flower-card__name {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 500;
  color: #929292;
  text-align: center;
  line-height: normal;
}

/* ── arrange ──────────────────────────────────────────────────────────────── */

.arrange-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  height: calc(100dvh - 52px);
}

.arrange-sidebar {
  background: rgba(26,26,10,.03);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--s5);
  padding: var(--s6);
  overflow-y: auto;
}

.arrange-sidebar h2 { font-family: var(--serif); font-size: 1.125rem; }

.sidebar-label { font-size: 0.6875rem; color: var(--ink-muted); margin-bottom: 4px; display: block; }

.sidebar-input {
  width: 100%;
  padding: 8px var(--s3);
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-size: 1rem;
  color: var(--ink);
  font-family: var(--sans);
  outline: none;
}

.sidebar-input:focus { border-color: var(--land-grass); }

#flower-palette { display: flex; flex-direction: column; gap: var(--s2); }

.palette-flower {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s2) var(--s3);
  border-radius: var(--r-md);
  cursor: grab;
  transition: background 150ms;
  font-size: 1rem;
}

.palette-flower:hover { background: rgba(26,26,10,.06); }

.palette-flower img {
  width: 30px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.palette-empty { font-size: 1rem; color: var(--ink-muted); }

.arrange-canvas-wrap {
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

#arrange-canvas { position: relative; width: 480px; height: 480px; }

.canvas-flower { position: absolute; cursor: move; user-select: none; }
.canvas-flower img { width: 80px; height: auto; object-fit: contain; }

#canvas-vase {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 240px;
  z-index: 10;
  pointer-events: none;
}

#vase-picker { display: flex; flex-wrap: wrap; gap: var(--s2); }

.vase-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: var(--s2);
  border: 2px solid transparent;
  border-radius: var(--r-md);
  background: rgba(26,26,10,.04);
  cursor: pointer;
  font-size: 0.6875rem;
  color: var(--ink-muted);
  transition: border-color 150ms;
}

.vase-option img { width: 44px; height: auto; object-fit: contain; }
.vase-option--locked { opacity: 0.3; cursor: not-allowed; }
.vase-option--active { border-color: var(--ink); color: var(--ink); }

/* ── vases shelf ──────────────────────────────────────────────────────────── */

.vases-shelf {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s8);
  padding: var(--s8);
  align-items: flex-end;
}

.vase-card { display: flex; flex-direction: column; align-items: center; gap: var(--s3); }
.vase-card__preview { position: relative; width: 200px; height: 280px; }
.vase-card__name { font-size: 1rem; color: var(--ink-muted); }

/* ── dormant ──────────────────────────────────────────────────────────────── */

.dormant-list {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  padding: var(--s8);
  max-width: 600px;
  margin: 0 auto;
}

.dormant-item {
  display: flex;
  align-items: center;
  gap: var(--s4);
  padding: var(--s4) var(--s5);
  background: rgba(26,26,10,.04);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.dormant-item__plant {
  position: relative;
  width: 48px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.dormant-item__plant img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.dormant-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  background: #1a1a2e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  line-height: 1;
  color: #c8d6e8;
}

.dormant-item__info { flex: 1; }
.dormant-item__name { font-weight: 500; font-size: 1rem; margin-bottom: 2px; }
.dormant-item__desc { font-size: 0.75rem; color: var(--ink-muted); }

/* ═══════════════════════════════════════════════════════════════════════════════
   DEMO INLINE — slider that appears beneath the demo mode link in the top bar
   ═══════════════════════════════════════════════════════════════════════════════ */

.demo-inline {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 220px;
  margin-top: 4px;
}

.demo-inline__info {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.demo-inline__stage {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink);
}

.demo-inline__day {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: #81A7CD;
  font-style: italic;
}

.demo-inline__slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.demo-inline__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #81A7CD;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(26,26,10,0.15);
}
.demo-inline__slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #81A7CD;
  cursor: pointer;
  border: none;
}

.demo-inline__marks {
  display: flex;
  justify-content: space-between;
}
.demo-inline__marks span {
  font-family: var(--mono);
  font-size: 0.58rem;
  color: var(--ink-muted);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   AUTH MODAL
   ═══════════════════════════════════════════════════════════════════════════════ */

.top-nav__item--btn {
  font-family: var(--mono);
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  text-align: left;
}


/* backdrop — exact rgba from Figma */
.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(39, 39, 39, 0.32);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 200;
}

/* modal card — #fffff0 bg + #e5e5d6 border, exact from Figma */
.auth-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 201;
  background: #fffff0;
  border: 1px solid #e5e5d6;
  border-radius: 16px;
  width: min(388px, calc(100vw - 48px));
  padding: 23px;               /* + 1px border = 24px, as in Figma */
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-family: var(--mono);
  color: #272727;
}

.auth-modal__close {
  position: absolute;
  top: 22px;
  right: 22px;
  background: none;
  border: none;
  width: 24px;
  height: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  font-family: var(--mono);
}
.auth-modal__close img { display: block; }

/* title — 24px Medium #272727 */
.auth-modal__title {
  font-size: 24px;
  font-weight: 500;
  line-height: normal;
  font-family: var(--mono);
  color: #272727;
}

/* subtitle — 16px Regular #929292 */
.auth-modal__subtitle {
  font-size: 16px;
  color: #929292;
  line-height: normal;
  margin-top: -16px;
}

.auth-modal__social {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* social buttons — #fffff0 bg, #e5e5d6 border, 12px radius — exact Figma */
.auth-modal__social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  padding: 16px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  line-height: 16px;
  color: #272727;
  background: #fffff0;
  border: 1px solid #e5e5d6;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 150ms, background 150ms;
}
.auth-modal__social-btn:hover {
  border-color: #c4c4a8;
  background: #f5f5e4;
}

.auth-modal__divider {
  display: flex;
  align-items: center;
  gap: 8px;
}
.auth-modal__divider-line { flex: 1; height: 1px; background: #e5e5d6; }
/* divider text — #c4c4a8 from Figma */
.auth-modal__divider-text { font-size: 12px; line-height: 16px; color: #c4c4a8; white-space: nowrap; }

.auth-modal__form,
.auth-modal__step {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
/* class sets display:flex, so [hidden] needs restating */
.auth-modal__form[hidden], .auth-modal__step[hidden], .auth-modal__social[hidden], .auth-modal__divider[hidden] { display: none; }

/* field + floating label (label shows once the field has text) */
.auth-modal__field { position: relative; }
.auth-modal__label {
  position: absolute;
  top: -10px;
  left: 12px;
  z-index: 1;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  color: #afafaf;
  background: linear-gradient(#fffff0, #f5f5e4);
  opacity: 0;
  pointer-events: none;
}
.auth-modal__field:has(input:not(:placeholder-shown)) .auth-modal__label { opacity: 1; }

/* input — #f5f5e4 bg, #e5e5d6 border, 12px radius, placeholder #c4c4a8 — exact Figma */
.auth-modal__input {
  width: 100%;
  font-family: var(--mono);
  display: block;
  height: 45px;
  font-size: 16px;
  font-weight: 500;
  color: #272727;
  background: #f5f5e4;
  border: 1px solid #e5e5d6;
  border-radius: 12px;
  padding: 12px;
  outline: none;
  transition: border-color 150ms;
}
.auth-modal__input:focus { border-color: #929292; }
.auth-modal__input::placeholder { color: #c4c4a8; font-weight: 400; }

/* CTA — #d8d8d8 bg, #787878 text — exact Figma
   Hover darkens like app's filled CTAs (#81A7CD → #7699BC) */
.auth-modal__cta {
  width: 100%;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 500;
  line-height: normal;
  color: #787878;
  background: #d8d8d8;
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 150ms, color 150ms;
}
.auth-modal__cta:hover {
  background: #c0c0c0;
  color: #555555;
}
.auth-modal__cta--ready { background: #81a7cd; color: #fffff0; }
.auth-modal__cta--ready:hover { background: #7699bc; color: #fffff0; }

/* Forgot password — #81a7cd exact Figma */
.auth-modal__forgot {
  font-size: 12px;
  line-height: 16px;
  color: #81a7cd !important;    /* index.html forces dark links */
  margin-top: -16px;           /* 8px under the field */
  text-align: right;
  text-decoration: none;
  transition: color 150ms;
}
.auth-modal__forgot:hover { color: #5d8db8; text-decoration: underline; }

.auth-modal__error {
  font-size: 12px;
  color: #c0392b;
  display: none;
}
.auth-modal__error--visible { display: block; margin-top: -16px; }

/* keep Login / Rewards / Dormant clickable above the garden */
.top-nav { position: relative; z-index: 2; }

/* ── Account menu (Figma 713:6232) ─────────────────────────────────────────── */
.account { position: relative; }
.account-menu {
  position: absolute;
  top: 50%;
  right: calc(100% + 4px);
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  width: 188px;
}
.account-menu[hidden] { display: none; }
.account-menu__item {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  margin-right: -2px;
  padding: 11px;              /* + 1px border = 12px */
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 500;
  color: #272727;
  text-align: left;
  background: #f5f5e4;
  border: 1px solid #e5e5d6;
  border-radius: 8px;
  cursor: pointer;
}
.account-menu__item:hover { color: #272727; border-color: #c4c4a8; }
.account-menu__item:focus-visible { outline: 2px solid #272727; outline-offset: 2px; }
.account-menu__pointer { width: 11px; height: 12.4px; display: flex; align-items: center; justify-content: center; }
.account-menu__pointer img { display: block; flex: none; transform: rotate(-90deg); }

/* "Login" and "Hi, user" take the same width, so the top nav never shifts */
#login-label { display: inline-block; min-width: 8ch; }

/* "Link sent!" popup is centred */
.auth-modal--sent .auth-modal__title,
.auth-modal--sent .auth-modal__subtitle { text-align: center; }

/* ═══ SUCCESS MESSAGE (toast) ═══ */
.toast-veil {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: flex;
  justify-content: center;
  padding: 48px 10px;
  pointer-events: none;
}
/* tint + blur sit on their own layer: full strength across the whole strip (48px above and
   below the toast), reaching 32px higher so the bottom nav is fully covered, with a short soft fade at the top */
.toast-veil::before {
  content: "";
  position: absolute;
  top: -32px; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(245, 245, 228, 0) 32px, #f5f5e4 127.63%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, rgba(0,0,0,.15) 6px, rgba(0,0,0,.5) 12px, rgba(0,0,0,.85) 18px, #000 24px);
  mask-image: linear-gradient(to bottom, transparent, rgba(0,0,0,.15) 6px, rgba(0,0,0,.5) 12px, rgba(0,0,0,.85) 18px, #000 24px);
}
.toast-veil[hidden] { display: none; }
.toast {
  position: relative;
  z-index: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px;
  background: #f5f5e4;
  border: 1px solid #e5e5d6;
  border-radius: 12px;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.12);
  pointer-events: auto;
}
.toast__icon { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; }
.toast__icon img { display: block; }
.toast__text { margin: 0; font-family: var(--mono); font-size: 16px; font-weight: 500; color: #272727; line-height: normal; }
.toast__close { display: flex; padding: 0; background: none; border: none; border-radius: 4px; cursor: pointer; }
.toast__close:focus-visible { outline: 2px solid #272727; outline-offset: 2px; }
.toast__timer {
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: #006624;
  transform-origin: left;
  transform: scaleX(0);
  animation: toast-countdown 5s linear forwards;
}
.toast:hover .toast__timer,
.toast:focus-within .toast__timer { animation-play-state: paused; }
@keyframes toast-countdown { to { transform: scaleX(1); } }   /* line fills left to right */
@media (prefers-reduced-motion: reduce) { .toast__timer { visibility: hidden; } }
.toast-live { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ═══ GUEST NUDGE — Figma node 737-5809 ═══ */
.nudge { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  background: rgba(39, 39, 39, 0.32); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); animation: fadeIn 220ms var(--ease) both; }
.nudge[hidden] { display: none; }
.nudge__card { position: relative; box-sizing: border-box; width: 388px; display: flex; flex-direction: column; align-items: center; gap: 24px;
  padding: 23px; background: #fffff0; border: 1px solid #e5e5d6; border-radius: 16px; font-family: var(--mono); text-align: center; }
.nudge__content { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.nudge__title { margin: 0; font: 500 24px/normal var(--mono); color: #272727; }
.nudge__body { margin: 0; font: 400 16px/normal var(--mono); color: #929292; }
.nudge__actions { display: flex; gap: 16px; width: 100%; }
.nudge__btn { flex: 1; box-sizing: border-box; padding: 11px 15px; border: 1px solid #81a7cd; border-radius: 8px;
  font: 500 16px/21px var(--mono); cursor: pointer; transition: background 150ms; }
.nudge__btn--later { background: #fffff0; color: #81a7cd; }
.nudge__btn--later:hover { background: #f5f5e4; color: #81a7cd; }
.nudge__btn--login { background: #81a7cd; color: #fffff0; }
.nudge__btn--login:hover { background: #7699bc; border-color: #7699bc; color: #fffff0; }
.nudge__close { position: absolute; top: 23px; right: 23px; display: flex; padding: 0; background: none; border: none; border-radius: 4px; cursor: pointer; }
.nudge__btn:focus-visible, .nudge__close:focus-visible { outline: 2px solid #272727; outline-offset: 2px; }
