/* ------------------------------------------------------------------ tokens */
:root {
  /* surfaces the board and cards sit on */
  --paper: #fffaf2;
  --paper-2: #f8f0e3;
  --ink: #2f2a26;
  --muted: #8a7d71;
  --line: #eadfce;
  /* the page background and text on it (changes per pack) */
  --bg: #f6efe4;
  --bg-2: #efe3d0;
  --on-bg: #2f2a26;
  --on-bg-muted: #8a7d71;
  --accent: #c8553d;
  --accent-2: #e9a03b;
  --accent-ink: #fff;
  --cell-font: 1;
  --list-font: 1;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --shadow: 0 10px 30px rgba(70, 45, 20, 0.12), 0 2px 6px rgba(70, 45, 20, 0.06);
  --radius: 22px;
  color-scheme: light;
}
body[data-pack="christmas"] {
  --bg: #1d3a2c; --bg-2: #142a20; --on-bg: #fbf3e4; --on-bg-muted: #c9d8c7;
  --accent: #c8423a; --accent-2: #e3b04b;
}
body[data-pack="daily"] {
  --bg: #fbe9c9; --bg-2: #f6d9a6; --on-bg: #3a2a18; --on-bg-muted: #8f7453;
  --accent: #d9792b; --accent-2: #e9a03b;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #2b2622; --paper-2: #332d28; --ink: #f3ebe0; --muted: #b3a697; --line: #40382f;
    --bg: #1d1916; --bg-2: #151210; --on-bg: #f3ebe0; --on-bg-muted: #b3a697;
    --accent: #e07a5f; --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
  body[data-pack="christmas"] { --bg: #132a1f; --bg-2: #0c1d15; }
  .pack[data-p="everyday"] .pack-ico { background: #4a3529; }
  .pack[data-p="christmas"] .pack-ico { background: #24402f; }
  .daily-ico { background: #4a3a1c; }
  body[data-pack="daily"] { --bg: #2a2117; --bg-2: #1e170f; --on-bg: #f6e7cf; --on-bg-muted: #c7a982; }
}
:root.big { --cell-font: 1.16; --list-font: 1.28; }

/* ------------------------------------------------------------------ base */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background: radial-gradient(120% 80% at 50% 0%, var(--bg) 40%, var(--bg-2) 100%) fixed, var(--bg);
  color: var(--on-bg);
  font-family: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow: hidden; overscroll-behavior: none; user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
.hidden { display: none !important; }
.snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.screen { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; padding: calc(var(--safe-t) + 10px) 18px calc(var(--safe-b) + 14px); }
.screen.enter { animation: rise 0.35s cubic-bezier(.2, .8, .2, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.icon { width: 46px; height: 46px; border-radius: 15px; background: var(--paper); color: var(--ink); display: grid; place-items: center; flex: none; box-shadow: var(--shadow); transition: transform 0.12s; }
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon:active, .play-big:active, .daily-card:active, .pack:active, .primary:active { transform: scale(0.96); }
.icon.ghosty { background: transparent; box-shadow: none; color: var(--on-bg); }

/* ------------------------------------------------------------------ home */
.home { overflow-y: auto; gap: 14px; padding-bottom: calc(var(--safe-b) + 24px); }
.home-top { display: flex; justify-content: flex-end; min-height: 46px; }
.logo { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 2vh 0 3vh; }
.logo-tiles { display: flex; gap: 7px; }
.logo-tiles span {
  width: 54px; height: 60px; border-radius: 14px; background: var(--paper); color: var(--ink); display: grid; place-items: center;
  font-size: 2.1rem; font-weight: 800; box-shadow: var(--shadow); animation: tile-in 0.6s cubic-bezier(.2, 1.4, .4, 1) both;
}
.logo-tiles span:nth-child(odd) { rotate: -4deg; }
.logo-tiles span:nth-child(even) { rotate: 3deg; translate: 0 4px; }
.logo-tiles span.hl { background: var(--accent); color: var(--accent-ink); }
@keyframes tile-in { from { opacity: 0; transform: translateY(-30px) rotate(-20deg); } }
.logo-word { font-size: 1.9rem; font-weight: 800; letter-spacing: 0.01em; color: var(--on-bg); }

.play-big {
  display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; padding: 18px; border-radius: var(--radius);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 88%, #fff), var(--accent)); color: var(--accent-ink);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 40%, transparent), inset 0 -4px 0 rgba(0, 0, 0, 0.14); transition: transform 0.12s;
}
.play-k { font-size: 1.6rem; font-weight: 800; }
.play-s { font-size: 1rem; font-weight: 700; opacity: 0.9; }

.daily-card {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow); transition: transform 0.12s;
}
.daily-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fbe3b0; color: #c9771f; font-size: 1.5rem; }
.daily-txt b { display: block; font-size: 1.15rem; }
.daily-txt small { color: var(--muted); font-size: 0.95rem; font-weight: 600; }
.daily-state { font-weight: 800; color: var(--accent); white-space: nowrap; }
.daily-state.done { color: #4f9a5a; }

.home-h { margin: 10px 2px 0; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--on-bg-muted); }
.packs { display: grid; gap: 12px; }
.pack {
  position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center; width: 100%; text-align: left;
  background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); transition: transform 0.12s;
}
.pack-ico { grid-row: 1 / 4; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.9rem; }
.pack[data-p="everyday"] .pack-ico { background: #f4dccb; }
.pack[data-p="christmas"] .pack-ico { background: #d9eadb; }
.pack b { font-size: 1.15rem; padding-right: 54px; }
.pack small { color: var(--muted); font-size: 0.92rem; font-weight: 600; }
.pack-bar { height: 8px; border-radius: 99px; background: var(--paper-2); overflow: hidden; margin-top: 4px; }
.pack-bar i { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.pack[data-p="christmas"] .pack-bar i { background: #3f8a52; }
.pack .count { position: absolute; top: 16px; right: 18px; font-weight: 800; color: var(--muted); font-size: 0.95rem; }

/* ------------------------------------------------------------------ game */
.bar { display: flex; align-items: center; gap: 12px; min-height: 52px; }
.titles { flex: 1; text-align: center; min-width: 0; }
.titles h1 { margin: 0; font-size: 1.35rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--on-bg); }
.sub { font-size: 0.78rem; color: var(--on-bg-muted); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.counter { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; font-weight: 800; font-size: 1rem; background: color-mix(in srgb, var(--on-bg) 10%, transparent); color: var(--on-bg); flex: none; }
.tools { display: flex; justify-content: center; padding-top: 6px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px; border-radius: 99px; background: var(--paper); color: var(--ink); font-weight: 800; font-size: 1.1rem; box-shadow: var(--shadow); transition: transform 0.12s; }
.pill svg { width: 22px; height: 22px; fill: none; stroke: var(--accent-2); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pill:active { transform: scale(0.95); }
.progress { height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--on-bg) 12%, transparent); margin: 10px 4px 0; overflow: hidden; }
.progress-fill { height: 100%; width: 0; border-radius: 99px; background: var(--accent-2); transition: width 0.5s cubic-bezier(.2, .8, .2, 1); }

.play { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; min-height: 0; padding: 3vh 0 1vh; }
.board-wrap { position: relative; width: 100%; display: flex; justify-content: center; }
.board {
  --n: 8; --rows: var(--n); --bw: min(100vw - 28px, 60vh, 640px);
  position: relative; width: var(--bw); aspect-ratio: calc(var(--n) + 0.6) / calc(var(--rows) + 0.6); background: var(--paper); border-radius: 26px;
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line); touch-action: none;
}
.cells { position: absolute; inset: 10px; display: grid; grid-template-columns: repeat(var(--n), 1fr); grid-template-rows: repeat(var(--rows), 1fr); }
.cell {
  display: grid; place-items: center; font-weight: 800; position: relative; z-index: 1; color: var(--ink);
  font-size: calc((var(--bw) - 20px) / var(--n) * 0.54 * var(--cell-font));
}
.cell.pop { animation: pop 0.42s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes pop { 40% { transform: scale(1.38); } }
.cell.hint { animation: hint 0.9s ease-in-out 3; color: var(--accent); }
@keyframes hint { 50% { transform: scale(1.4); } }
.marks { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); pointer-events: none; overflow: visible; }
.marks line { stroke-linecap: round; }
.marks .found { stroke-dasharray: var(--len) var(--len); animation: draw 0.35s ease-out both; }
@keyframes draw { from { stroke-dashoffset: var(--len); } to { stroke-dashoffset: 0; } }
.marks .miss { animation: miss 0.4s ease-out both; }
@keyframes miss { 25% { transform: translateX(-0.12px); } 50% { transform: translateX(0.12px); } to { opacity: 0; } }
.preview {
  position: absolute; top: -10px; left: 50%; transform: translate(-50%, -100%); background: var(--ink); color: var(--paper);
  font-weight: 800; padding: 6px 16px; border-radius: 999px; font-size: 1.1rem; letter-spacing: 0.1em; opacity: 0; transition: opacity 0.12s;
  pointer-events: none; z-index: 3; box-shadow: var(--shadow); white-space: nowrap;
}
.preview.on { opacity: 1; }

.side { display: flex; flex-direction: column; align-items: center; gap: 12px; width: min(100%, 640px); min-height: 0; }
.words { list-style: none; margin: 0; padding: 0 2px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; overflow-y: auto; }
.words li {
  font-size: calc(1.14rem * var(--list-font)); font-weight: 800; padding: 9px 16px; border-radius: 999px; background: var(--paper); color: var(--ink);
  box-shadow: 0 2px 6px rgba(40, 25, 10, 0.1); transition: background 0.3s, color 0.3s;
}
.words li.found { background: var(--c); color: #fff; text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: rgba(255, 255, 255, 0.75); }
.words li.just { animation: chip 0.5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes chip { 40% { transform: scale(1.18); } }
.tip { margin: 0; font-weight: 800; color: var(--accent-2); font-size: calc(1.05rem * var(--list-font)); text-align: center; animation: nudge 1.6s ease-in-out infinite; }
body[data-pack="everyday"] .tip { color: var(--accent); }
@keyframes nudge { 50% { transform: translateY(-3px); } }

@media (min-aspect-ratio: 5/4) and (min-height: 420px) {
  .play { flex-direction: row; justify-content: center; align-items: center; gap: 30px; }
  .board-wrap { width: auto; }
  .board { --bw: min(80vh - 60px, 640px, 60vw); }
  .side { width: auto; align-items: stretch; }
  .tip { text-align: left; max-width: 240px; }
  .words { flex-direction: column; flex-wrap: nowrap; justify-content: flex-start; width: auto; min-width: 210px; max-height: min(72vh, 600px); }
  .home { align-items: center; }
  .home > * { width: min(100%, 560px); flex: none; }
}

/* ------------------------------------------------------------------ sheets */
.sheet { position: fixed; inset: 0; background: rgba(25, 18, 12, 0.5); display: grid; place-items: center; z-index: 10; padding: 16px; animation: fade 0.2s; }
@keyframes fade { from { opacity: 0; } }
.card { position: relative; z-index: 1; background: var(--paper); color: var(--ink); border-radius: 28px; padding: 28px 24px; width: min(100%, 420px); text-align: center; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3); animation: card-in 0.4s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes card-in { from { opacity: 0; transform: translateY(30px) scale(0.94); } }
.card h2 { margin: 4px 0 8px; font-size: 1.7rem; }
.card p { color: var(--muted); margin: 0 0 18px; font-size: 1.05rem; line-height: 1.4; }
.primary {
  display: block; width: 100%; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 88%, #fff), var(--accent)); color: var(--accent-ink);
  border-radius: 18px; padding: 16px; font-size: 1.2rem; font-weight: 800; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.14); transition: transform 0.12s;
}
.ghost { display: block; width: 100%; padding: 14px; color: var(--muted); font-weight: 800; font-size: 1.05rem; }
.ghost.share { color: var(--accent); }

.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.stars { display: flex; justify-content: center; align-items: flex-end; gap: 6px; margin-top: -4px; }
.stars span { font-size: 2.6rem; line-height: 1; color: #f2b632; text-shadow: 0 3px 0 #d48f15; animation: star 0.5s cubic-bezier(.3, 1.6, .5, 1) both; }
.stars span:nth-child(2) { font-size: 3.4rem; margin-bottom: 8px; animation-delay: 0.12s; }
.stars span:nth-child(3) { animation-delay: 0.24s; }
@keyframes star { from { opacity: 0; transform: scale(0.2) rotate(-60deg); } }
.pack-progress { text-align: left; margin: 0 0 18px; }
.pp-label { display: flex; justify-content: space-between; font-weight: 800; font-size: 0.95rem; color: var(--muted); margin-bottom: 6px; }
.pp-bar { height: 12px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.pp-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); width: 0; transition: width 0.9s cubic-bezier(.2, .8, .2, 1) 0.3s; }

.menu-card { text-align: left; max-height: calc(100vh - 32px); overflow-y: auto; }
.menu-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.menu-head h2 { margin: 0; font-size: 1.4rem; }
.menu-head span { width: 46px; }
.menu-card .icon { box-shadow: none; background: var(--paper-2); }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; font-weight: 700; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
.toggle input { appearance: none; -webkit-appearance: none; margin: 0; width: 52px; height: 32px; border-radius: 99px; background: var(--line); position: relative; transition: background 0.2s; flex: none; }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); transition: transform 0.2s; }
.toggle input:checked { background: #5aa864; }
.toggle input:checked::after { transform: translateX(20px); }
.legal { margin: 16px 0 0; text-align: center; font-size: 0.95rem; }
.legal a { color: var(--muted); }

.level-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; }
.level-grid button { aspect-ratio: 1; border-radius: 15px; background: var(--paper-2); color: var(--ink); font-weight: 800; font-size: 1.1rem; }
.level-grid button.done { background: var(--accent); color: var(--accent-ink); }
.level-grid button.current { outline: 3px solid var(--accent-2); outline-offset: 2px; }
.level-grid button:disabled { opacity: 0.35; cursor: default; }

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

/* ------------------------------------------------------------------ puzzle postcards */
body[data-pack="card"] {
  --bg: #1d3a2c; --bg-2: #142a20; --on-bg: #fbf3e4; --on-bg-muted: #c9d8c7;
  --accent: var(--occ, #c8553d); --accent-2: #e3b04b;
}
@media (prefers-color-scheme: dark) {
  body[data-pack="card"] { --bg: #132a1f; --bg-2: #0c1d15; }
}
.hand { font-family: "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive; }

/* home hero: looks like a postcard with a stamp */
.post-hero {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; width: 100%; text-align: left; padding: 16px 18px;
  border-radius: var(--radius); background: var(--paper); color: var(--ink); box-shadow: var(--shadow); transition: transform 0.12s;
  border: 2px dashed color-mix(in srgb, var(--accent) 45%, transparent);
}
.post-hero:active { transform: scale(0.97); }
.post-stamp { width: 56px; height: 64px; display: grid; place-items: center; font-size: 2rem; border-radius: 6px; rotate: 4deg;
  background: color-mix(in srgb, var(--accent) 14%, var(--paper)); outline: 3px dotted color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: -5px; }
.post-txt b { display: block; font-size: 1.2rem; }
.post-txt small { display: block; color: var(--muted); font-size: 0.95rem; font-weight: 600; line-height: 1.3; margin-top: 2px; }

.cards-list { display: grid; gap: 10px; }
.cards-list:empty { display: none; }
.cl-item { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; width: 100%; text-align: left; background: var(--paper);
  color: var(--ink); border-radius: 18px; padding: 12px 16px; box-shadow: var(--shadow); }
.cl-item .ico { font-size: 1.6rem; }
.cl-item b { display: block; font-size: 1.05rem; }
.cl-item small { color: var(--muted); font-weight: 600; }
.cl-item .tag { font-weight: 800; font-size: 0.85rem; color: var(--accent); }

/* make screen */
.make { overflow-y: auto; }
.bar-gap { width: 46px; flex: none; }
.make-body { display: flex; flex-direction: column; gap: 18px; width: min(100%, 560px); margin: 12px auto 0; padding-bottom: 24px; }
.field label { display: block; font-weight: 800; font-size: 1rem; margin: 0 2px 8px; color: var(--on-bg); }
.hint-txt { float: right; font-weight: 700; color: var(--on-bg-muted); font-size: 0.9rem; }
.field.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1.15rem; font-weight: 700; color: var(--ink); background: var(--paper); border: 2px solid var(--line);
  border-radius: 16px; padding: 13px 14px; outline: none; -webkit-user-select: text; user-select: text; resize: none;
}
.field textarea { font-weight: 600; line-height: 1.35; }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.help { display: block; color: var(--on-bg-muted); font-weight: 600; margin: 8px 2px 0; line-height: 1.35; }
.occ { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; }
.occ::-webkit-scrollbar { display: none; }
.occ button { flex: none; padding: 10px 14px; border-radius: 99px; background: var(--paper); color: var(--ink); font-weight: 800; box-shadow: 0 2px 6px rgba(40, 25, 10, 0.1); white-space: nowrap; }
.occ button.on { background: var(--accent); color: #fff; }
.add-row { display: flex; gap: 8px; }
.add-btn { flex: none; padding: 0 20px; border-radius: 16px; background: var(--accent); color: #fff; font-weight: 800; font-size: 1.05rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chips:empty { display: none; }
.chips button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px 8px 14px; border-radius: 99px; background: var(--accent); color: #fff; font-weight: 800; font-size: 1.05rem; }
.chips button::after { content: "×"; font-size: 1.2rem; line-height: 1; opacity: 0.8; }
.ideas { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; color: var(--on-bg-muted); font-weight: 700; font-size: 0.95rem; }
.ideas #ideas { display: contents; }
.ideas button { padding: 6px 11px; border-radius: 99px; border: 1.5px dashed color-mix(in srgb, var(--on-bg) 30%, transparent); color: var(--on-bg); font-weight: 700; font-size: 0.95rem; }
.err { margin: 0; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, #d4583f 14%, var(--paper)); color: #a3361f; font-weight: 700; }

/* preview postcard */
.postcard { text-align: left; background: linear-gradient(var(--paper), var(--paper-2)); border: 1px solid var(--line); }
.pc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.pc-top small { color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; }
.pc-top h2 { margin: 2px 0 0; font-size: 1.5rem; }
.pc-stamp { flex: none; width: 58px; height: 68px; display: grid; place-items: center; font-size: 2rem; rotate: 5deg; background: #fff;
  outline: 3px dotted color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: -6px; border-radius: 4px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12); }
.mini { display: grid; gap: 2px; grid-template-columns: repeat(var(--n), 1fr); background: var(--paper); border-radius: 14px; padding: 8px; box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 12px; }
.mini span { aspect-ratio: 1; display: grid; place-items: center; font-weight: 800; font-size: calc(min(330px, 80vw) / var(--n) * 0.5); color: var(--ink); }
.mini span.d, .cell.deco { color: color-mix(in srgb, var(--accent) 70%, transparent); }
.pc-note { font-size: 0.98rem !important; margin-bottom: 14px !important; }

/* playing a postcard: the secret message waits as blank tiles */
.secret { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; padding: 10px 12px; border-radius: 16px; background: var(--paper);
  box-shadow: 0 2px 6px rgba(40, 25, 10, 0.1); max-width: 100%; }
.secret .w { display: inline-flex; gap: 2px; }
.secret i { font-style: normal; width: 0.95em; height: 1.3em; display: grid; place-items: center; font-weight: 800; color: var(--ink);
  border-bottom: 2.5px solid color-mix(in srgb, var(--accent) 55%, transparent); font-size: calc(1rem * var(--list-font)); }
.secret i.p { border-bottom-color: transparent; width: auto; }
.secret i.lit { animation: pop 0.4s cubic-bezier(.3, 1.6, .5, 1) both; color: var(--accent); }
.cell.msg { color: #fff; }
.cell.msg::before { content: ""; position: absolute; inset: 8%; border-radius: 30%; background: var(--accent); z-index: -1; animation: pop 0.4s cubic-bezier(.3, 1.6, .5, 1) both; }

/* finished postcard */
.reveal { position: relative; margin: 0 0 18px; padding: 18px 18px 14px; border-radius: 16px; background: var(--paper-2); text-align: left; border: 1px solid var(--line); }
.reveal-stamp { position: absolute; top: -14px; right: 12px; width: 46px; height: 54px; display: grid; place-items: center; font-size: 1.6rem; background: #fff;
  rotate: 6deg; border-radius: 4px; outline: 3px dotted color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: -5px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12); }
.card .reveal-msg { margin: 0 56px 10px 0; font-size: 1.45rem; color: var(--ink); line-height: 1.3; }
.card .reveal-from { margin: 0; text-align: right; font-size: 1.15rem; color: var(--muted); }
.get-app { text-align: center; text-decoration: none; color: var(--accent); }

/* ------------------------------------------------------------------ press + hover feel, on every button */
button, .pill, .post-hero, .card-row, a.btn {
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s, filter 0.18s;
}
button:active:not(:disabled) { transform: scale(0.94); filter: brightness(0.96); transition-duration: 0.06s; }
@media (hover: hover) and (pointer: fine) {
  button:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.04); }
  button:hover:active:not(:disabled) { transform: scale(0.94); }
}
button:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; }
