/* Chorus family app. Hand-written, no build step. Mobile first: base rules
   are for phones; min-width queries grow the layout for tablets and desktops. */

@font-face {
  font-family: "Fredoka";
  src: url("../fonts/fredoka-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --bg: #fff4e4;
  --bg-2: #ffe9d2;
  --card: #ffffff;
  --ink: #2f2652;
  --ink-soft: #6c6488;
  --ink-faint: #a49cbd;
  --line: #f1e3cf;
  --line-strong: #e6d3b8;

  --sun: #ffc93d;
  --sun-deep: #f0a500;
  --coral: #ff6f61;
  --coral-deep: #e04a3c;
  --mint: #2fcf95;
  --mint-deep: #17a873;
  --sky: #4cb8ff;
  --sky-deep: #1d8fdc;
  --grape: #8b6cff;
  --grape-deep: #6a48e8;
  --bubble: #ff7eb6;
  --bubble-deep: #e2508f;

  /* The member theme: set per member page by a .theme-* class. */
  --accent: var(--grape);
  --accent-deep: var(--grape-deep);
  --accent-soft: #efe9ff;

  --radius-s: 14px;
  --radius: 22px;
  --radius-l: 32px;
  --shadow-s: 0 2px 0 rgba(47, 38, 82, 0.06), 0 6px 16px rgba(47, 38, 82, 0.06);
  --shadow: 0 3px 0 rgba(47, 38, 82, 0.07), 0 14px 34px rgba(47, 38, 82, 0.1);
  --shadow-l: 0 30px 80px rgba(47, 38, 82, 0.22);

  --font-display: "Fredoka", ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 0px;

  color-scheme: light;
}

.theme-coral  { --accent: var(--coral);  --accent-deep: var(--coral-deep);  --accent-soft: #ffe7e3; }
.theme-sky    { --accent: var(--sky);    --accent-deep: var(--sky-deep);    --accent-soft: #e2f3ff; }
.theme-mint   { --accent: var(--mint);   --accent-deep: var(--mint-deep);   --accent-soft: #dcf8ec; }
.theme-grape  { --accent: var(--grape);  --accent-deep: var(--grape-deep);  --accent-soft: #efe9ff; }
.theme-sun    { --accent: #ffb020;       --accent-deep: #d98a00;            --accent-soft: #fff2cf; }
.theme-bubble { --accent: var(--bubble); --accent-deep: var(--bubble-deep); --accent-soft: #ffe6f1; }
.theme-tangerine { --accent: #ff9142;    --accent-deep: #e06d17;            --accent-soft: #ffeadb; }
.theme-teal   { --accent: #1fc7c7;       --accent-deep: #0f9d9d;            --accent-soft: #d9f7f6; }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  background: radial-gradient(1200px 700px at 10% -10%, #ffe1ec 0%, transparent 60%),
              radial-gradient(1000px 700px at 110% 10%, #dff1ff 0%, transparent 55%),
              var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-deep); }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 12px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hidden { display: none !important; }

/* ── Background sky ─────────────────────────────────────────────────────── */
.sky { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(8px); opacity: 0.55; animation: drift 22s ease-in-out infinite alternate; }
.blob-a { width: 340px; height: 340px; background: #ffd9a8; left: -120px; bottom: -80px; }
.blob-b { width: 260px; height: 260px; background: #d8ccff; right: -80px; top: 18%; animation-duration: 28s; }
.blob-c { width: 200px; height: 200px; background: #c6f2df; left: 40%; top: -90px; animation-duration: 34s; }
.twinkle { position: absolute; color: var(--sun); font-size: 22px; animation: twinkle 3.6s ease-in-out infinite; }
.t1 { left: 8%; top: 22%; }
.t2 { right: 12%; top: 9%; font-size: 16px; animation-delay: 1.2s; color: var(--bubble); }
.t3 { right: 6%; bottom: 20%; animation-delay: 2.1s; color: var(--sky); }
.t4 { left: 46%; bottom: 8%; font-size: 14px; animation-delay: 0.6s; }

@keyframes drift { to { transform: translate(40px, -30px) scale(1.08); } }
@keyframes twinkle { 0%, 100% { opacity: 0.2; transform: scale(0.8) rotate(0deg); } 50% { opacity: 0.9; transform: scale(1.15) rotate(20deg); } }

.app { position: relative; z-index: 1; min-height: 100dvh; }

/* ── Layout primitives ───────────────────────────────────────────────────── */
.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: calc(var(--safe-top) + 12px) var(--gutter) calc(var(--safe-bottom) + var(--tabbar-h) + 40px);
  /* backwards, not both: a transform kept after the animation would make the
     page the containing block of the fixed tab bar. */
  animation: page-in 0.42s cubic-bezier(0.2, 0.9, 0.3, 1.2) backwards;
}
.page.narrow { max-width: 560px; }
@keyframes page-in { from { opacity: 0; transform: translateY(14px) scale(0.99); } }

.stack { display: grid; gap: 16px; }
.stack-l { display: grid; gap: 28px; }
.row { display: flex; align-items: center; gap: 12px; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }
.small { font-size: 0.88rem; }
.tiny { font-size: 0.78rem; }

/* ── Top bar ─────────────────────────────────────────────────────────────── */
.topbar { display: flex; align-items: center; gap: 12px; padding: 8px 0 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; letter-spacing: -0.02em; }
.brand-mark { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--grape); box-shadow: 0 3px 0 var(--grape-deep); font-size: 22px; transform: rotate(-6deg); transition: transform 0.3s; }
.brand:hover .brand-mark { transform: rotate(6deg) scale(1.06); }
.topbar .spacer { flex: 1; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  --b: var(--accent);
  --bd: var(--accent-deep);
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--b);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 0 var(--bd);
  transform: translateY(0);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.2s, background 0.2s;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--bd); }
.btn:disabled, .btn[aria-busy="true"] { cursor: default; filter: grayscale(0.4) opacity(0.6); }
.btn:disabled:active { transform: none; box-shadow: 0 4px 0 var(--bd); }
.btn-big { min-height: 62px; padding: 0 30px; font-size: 1.25rem; }
.btn-block { width: 100%; }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 0.95rem; box-shadow: 0 3px 0 var(--bd); }
.btn-small:active { transform: translateY(3px); }
.btn-sun { --b: var(--sun); --bd: var(--sun-deep); color: var(--ink); }
.btn-mint { --b: var(--mint); --bd: var(--mint-deep); }
.btn-coral { --b: var(--coral); --bd: var(--coral-deep); }
.btn-grape { --b: var(--grape); --bd: var(--grape-deep); }
.btn-sky { --b: var(--sky); --bd: var(--sky-deep); }
.btn-soft { --b: #fff; --bd: var(--line-strong); color: var(--ink); }
.btn-ghost { background: transparent; box-shadow: none; color: var(--ink-soft); }
.btn-ghost:hover { background: rgba(47, 38, 82, 0.06); filter: none; }
.btn-ghost:active { transform: scale(0.97); box-shadow: none; }
.btn-icon { width: 48px; min-height: 48px; padding: 0; border-radius: 16px; font-size: 1.3rem; }

.link-btn { appearance: none; background: none; border: 0; padding: 4px 2px; color: var(--accent-deep); font-weight: 700; cursor: pointer; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; border: 2px solid rgba(255, 255, 255, 0.8); }
.card-tight { padding: 16px; }
.card-title { font-size: 1.35rem; display: flex; align-items: center; gap: 10px; }
.section-head { display: flex; align-items: baseline; gap: 10px; margin: 4px 4px 12px; }
.section-head h2 { font-size: 1.5rem; }
.section-head .count { font-family: var(--font-display); background: var(--accent-soft); color: var(--accent-deep); padding: 2px 12px; border-radius: 999px; font-size: 0.95rem; font-weight: 600; }
.section-head .spacer { flex: 1; }
.emoji { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; line-height: 1; }

/* ── Forms ───────────────────────────────────────────────────────────────── */
.field { display: grid; gap: 6px; }
.field label { font-weight: 800; font-size: 0.92rem; color: var(--ink-soft); padding-left: 4px; }
.input {
  width: 100%;
  min-height: 54px;
  padding: 12px 18px;
  border-radius: 18px;
  border: 2.5px solid var(--line);
  background: #fffdf9;
  font-size: 1.05rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
textarea.input { min-height: 96px; resize: vertical; }
select.input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 46px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%236c6488' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 16px;
}
.input:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 5px var(--accent-soft); }
.input[aria-invalid="true"] { border-color: var(--coral); }
.pin-input { -webkit-text-security: disc; letter-spacing: 0.5em; font-family: var(--font-display); }
.field-error { color: var(--coral-deep); font-weight: 700; font-size: 0.88rem; padding-left: 4px; }
.form-error { background: #ffe7e3; color: var(--coral-deep); border-radius: 16px; padding: 12px 16px; font-weight: 700; }
.form-note { background: #e2f3ff; color: #145c8f; border-radius: 16px; padding: 12px 16px; font-weight: 700; }
.grid-2 { display: grid; gap: 14px; }
@media (min-width: 520px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.check { display: flex; align-items: center; gap: 10px; font-weight: 700; cursor: pointer; }
.check input { width: 24px; height: 24px; accent-color: var(--accent); }

/* ── Landing ─────────────────────────────────────────────────────────────── */
.landing { display: grid; gap: 36px; align-items: center; padding-top: 8px; }
.landing-copy { display: grid; gap: 22px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; align-self: start; justify-self: start; background: #fff; border-radius: 999px; padding: 8px 16px; font-weight: 800; color: var(--grape-deep); box-shadow: var(--shadow-s); font-size: 0.95rem; }
.landing h1 { font-size: clamp(2.5rem, 7.2vw, 4.4rem); font-weight: 700; letter-spacing: -0.03em; }
.landing h1 .hl { color: var(--coral); position: relative; display: inline-block; }
.landing h1 .hl::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: 0.06em; height: 0.28em; background: var(--sun); opacity: 0.55; border-radius: 999px; z-index: -1; }
.landing .lede { font-size: clamp(1.08rem, 2.2vw, 1.3rem); color: var(--ink-soft); max-width: 34ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-row .btn { flex: 1 1 auto; }
@media (min-width: 900px) { .cta-row .btn { flex: 0 0 auto; } }
.hero { position: relative; }
.hero-art { width: 100%; max-width: 520px; margin: 0 auto; filter: drop-shadow(0 24px 40px rgba(47, 38, 82, 0.15)); }
.hero-art .sun { animation: bob 5s ease-in-out infinite; transform-origin: 330px 72px; }
.hero-art .sun-rays { animation: spin 26s linear infinite; transform-origin: 330px 72px; }
.hero-art .cloud-1 { animation: float-x 9s ease-in-out infinite alternate; }
.hero-art .cloud-2 { animation: float-x 7s ease-in-out infinite alternate-reverse; }
.hero-art .pop-star { animation: pop 2.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.hero-art .ps-2 { animation-delay: 0.9s; }
.hero-art .ps-3 { animation-delay: 1.7s; }
.hero-art .house { animation: squish 6s ease-in-out infinite; transform-box: fill-box; transform-origin: bottom center; }
@keyframes bob { 50% { transform: translateY(-8px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float-x { to { transform: translateX(26px); } }
@keyframes pop { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.2) rotate(14deg); } }
@keyframes squish { 0%, 90%, 100% { transform: scale(1, 1); } 94% { transform: scale(1.03, 0.97); } 97% { transform: scale(0.98, 1.02); } }

.features { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 18px; }
.feature { display: grid; gap: 8px; padding: 22px; }
.feature .emoji { font-size: 2.2rem; }
.feature h3 { font-size: 1.2rem; }
.feature p { color: var(--ink-soft); font-size: 0.98rem; }
.f-1 { transform: rotate(-1.2deg); }
.f-2 { transform: rotate(0.8deg); }
.f-3 { transform: rotate(-0.6deg); }
.footer { text-align: center; color: var(--ink-faint); font-size: 0.9rem; padding: 40px 0 10px; }

@media (min-width: 900px) {
  .landing { grid-template-columns: 1.05fr 1fr; padding-top: 30px; min-height: 62vh; }
}

/* Auth card */
.auth-wrap { display: grid; place-items: center; min-height: calc(100dvh - 120px); }
.auth-card { width: 100%; max-width: 460px; padding: 30px 26px; display: grid; gap: 20px; border-radius: var(--radius-l); }
.auth-card .auth-emoji { font-size: 3rem; text-align: center; animation: bob 3s ease-in-out infinite; }
.auth-card h1 { font-size: 2rem; text-align: center; }
.auth-card .sub { text-align: center; color: var(--ink-soft); margin-top: -10px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border-radius: 999px; padding: 5px; gap: 4px; }
.seg button { appearance: none; border: 0; background: transparent; min-height: 44px; border-radius: 999px; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--ink-soft); cursor: pointer; transition: background 0.2s, color 0.2s, box-shadow 0.2s; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-s); }
.auth-foot { text-align: center; color: var(--ink-soft); font-size: 0.95rem; }

/* ── Who's here (member picker) ─────────────────────────────────────────── */
.picker-head { text-align: center; display: grid; gap: 8px; margin: 10px 0 30px; }
.picker-head h1 { font-size: clamp(2.1rem, 6vw, 3.2rem); font-weight: 700; }
.picker-head p { color: var(--ink-soft); font-size: 1.1rem; }
.picker-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); max-width: 980px; margin: 0 auto; }
@media (min-width: 700px) { .picker-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 26px; } }
.member-tile {
  appearance: none;
  border: 0;
  cursor: pointer;
  background: var(--card);
  border-radius: var(--radius-l);
  padding: 22px 14px 18px;
  display: grid;
  justify-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1), box-shadow 0.25s;
  animation: tile-in 0.5s cubic-bezier(0.3, 1.5, 0.5, 1) both;
  color: var(--ink);
  position: relative;
}
.member-tile:hover { transform: translateY(-6px) rotate(-1.5deg); box-shadow: var(--shadow-l); }
.member-tile:nth-child(even):hover { transform: translateY(-6px) rotate(1.5deg); }
.member-tile:active { transform: scale(0.96); }
.member-tile .name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }
.member-tile .stars { display: inline-flex; align-items: center; gap: 6px; background: #fff6d6; color: #8a5a00; font-weight: 800; border-radius: 999px; padding: 4px 12px; font-size: 0.95rem; }
.member-tile .lock { position: absolute; top: 12px; right: 14px; font-size: 1rem; opacity: 0.55; }
.member-tile.add { background: transparent; border: 3px dashed var(--line-strong); box-shadow: none; color: var(--ink-soft); }
.member-tile.add .avatar { background: var(--bg-2); box-shadow: none; }
@keyframes tile-in { from { opacity: 0; transform: translateY(20px) scale(0.92); } }

.grownup-door { display: flex; justify-content: center; margin-top: 40px; }

/* ── Avatars ─────────────────────────────────────────────────────────────── */
.avatar {
  --size: 96px;
  width: var(--size);
  height: var(--size);
  border-radius: 38%;
  display: grid;
  place-items: center;
  font-size: calc(var(--size) * 0.56);
  background: var(--accent);
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.12), 0 6px 0 var(--accent-deep);
  position: relative;
  flex: none;
}
.avatar::after { content: ""; position: absolute; top: 12%; left: 16%; width: 26%; height: 16%; border-radius: 50%; background: rgba(255, 255, 255, 0.45); transform: rotate(-30deg); }
.avatar.s { --size: 44px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12), 0 3px 0 var(--accent-deep); }
.avatar.xs { --size: 28px; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12); }
.avatar.xs::after { display: none; }
.avatar.m { --size: 64px; }
.avatar.l { --size: 128px; }
.avatar.xl { --size: clamp(120px, 22vw, 170px); }
.avatar.wiggle { animation: wiggle 4s ease-in-out infinite; }
@keyframes wiggle { 0%, 82%, 100% { transform: rotate(0); } 86% { transform: rotate(-9deg) scale(1.04); } 90% { transform: rotate(8deg) scale(1.06); } 94% { transform: rotate(-4deg); } }

/* ── Member page ─────────────────────────────────────────────────────────── */
.member-page { --tabbar-h: 88px; }
.member-top { display: flex; align-items: center; gap: 10px; padding: 6px 0 16px; }
.switcher { display: inline-flex; align-items: center; gap: 10px; background: #fff; border-radius: 999px; padding: 5px 16px 5px 5px; box-shadow: var(--shadow-s); border: 0; cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--ink); transition: transform 0.2s; }
.switcher:hover { transform: translateY(-2px); }
.switcher .stack-avatars { display: flex; }
.switcher .stack-avatars .avatar { margin-left: -12px; border: 3px solid #fff; box-shadow: none; }
.switcher .stack-avatars .avatar:first-child { margin-left: 0; }

.hello {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-l);
  padding: 26px 22px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px 20px;
  align-items: center;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.08), var(--shadow);
}
.hello::before, .hello::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.hello::before { width: 260px; height: 260px; right: -80px; top: -120px; }
.hello::after { width: 140px; height: 140px; right: 140px; bottom: -90px; }
/* White text on the sunny yellow is too faint: that theme greets in ink. */
.theme-sun .hello { color: var(--ink); }
.theme-sun .hello .goal { background: rgba(255, 255, 255, 0.35); }
.theme-sun .hello .goal-bar { background: rgba(47, 38, 82, 0.12); }
.theme-sun .hello .goal-bar > span { background: #fff; }
.hello .avatar[role="button"] { cursor: pointer; }
.hello .avatar { --accent: #fff; --accent-deep: rgba(0, 0, 0, 0.15); background: rgba(255, 255, 255, 0.96); cursor: pointer; border: 0; }
.hello-text { display: grid; gap: 4px; position: relative; z-index: 1; min-width: 0; }
.hello-text .greet { font-weight: 800; opacity: 0.9; font-size: 1.02rem; }
.hello-text h1 { font-size: clamp(2rem, 6.5vw, 3rem); font-weight: 700; overflow-wrap: anywhere; }
.hello-text .tagline { font-weight: 700; opacity: 0.92; }
.star-bank { grid-column: 1 / -1; position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.star-pill { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: var(--ink); border-radius: 999px; padding: 8px 20px 8px 10px; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.12); }
.star-pill .star-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--sun); font-size: 1.4rem; box-shadow: inset 0 -3px 0 var(--sun-deep); animation: pop 3s ease-in-out infinite; }
.star-pill .num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; line-height: 1; }
.star-pill .unit { font-weight: 800; color: var(--ink-soft); }
.goal { flex: 1 1 220px; display: grid; gap: 6px; background: rgba(255, 255, 255, 0.18); border-radius: 20px; padding: 10px 16px; font-weight: 800; font-size: 0.95rem; }
.goal-bar { height: 12px; background: rgba(255, 255, 255, 0.3); border-radius: 999px; overflow: hidden; }
.goal-bar > span { display: block; height: 100%; width: 0; background: var(--sun); border-radius: 999px; transition: width 1s cubic-bezier(0.2, 0.9, 0.3, 1); }
@media (min-width: 700px) {
  .hello { padding: 32px 34px; grid-template-columns: auto 1fr auto; }
  .star-bank { grid-column: auto; flex-direction: column; align-items: stretch; min-width: 260px; max-width: 320px; }
  .star-bank .goal { flex: none; }
}

.member-layout { display: grid; gap: 30px; margin-top: 28px; }
.pane { display: grid; gap: 28px; align-content: start; }
@media (min-width: 960px) {
  .member-page { --tabbar-h: 0px; }
  .member-layout { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
  .tabbar { display: none !important; }
}
@media (max-width: 959.98px) {
  .member-layout[data-pane="quests"] .pane:not([data-pane="quests"]),
  .member-layout[data-pane="shop"] .pane:not([data-pane="shop"]),
  .member-layout[data-pane="story"] .pane:not([data-pane="story"]) { display: none; }
}
/* On wide screens the right column holds both the shop and the story. */
.side { display: grid; gap: 28px; }

/* Quest cards */
.quest-list { display: grid; gap: 14px; }
@media (min-width: 600px) and (max-width: 959.98px) {
  .quest-list.two { grid-template-columns: 1fr 1fr; align-items: stretch; }
  /* Half-width cards stack their button under the text. */
  .quest-list.two .quest { grid-template-columns: auto 1fr; align-content: start; }
  .quest-list.two .quest .q-actions { grid-column: 1 / -1; flex-direction: row; align-self: end; }
  .quest-list.two .quest .q-actions .btn { flex: 1; }
}
.quest {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  box-shadow: var(--shadow-s);
  border: 2.5px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  animation: tile-in 0.45s cubic-bezier(0.3, 1.4, 0.5, 1) both;
}
.quest:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.quest .q-icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font-size: 2.1rem; background: var(--accent-soft); flex: none; }
.quest .q-body { display: grid; gap: 4px; min-width: 0; }
.quest .q-name { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; overflow-wrap: anywhere; }
.quest .q-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.quest .q-notes { color: var(--ink-soft); font-size: 0.95rem; overflow-wrap: anywhere; white-space: pre-line; }
.quest .q-rewards { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 2px; color: var(--ink-soft); font-size: 0.95rem; }
.quest .q-rewards li { display: flex; gap: 6px; align-items: baseline; }
.quest .q-rewards .q-reward-text { min-width: 0; overflow-wrap: anywhere; }
.quest .q-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.quest.mine { border-color: var(--accent); background: linear-gradient(180deg, #fff 0%, var(--accent-soft) 160%); }
.quest.mine .q-icon { background: var(--accent); box-shadow: inset 0 -4px 0 var(--accent-deep); animation: bob 2.6s ease-in-out infinite; }
.quest.resting { background: rgba(255, 255, 255, 0.6); box-shadow: none; border: 2.5px dashed var(--line-strong); }
.quest.resting .q-icon { filter: grayscale(0.6); opacity: 0.7; background: var(--bg-2); }
.quest.resting .q-name { color: var(--ink-soft); }
.quest.leaving { animation: leave 0.5s ease-in forwards; }
@keyframes leave { to { opacity: 0; transform: scale(0.85) translateY(-12px); } }
@media (min-width: 520px) {
  .quest { grid-template-columns: auto 1fr auto; }
  .quest .q-actions { grid-column: auto; flex-direction: column; align-items: stretch; }
}

.chip { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 3px 11px; font-weight: 800; font-size: 0.85rem; background: var(--bg); color: var(--ink-soft); white-space: nowrap; }
.chip-star { background: #fff2c2; color: #8a5a00; }
.chip-accent { background: var(--accent-soft); color: var(--accent-deep); }
.chip-mint { background: #dcf8ec; color: #0d7a52; }
.chip-sky { background: #e2f3ff; color: #145c8f; }
.chip-coral { background: #ffe7e3; color: var(--coral-deep); }
.chip-grape { background: #efe9ff; color: var(--grape-deep); }

.empty { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 28px 18px; background: rgba(255, 255, 255, 0.55); border: 3px dashed var(--line-strong); border-radius: var(--radius); color: var(--ink-soft); }
.empty .emoji { font-size: 3rem; animation: bob 3.2s ease-in-out infinite; }
.empty strong { color: var(--ink); font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }

details.fold { border-radius: var(--radius); }
details.fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 10px 6px; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--ink-soft); }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::before { content: "▸"; transition: transform 0.2s; display: inline-block; }
details.fold[open] > summary::before { transform: rotate(90deg); }
details.fold > .quest-list { margin-top: 8px; }

/* Shop */
.shop { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.reward {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px 14px 14px;
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  box-shadow: var(--shadow-s);
  position: relative;
  overflow: hidden;
  animation: tile-in 0.45s cubic-bezier(0.3, 1.4, 0.5, 1) both;
}
.reward .r-icon { font-size: 2.6rem; width: 72px; height: 72px; display: grid; place-items: center; border-radius: 24px; background: #fff6d6; }
.reward .r-name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; line-height: 1.2; overflow-wrap: anywhere; }
.reward .r-cost { font-weight: 900; color: #8a5a00; }
.reward .r-progress { width: 100%; height: 10px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.reward .r-progress > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--sun), #ffb020); border-radius: 999px; transition: width 0.9s cubic-bezier(0.2, 0.9, 0.3, 1); }
.reward .btn { width: 100%; }
.reward.ready { border: 2.5px solid var(--sun); }
.reward.ready::before { content: "✨"; position: absolute; top: 8px; right: 10px; animation: twinkle 2.4s infinite; }
.reward.pending { background: linear-gradient(180deg, #fff, #f2fbff); }
@media (min-width: 960px) { .shop { grid-template-columns: 1fr 1fr; } }

/* Story (points history) */
.story { display: grid; gap: 8px; }
.story-item { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; background: var(--card); border-radius: 18px; padding: 10px 14px; box-shadow: var(--shadow-s); }
.story-item .s-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 14px; background: var(--bg); font-size: 1.3rem; }
.story-item .s-reason { font-weight: 800; overflow-wrap: anywhere; line-height: 1.25; }
.story-item .s-when { color: var(--ink-faint); font-size: 0.85rem; font-weight: 700; }
.story-item .s-pts { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--mint-deep); white-space: nowrap; }
.story-item .s-pts.neg { color: var(--coral-deep); }

.upcoming { display: grid; gap: 8px; }
.upcoming-item { display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, 0.7); border-radius: 18px; padding: 10px 14px; font-weight: 700; }
.upcoming-item .when { margin-left: auto; }

/* Bottom tab bar (phones and portrait tablets) */
.tabbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(var(--safe-bottom) + 12px);
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  width: min(460px, calc(100% - 2 * var(--gutter)));
  padding: 6px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 28px;
  box-shadow: var(--shadow-l);
}
.tabbar button { appearance: none; border: 0; background: transparent; border-radius: 22px; min-height: 60px; display: grid; justify-items: center; align-content: center; gap: 2px; font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; color: var(--ink-soft); cursor: pointer; transition: background 0.25s, color 0.25s, transform 0.2s; position: relative; }
.tabbar button .emoji { font-size: 1.5rem; transition: transform 0.3s cubic-bezier(0.3, 1.8, 0.5, 1); }
.tabbar button[aria-selected="true"] { background: var(--accent-soft); color: var(--accent-deep); }
.tabbar button[aria-selected="true"] .emoji { transform: translateY(-2px) scale(1.18); }
.tabbar .dot { position: absolute; top: 8px; right: calc(50% - 22px); min-width: 20px; height: 20px; border-radius: 999px; background: var(--coral); color: #fff; font-size: 0.72rem; display: grid; place-items: center; padding: 0 5px; font-family: var(--font-body); font-weight: 900; }

/* ── Dialog / sheet ──────────────────────────────────────────────────────── */
dialog.sheet {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
  margin: 0;
  display: grid;
  place-items: end center;
  overflow: hidden;
}
dialog.sheet:not([open]) { display: none; }
dialog.sheet::backdrop { background: rgba(47, 38, 82, 0.45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade-in 0.25s ease both; }
.sheet-panel {
  width: 100%;
  max-width: 540px;
  max-height: calc(100dvh - 24px - var(--safe-top));
  overflow-y: auto;
  background: var(--card);
  border-radius: var(--radius-l) var(--radius-l) 0 0;
  padding: 14px 22px calc(26px + var(--safe-bottom));
  box-shadow: var(--shadow-l);
  animation: sheet-up 0.38s cubic-bezier(0.2, 0.9, 0.3, 1.1) both;
  display: grid;
  gap: 18px;
}
.sheet-panel { grid-template-columns: minmax(0, 1fr); }
.sheet-panel > * { min-width: 0; }
.sheet .picker-grid { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 12px; }
.sheet .member-tile { padding: 16px 10px 14px; box-shadow: var(--shadow-s); }
.sheet .member-tile:disabled { opacity: 0.5; cursor: default; transform: none; }
.sheet-panel::before { content: ""; justify-self: center; width: 54px; height: 6px; border-radius: 999px; background: var(--line-strong); }
.sheet-head { display: flex; align-items: center; gap: 12px; }
.sheet-head h2 { font-size: 1.5rem; flex: 1; }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.sheet-actions .btn { flex: 1 1 140px; }
.sheet.closing .sheet-panel { animation: sheet-down 0.22s ease-in both; }
.sheet.closing::backdrop { animation: fade-out 0.22s ease both; }
@media (min-width: 640px) {
  dialog.sheet { place-items: center; }
  .sheet-panel { border-radius: var(--radius-l); padding: 26px 28px 28px; animation-name: pop-in; }
  .sheet-panel::before { display: none; }
  .sheet.closing .sheet-panel { animation-name: pop-out; }
}
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes sheet-down { to { transform: translateY(100%); } }
@keyframes pop-in { from { opacity: 0; transform: scale(0.9) translateY(10px); } }
@keyframes pop-out { to { opacity: 0; transform: scale(0.94); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }

/* PIN pad */
.pin { display: grid; justify-items: center; gap: 18px; text-align: center; }
.pin h2 { font-size: 1.7rem; }
.pin-dots { display: flex; gap: 16px; padding: 6px 0; }
.pin-dots span { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line-strong); transition: background 0.15s, border-color 0.15s, transform 0.2s cubic-bezier(0.3, 1.8, 0.5, 1); }
.pin-dots span.on { background: var(--accent); border-color: var(--accent); transform: scale(1.15); }
.pin-dots.shake { animation: shake 0.45s; }
.pin-dots.shake span { border-color: var(--coral); }
.pin-msg { min-height: 1.5em; font-weight: 800; color: var(--coral-deep); }
.pin-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; width: min(320px, 100%); }
.pin-keys button { appearance: none; border: 0; cursor: pointer; aspect-ratio: 1.15; border-radius: 26px; background: var(--bg); font-family: var(--font-display); font-weight: 600; font-size: 1.8rem; color: var(--ink); box-shadow: 0 4px 0 var(--line-strong); transition: transform 0.1s, box-shadow 0.1s, background 0.2s; }
.pin-keys button:active { transform: translateY(4px); box-shadow: 0 0 0 var(--line-strong); background: var(--accent-soft); }
.pin-keys button.ghost { background: transparent; box-shadow: none; font-size: 1.1rem; color: var(--ink-soft); }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-12px); } 40% { transform: translateX(10px); } 60% { transform: translateX(-7px); } 80% { transform: translateX(4px); } }

/* Buddy picker */
.look-preview { display: grid; justify-items: center; padding: 6px 0 10px; }
.buddy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 10px; }
.buddy-grid button, .color-row button { appearance: none; border: 3px solid transparent; cursor: pointer; border-radius: 22px; background: var(--bg); aspect-ratio: 1; font-size: 2rem; display: grid; place-items: center; transition: transform 0.2s cubic-bezier(0.3, 1.8, 0.5, 1), border-color 0.2s; }
.buddy-grid button:hover, .color-row button:hover { transform: scale(1.08); }
.buddy-grid button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); transform: scale(1.06); }
.color-row { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.color-row button { border-radius: 50%; background: var(--accent); box-shadow: inset 0 -4px 0 var(--accent-deep); }
.color-row button[aria-pressed="true"] { border-color: var(--ink); transform: scale(1.12); }

/* ── Celebration overlay ─────────────────────────────────────────────────── */
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 100; }
.cheer { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; pointer-events: none; }
.cheer-card { background: #fff; border-radius: var(--radius-l); padding: 28px 34px; text-align: center; box-shadow: var(--shadow-l); display: grid; gap: 8px; animation: cheer 2.4s cubic-bezier(0.3, 1.6, 0.5, 1) both; max-width: calc(100% - 40px); }
.cheer-card .emoji { font-size: 4rem; animation: bob 1s ease-in-out infinite; }
.cheer-card h2 { font-size: 2rem; color: var(--accent-deep); }
.cheer-card p { font-weight: 800; color: var(--ink-soft); }
@keyframes cheer { 0% { opacity: 0; transform: scale(0.4) rotate(-8deg); } 15% { opacity: 1; transform: scale(1.06) rotate(2deg); } 25% { transform: scale(1) rotate(0); } 80% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(0.9) translateY(-20px); } }

/* ── Toasts ──────────────────────────────────────────────────────────────── */
.toasts { position: fixed; left: 0; right: 0; top: calc(var(--safe-top) + 14px); z-index: 120; display: grid; justify-items: center; gap: 10px; pointer-events: none; padding: 0 16px; }
.toast { pointer-events: auto; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 800; box-shadow: var(--shadow-l); animation: toast-in 0.35s cubic-bezier(0.3, 1.6, 0.5, 1) both; max-width: 560px; text-align: center; }
.toast.error { background: var(--coral-deep); }
.toast.good { background: var(--mint-deep); }
.toast.out { animation: toast-out 0.25s ease-in forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-20px) scale(0.9); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-14px); } }

/* ── Loading ─────────────────────────────────────────────────────────────── */
.loading { min-height: 70dvh; display: grid; place-items: center; align-content: center; gap: 16px; color: var(--ink-soft); font-weight: 800; }
.loading .bouncer { display: flex; gap: 10px; }
.loading .bouncer span { width: 18px; height: 18px; border-radius: 50%; background: var(--coral); animation: bounce 0.9s ease-in-out infinite; }
.loading .bouncer span:nth-child(2) { background: var(--sun); animation-delay: 0.15s; }
.loading .bouncer span:nth-child(3) { background: var(--mint); animation-delay: 0.3s; }
.loading .bouncer span:nth-child(4) { background: var(--sky); animation-delay: 0.45s; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
.skeleton { background: linear-gradient(90deg, rgba(255,255,255,0.5), rgba(255,255,255,0.95), rgba(255,255,255,0.5)); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: var(--radius); min-height: 90px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── Grown-ups area ──────────────────────────────────────────────────────── */
.gu-head { display: grid; gap: 6px; margin-bottom: 18px; }
.gu-head h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); font-weight: 700; }
.gu-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; margin: 0 calc(-1 * var(--gutter)) 8px; padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; }
.gu-tabs::-webkit-scrollbar { display: none; }
.gu-tabs button { appearance: none; border: 0; cursor: pointer; flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 999px; background: #fff; font-family: var(--font-display); font-weight: 600; color: var(--ink-soft); box-shadow: var(--shadow-s); transition: background 0.2s, color 0.2s, transform 0.2s; }
.gu-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.gu-tabs .badge { background: var(--coral); color: #fff; border-radius: 999px; padding: 0 8px; font-size: 0.8rem; font-family: var(--font-body); font-weight: 900; min-width: 22px; text-align: center; }
.gu-list { display: grid; gap: 12px; }
.gu-item { display: grid; grid-template-columns: auto 1fr; gap: 12px 14px; align-items: center; background: #fff; border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow-s); }
.gu-item .gi-icon { width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; font-size: 1.6rem; background: var(--bg); }
.gu-item .gi-body { display: grid; gap: 3px; min-width: 0; }
.gu-item .gi-title { font-weight: 900; font-size: 1.05rem; overflow-wrap: anywhere; }
.gu-item .gi-sub { color: var(--ink-soft); font-size: 0.92rem; overflow-wrap: anywhere; }
.gu-item .gi-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
@media (min-width: 640px) {
  .gu-item { grid-template-columns: auto 1fr auto; }
  .gu-item .gi-actions { grid-column: auto; }
}
.gu-grid { display: grid; gap: 22px; }
@media (min-width: 960px) { .gu-grid.cols { grid-template-columns: 1fr 1fr; align-items: start; } }
.library { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.lib-item { appearance: none; border: 2.5px dashed var(--line-strong); background: rgba(255, 255, 255, 0.7); border-radius: 18px; padding: 12px 14px; text-align: left; cursor: pointer; display: flex; gap: 10px; align-items: center; transition: border-color 0.2s, background 0.2s, transform 0.2s; }
.lib-item:hover { border-color: var(--grape); background: #fff; transform: translateY(-2px); }
.lib-item .emoji { font-size: 1.6rem; }
.lib-item .li-name { font-weight: 800; line-height: 1.2; }
.lib-item .li-sub { font-size: 0.85rem; color: var(--ink-soft); font-weight: 700; }
.lib-item .plus { margin-left: auto; font-family: var(--font-display); font-size: 1.4rem; color: var(--grape); }
/* Vacations (Family tab) */
.gu-item .gi-title .chip { margin-left: 8px; vertical-align: 2px; font-size: 0.78rem; }
.gu-item .gi-sub .mini-avatars { display: inline-flex; vertical-align: middle; margin-right: 8px; }
.mini-avatars .avatar { margin-left: -8px; border: 2px solid #fff; }
.mini-avatars .avatar:first-child { margin-left: 0; }
.gu-item.faded { background: rgba(255, 255, 255, 0.6); box-shadow: none; }
.gu-item.faded .gi-title, .gu-item.faded .mini-avatars { opacity: 0.7; }
.field-label { font-weight: 800; font-size: 0.92rem; color: var(--ink-soft); padding-left: 4px; }
.pick-list { display: flex; flex-wrap: wrap; gap: 10px; }
.pick { appearance: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 2.5px solid var(--line); background: #fffdf9; font-weight: 800; color: var(--ink-soft); transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.2s; }
.pick:hover { border-color: var(--line-strong); }
.pick:active { transform: scale(0.97); }
.pick:focus-visible { outline: none; box-shadow: 0 0 0 5px var(--accent-soft); border-color: var(--accent); }
.pick .avatar { filter: grayscale(0.85); opacity: 0.6; transition: filter 0.2s, opacity 0.2s; }
.pick-tick { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; background: var(--line); color: transparent; transition: background 0.2s, color 0.2s; }
.pick[aria-pressed="true"] { border-color: var(--sky); background: #e2f3ff; color: var(--ink); }
.pick[aria-pressed="true"] .avatar { filter: none; opacity: 1; }
.pick[aria-pressed="true"] .pick-tick { background: var(--sky); color: #fff; }
.notice { display: flex; gap: 14px; align-items: center; background: #fff6d6; border-radius: var(--radius); padding: 16px 18px; font-weight: 700; color: #6b4a00; }
.notice .emoji { font-size: 1.8rem; }
.notice .spacer { flex: 1; }

/* ── Verify email ────────────────────────────────────────────────────────── */
.mailbox { font-size: 4.4rem; text-align: center; animation: bob 2.4s ease-in-out infinite; }

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

dialog.sheet:focus, dialog.sheet:focus-visible { outline: none; }
