/* ==========================================================================
   THE ANNAHVERSE - cottage-core village. Loaded after whimsy.css: it re-tunes the colors and
   fonts every page already uses, swaps the journal for a cottage frame, and adds the village map,
   the house top bar and the room rail. Pink stays everywhere, it just shares the garden now.
   Phones (<= 700px) and iPad portrait (701-899px) adjust in mobile.css / tablet.css.
   ========================================================================== */

:root {
  --cream: #FFF7EE;
  --paper: #FFFDF9;
  --paper-line: #EAD9C6;
  --line: #EAD9C6;
  --wood: #9A6B4A;
  --wood-dark: #7A4E33;
  --ink: #3B2A24;          /* cocoa: 13:1 on cream */
  --ink-soft: #6E554B;     /* 6.6:1 on cream */
  --ink-faint: #8E7568;
  --sage-100: #E4EFDF;
  --sage-300: #A8C3A0;
  --sage-700: #4F6E49;
  --honey-200: #FFE7A3;
  --sky-100: #DCEFF4;
  --lavender-300: #C9B8F0;
  --midnight: #2B2650;
  --midnight-2: #3A3466;
  --gold: #E7C66B;
  --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
  --shadow: 0 2px 0 rgba(154, 107, 74, .12), 0 10px 26px rgba(59, 42, 36, .07);
}

body {
  background-color: var(--cream);
  background-image: radial-gradient(rgba(245, 138, 176, .16) 1.2px, transparent 1.4px);
  background-size: 26px 26px;
}
.floaties, .sparkles { display: none; }

h1, h2, h3, .card h2, .card-head { font-family: var(--font-head); letter-spacing: 0; }

/* ---------- the frame (was the journal) ---------- */
.journal.frame {
  max-width: min(2400px, calc(100vw - 24px));
  margin: 12px auto;
  padding: 10px 16px 14px;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.journal.frame::before { content: none; }

/* ---------- top bar ---------- */
.topbar { display: flex; align-items: center; gap: 12px; flex-wrap: nowrap; margin: 0 0 10px; min-height: 52px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand-mark { width: 50px; height: 42px; }
.back-chip {
  display: inline-flex; align-items: center; gap: 4px; flex: none; min-height: 44px; padding: 8px 14px 8px 10px;
  border-radius: 999px; background: var(--pink-100); color: var(--ink); font-weight: 800; font-size: .9rem; text-decoration: none;
}
.back-chip svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.back-chip:hover { background: var(--pink-200); }
.place-title { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.place-name { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: var(--ink); }
.place-sub { font-size: .82rem; font-weight: 700; color: var(--ink-soft); }
.house-strip { display: flex; gap: 6px; margin-left: auto; flex-wrap: nowrap; }
.house-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 4px 12px 4px 6px; border-radius: 999px;
  background: var(--paper); border: 2px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 800; font-size: .85rem;
  transition: background .2s, border-color .2s;
}
.house-btn svg { width: 34px; height: 30px; flex: none; }
.house-btn:hover { border-color: var(--pink-300); }
.house-btn.on { background: var(--pink-100); border-color: var(--pink-300); }
.topbar .round-btn { flex: none; }
.me-chip {
  display: inline-flex; align-items: center; gap: 10px; flex: none; min-height: 48px; padding: 4px 14px 4px 4px; border-radius: 999px;
  background: var(--paper); border: 2px solid var(--line); color: var(--ink); text-decoration: none; max-width: 300px;
}
.me-chip:hover { border-color: var(--pink-300); }
.avatar {
  width: 38px; height: 38px; border-radius: 999px; flex: none; display: flex; align-items: center; justify-content: center;
  font: 700 1.05rem var(--font-head); color: var(--ink); background: #F9C5D7;
}
.tone-sage .avatar, .avatar.tone-sage { background: #CFE3C7; }
.tone-lavender .avatar, .avatar.tone-lavender { background: #DCD0F5; }
.tone-honey .avatar, .avatar.tone-honey { background: var(--honey-200); }
.tone-sky .avatar, .avatar.tone-sky { background: #CDE6F0; }
.avatar.doodle { overflow: hidden; }
.avatar.doodle svg { width: 78%; height: 78%; }
.me-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.me-text b { font-size: .9rem; }
.me-text small { font-size: .75rem; font-weight: 700; color: var(--ink-soft); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* house switcher labels only where there's room for them */
@media (max-width: 1499px) {
  .house-btn { padding: 4px; }
  .house-btn span { display: none; }
}
@media (max-width: 1180px) { .me-text small { display: none; } }

/* ---------- house body: rooms rail + the page ---------- */
.house-body { display: flex; gap: 16px; min-height: 0; }
.house-body > .page { flex: 1; min-width: 0; }
.rooms-rail {
  flex: none; width: 212px; display: flex; flex-direction: column; gap: 3px; padding: 12px 8px; border-radius: 22px;
  background: #FCE6EE; overflow: auto; align-self: stretch;
}
.rail-label { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); padding: 2px 10px 4px; }
.rail-label.soon-label { margin-top: 10px; }
.door {
  display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 8px; border-radius: 14px; color: var(--ink);
  text-decoration: none; transition: background .2s;
}
.door:hover { background: rgba(255, 255, 255, .55); }
.door.on { background: var(--paper); box-shadow: 0 2px 0 rgba(154, 107, 74, .14); }
.door .sticker {
  width: 32px; height: 32px; padding: 0; border-radius: 10px; flex: none; display: flex; align-items: center; justify-content: center;
  background: var(--paper); border: 0; box-shadow: none; font-weight: 800; color: var(--ink-soft); animation: none; transform: none;
}
.door .sticker svg { width: 26px; height: 26px; }
.door.on .sticker { background: var(--pink-100); }
.door-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.door-text b { font: 600 .98rem var(--font-head); }
.door-text small { font-size: .74rem; font-weight: 700; color: var(--ink-soft); }
.door.soon { border: 2px dashed var(--pink-300); opacity: .85; }
.door.soon .sticker { background: transparent; border: 2px dashed var(--pink-300); }

/* laptops: the rail keeps its icons and drops the words (names stay in the tooltip and aria) */
@media (min-width: 900px) and (max-width: 1365px) {
  .rooms-rail { width: 64px; padding: 10px 6px; align-items: center; }
  .rooms-rail .door-text, .rooms-rail .rail-label { display: none; }
  .rooms-rail .door { padding: 6px; justify-content: center; }
  .rooms-rail .door.soon { display: none; }
}

/* ---------- desktop app frame: nothing scrolls but the inner panels ---------- */
@media (min-width: 900px) and (min-height: 560px) {
  body.app-shell { padding-top: 12px; }   /* a top margin on the frame would collapse through the body and scroll the page */
  body.app-shell .journal.frame { height: calc(100vh - 24px); margin: 0 auto; display: flex; flex-direction: column; }
  body.app-shell .house-body { flex: 1; }
  body.app-shell .house-body > .page { overflow: auto; }
  body.app-shell .house-body > .page.fit { overflow: hidden; }
}

/* ---------- headline stickers ---------- */
.tile-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.stat-tile {
  display: flex; flex-direction: column; justify-content: center; gap: 1px; min-width: 0; padding: 10px 14px; border-radius: 18px;
  background: var(--paper); border: 2px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .2s, background .2s;
}
a.stat-tile:hover { border-color: var(--pink-300); background: #FFF9FB; }
.stat-tile small { font-size: .68rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-soft); }
.stat-tile b { font: 700 1.55rem/1.15 var(--font-head); }
.stat-tile span { font-size: .78rem; font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
.stat-tile.tone-honey { border-top: 5px solid #F2C46D; }
.stat-tile.tone-pink { border-top: 5px solid var(--pink-300); }
.stat-tile.tone-sage { border-top: 5px solid var(--sage-300); }
.stat-tile.tone-sky { border-top: 5px solid #9CCFE0; }
.stat-tile.tone-lavender { border-top: 5px solid var(--lavender-300); }
.tile-row-label { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; }
.tile-row-label .hello { font: 700 1.3rem/1.15 var(--font-head); }
.tile-row-label small { font-size: .78rem; font-weight: 700; color: var(--ink-soft); }

/* ---------- the village ---------- */
.village-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; min-height: 0; }
.village-main { display: flex; flex-direction: column; gap: 12px; min-height: 0; min-width: 0; }
.map-wrap { display: flex; justify-content: center; }
.village-map {
  position: relative; aspect-ratio: 1040 / 700; width: 100%;
  border-radius: 28px; overflow: hidden; border: 2px solid var(--line); background: var(--sky-100);
  container-type: size;
}
/* the village itself: same shape as the drawing, centered; the countryside fills the rest */
.village-map .stage {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(100cqw, calc(100cqh * 1040 / 700)); aspect-ratio: 1040 / 700;
  container-type: inline-size;   /* the wooden signs scale with the village, so they never bump into each other */
}
/* in the no-scroll desktop frame the map takes whatever height is left, keeping its shape */
@media (min-width: 900px) and (min-height: 560px) {
  body.app-shell .village-page .tile-row { grid-template-columns: minmax(110px, .8fr) repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; }
  body.app-shell .village-grid { height: 100%; }
  body.app-shell .map-wrap { flex: 1; min-height: 0; }
  body.app-shell .village-map { width: 100%; height: 100%; aspect-ratio: auto; }
}
.village-map .scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.bld {
  position: absolute; display: flex; flex-direction: column; align-items: center; gap: 4px; color: inherit; text-decoration: none;
}
.bld > svg { width: 100%; height: auto; display: block; transition: transform .25s ease; }
a.bld:hover > svg { transform: translateY(-5px); }
a.bld:focus-visible { outline: 3px solid var(--pink-700); outline-offset: 4px; border-radius: 14px; }
.sign {
  background: #FFF6E8; border: 2px solid var(--wood); border-radius: 12px; padding: 2px 11px 3px; box-shadow: 0 2px 0 var(--wood);
  text-align: center; white-space: nowrap; line-height: 1.25;
}
.sign { padding: .2cqw 1.05cqw .3cqw; }
.sign b { display: block; font: 700 clamp(10.5px, 1.4cqw, 15px) var(--font-head); color: var(--ink); }
.sign span { display: block; font-size: clamp(9.5px, 1.12cqw, 12px); font-weight: 700; color: var(--ink-soft); }
a.bld:hover .sign { background: var(--pink-100); }
.bld.soon { cursor: default; }
.bld.soon > svg { opacity: .9; }
.bld.plot .sign, .bld.soon .sign { background: var(--paper); border-style: dashed; box-shadow: none; }
.house-list { display: none; }

.today-panel { margin: 0; display: flex; flex-direction: column; gap: 6px; overflow: auto; min-height: 0; padding: 16px 18px; }
.panel-title { margin: 0; font-size: 1.25rem; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.panel-title small { font: 700 .8rem var(--font-body); color: var(--ink-soft); }
.panel-sub { margin: 10px 0 2px; font-size: 1rem; padding-top: 10px; border-top: 2px dashed var(--line); }
.today-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.today-list li { display: flex; align-items: baseline; gap: 8px; font-size: .9rem; font-weight: 700; line-height: 1.35; }
.today-list .when { flex: none; min-width: 58px; font-size: .78rem; font-weight: 800; color: var(--pink-700); }
.today-list .tone-dot { width: 10px; height: 10px; flex: none; border-radius: 999px; align-self: center; }
.news { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 14px; background: var(--cream); color: var(--ink); text-decoration: none; }
.news b { font-size: .88rem; line-height: 1.35; }
.news span { font-size: .78rem; font-weight: 700; color: var(--ink-soft); }
a.news:hover { background: var(--pink-50); }

/* ---------- a house's Parlor ---------- */
.room-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0 0 10px; }
.room-title { margin: 0; font-size: 1.45rem; }
.room-sub { font-size: .85rem; font-weight: 700; color: var(--ink-soft); }
.parlor-tiles { margin-bottom: 12px; }
.parlor-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); gap: 14px; min-height: 0; }
.parlor-grid > .card { margin: 0; display: flex; flex-direction: column; min-height: 0; }
.parlor-chart .chart { min-height: 180px; }
.card-head small { font: 700 .75rem var(--font-body); color: var(--ink-soft); margin-left: 6px; }
.lift-mini {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 12px; padding: 9px 11px; margin: 0 0 6px; border-radius: 14px;
  background: var(--cream); color: var(--ink); text-decoration: none;
}
.lift-mini:hover { background: var(--pink-50); }
.lift-mini b { font-size: .88rem; line-height: 1.35; }
.lift-mini .lift-num { font: 700 1.2rem var(--font-head); color: var(--pink-700); text-align: right; }
.lift-mini .muted { font-size: .75rem; font-weight: 700; }
.lift-mini .lift-unit { text-align: right; }
.parlor-shelf { margin: 12px 0 0; padding: 12px 16px; }
.mini-shelf { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.mini-book { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mini-book img, .mini-cover {
  width: 100%; height: 92px; object-fit: cover; border-radius: 4px 10px 10px 4px; box-shadow: inset 5px 0 0 rgba(0, 0, 0, .12);
}
.mini-cover { display: flex; align-items: flex-end; padding: 6px; background: var(--pink-300); color: #3B2A24; font: 600 .78rem/1.15 var(--font-head); }
.mini-title { font-size: .8rem; font-weight: 800; line-height: 1.25; }
.mini-book .muted { font-size: .74rem; font-weight: 700; }
@media (min-width: 900px) and (max-height: 820px) {
  .mini-book img, .mini-cover { height: 64px; }
  .parlor-shelf { padding: 10px 14px; }
}

/* ---------- house themes ---------- */
/* Romantasy Academy: moonlit midnight around a light lavender room */
body.theme-academy { background-color: var(--midnight); background-image: radial-gradient(rgba(231, 198, 107, .22) 1.2px, transparent 1.4px); }
.theme-academy .place-name { color: #F6F0FF; }
.theme-academy .place-sub { color: #C9BDF0; }
.theme-academy .back-chip { background: var(--midnight-2); color: #F6F0FF; }
.theme-academy .back-chip:hover { background: #4A3F7A; }
.theme-academy .house-btn { background: var(--midnight-2); border-color: #4A3F7A; color: #F6F0FF; }
.theme-academy .house-btn.on { background: #4A3F7A; border-color: var(--gold); }
.theme-academy .me-chip { background: var(--midnight-2); border-color: #4A3F7A; color: #F6F0FF; }
.theme-academy .me-text small { color: #C9BDF0; }
.theme-academy .rooms-rail { background: var(--midnight-2); }
.theme-academy .rail-label { color: #C9BDF0; }
.theme-academy .door { color: #F6F0FF; }
.theme-academy .door-text small { color: #D9CCF5; }
.theme-academy .door:hover { background: rgba(255, 255, 255, .08); }
.theme-academy .door.on { background: #F5F0FF; color: var(--midnight); }
.theme-academy .door.on .door-text small { color: #5E5590; }
.theme-academy .door .sticker { background: #4A3F7A; }
.theme-academy .door.on .sticker { background: #E2D8FB; }
.theme-academy .door.soon, .theme-academy .door.soon .sticker { border-color: #6A5FA0; color: #D9CCF5; }
.theme-academy .house-body > .page { background: #F5F0FF; border-radius: 24px; padding: 14px 16px; }
.theme-academy .stat-tile.tone-pink { border-top-color: #9B87DB; }
.theme-academy .lift-mini .lift-num { color: #6B55C2; }
.theme-academy .topbar .round-btn { background: var(--midnight-2); }
.theme-academy .messages li { color: var(--ink); }

/* Hourglass Nook: garden sage */
.theme-nook .rooms-rail { background: var(--sage-100); }
.theme-nook .door.on .sticker { background: #CFE3C7; }
.theme-nook .back-chip { background: var(--sage-100); }

/* Snail Mail: bubblegum pink with glitter */
.theme-snail .rooms-rail { background: linear-gradient(180deg, #FFE4EF, #FFF0F6 60%, #FFF6D9);
  background-image: radial-gradient(circle, rgba(255, 216, 77, .7) 0 1.4px, transparent 2px), radial-gradient(circle, rgba(232, 93, 146, .45) 0 1.2px, transparent 1.8px), linear-gradient(180deg, #FFE4EF, #FFF0F6 60%, #FFF6D9);
  background-size: 38px 34px, 26px 40px, auto; }
.theme-snail .door.on .sticker { background: #F7A1C4; }
.theme-snail .door .sticker svg { width: 34px; }
.theme-snail .back-chip { background: #FFE4EF; }

/* Strawberry: extra berry */
.theme-strawberry .back-chip { background: #FDE3EC; }

/* Sparkly Conquering Tower: glitter that twinkles around it */
.tower-art .tower-glitter > * { transform-box: fill-box; transform-origin: center; animation: tower-twinkle 2.4s ease-in-out infinite; }
.tower-art .tower-glitter > *:nth-child(2n) { animation-delay: -.8s; animation-duration: 3s; }
.tower-art .tower-glitter > *:nth-child(3n) { animation-delay: -1.6s; animation-duration: 2.1s; }
@keyframes tower-twinkle { 0%, 100% { opacity: .25; transform: scale(.6) rotate(0); } 50% { opacity: 1; transform: scale(1.15) rotate(20deg); } }
@media (prefers-reduced-motion: reduce) { .tower-art .tower-glitter > * { animation: none; opacity: .8; } }

@media (prefers-reduced-motion: reduce) { .bld > svg, a.bld:hover > svg { transition: none; transform: none; } }

/* ---------- sign-in: a little garden gate ---------- */
.gate-page { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.gate { width: min(440px, 100%); display: flex; flex-direction: column; align-items: center; text-align: center; }
.gate-art { width: 120px; height: 98px; }
.gate-title { margin: 6px 0 0; font-size: 2rem; }
.gate-sub { margin: 2px 0 14px; font-weight: 700; color: var(--ink-soft); }
.gate .card.signin { width: 100%; text-align: center; margin: 0; }

/* The Hourglass Nook has just two rooms: they sit as a slim row of doors above the calendar,
   so the month grid keeps its full width (chips need every pixel) */
@media (min-width: 900px) {
  .in-nook .house-body { flex-direction: column; gap: 10px; }
  .in-nook .rooms-rail { width: auto; flex-direction: row; align-items: center; gap: 6px; padding: 5px 6px; overflow: visible; }
  .in-nook .rooms-rail .rail-label { display: none; }
  .in-nook .rooms-rail .door { min-height: 40px; padding: 3px 14px 3px 5px; }
  .in-nook .rooms-rail .door-text { display: flex; flex-direction: row; align-items: baseline; gap: 8px; }
  .in-nook .rooms-rail .door .sticker { width: 30px; height: 30px; }
}
.theme-academy .mini-cover { background: #B7A3EA; }

/* Strawberry's morning note at the top of the village's Today panel */
.morning-note { background: #FFF6E0; border: 2px solid #F6D98F; border-radius: 16px; padding: 10px 12px; margin: 4px 0 2px; }
.mn-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.mn-head svg { width: 26px; height: 26px; flex: none; }
.mn-head b { font: 700 .95rem var(--font-head); flex: 1; }
.mn-head a { font-size: .78rem; font-weight: 800; text-decoration: none; }
.mn-text { font-size: .88rem; line-height: 1.45; }
.mn-text p { margin: 0 0 6px; }
.mn-text ul, .mn-text ol { margin: 0 0 6px; padding-left: 18px; }

/* Parlor: top books as a ranked list (title once, a bar against the best seller) */
.top-books { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 18px; }
.top-books li { display: grid; grid-template-columns: 22px 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-width: 0; }
.tb-rank { font: 700 1rem var(--font-head); color: var(--pink-700); text-align: center; }
.tb-cover { width: 34px; height: 48px; border-radius: 3px 7px 7px 3px; object-fit: cover; box-shadow: inset 4px 0 0 rgba(0, 0, 0, .12), 0 1px 0 rgba(59, 42, 36, .12); }
.tb-spine { display: flex; align-items: center; justify-content: center; background: var(--pink-100); }
.tb-spine svg { width: 22px; height: 22px; }
.theme-academy .tb-spine { background: #E2D8FB; }
.theme-academy .tb-rank { color: #6B55C2; }
.tb-text { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.tb-text b { font-size: .88rem; line-height: 1.25; }
.tb-bar { height: 6px; border-radius: 999px; background: var(--cream); overflow: hidden; }
.tb-bar i { display: block; height: 100%; border-radius: 999px; background: var(--pink-300); }
.theme-academy .tb-bar i { background: #9B87DB; }
.tb-num { font: 700 1.05rem var(--font-head); text-align: right; line-height: 1.1; }
.tb-num small { display: block; font: 700 .7rem var(--font-body); color: var(--ink-soft); }
@media (max-width: 1100px) { .top-books { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.morning-note.phone-first { display: none; }

/* Village: today's quests in one slim strip between the numbers and the map */
.quest-strip { display: flex; align-items: center; gap: 12px; padding: 7px 12px 7px 8px; border-radius: 18px; background: var(--paper); border: 2px solid var(--line); min-width: 0; }
.qs-head { display: flex; align-items: center; gap: 10px; flex: none; color: var(--ink); text-decoration: none; }
.qs-ring { --p: 0; width: 44px; height: 44px; border-radius: 999px; flex: none; display: flex; align-items: center; justify-content: center;
  background: conic-gradient(var(--pink-500) calc(var(--p) * 1%), var(--pink-100) 0); transition: background .4s; }
.qs-ring svg { width: 34px; height: 30px; background: var(--paper); border-radius: 999px; padding: 3px; box-sizing: content-box; }
.qs-text { display: flex; flex-direction: column; line-height: 1.2; }
.qs-text b { font: 700 1rem var(--font-head); }
.qs-text small { font-size: .74rem; font-weight: 800; color: var(--ink-soft); white-space: nowrap; }
.qs-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; flex: 1; }
.qs-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 3px 12px 3px 4px; border-radius: 999px; border: 2px solid var(--line);
  background: #fff; color: var(--ink); font: 800 .8rem var(--font-body); text-decoration: none; text-align: left; }
.qs-chip:hover { border-color: var(--pink-300); }
.qs-chip.done { background: var(--pink-50); border-color: var(--pink-200); color: var(--ink-soft); }
.qs-chip.ghost { border-style: dashed; padding-left: 12px; color: var(--ink-soft); }
.qs-dot { width: 26px; height: 26px; border-radius: 999px; border: 2px solid var(--pink-300); background: #fff; flex: none; display: flex; align-items: center; justify-content: center; }
.qs-chip.done .qs-dot { border-color: var(--pink-500); background: var(--pink-50); }
.qs-dot svg { width: 18px; height: 18px; }
.qs-n { font-size: .72rem; color: var(--ink-soft); }

/* Refresh the app: a ribbon with a heart tip curls round a peeking bunny (original drawing).
   Top bar, right of the cake; on phones next to your picture and in More. */
.refresh-btn { cursor: url("cursors/bunny-heart.cbdcba3d527c.svg") 3 2, pointer; padding: 0; font: inherit; }
.refresh-art { width: 30px; height: 30px; overflow: visible; }
.refresh-art .ring { transform-origin: 20px 20px; transform-box: view-box; transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.refresh-art .ear { transform-box: fill-box; transform-origin: 50% 100%; }
.refresh-btn:hover .refresh-art .ring, .more-refresh:hover .refresh-art .ring { transform: rotate(-35deg); }
.refresh-btn:hover .ear.l { transform: rotate(-12deg); }
.refresh-btn:hover .ear.r { transform: rotate(12deg); }
.spinning .refresh-art .ring { animation: refresh-spin .8s linear infinite; }
.spinning .refresh-art .ear.l { animation: ear-wiggle-l .4s ease-in-out infinite alternate; }
.spinning .refresh-art .ear.r { animation: ear-wiggle-r .4s ease-in-out infinite alternate; }
@keyframes refresh-spin { to { transform: rotate(360deg); } }
@keyframes ear-wiggle-l { from { transform: rotate(0); } to { transform: rotate(-18deg); } }
@keyframes ear-wiggle-r { from { transform: rotate(0); } to { transform: rotate(18deg); } }
.more-refresh { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; font: inherit; font-weight: 800;
  color: var(--ink); padding: 10px 12px; border-radius: 14px; cursor: url("cursors/bunny-heart.cbdcba3d527c.svg") 3 2, pointer; text-align: left; }
.more-refresh .refresh-art { width: 28px; height: 28px; flex: none; }
@media (prefers-reduced-motion: reduce) {
  .spinning .refresh-art .ring, .spinning .refresh-art .ear { animation: none; }
  .refresh-art .ring, .refresh-art .ear { transition: none; }
}

/* ⓘ bubbles (whimsy.js) */
.info { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; outline-offset: 2px; }
.info:focus-visible { outline: 3px solid var(--pink-200); }
.info-bubble { position: fixed; z-index: 3000; padding: 9px 12px; border-radius: 14px; background: #fff; color: var(--ink);
  border: 2px solid var(--pink-300); box-shadow: 0 10px 24px rgba(74, 43, 58, .18); font: 600 .82rem/1.45 var(--font-body);
  pointer-events: none; animation: pop-in .2s cubic-bezier(.34, 1.56, .64, 1); }
.info-bubble::before { content: '🐰'; font-size: .8rem; margin-right: 6px; }
@media (prefers-reduced-motion: reduce) { .info-bubble { animation: none; } }

/* desktop: today's quests stay on ONE row (extra chips tuck away; "+N more" opens the board) */
@media (min-width: 900px) {
  .qs-chips { flex-wrap: nowrap; overflow: hidden; }
  .qs-chips > * { flex: none; }
}

.qs-chip[hidden] { display: none !important; }

/* stat cards: every line stays on one line; at laptop widths the cards tighten instead of wrapping */
.stat-tile small, .stat-tile b { white-space: nowrap; }
@media (min-width: 900px) and (max-width: 1400px) {
  .stat-tile { padding: 8px 10px; }
  .stat-tile small { font-size: .6rem; letter-spacing: .04em; }
  .stat-tile b { font-size: 1.3rem; }
  .stat-tile span { font-size: .72rem; }
  .tile-row-label .hello { font-size: 1.1rem; }
}


.nobr { white-space: nowrap; }

/* top-bar house pills: compact, one line each */
.house-strip { gap: 5px; }
.house-btn { min-height: 38px; gap: 5px; padding: 3px 11px 3px 5px; font-size: .8rem; white-space: nowrap; }
.house-btn svg { width: 28px; height: 24px; }
.topbar .round-btn { width: 38px; height: 38px; }
.me-chip { min-height: 42px; }
@media (max-width: 1499px) { .house-btn { padding: 3px 5px; } }

/* posts that open the details sidebar */
.lift-mini[data-post], .news[data-post] { cursor: url("cursors/bunny-heart.cbdcba3d527c.svg") 3 2, pointer; }
.lift-mini[data-post]:focus-visible, .news[data-post]:focus-visible { outline: 3px solid var(--pink-200); }

.place-short { display: none; }
