:root {
  --ink: #3c1606;
  --ink-soft: #54342c;
  --cream: #fefcf5;
  --paper: #fdf5e6;
  --butter: #fcedc8;
  --peach: #fbc2a5;
  --pink: #fb9c98;
  --mint: #bbf3c3;
  --yellow: #fcd474;
  --sky: #a4dafa;
  --s: 4px;                 /* CSS px per room pixel, set by JS */
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #c98a66; }
body {
  font-family: var(--font);
  color: var(--ink);
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
  overscroll-behavior: none;
}
button { font: inherit; color: inherit; cursor: pointer; }
.px { image-rendering: pixelated; image-rendering: crisp-edges; -webkit-user-drag: none; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

#app { position: fixed; inset: 0; overflow: hidden; }

/* ---------- Room (world) ---------- */
#world {
  position: absolute;
  width: calc(var(--s) * 108);
  height: calc(var(--s) * 192);
  left: 0; top: 0;
}
#bg, #bg-night { position: absolute; inset: 0; width: 100%; height: 100%; }
#bg-night { opacity: 0; transition: opacity 1.6s ease; }
.night #bg-night { opacity: 1; }

/* Little heart picture on the wall: the secret letter is behind it (tap 7x) */
#frame {
  position: absolute; padding: 0; border: 0; background: none;
  left: calc(var(--s) * 83); top: calc(var(--s) * 51);
  width: calc(var(--s) * 14); height: calc(var(--s) * 18);
  transform-origin: 50% 10%;
}
#frame img { width: 100%; height: 100%; display: block; }
#frame.wiggle { animation: swing .5s ease-out 1; }
@keyframes swing { 0% { transform: rotate(0); } 25% { transform: rotate(7deg); } 55% { transform: rotate(-5deg); } 80% { transform: rotate(2deg); } 100% { transform: rotate(0); } }
#dim {
  position: absolute; inset: 0;
  background: rgba(36, 40, 87, 0.42);
  opacity: 0; transition: opacity 1.2s ease;
  pointer-events: none;
}
.asleep #dim { opacity: 1; }

#cat-wrap {
  position: absolute;
  width: calc(var(--s) * 64); height: calc(var(--s) * 64);
  left: calc(var(--s) * 22); top: calc(var(--s) * 42);
}
#cat-body {
  position: absolute; inset: 0;
  animation: bob 2.6s steps(1, end) infinite;
  transform-origin: 50% 100%;
}
.asleep #cat-body { animation-duration: 4.4s; }
#cat {
  width: 100%; height: 100%; display: block;
  touch-action: none; cursor: grab;
}
#acc {
  position: absolute; pointer-events: none;
  left: calc(var(--s) * var(--ax, 0)); top: calc(var(--s) * var(--ay, 0));
  width: calc(var(--s) * var(--aw, 16)); height: calc(var(--s) * var(--aw, 16));
}
#cat-body.pop { animation: pop .32s ease-out 1; }
@keyframes pop {
  0% { transform: scale(1, 1); }
  35% { transform: scale(1.05, .95); }
  70% { transform: scale(.98, 1.03); }
  100% { transform: scale(1, 1); }
}

/* Envelope the cat brings */
#envelope {
  position: absolute; padding: 0; border: 0; background: none;
  left: calc(var(--s) * 74); top: calc(var(--s) * 92);
  width: calc(var(--s) * 18); height: calc(var(--s) * 18);
  animation: envbob 1.6s ease-in-out infinite;
  filter: drop-shadow(0 0 calc(var(--s) * 1.5) rgba(255, 240, 200, .95));
}
#envelope img { width: 100%; height: 100%; display: block; }
#envelope.drop { animation: envdrop .6s cubic-bezier(.3, 1.6, .5, 1) 1, envbob 1.6s ease-in-out .6s infinite; }
@keyframes envdrop { 0% { transform: translateY(calc(var(--s) * -30)) scale(.4); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes envbob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(calc(var(--s) * -2)) rotate(3deg); } }
@keyframes bob { 0% { transform: translateY(0); } 50% { transform: translateY(var(--s)); } }
#cat-body.hop { animation: hop .5s steps(1, end) 1; }
@keyframes hop {
  0% { transform: translateY(0); }
  20% { transform: translateY(calc(var(--s) * -3)); }
  45% { transform: translateY(calc(var(--s) * -4)); }
  70% { transform: translateY(calc(var(--s) * -2)); }
  90% { transform: translateY(0); }
}
#cat-body.wiggle { animation: wiggle .4s steps(1, end) 1; }
@keyframes wiggle {
  0%,50% { transform: translateX(var(--s)); }
  25%,75% { transform: translateX(calc(var(--s) * -1)); }
  100% { transform: none; }
}

#particles { position: absolute; inset: 0; pointer-events: none; }
.particle {
  position: absolute;
  width: calc(var(--s) * 8); height: calc(var(--s) * 8);
  animation: rise 1.8s ease-out forwards;
}
.particle.big { width: calc(var(--s) * 12); height: calc(var(--s) * 12); }
@keyframes rise {
  0% { transform: translate(0, 0) scale(.6); opacity: 0; }
  15% { opacity: 1; transform: translate(0, calc(var(--s) * -3)) scale(1); }
  100% { transform: translate(var(--dx, 0px), calc(var(--s) * -22)); opacity: 0; }
}
.particle.stay { animation: hover 2.4s ease-in-out forwards; }
@keyframes hover {
  0% { opacity: 0; transform: translateY(0); }
  20%, 80% { opacity: 1; transform: translateY(calc(var(--s) * -2)); }
  100% { opacity: 0; transform: translateY(calc(var(--s) * -4)); }
}

/* Speech bubble */
#bubble {
  position: absolute;
  left: 50%; transform: translate(-50%, -100%) scale(.8);
  max-width: min(78vw, 300px);
  padding: 9px 14px;
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 0 3px 0 rgba(60, 22, 6, .25);
  font-weight: 700; font-size: 17px; line-height: 1.25;
  text-align: center; white-space: normal;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 3;
}
#bubble.show { opacity: 1; transform: translate(-50%, -100%) scale(1); }
#bubble::after {
  content: ""; position: absolute; left: 50%; bottom: -11px; margin-left: -8px;
  width: 12px; height: 12px; background: var(--cream);
  border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
  transform: rotate(45deg);
}

/* ---------- HUD ---------- */
#hud {
  position: absolute; left: 0; right: 0; top: 0;
  padding: calc(var(--safe-t) + 8px) 12px 0;
  pointer-events: none;
}
#hud > * { pointer-events: auto; }
#hud-top { display: flex; align-items: center; gap: 8px; }
#title-line {
  flex: 1; min-width: 0;
  background: rgba(254, 252, 245, .92);
  border: 3px solid var(--ink); border-radius: 14px;
  padding: 6px 12px;
  font-weight: 800; font-size: 17px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 3px 0 rgba(60, 22, 6, .25);
}
#title-line .heart { color: #e46f6b; }
#cat-meta { font-weight: 700; font-size: 14px; color: var(--ink-soft); }
.icon-btn {
  width: 48px; height: 48px; flex: none;
  border: 3px solid var(--ink); border-radius: 14px;
  background: rgba(254, 252, 245, .92);
  padding: 4px; display: grid; place-items: center;
  box-shadow: 0 3px 0 rgba(60, 22, 6, .25);
}
.icon-btn img { width: 32px; height: 32px; }
.icon-btn:active { transform: translateY(2px); box-shadow: none; }

#stats {
  margin-top: 8px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px;
  background: rgba(254, 252, 245, .92);
  border: 3px solid var(--ink); border-radius: 14px;
  padding: 7px 10px;
  box-shadow: 0 3px 0 rgba(60, 22, 6, .25);
}
.stat { display: flex; align-items: center; gap: 6px; position: relative; }
.stat img { width: 28px; height: 28px; flex: none; }
.bar {
  flex: 1; height: 14px;
  border: 2px solid var(--ink); border-radius: 8px;
  background: #ded2bd; overflow: hidden;
}
.fill {
  height: 100%; width: 50%;
  background: #8fdc9b;
  border-radius: 5px 0 0 5px;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .45);
  transition: width .6s ease, background-color .6s ease;
}
.stat.mid .fill { background: var(--yellow); }
.stat.low .fill { background: var(--pink); }
.stat.low img { animation: nudge 1.6s ease-in-out infinite; }
.stat.gain .bar { animation: glow .7s ease-out 1; }
@keyframes glow { 0% { box-shadow: 0 0 0 0 rgba(143, 220, 155, .9); } 100% { box-shadow: 0 0 0 7px rgba(143, 220, 155, 0); } }
@keyframes nudge { 0%, 100% { transform: none; } 50% { transform: scale(1.12); } }

/* ---------- Action bar ---------- */
#actions {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px;
  padding: 10px 10px calc(var(--safe-b) + 12px);
}
.act {
  border: 3px solid var(--ink); border-radius: 18px;
  background: var(--cream);
  padding: 6px 2px 5px;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  box-shadow: 0 4px 0 var(--ink);
  min-height: 72px;
  transition: transform .06s ease, opacity .2s ease;
}
.act:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.act .ico { position: relative; width: 44px; height: 44px; display: block; }
.act .ico img { width: 44px; height: 44px; display: block; }
.act .lbl { font-weight: 800; font-size: 13px; }
.act .ico img { transition: transform .15s ease; }
.act:active .ico img { transform: scale(.9) rotate(-6deg); }
.act .dot {
  position: absolute; right: -4px; top: -2px; width: 14px; height: 14px; border-radius: 50%;
  background: #e46f6b; border: 2px solid var(--ink);
  animation: nudge 1.4s ease-in-out infinite;
}
.act .cd {
  position: absolute; inset: -2px; border-radius: 50%;
  background: conic-gradient(rgba(84, 52, 44, .55) calc(var(--cd, 0) * 1turn), transparent 0);
  opacity: 0; transition: opacity .3s;
}
.act.cooling .cd { opacity: 1; }
.act.cooling { background: #f3e9d6; }
.act.disabled { opacity: .55; }

/* Floating stat deltas */
#floats { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.float {
  position: absolute; font-weight: 900; font-size: 18px;
  color: #2f8a45; text-shadow: 0 2px 0 var(--cream), 0 -1px 0 var(--cream), 1px 0 0 var(--cream), -1px 0 0 var(--cream);
  animation: floatup 1.3s ease-out forwards;
}
.float.neg { color: #b5524c; }
@keyframes floatup {
  0% { transform: translate(-50%, 0); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translate(-50%, -34px); opacity: 0; }
}

/* ---------- Sheets ---------- */
#backdrop {
  position: absolute; inset: 0; background: rgba(60, 22, 6, .3); z-index: 10;
  animation: fade .2s ease;
}
@keyframes fade { from { opacity: 0; } }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 11;
  max-width: 560px; margin: 0 auto;
  background: var(--paper);
  border: 3px solid var(--ink); border-bottom: 0;
  border-radius: 22px 22px 0 0;
  padding: 16px 16px calc(var(--safe-b) + 18px);
  animation: slideup .22s ease-out;
  max-height: 86%; overflow-y: auto;
}
@keyframes slideup { from { transform: translateY(100%); } }
.sheet.closing { animation: slidedown .19s ease-in forwards; }
#backdrop.closing { animation: fadeout .19s ease-in forwards; }
@keyframes slidedown { to { transform: translateY(100%); } }
@keyframes fadeout { to { opacity: 0; } }

/* Wardrobe */
.acc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.acc-tile {
  border: 3px solid var(--ink); border-radius: 16px; background: var(--cream);
  padding: 6px 2px 6px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  box-shadow: 0 3px 0 var(--ink); min-height: 92px; position: relative;
}
.acc-tile:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.acc-tile img { width: 56px; height: 56px; }
.acc-tile .nm { font-weight: 800; font-size: 12px; line-height: 1.15; text-align: center; }
.acc-tile.on { background: var(--peach); box-shadow: 0 3px 0 var(--ink), inset 0 0 0 3px var(--cream); }
.acc-tile.locked img { filter: grayscale(1) opacity(.35); }
.acc-tile.locked::after {
  content: "🔒"; position: absolute; top: 4px; right: 6px; font-size: 15px;
}
.acc-tile.locked .nm { color: var(--ink-soft); }
.acc-tile .nothing { width: 56px; height: 56px; display: grid; place-items: center; font-size: 30px; font-weight: 900; color: var(--ink-soft); }
.acc-tile.shake { animation: wiggle .3s; }

/* Settings toggle */
.toggle-row { justify-content: space-between; }
.lbl-strong { font-weight: 800; font-size: 17px; }
.switch {
  width: 64px; height: 36px; border-radius: 999px; border: 3px solid var(--ink);
  background: #ded2bd; position: relative; padding: 0; flex: none;
  transition: background-color .2s ease;
}
.switch span {
  position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--cream); border: 2px solid var(--ink);
  transition: transform .2s ease;
}
.switch.on { background: var(--mint); }
.switch.on span { transform: translateX(28px); }
#btn-reread { margin-bottom: 10px; }

/* ---------- Overlays: celebrations & the letter ---------- */
.overlay {
  position: absolute; inset: 0; z-index: 30;
  display: grid; place-items: center;
  padding: calc(var(--safe-t) + 16px) 16px calc(var(--safe-b) + 16px);
  animation: fade .25s ease;
}
.overlay.leaving { animation: fadeout .22s ease-in forwards; }
#celebrate { background: radial-gradient(circle at 50% 45%, rgba(254, 252, 245, .55), rgba(251, 156, 152, .55) 70%); overflow: hidden; }
#confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.conf {
  position: absolute; top: -40px; width: 28px; height: 28px;
  animation: fall var(--dur, 3s) linear forwards;
}
@keyframes fall {
  0% { transform: translate(0, 0) rotate(0); opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translate(var(--sway, 0px), 110vh) rotate(var(--rot, 1turn)); opacity: 0; }
}
.cele-card {
  position: relative;
  width: min(86vw, 340px);
  background: var(--paper); border: 3px solid var(--ink); border-radius: 22px;
  padding: 16px 18px 20px; text-align: center;
  box-shadow: 0 5px 0 rgba(60, 22, 6, .35);
  animation: popin .45s cubic-bezier(.3, 1.6, .5, 1);
}
@keyframes popin { from { transform: scale(.6); opacity: 0; } }
.cele-kicker { margin: 0; font-weight: 800; font-size: 14px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .6px; }
.cele-card h2 { margin: 4px 0 6px; font-size: 26px; font-weight: 900; }
.cele-art { display: grid; place-items: center; min-height: 140px; }
#cele-img { width: 128px; height: 128px; animation: celebob 1s steps(2, end) infinite; }
#cele-img.big { width: 192px; height: 192px; }
@keyframes celebob { 50% { transform: translateY(-6px); } }
.cele-card p#cele-text { margin: 4px 0 14px; font-weight: 700; font-size: 16px; line-height: 1.35; }

#letter { background: rgba(60, 22, 6, .45); }
.letter-paper {
  position: relative;
  width: min(90vw, 400px); max-height: calc(100% - 8px); overflow-y: auto;
  background:
    repeating-linear-gradient(to bottom, transparent 0 31px, rgba(251, 156, 152, .45) 31px 33px) 0 74px / 100% calc(100% - 74px) no-repeat,
    #fdf8ec;
  border: 3px solid var(--ink); border-radius: 14px;
  box-shadow: 0 0 0 6px #fcc1b7, 0 0 0 9px var(--ink), 0 10px 0 9px rgba(60, 22, 6, .3);
  padding: 8px 22px 20px; text-align: center;
  animation: unfold .6s cubic-bezier(.25, 1.4, .5, 1);
  transform-origin: 50% 0;
  -webkit-user-select: text; user-select: text;
}
@keyframes unfold { 0% { transform: scaleY(.1) translateY(30px); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; } }
.letter-env { width: 72px; height: 72px; display: block; margin: 0 auto -4px; }
.letter-body {
  text-align: left;
  font-family: "Bradley Hand", "Segoe Print", "Snell Roundhand", "Comic Sans MS", cursive, var(--font);
  font-size: 21px; line-height: 33px; color: #4a2418;
  margin-bottom: 14px;
}
.letter-body p { margin: 0; }
#letter-text { white-space: pre-line; }
#letter-greeting { margin-bottom: 0; }
#letter-sign { text-align: right; margin-top: 8px; }
.letter-body.short #letter-text { text-align: center; font-size: 24px; padding: 6px 0; }

/* Screen transitions */
.screen.leaving { animation: fadeout .35s ease-in forwards; }
.screen.entering { animation: fade .35s ease-out; }
.sheet h2 { margin: 2px 0 12px; font-size: 20px; text-align: center; }
.food-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.food {
  border: 3px solid var(--ink); border-radius: 16px; background: var(--cream);
  padding: 6px 2px 8px; display: flex; flex-direction: column; align-items: center;
  box-shadow: 0 3px 0 var(--ink); position: relative;
}
.food:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.food img { width: 64px; height: 64px; }
.food span { font-weight: 800; font-size: 14px; }
.food small { font-size: 11px; color: var(--ink-soft); font-weight: 700; }
.food.disabled { opacity: .5; }
.hint { text-align: center; color: var(--ink-soft); font-size: 13px; margin: 12px 0 0; min-height: 1em; }

.row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.row label { font-weight: 800; }
input {
  font: inherit; font-weight: 700; font-size: 18px; color: var(--ink);
  border: 3px solid var(--ink); border-radius: 12px; background: var(--cream);
  padding: 8px 12px; min-width: 0; flex: 1;
  -webkit-user-select: text; user-select: text;
}
input:focus { outline: 3px solid var(--peach); }
.pill {
  border: 3px solid var(--ink); border-radius: 999px;
  background: var(--peach); font-weight: 800; font-size: 16px;
  padding: 10px 18px; min-height: 48px;
  box-shadow: 0 3px 0 var(--ink);
}
.pill:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.pill.big { font-size: 20px; padding: 12px 34px; }
.pill.ghost { background: var(--cream); width: 100%; }
.pill.warn { background: var(--pink); }
.howto { margin: 4px 0 14px; background: var(--cream); border: 3px solid var(--ink); border-radius: 14px; padding: 10px 14px; }
.howto summary { font-weight: 800; cursor: pointer; min-height: 28px; }
.howto ul { margin: 8px 0 0; padding-left: 18px; line-height: 1.45; font-size: 15px; }

/* ---------- Full screens (welcome / naming) ---------- */
.screen { position: absolute; inset: 0; z-index: 20; overflow: hidden; background: #fbc2a5; }
.screen-world { position: absolute; width: calc(var(--s) * 108); height: calc(var(--s) * 192); }
.screen-bg { width: 100%; height: 100%; display: block; }
#basket-peek {
  position: absolute;
  /* front rim of the basket in bg-welcome is at room-pixel y~140, centred at x~51 */
  left: calc(var(--s) * 19); top: calc(var(--s) * 90);
  width: calc(var(--s) * 64); height: calc(var(--s) * 48);
  overflow: hidden;
}
#basket-peek img {
  width: calc(var(--s) * 64); height: calc(var(--s) * 64); display: block;
  animation: peek 3.2s steps(1, end) infinite;
}
@keyframes peek { 0% { transform: translateY(calc(var(--s) * 6)); } 50% { transform: translateY(calc(var(--s) * 3)); } }
.screen-ui {
  position: absolute; left: 0; right: 0; top: calc(var(--safe-t) + 9vh);
  text-align: center; padding: 0 20px;
}
.screen-ui h1 {
  margin: 0; font-size: clamp(38px, 11vw, 58px); font-weight: 900; letter-spacing: .5px;
  color: var(--cream);
  text-shadow: 0 3px 0 var(--ink), 3px 0 0 var(--ink), -3px 0 0 var(--ink), 0 -3px 0 var(--ink),
               3px 3px 0 var(--ink), -3px 3px 0 var(--ink), 3px -3px 0 var(--ink), -3px -3px 0 var(--ink),
               0 7px 0 rgba(60, 22, 6, .3);
}
.tag { font-weight: 800; font-size: 18px; margin: 12px 0 0; color: var(--ink); }
#screen-welcome .screen-ui {
  top: 0; bottom: 0; display: flex; flex-direction: column; align-items: center;
  padding: calc(var(--safe-t) + 9vh) 20px calc(var(--safe-b) + 7vh);
}
#btn-adopt { margin-top: auto; }

.card {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(88vw, 360px);
  background: var(--paper); border: 3px solid var(--ink); border-radius: 22px;
  padding: 16px 18px 20px; text-align: center;
  box-shadow: 0 5px 0 rgba(60, 22, 6, .35);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.card label { font-weight: 900; font-size: 20px; }
.card input { width: 100%; text-align: center; font-size: 22px; }
.name-cat { width: 128px; height: 128px; margin-bottom: -6px; }
.card .shake { animation: wiggle .3s; }

@media (min-width: 560px) {
  #hud, #actions { max-width: 520px; margin: 0 auto; }
}
@media (max-height: 680px) {
  .act { min-height: 62px; padding: 4px 2px 3px; }
  .act .ico, .act .ico img { width: 36px; height: 36px; }
  .acc-tile { min-height: 80px; }
  .acc-tile img, .acc-tile .nothing { width: 44px; height: 44px; }
  .stat img { width: 24px; height: 24px; }
  #stats { padding: 5px 9px; gap: 4px 10px; }
}
@media (max-width: 370px) {
  .act .lbl { font-size: 12px; }
  .act .ico, .act .ico img { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  #cat-body, #basket-peek img, #envelope, #cele-img, .stat.low img, .act .dot { animation: none !important; }
  .letter-paper, .cele-card { animation: none !important; }
}

/* Notifications (settings) */
#notify-block { margin-bottom: 12px; }
#btn-notify-enable { margin-bottom: 6px; }
.quiet-row { gap: 6px; flex-wrap: wrap; }
.quiet-row label { margin-right: auto; }
.quiet-row select {
  font: inherit; font-weight: 800; font-size: 15px; color: var(--ink);
  background: var(--cream); border: 3px solid var(--ink); border-radius: 12px; padding: 4px 6px;
}
.note { color: var(--ink-soft); font-size: 13px; line-height: 1.35; margin: 0 0 6px; text-align: center; }
.note:empty { display: none; }
.linkish {
  display: block; margin: 0 auto 4px; background: none; border: 0; padding: 4px;
  font: inherit; font-size: 13px; font-weight: 800; color: var(--ink-soft); text-decoration: underline;
}
