/* Winter Baker — design tokens from the design document (Typography, colour and interface materials) */
:root {
  --paper: #F7F1E5;
  --page: #FFFDF7;
  --ink: #352D28;
  --ink-soft: #6b5f57;
  --plum: #6A3B4A;
  --plum-deep: #552e3b;
  --evergreen: #365747;
  --winter-blue: #264E63;
  --biscuit: #D5AC6C;
  --timber: #8a5a36;
  --timber-dark: #6d4428;
  --line: #d9cdb8;
  --shadow: 0 1px 0 rgba(53, 45, 40, .08), 0 6px 18px rgba(53, 45, 40, .10);
  --radius: 6px;
  --title: "Alegreya", Georgia, serif;
  --body: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text-scale: 1;
  --nav-h: 64px;
  color-scheme: light;
}
:root[data-text="large"] { --text-scale: 1.15; }
:root[data-text="larger"] { --text-scale: 1.3; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: calc(18px * var(--text-scale)); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background: var(--paper); color: var(--ink);
  font-family: var(--body); line-height: 1.45;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
}
body.no-nav { padding-bottom: 0; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--title); font-weight: 600; line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem); }
h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.6rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 .8em; }
a { color: var(--plum); }
.muted { color: var(--ink-soft); }
.small { font-size: .85rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--page); padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }
main:focus { outline: none; }

/* Buttons — opaque fill, real label, stable hit area */
.btn {
  appearance: none; font: 600 .95rem/1.2 var(--body); color: var(--ink);
  background: var(--page); border: 1.5px solid var(--ink); border-radius: var(--radius);
  min-height: 44px; min-width: 44px; padding: 10px 18px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  transition: background-color .15s, box-shadow .15s;
}
.btn:hover { background: #f1e9d9; }
.btn:active { box-shadow: inset 0 2px 0 rgba(53,45,40,.18); }
.btn.primary { background: var(--plum); border-color: var(--plum); color: #fff; }
.btn.primary:hover { background: var(--plum-deep); }
.btn.green { background: var(--evergreen); border-color: var(--evergreen); color: #fff; }
.btn.quiet { border-color: transparent; background: transparent; text-decoration: underline; text-underline-offset: 3px; font-weight: 400; }
.btn.quiet:hover { background: rgba(53,45,40,.06); }
.btn.small { min-height: 40px; padding: 6px 12px; font-size: .85rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn.selected, .btn[aria-pressed="true"] { background: var(--plum); color: #fff; border-color: var(--plum); }
:focus-visible { outline: 3px solid var(--winter-blue); outline-offset: 2px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

input[type=text], textarea, select {
  font: 1rem var(--body); color: var(--ink); background: var(--page);
  border: 1.5px solid var(--ink-soft); border-radius: var(--radius); padding: 10px 12px; width: 100%;
}
textarea { min-height: 96px; resize: vertical; }
label { font-weight: 600; display: block; margin: .6em 0 .25em; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 400; }
.check input { width: 22px; height: 22px; accent-color: var(--evergreen); }

/* Page layout */
.page { max-width: 1180px; margin: 0 auto; padding: 24px 16px 32px; }
.page-head { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; flex-wrap: wrap; }
.page-head p { margin: 0; color: var(--ink-soft); }
.panel { background: var(--page); border: 1.5px solid var(--line); border-radius: 8px; padding: 18px; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }

/* Navigation */
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: var(--paper); border-top: 1.5px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.nav ul { list-style: none; margin: 0 auto; padding: 0 8px; display: flex; max-width: 1180px; height: var(--nav-h); align-items: stretch; }
.nav li { flex: 1; display: flex; }
.nav a, .nav button {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--ink); text-decoration: none; font: 400 .85rem var(--body); background: none; border: 0; cursor: pointer;
  border-bottom: 3px solid transparent; min-width: 44px;
}
.nav a svg { width: 22px; height: 22px; }
.nav a[aria-current="page"] { color: var(--plum); font-weight: 600; border-bottom-color: var(--plum); }
@media (min-width: 760px) { .nav a { flex-direction: row; gap: 8px; font-size: .95rem; } }

.preview-banner { background: var(--winter-blue); color: #fff; text-align: center; padding: 6px 12px; font-size: .85rem; }
.preview-banner button { color: #fff; background: none; border: 0; text-decoration: underline; cursor: pointer; font: inherit; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 16px); transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 6px; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; z-index: 80; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(40, 30, 26, .55); z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { background: var(--page); border-radius: 10px; max-width: 760px; width: 100%; max-height: calc(100dvh - 32px); overflow: auto; padding: 22px; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.modal h2 { margin-bottom: .3em; }
.modal .modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 18px; }

/* Welcome */
.welcome { position: relative; min-height: 100dvh; background: #cfd7d9 center/cover no-repeat; display: flex; align-items: center; padding: 16px; }
.welcome-card { position: relative; z-index: 2; background: var(--paper); border: 1.5px solid var(--line); border-radius: 6px; padding: 32px 28px; max-width: 420px; box-shadow: var(--shadow); margin-left: max(0px, 4vw); }
.welcome-card h1 { font-size: clamp(2.2rem, 1.6rem + 2vw, 3rem); margin: .2em 0 0; }
.welcome-card .sub { font-family: var(--title); font-size: 1.2rem; margin-bottom: 1.1em; }
.welcome-card .btn { width: 100%; margin-top: 10px; }
.welcome .sprig { width: 22px; }
.welcome .sound-toggle { position: absolute; right: 16px; bottom: 16px; z-index: 2; }

/* Snow */
.snow { position: absolute; inset: 0; pointer-events: none; z-index: 1; }

/* Scenic hub */
.scenic { position: relative; width: 100%; max-width: 1400px; margin: 0 auto; aspect-ratio: 16 / 9; background: #e9dcc6 center/cover no-repeat; overflow: hidden; }
.scenic img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hotspot { position: absolute; transform: translate(-50%, -50%); background: var(--page); border: 1.5px solid var(--ink); color: var(--ink); font: 600 .9rem var(--body); border-radius: 4px; padding: 8px 14px; min-height: 44px; cursor: pointer; box-shadow: var(--shadow); text-decoration: none; display: inline-flex; align-items: center; }
.hotspot:hover { background: #fff; }
.today-card { position: absolute; left: 3%; top: 5%; background: var(--page); border: 1.5px solid var(--line); padding: 14px 18px; border-radius: 4px; max-width: 320px; box-shadow: var(--shadow); }
.today-card .date { font-size: .85rem; color: var(--ink-soft); }
.today-card h2 { font-size: 1.25rem; margin: .1em 0 .5em; }
.mode-chip { position: absolute; right: 3%; top: 5%; background: var(--page); border: 1.5px solid var(--line); padding: 8px 12px; border-radius: 4px; font-size: .85rem; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow); }
.hub-list { display: none; }
@media (max-width: 760px) {
  .scenic { aspect-ratio: auto; height: auto; }
  .scenic img.bg { position: static; height: 46vw; }
  .scenic .hotspot { display: none; }
  .today-card, .mode-chip { position: static; max-width: none; margin: 12px 16px 0; box-shadow: none; }
  .mode-chip { justify-content: space-between; }
  .hub-list { display: grid; gap: 10px; padding: 12px 16px 24px; }
  .hub-list .btn { justify-content: space-between; }
}
.hub-below { max-width: 1180px; margin: 0 auto; padding: 18px 16px 28px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* Calendar — the recipe cabinet */
.cabinet-wrap { display: grid; grid-template-columns: 1fr 240px; gap: 22px; align-items: start; }
@media (max-width: 860px) { .cabinet-wrap { grid-template-columns: 1fr; } }
.cabinet { background: var(--timber); border: 6px solid var(--timber-dark); border-radius: 6px; padding: 14px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.08); }
@media (max-width: 640px) { .cabinet { grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 10px; } }
.drawer { position: relative; aspect-ratio: 1 / .9; background: #c9945e; border: 2px solid var(--timber-dark); border-radius: 3px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--ink); font: 400 .75rem var(--body); padding: 6px; perspective: 400px; overflow: hidden; }
.drawer .num { background: var(--page); border: 1.5px solid var(--ink); font: 600 1.05rem var(--body); min-width: 34px; padding: 2px 6px; text-align: center; border-radius: 2px; }
.drawer .knob { width: 9px; height: 9px; border-radius: 50%; background: var(--timber-dark); }
.drawer.opened { background: #b98553; }
.drawer.opened .status::before { content: "✓ "; }
.drawer.today { outline: 3px solid var(--ink); outline-offset: -3px; background: #ddb07a; }
.drawer.locked { cursor: default; opacity: .78; }
.drawer.locked .num { background: #efe6d6; }
.drawer.family::after { content: ""; position: absolute; top: 6px; right: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--plum); border: 1.5px solid var(--page); }
.drawer.opening { animation: drawerOpen .5s ease-out forwards; }
@keyframes drawerOpen { 0% { transform: none; } 60% { transform: translateY(6px) scale(1.06); box-shadow: 0 10px 18px rgba(0,0,0,.35);} 100% { transform: translateY(4px) scale(1.04); } }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .85rem; color: var(--ink-soft); margin-top: 10px; }
.legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--plum); margin-right: 5px; }

/* Scene / story player */
.scene { position: relative; background: #2a2320; min-height: calc(100dvh - var(--nav-h)); display: flex; flex-direction: column; }
.scene-art { position: relative; flex: 1; overflow: hidden; min-height: 40vh; }
.scene-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene-art img.drift { animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.08) translate(-1.5%, -1%); } }
.dialogue { position: relative; z-index: 2; background: var(--page); border: 1.5px solid var(--ink); border-radius: 6px; margin: -90px auto 16px; width: min(900px, calc(100% - 32px)); padding: 18px 22px 14px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.dialogue .speaker { font: 600 .78rem var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--plum); margin-bottom: 4px; }
.dialogue .line { font-family: var(--title); font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); min-height: 2.6em; }
.dialogue .line.narration { font-style: italic; color: var(--ink-soft); }
.dialogue .controls { display: flex; gap: 6px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.dialogue .controls .spacer { flex: 1; }
.dialogue .speaker-face { position: absolute; right: 22px; bottom: 100%; height: 150px; pointer-events: none; }
@media (max-width: 640px) { .dialogue { margin-top: -40px; } .dialogue .speaker-face { height: 96px; } }

.after-scene { max-width: 900px; margin: 0 auto 28px; padding: 0 16px; display: grid; gap: 14px; }
.invite { display: grid; grid-template-columns: 180px 1fr; gap: 18px; align-items: center; background: var(--page); border: 1.5px solid var(--line); border-radius: 8px; padding: 14px; }
.invite img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 4px; }
.invite .kicker { font: 600 .75rem var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--plum); }
.invite.family { border-color: var(--plum); border-width: 2px; }
@media (max-width: 560px) { .invite { grid-template-columns: 1fr; } }
.question { background: #f1ebde; border-radius: 8px; padding: 16px 18px; }
.question .q { font-family: var(--title); font-size: 1.3rem; margin: .2em 0 .6em; }

/* Collection cards */
.card { background: var(--page); border: 1.5px solid var(--line); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
a.card:hover, button.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
button.card { font: inherit; text-align: left; padding: 0; cursor: pointer; }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card .card-body { padding: 10px 14px 14px; }
.card h3 { font-size: 1.1rem; margin: 0 0 .15em; }
.card p { margin: 0; font-size: .85rem; color: var(--ink-soft); }
.card.locked { opacity: .6; }
.card.locked img { filter: grayscale(.7); }
.tag { display: inline-block; font: 600 .7rem var(--body); letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 3px; background: #ece3d2; color: var(--ink); margin-bottom: 6px; }
.tag.family { background: var(--plum); color: #fff; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }

/* Activity shell */
.shell { max-width: 1180px; margin: 0 auto; padding: 18px 16px 28px; }
.shell-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 14px; flex-wrap: wrap; }
.shell-head h1 { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); }
.shell-head p { margin: .2em 0 0; color: var(--ink-soft); }
.workspace { position: relative; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.toolbar .spacer { flex: 1; }
.status-line { font-size: .85rem; color: var(--ink-soft); }
.turn-bar { display: flex; align-items: center; gap: 12px; background: #f1ebde; border-radius: 6px; padding: 8px 12px; margin-bottom: 12px; flex-wrap: wrap; }
.turn-bar strong { font-family: var(--title); font-size: 1.1rem; }
.win { background: var(--page); border: 2px solid var(--evergreen); border-radius: 8px; padding: 18px; text-align: center; margin-top: 14px; }
.win h2 { color: var(--evergreen); }

/* Editor layout */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
@media (max-width: 900px) { .editor { grid-template-columns: 1fr; } }
.stage { background: var(--page); border: 1.5px solid var(--line); border-radius: 8px; padding: 10px; touch-action: none; user-select: none; -webkit-user-select: none; }
.stage svg { width: 100%; height: auto; display: block; }
.tools { background: var(--page); border: 1.5px solid var(--line); border-radius: 8px; padding: 14px; display: grid; gap: 12px; }
.tools h3 { font: 600 .8rem var(--body); letter-spacing: .06em; text-transform: uppercase; margin: 0 0 6px; color: var(--ink-soft); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink); cursor: pointer; padding: 0; }
.swatch[aria-pressed="true"] { outline: 3px solid var(--winter-blue); outline-offset: 2px; }
.stickers { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; max-height: 260px; overflow: auto; padding: 2px; }
.sticker-btn { aspect-ratio: 1; background: #f6f0e4; border: 1.5px solid var(--line); border-radius: 6px; cursor: pointer; padding: 4px; min-height: 48px; }
.sticker-btn:hover { background: #fff; border-color: var(--ink-soft); }
.sticker-btn svg, .sticker-btn img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.bases { display: flex; flex-wrap: wrap; gap: 6px; }
.selected-tools { border-top: 1px solid var(--line); padding-top: 10px; }
.sticker-sel { outline: 2px dashed var(--winter-blue); }

/* Cards (playing) */
.felt { background: var(--evergreen); border-radius: 8px; padding: 14px; color: #fff; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.k-top, .k-tab { display: grid; grid-template-columns: repeat(7, 1fr); gap: clamp(4px, 1vw, 12px); }
.k-tab { margin-top: 18px; align-items: start; min-height: 360px; }
.pile { position: relative; aspect-ratio: 5 / 7; border: 1.5px dashed rgba(255,255,255,.35); border-radius: 6px; }
.pile .ghost { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.4); font-size: 1.4rem; }
.col { position: relative; min-height: 120px; }
.pcard { position: absolute; left: 0; width: 100%; aspect-ratio: 5 / 7; background: #fffdf7; color: var(--ink); border: 1.5px solid #3b3330; border-radius: 6px; cursor: pointer; font: 600 clamp(.7rem, .55rem + .8vw, 1.15rem)/1 var(--body); padding: 4px 5px; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.pcard .r { display: block; }
.pcard .s { position: absolute; right: 8%; bottom: 10%; font-size: 1.5em; }
.pcard.red { color: #a2322f; }
.pcard.back { background: var(--plum) repeating-linear-gradient(45deg, rgba(255,255,255,.08) 0 6px, transparent 6px 12px); border-color: #3b2229; cursor: default; }
.pcard.back::after { content: "WB"; position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.55); font: 600 .8rem var(--title); }
.pcard.sel { outline: 3px solid var(--biscuit); outline-offset: 1px; transform: translateY(-3px); }
.pcard.hint, .pile.hint { box-shadow: 0 0 0 4px #f2d38c; }

/* Memory */
.mem-grid { display: grid; gap: 10px; grid-template-columns: repeat(var(--cols, 4), 1fr); max-width: 760px; margin: 0 auto; }
.mem-card { aspect-ratio: 1; border-radius: 8px; border: 2px solid var(--ink); cursor: pointer; background: var(--plum) repeating-linear-gradient(45deg, rgba(255,255,255,.07) 0 6px, transparent 6px 12px); padding: 8px; }
.mem-card.up, .mem-card.done { background: var(--page); }
.mem-card.done { border-color: var(--evergreen); opacity: .85; }
.mem-card svg { width: 100%; height: 100%; }

/* Board-style puzzles */
.board { display: grid; gap: 3px; margin: 0 auto; touch-action: none; user-select: none; -webkit-user-select: none; }
.cell { aspect-ratio: 1; background: #ede4d3; border-radius: 3px; display: grid; place-items: center; font: 600 1rem var(--body); }

/* Print */
.print-root { display: none; }
@media print {
  body { background: #fff; padding: 0; }
  body > *:not(.print-root) { display: none !important; }
  .print-root { display: block !important; }
  .print-page { page-break-after: always; break-after: page; padding: 12mm; font-family: var(--body); color: #222; }
  .print-page:last-child { page-break-after: auto; break-after: auto; }
  .print-page h2 { font-family: var(--title); font-size: 22pt; margin: 0 0 4mm; }
  .print-page .date { font-size: 10pt; color: #666; letter-spacing: .08em; text-transform: uppercase; }
  .print-page img { max-width: 100%; max-height: 170mm; margin: 6mm auto; object-fit: contain; border: 1px solid #ddd; }
  .print-page .caption { font-family: var(--title); font-size: 14pt; }
  .print-page .footer { font-size: 9pt; color: #888; margin-top: 6mm; }
}

/* Scrapbook */
.book { background: #e8dcc5; border: 1.5px solid #cdbb98; border-radius: 8px; padding: 16px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 14px; border-bottom: 1.5px solid var(--line); }
.tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 14px; font: 400 1rem var(--body); cursor: pointer; color: var(--ink); min-height: 44px; }
.tabs button[aria-selected="true"] { border-bottom-color: var(--plum); font-weight: 600; color: var(--plum); }
.entries { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.entry { background: var(--page); border-radius: 4px; padding: 14px; box-shadow: 0 2px 6px rgba(53,45,40,.15); }
.entry:nth-child(3n+1) .entry-img { transform: rotate(-1.2deg); }
.entry:nth-child(3n+2) .entry-img { transform: rotate(.8deg); }
.entry .date { font: 600 .72rem var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--plum); }
.entry h3 { margin: .2em 0 .4em; }
.entry-img { width: 100%; aspect-ratio: 4/3; object-fit: contain; background: #f4eee2; border: 6px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); margin-bottom: 8px; }
.entry .caption { font-family: var(--title); font-size: 1.05rem; }
.entry .actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.empty { text-align: center; padding: 30px 16px; color: var(--ink-soft); }
.tree-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
@media (max-width: 640px) { .tree-grid { grid-template-columns: repeat(4, 1fr); } }
.tree-day { background: var(--page); border-radius: 6px; padding: 8px; text-align: center; border: 1.5px solid var(--line); }
.tree-day.on { border-color: var(--evergreen); }
.tree-day img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 3px; }
.tree-day.off img { filter: grayscale(1) opacity(.35); }

/* Village */
.places { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.place .links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* Settings */
.settings-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.settings-row .label { font-weight: 600; }
.settings-row .desc { color: var(--ink-soft); font-size: .9rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
:root[data-motion="still"] *, :root[data-motion="still"] *::before { animation: none !important; transition: none !important; }
