/* eolum: forest and lime over warm paper (D44). Tokens and rules: docs/design-language.md */

@font-face {
  font-family: "Bricolage";
  src: url("/fonts/BricolageGrotesque.ttf") format("truetype");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --ink: #15211C;
  --paper: #F4F4EE;
  --card: #FFFFFF;
  --soft: #F1F1EA;
  --muted: #69736E;
  --line: #E7E7DF;
  --forest: #1E3B32;
  --forest-ink: #F4F7F1;
  --dot: var(--forest);
  --focus: var(--forest);
  --lime: #E6F57A;
  --lime-ink: #15211C;
  --hug: #E2468A;
  --tint-hug: #F8DCEC;
  --tint-lagoon: #CDEDE4;
  --tint-sodium: #EFF6B4;
  --tint-pine: #D8EBD3;
  --radius: 18px;
  --radius-big: 28px;
  --shadow: 0 1px 2px rgb(21 33 28 / .04), 0 8px 24px rgb(21 33 28 / .05);
  --font: "Bricolage", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #EDF2EC;
    --paper: #0F1412;
    --card: #18201C;
    --soft: #202A25;
    --muted: #9AA59F;
    --line: #26302B;
    --forest: #1F4136;
    --dot: var(--lime);
    --focus: var(--lime);
    --tint-hug: #3A2531;
    --tint-lagoon: #1D3631;
    --tint-sodium: #313621;
    --tint-pine: #233325;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; font: 400 16px/1.45 var(--font); color: var(--ink); background: var(--paper); }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: fixed; left: 12px; top: -60px; z-index: 30; padding: 10px 16px; border-radius: 12px; background: var(--forest); color: var(--forest-ink); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
#content:focus { outline: none; }
.boot { display: grid; place-items: center; min-height: 100dvh; margin: 0; font-weight: 800; font-size: 32px; letter-spacing: -.04em; opacity: .4; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Shell: sidebar on wide screens, a top bar on phones */
.shell { min-height: 100dvh; }
.side { display: none; }
.wordmark { font-weight: 800; font-size: 26px; letter-spacing: -.05em; color: var(--ink); text-decoration: none; }
.wordmark .dot { color: var(--dot); }
.wordmark-big { font-size: 56px; margin: 0; }
.bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 92%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; gap: 6px; margin-inline: auto; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 600; }
.nav-on { background: var(--card); box-shadow: var(--shadow); }
.bar-art { display: flex; }
@media (max-width: 420px) {
  .bar { flex-wrap: wrap; gap: 8px; }
  .bar-art { margin-inline-start: auto; }
  .nav { order: 1; flex-basis: 100%; justify-content: center; flex-wrap: wrap; }
}
.list-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 0; scrollbar-width: none; }
.list-tab { flex: none; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 14px; cursor: pointer; }
.list-tab-on { background: var(--forest); color: var(--forest-ink); border-color: var(--forest); }

.side-title { margin: 28px 12px 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.side-nav { display: grid; gap: 4px; }
.side-link { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 12px; background: none; color: var(--ink); text-decoration: none; font-weight: 600; text-align: left; cursor: pointer; }
.side-link:hover { background: color-mix(in srgb, var(--card) 60%, transparent); }
.side-link svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.side-on { background: var(--card); box-shadow: var(--shadow); }
.side-link .count { margin-left: auto; }
.count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--tint-hug); color: var(--ink); font-size: 12px; font-weight: 800; }
.nav-link .count { min-width: 17px; height: 17px; padding: 0 5px; font-size: 10px; }
.side-foot { margin-top: auto; padding-top: 24px; display: grid; gap: 10px; }
.side-me { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
.side-me b { display: block; }
.side-me small { color: var(--muted); font-size: 13px; }

@media (min-width: 960px) {
  .shell { display: grid; grid-template-columns: 264px 1fr; }
  .side { display: flex; flex-direction: column; position: sticky; top: 0; height: 100dvh; padding: 28px 20px 20px; border-right: 1px solid var(--line); overflow-y: auto; }
  .side .wordmark { padding: 0 12px; }
  .bar, .list-tabs { display: none; }
}

/* Buttons and pills */
.btn { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); border-radius: 14px; padding: 10px 18px; font-weight: 700; cursor: pointer; min-height: 44px; background: var(--card); color: var(--ink); text-decoration: none; transition: transform .18s cubic-bezier(.3,1.6,.5,1); }
.btn:active { transform: scale(.96); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-ink { background: var(--forest); color: var(--forest-ink); border-color: var(--forest); }
.btn-volt { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.btn-light { background: #FFFFFF; color: #15211C; border-color: #FFFFFF; width: 100%; }
.btn-ghost { background: transparent; color: var(--forest-ink); border: 1px solid rgb(255 255 255 / .25); width: 100%; }
.btn-soft { background: var(--soft); border-color: var(--soft); width: 100%; }
.link { background: none; border: 0; padding: 4px; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 14px; cursor: pointer; }
.chip-on { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 112px; border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 14px; white-space: nowrap; border: 1px solid transparent; }
.pill svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pill-mine, .pill-held { background: var(--lime); color: var(--lime-ink); }
.pill-taken { background: var(--soft); color: var(--muted); }
.pill-done { background: var(--tint-hug); color: var(--ink); }
.pill-offline { min-width: 0; background: var(--tint-sodium); color: var(--ink); }
.pill-reserve { background: var(--card); color: var(--ink); border-color: var(--line); cursor: pointer; }
.pill-reserve:hover { border-color: var(--forest); }

/* Page */
.page { max-width: 880px; margin: 0 auto; padding: clamp(16px, 4vw, 40px); display: grid; gap: 20px; align-content: start; }
.display { font-weight: 800; letter-spacing: -.035em; line-height: 1.05; font-size: clamp(30px, 4.5vw, 40px); margin: 0; }
.display-small { font-size: clamp(24px, 3.5vw, 30px); }
.display mark, .hl { background: var(--lime); color: var(--lime-ink); padding: 0 .14em; border-radius: 8px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0; }
.hint { color: var(--muted); font-size: 14px; margin: 0; }
.number { font-weight: 800; font-size: 36px; letter-spacing: .02em; margin: 2px 0 10px; font-variant-numeric: tabular-nums; }

/* The list page: header, list card, right rail */
.list-page { max-width: 1240px; margin: 0 auto; padding: clamp(16px, 3vw, 32px) clamp(16px, 3vw, 40px) 48px; display: grid; gap: 20px; }
.list-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.list-head h1 { margin-right: 4px; }
.list-tools { display: flex; gap: 10px; margin-left: auto; flex-wrap: wrap; }
@media (min-width: 641px) { .list-tools { flex-wrap: nowrap; } .search { min-width: 180px; } }
.search { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); flex: 0 1 240px; }
.search svg { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search input { border: 0; outline: 0; background: none; width: 100%; padding: 10px 0; }
.search:focus-within, .field:focus-visible { border-color: var(--forest); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lime) 80%, transparent); }
.search input:focus-visible, .field:focus-visible { outline: none; }
.list-owner { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: 14px; }
.list-grid { display: grid; gap: 20px; align-items: start; }
@media (min-width: 1180px) { .list-grid { grid-template-columns: minmax(0, 1fr) 320px; } }

.card { background: var(--card); border-radius: var(--radius-big); box-shadow: var(--shadow); border: 1px solid var(--line); padding: clamp(14px, 2.4vw, 28px); }
.list-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.segments { display: inline-flex; gap: 2px; padding: 4px; border-radius: 14px; background: var(--soft); }
.segment { border: 0; background: none; border-radius: 10px; padding: 6px 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.segment-on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.tally { color: var(--muted); font-weight: 600; font-size: 14px; margin: 0; }

/* Wishes */
.wishes { list-style: none; margin: 0; padding: 0; display: grid; }
.wish { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 14px 10px; border-bottom: 1px solid var(--line); border-radius: 14px; }
.wish:last-child { border-bottom: 0; }
.wish:hover { background: color-mix(in srgb, var(--soft) 70%, transparent); }
.wish-fulfilled .wish-title { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--hug); }
.wish-body { min-width: 0; }
.wish-title { margin: 0; font-size: 17px; line-height: 1.25; font-weight: 750; letter-spacing: -.01em; }
.wish-sub, .wish-alt, .wish-meta { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.wish-meta { font-size: 13px; }
.wish-alt { font-style: italic; }
.price { background: var(--soft); color: var(--ink); font-weight: 700; padding: 5px 10px; border-radius: 10px; font-size: 13px; white-space: nowrap; }
.act { display: grid; justify-items: center; gap: 4px; }
.act-many { display: grid; gap: 6px; justify-items: end; }
.none { text-align: center; color: var(--muted); padding: 32px 0; margin: 0; }

/* Icon tiles: flat pastel squares, line icons in forest */
.tile { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; flex: none; background: var(--t); color: var(--ink); }
.tile svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile-hug { --t: var(--tint-hug); }
.tile-lagoon { --t: var(--tint-lagoon); }
.tile-sodium { --t: var(--tint-sodium); }
.tile-pine { --t: var(--tint-pine); }
.tile-small { width: 26px; height: 26px; border-radius: 8px; }
.tile-small svg { width: 15px; height: 15px; }

/* Right rail */
.rail { display: grid; gap: 20px; }
.invite { background: var(--forest); color: var(--forest-ink); border-radius: var(--radius-big); padding: 28px 24px 24px; display: grid; justify-items: center; gap: 16px; text-align: center; }
.invite h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.invite .art { border-radius: 24px; box-shadow: 0 0 0 6px rgb(255 255 255 / .08); }
.follow-chip { background: rgb(255 255 255 / .12); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.invite .hint { color: rgb(244 247 241 / .72); }
.rail-card { display: grid; gap: 14px; justify-items: center; }
.rail-card-head { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.rail-card-head h2 { margin: 0; font-size: 17px; }
.initials { background: var(--soft); border-radius: 10px; padding: 4px 8px; font-weight: 800; font-size: 13px; }

/* Art */
.art { border-radius: 22%; flex: none; display: block; }
.art-initials { font-family: var(--font); font-weight: 800; fill: #15211C; letter-spacing: -.03em; }

/* Panels (share, profile, follow, join) */
.panel { border-radius: var(--radius-big); padding: 24px clamp(18px, 4vw, 32px); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 14px; }
.panel-pink { background: color-mix(in srgb, var(--tint-hug) 55%, var(--card)); }
.panel-volt { background: color-mix(in srgb, var(--tint-sodium) 70%, var(--card)); }
.share-row, .art-picker { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.copy { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 16px; padding: 4px 4px 4px 16px; background: var(--card); min-width: 0; flex-wrap: wrap; row-gap: 4px; }
.copy-link { flex: 1 1 9em; min-width: 0; font-variant-numeric: tabular-nums; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-row > div { flex: 1 1 240px; min-width: 0; }
.copy .btn { flex: none; }
.panel h1, .panel h2, .panel p { overflow-wrap: anywhere; }
@media (max-width: 640px) { .share-row { gap: 16px; } .share-row .art { width: 96px; height: 96px; } }
.page > * { min-width: 0; }
.people { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.person { display: flex; align-items: center; gap: 12px; }
.person-name { font-weight: 700; margin-right: auto; }
.person-anon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 22%; background: var(--soft); font-weight: 800; }
.art-controls { display: grid; gap: 12px; min-width: 220px; }
.swatches { display: flex; gap: 10px; }
.swatch { width: 40px; height: 40px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%); }
.swatch-on { border-color: var(--ink); box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink); }

/* Forms */
.field { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; background: var(--card); min-height: 46px; }
.add-form { display: grid; gap: 14px; padding: 20px; border-radius: var(--radius); border: 1.5px dashed color-mix(in srgb, var(--forest) 45%, var(--line)); background: var(--card); }
.add-form label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.add-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
.add-row label { flex: 1 1 140px; }
.toggle { display: flex; gap: 10px; align-items: center; font-weight: 700; }
.toggle input { width: 22px; height: 22px; accent-color: var(--forest); }
.follow-card { justify-items: center; text-align: center; }

/* Sign-in: the forest at night */
/* One fixed column (D79): an auto column grew to the card text's unwrapped width and pushed the card left. */
.signin { min-height: 100dvh; display: grid; grid-template-columns: min(420px, 100%); place-content: center; gap: 20px; padding: 24px; color: #F4F7F1;
  background: radial-gradient(80% 60% at 20% 0%, #2B5446 0%, transparent 60%), radial-gradient(70% 50% at 100% 100%, #3A4A1E 0%, transparent 60%), #10201A; }
.signin .wordmark, .signin .wordmark .dot { color: #F4F7F1; }
.signin .wordmark .dot { color: var(--lime); }
.signin-card { width: 100%; display: grid; gap: 12px; text-align: center; }
.eo-signin { padding: 0; margin-bottom: -8px; }
.btn-provider { width: 100%; gap: 10px; }
.btn-provider svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.btn-apple { background: #FFFFFF; color: #000000; border-color: #FFFFFF; }
/* Not built yet (D18): readable, plainly not a way in today. */
.btn-soon, .btn-soon:hover { background: transparent; color: #F4F7F1; border: 1px dashed rgb(255 255 255 / .35); cursor: default; transform: none; }
.soon { margin-left: 4px; padding: 2px 8px; border-radius: 999px; background: rgb(255 255 255 / .12); color: #F4F7F1; font-size: 12px; font-weight: 700; }
.btn-telegram { background: #1677AE; color: #FFFFFF; border-color: #1677AE; }
.signin .eo-shadow { fill: #000; opacity: .35; }
.tagline { margin: -6px 0 20px; color: var(--lime); font-weight: 700; letter-spacing: .02em; }
.signin .field { background: rgb(255 255 255 / .06); color: #F4F7F1; border: 1px solid rgb(255 255 255 / .3); }
.signin .field::placeholder { color: #F4F7F1; opacity: .45; }
.signin form { display: grid; gap: 10px; }
.signin .field-code { text-align: center; font-size: 22px; letter-spacing: .2em; font-variant-numeric: tabular-nums; }
.or { display: flex; align-items: center; gap: 12px; color: #BCCBC3; font-size: 14px; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid rgb(255 255 255 / .15); }
.note { color: var(--lime); font-size: 14px; margin: 0; }
.fine { text-align: center; color: #BCCBC3; font-size: 13px; margin: 0; }
.dev { margin-top: 18px; padding-top: 16px; border-top: 1px dashed rgb(255 255 255 / .2); }
.dev-title { margin: 0 0 8px; font-size: 12px; color: #BCCBC3; text-transform: uppercase; letter-spacing: .1em; }
.dev-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.signin .chip { color: #F4F7F1; background: transparent; border-color: rgb(255 255 255 / .35); }
.signin .chip-on { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
/* First-run questions (D102). */
.choices { display: grid; gap: 10px; }
.choices-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.choice { width: 100%; }
.starter { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; text-align: left; }
.starter-wish { padding: 12px 14px; border: 1px solid rgb(255 255 255 / .2); border-radius: 14px; font-weight: 400; }
.starter-wish span { display: grid; gap: 2px; }
.starter-wish small { color: #BCCBC3; }
.onboarding .link { color: #F4F7F1; }
/* Starter wishes that stay as suggestions until added or dismissed (D93). */
.suggestions { margin-top: 16px; }
.suggestion-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.suggestion { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 10px; border: 1.5px dashed var(--line); border-radius: 14px; }
.suggestion-body { min-width: 0; }
.suggestion-title { margin: 0; font-size: 16px; line-height: 1.25; font-weight: 700; }
.suggestion-sub, .suggestion-meta { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.suggestion-actions { display: grid; gap: 4px; justify-items: center; align-self: center; }

.empty { text-align: center; }
.note-error { color: var(--hug); font-weight: 700; margin: 0; }
.made { display: grid; gap: 10px; }
.made-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 16px; }
.spot-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.spot-row { display: flex; align-items: center; gap: 10px; }
.spot-row .art { flex: none; }
.spot-name { flex: 1 1 auto; min-width: 0; }
.btn-icon { flex: none; width: 44px; height: 44px; padding: 0; display: grid; place-items: center; font-size: 18px; }
.message { margin: 0; padding: 14px 16px; border-radius: 16px; background: var(--soft); border: 1.5px dashed var(--line); font-weight: 600; overflow-wrap: anywhere; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--forest); color: var(--forest-ink); padding: 12px 20px; border-radius: 999px; font-weight: 700; z-index: 10; max-width: calc(100% - 32px); box-shadow: 0 8px 24px rgb(0 0 0 / .18); }

/* Eo, the gentle giant (D40, D61). Plain CSS keyframes on transform and opacity only, with
   transform-box: fill-box on SVG parts, so Safari on iPhone, Firefox and Chrome animate alike. */
.eo-home { position: relative; overflow: hidden; display: grid; justify-items: center; gap: 6px; padding: 8px 0 24px; }
.eo { transition: transform 5s cubic-bezier(.45,0,.55,1), opacity 5s ease-in; }
.eo-figure { display: block; overflow: visible; transform-origin: 50% 95%; animation: eo-breathe 4.2s ease-in-out infinite; }
.eo-shadow, .eo-eyes, .eo-wish, .eo-wave { transform-box: fill-box; }
.eo-shadow { fill: var(--ink); opacity: .08; transform-origin: center; animation: eo-shadow 4.2s ease-in-out infinite; }
.eo-eyes { transform-origin: center; animation: eo-blink 6s infinite; }
.eo-wish { transform-origin: center; animation: eo-float 3.2s ease-in-out infinite; }
.eo-wish-glow { animation: eo-glow 3.2s ease-in-out infinite; }
.eo-wave { transform-origin: 15% 50%; animation: eo-wave 9s ease-in-out infinite; }
.eo-away .eo-figure { animation: eo-waddle .9s ease-in-out infinite; }
.eo-away-down { transform: translateY(170%); }
.eo-away-up { transform: translateY(-170%); opacity: 0; }
@keyframes eo-breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.025, 1.05); } }
@keyframes eo-shadow { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(1.06); } }
@keyframes eo-blink { 0%, 93%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes eo-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes eo-glow { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
@keyframes eo-wave { 0%, 78%, 100% { transform: rotate(0); } 83% { transform: rotate(-55deg); } 88% { transform: rotate(-30deg); } 93% { transform: rotate(-55deg); } }
@keyframes eo-waddle { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(4deg) translateY(-3px); } }
/* Still screen: the system asks for less motion, or Jazzy Wrap is switched off (D60). Eo stays, just still. */
body.still .eo-figure, body.still .eo-figure * { animation: none !important; }
body.still .eo-away { transform: none; opacity: 0; transition: opacity .6s; }

/* Jazz it up: the kid's own festive switch */
body.jazz::before { content: ""; position: fixed; inset: -100px 0 0; pointer-events: none; z-index: 20; opacity: .9;
  background-image: radial-gradient(3px 3px at 10% 10%, #CFE3D8 50%, transparent 51%), radial-gradient(2px 2px at 30% 40%, #CFE3D8 50%, transparent 51%), radial-gradient(3px 3px at 55% 20%, #CFE3D8 50%, transparent 51%), radial-gradient(2px 2px at 75% 50%, #CFE3D8 50%, transparent 51%), radial-gradient(3px 3px at 90% 15%, #CFE3D8 50%, transparent 51%);
  background-size: 300px 300px; animation: snow 12s linear infinite; }
body.jazz .display mark { background: linear-gradient(90deg, var(--lime), #FFD3E6, var(--lime)); }
@keyframes snow { to { transform: translateY(300px); } }

@media (max-width: 640px) {
  .wish { grid-template-columns: auto minmax(0, 1fr) auto; padding: 12px 4px; }
  .wish .price { grid-column: 3; grid-row: 1; align-self: start; }
  .wish .tile { align-self: start; }
  .wish > :last-child:not(.price) { grid-column: 2 / -1; justify-self: start; justify-items: start; }
  .act { grid-auto-flow: column; align-items: center; gap: 10px; }
  .list-tools { margin-left: 0; width: 100%; }
  .search { flex: 1 1 100%; }
  .list-tools .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  body.jazz::before { display: none; }
  .eo-away { transform: none; opacity: 0; transition: opacity .6s !important; }
}

/* Grown-ups you follow (profile) */
.following { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.following li { display: grid; gap: 0.4rem; }
.wish-management .wish-title, .wish-management .wish-sub { overflow-wrap: anywhere; }
.wish-management .link { min-height: 44px; }

/* D96: the about page. */
.about { max-width: 34rem; margin: 0 auto; padding: 32px 24px 48px; display: grid; gap: 16px; justify-items: center; text-align: center; }
.about p { margin: 0; font-size: 18px; line-height: 1.55; }
.about-portrait { width: min(320px, 80vw); height: auto; border-radius: var(--radius-big); box-shadow: var(--shadow); }
.about-title { margin: 8px 0 0; font-size: clamp(28px, 6vw, 40px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.about-sign { font-weight: 700; }
.signin .fine a, .about-link { color: inherit; }

/* The landing page: one wish on a fridge note. Paper stays light in dark mode, like real paper. */
@font-face { font-family: "Caveat"; src: url("/fonts/Caveat.woff2") format("woff2"); font-weight: 600; font-display: swap; }
.landing { min-height: 100dvh; max-width: 520px; margin: 0 auto; padding: 16px 20px 28px; display: flex; flex-direction: column; }
.landing-top { display: flex; justify-content: flex-end; }
.landing-signin { color: var(--ink); font-weight: 700; text-decoration: none; padding: 10px 14px; border-radius: 999px; }
.landing-signin:hover { background: var(--soft); }
.landing-main { flex: 1; display: grid; align-content: start; gap: 64px; }
.fridge { position: relative; width: min(100%, 400px); margin: 8px auto 0; padding-top: 18px; }
.magnet { position: absolute; top: 4px; left: 50%; translate: -50% 0; z-index: 3; width: 28px; height: 28px; border-radius: 50%; background: var(--forest); border: 3px solid var(--paper); box-shadow: 0 4px 10px rgb(21 33 28 / .22); }
.slip-stack { position: relative; display: grid; }
.slip { grid-area: 1 / 1; border-radius: 4px 5px 8px 5px; color: #15211C; transition: transform .32s cubic-bezier(.22,1,.36,1), opacity .22s ease; }
.paper-butter { background: #FEF2A6; border: 1px solid #F3E27E; }
.paper-lilac { background: #E8DAF8; border: 1px solid #D5C1EE; }
.paper-mint { background: #D7F5EC; border: 1px solid #B7E8DA; }
.slip-back { z-index: 1; transform: rotate(4deg) translate(16px, 38px); cursor: pointer; font: inherit; box-shadow: 0 10px 24px rgb(21 33 28 / .06); display: flex; align-items: flex-end; justify-content: flex-end; padding: 0; }
.slip-back:hover { transform: rotate(5deg) translate(20px, 42px); }
.slip-back:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.slip-tab { margin: 0 10px 6px 0; padding: 6px 12px; border-radius: 999px; background: rgb(255 255 255 / .6); font-weight: 800; font-size: 13px; }
.slip-front { z-index: 2; position: relative; transform: rotate(-2.2deg); min-height: min(92vw, 400px); padding: 44px 26px 84px; display: flex; flex-direction: column; justify-content: center; box-shadow: 0 18px 38px rgb(21 33 28 / .08), 0 3px 8px rgb(21 33 28 / .04); }
.slip-swapping { transform: rotate(-5deg) translate(-12px, -8px) scale(.97); opacity: .4; }
.slip-wish { margin: 0; font-size: clamp(32px, 9vw, 46px); font-weight: 800; line-height: 1.05; letter-spacing: -.035em; font-stretch: 92%; transform: rotate(-.8deg); text-wrap: balance; }
.slip-wish::first-letter { font-size: 1.08em; }
.slip-hand { margin: 18px 0 0; font-family: "Caveat", var(--font); font-weight: 600; font-size: clamp(23px, 6vw, 27px); line-height: 1.2; color: #2C5247; transform: rotate(.7deg); }
.eo-peek { position: absolute; left: 50%; bottom: -1px; translate: -50% 0; rotate: 1.5deg; overflow: hidden; }
.landing-start { text-align: center; display: grid; justify-items: center; gap: 18px; max-width: 360px; margin: 0 auto; }
.landing-start p { margin: 0; font-size: 18px; font-weight: 600; text-wrap: balance; }
.landing-cta { width: min(100%, 280px); min-height: 52px; font-size: 16px; }
.landing-foot { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted); }
.landing-signoff { display: inline-flex; align-items: baseline; gap: 8px; color: var(--ink); font-weight: 600; }
.landing-signoff .wordmark { font-size: 20px; }
.landing-foot a { color: var(--ink); font-weight: 700; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .slip { transition: none; } .slip-swapping { transform: rotate(-2.2deg); opacity: 1; } }
body.still .slip { transition: none; }
