/* Palette taken from the monogram: forest ink on cream. */
:root {
  --bg: #fffcf5;
  --bg-soft: #f0f2e6;
  --card: #ffffff;
  --ink: #152116;
  --muted: #6c7768;
  --line: #e3e6d8;
  --accent: #2f4a35;
  --accent-soft: #dde5d3;
  --on-accent: #fffcf5;
  --danger: #b4483c;
  --gold: #b8894a; /* lantern glow from the venue; small touches only */
  --shadow: 0 10px 30px -12px rgba(21, 33, 22, .22);
  --radius: 16px;
    --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Cormorant Garamond", Georgia, serif;
  --dock-h: 96px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1510;
    --bg-soft: #172019;
    --card: #1a231c;
    --ink: #eef0e4;
    --muted: #9aa596;
    --line: #2c3a2e;
    --accent: #a9c4a0;
    --accent-soft: #2f3f31;
    --on-accent: #0f1510;
    --danger: #ff8a7d;
    --gold: #d4ad6e;
    --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
  }
}

* { box-sizing: border-box; }
/* Elements with their own display (the dock, filters) would otherwise ignore `hidden`. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 500px at 50% -200px, var(--bg-soft), transparent 70%),
    var(--bg);
  color: var(--ink);
  font: 18px/1.5 var(--sans);
  font-variant-numeric: lining-nums; /* even-height numbers, like the date on the monogram */
  min-height: 100vh;
  padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom) + 24px);
}
h1, h2 { margin: 0; font-weight: 500; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: calc(20px + env(safe-area-inset-top)) 16px 20px; }
/* The monogram is a transparent cut-out used as a mask, so it's drawn in the theme's ink
   color: forest green on cream, soft cream on dark green at night. */
.crest {
  width: min(210px, 54vw); aspect-ratio: 806 / 900; margin: 0 auto 4px; background: var(--ink);
  -webkit-mask: url(/monogram-mask.png) center / contain no-repeat;
  mask: url(/monogram-mask.png) center / contain no-repeat;
}
.crest.small { width: 120px; margin: 0 auto 2px; }
.names { font: 500 clamp(40px, 11vw, 64px)/1.1 var(--serif); letter-spacing: .01em; color: var(--ink); }
.names .amp { color: var(--gold); font-style: italic; font-weight: 400; }
.welcome { font: italic 500 20px/1.35 var(--serif); color: var(--ink); opacity: .85; max-width: 380px; margin: 14px auto 0; text-wrap: balance; }
/* A short gold rule between the welcome and the counts, like the table card. */
.stats::before { content: ""; display: block; width: 36px; height: 1px; background: var(--gold); margin: 0 auto 12px; }
.stats:empty::before { display: none; }
.stats { margin: 14px 0 0; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); min-height: 20px; }

/* Slim header: fades in once the big names scroll away; the tabs then stick just below it. */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 6; display: flex; align-items: center; justify-content: center; gap: 10px;
  height: calc(52px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top);
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  opacity: 0; transform: translateY(-100%); transition: opacity .25s, transform .3s ease; pointer-events: none;
}
.topbar-names { font: 500 23px/1 var(--serif); letter-spacing: .01em; }
.topbar-names .amp { color: var(--gold); font-style: italic; font-weight: 400; }
body.scrolled .topbar { opacity: 1; transform: none; }
body.scrolled .tabs { top: calc(60px + env(safe-area-inset-top)); }

body.closed { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
body.closed .filters { padding-top: 4px; }
/* Locked screen: a framed card, like a place card at the table. */
.locked { padding: 28px 16px 48px; }
.join-card {
  position: relative; max-width: 380px; margin: 0 auto; padding: 34px 26px 28px; text-align: center;
  background: var(--card); border-radius: 6px; box-shadow: var(--shadow);
}
/* Thin gold inner frame. */
.join-card::before {
  content: ""; position: absolute; inset: 8px; border: 1px solid var(--gold); border-radius: 3px;
  opacity: .55; pointer-events: none;
}
.join-eyebrow { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.join-title { margin: 6px 0 22px; font: italic 500 34px/1.1 var(--serif); color: var(--ink); }
.join-scan { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--ink); }
.join-scan svg { flex: none; width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linejoin: round; }
.join-scan p { margin: 0; font-size: 19px; text-align: left; }
.join-or { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--muted); font: italic 18px var(--serif); }
.join-or::before, .join-or::after { content: ""; flex: 1; height: 1px; background: linear-gradient(to var(--dir, right), transparent, var(--gold)); opacity: .7; }
.join-or::after { --dir: left; }
.code-form { display: grid; gap: 12px; }
.code-form label { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.code-form p { margin: 0; }
.code-error { color: var(--danger); font: italic 17px var(--serif); animation: nudge .35s ease; }
@keyframes nudge { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { .code-error { animation: none; } }

/* ---------- tabs ---------- */
main { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.tabs {
  position: sticky; top: 0; z-index: 5; transition: top .3s ease; display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  padding: 4px; margin: 8px 0 4px; border-radius: 999px; background: var(--card);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.tabs button {
  border: 0; background: transparent; border-radius: 999px; min-height: 42px; cursor: pointer;
  font-weight: 600; font-size: 17px; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .2s, color .2s;
}
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.badge { font-size: 14px; font-weight: 500; opacity: .75; }

/* ---------- gallery ---------- */
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; margin: 0 -16px; padding-inline: 16px; }
.filters::-webkit-scrollbar { display: none; }
.filters button {
  flex: none; border: 1px solid var(--line); background: var(--card); border-radius: 999px;
  padding: 7px 14px; font-size: 16px; font-weight: 500; cursor: pointer; max-width: 240px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.filters button.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(4, 1fr); gap: 8px; } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(5, 1fr); } }
.grid button {
  padding: 0; border: 0; background: var(--bg-soft); aspect-ratio: 1; overflow: hidden;
  border-radius: 10px; cursor: pointer; position: relative;
}
.grid img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transform: scale(1.04); transition: opacity .6s ease, transform .8s ease; }
.grid img.loaded { opacity: 1; transform: none; }
/* Soft cream shimmer while a photo is on its way. */
.grid button:not(.ready) {
  background: linear-gradient(100deg, var(--bg-soft) 30%, color-mix(in srgb, var(--bg-soft) 40%, var(--bg)) 50%, var(--bg-soft) 70%) 0 0 / 300% 100%;
  animation: shimmer 1.6s linear infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.grid button:active img { transform: scale(.97); }
.grid button.broken::after { content: "Photo"; position: absolute; inset: 0; display: grid; place-items: center; font: italic 15px var(--serif); color: var(--muted); }
.grid button.fresh { animation: pop .5s ease-out; }
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }

.empty { text-align: center; padding: 48px 16px; }
.empty-icon { width: 44px; height: 44px; fill: none; stroke: var(--accent); stroke-width: 1.2; stroke-linejoin: round; }
.empty-title { font: 500 26px var(--serif); margin: 8px 0 2px; }
.empty .muted { margin: 0; }

/* ---------- challenges ---------- */
.progress-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 16px 0 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow);
}
.progress-title { font: 500 24px/1.2 var(--serif); margin: 0 0 2px; }
.progress-card .small { margin: 0; }
.ring { position: relative; width: 60px; height: 60px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 3; }
.ring .track { stroke: var(--line); }
.ring .fill { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 97.4; stroke-dashoffset: 97.4; transition: stroke-dashoffset .6s ease; }
.ring span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 15px; font-weight: 600; }

.bingo { list-style: none; padding: 0; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; max-width: 480px; }
.bingo button {
  position: relative; width: 100%; aspect-ratio: 1; padding: 8px; overflow: hidden; cursor: pointer;
  display: grid; place-items: center; text-align: center; border: 1px solid var(--line); border-radius: 12px;
  background: var(--card) center / cover no-repeat; color: var(--ink); font: 500 16px/1.15 var(--serif);
  transition: box-shadow .2s, transform .15s;
}
.bingo button:active { transform: scale(.97); }
.bingo .center:not(.done) { background-color: var(--accent-soft); font-style: italic; }
.bingo .done { border-color: transparent; color: #fff; }
.bingo .done::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(10, 16, 11, .78)); }
.bingo .done .label { position: absolute; left: 6px; right: 6px; bottom: 6px; font-size: 14px; }
.bingo .tick {
  position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; z-index: 1;
  background: var(--gold); color: #fffcf5; display: grid; place-items: center; font-size: 13px;
}
.bingo .line { box-shadow: 0 0 0 2px var(--accent); }
.bingo .selected { box-shadow: 0 0 0 3px var(--accent), var(--shadow); }
.bingo-prize { text-align: center; margin: 14px 0 0; font-style: italic; color: var(--muted); }

/* ---------- dock ---------- */
.dock-wrap {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; pointer-events: none;
  padding: 0 16px calc(12px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.dock-wrap > * { pointer-events: auto; }
.dock {
  width: min(420px, 100%); height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  background: color-mix(in srgb, var(--card) 72%, transparent); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); padding: 0 10px;
}
.dock-side {
  display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer;
  border: 0; background: none; font-size: 13px; font-weight: 600; color: var(--muted); padding: 6px 0;
}
.dock-side svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dock-side span:last-child { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar {
  width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--ink);
  display: grid; place-items: center; font-size: 14px; font-weight: 600;
}
.shutter {
  width: 68px; height: 68px; margin-top: -26px; border-radius: 50%; cursor: pointer;
  background: var(--accent); display: grid; place-items: center;
  box-shadow: 0 0 0 5px var(--bg), 0 10px 24px -6px color-mix(in srgb, var(--accent) 70%, transparent);
  transition: transform .15s;
}
.shutter:active { transform: scale(.94); }
.shutter svg { width: 30px; height: 30px; fill: none; stroke: var(--on-accent); stroke-width: 1.7; stroke-linejoin: round; }
.shutter.armed { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse {
  50% { box-shadow: 0 0 0 5px var(--bg), 0 0 0 11px color-mix(in srgb, var(--accent) 30%, transparent); }
}

.active-prompt {
  max-width: min(420px, 100%); display: flex; align-items: center; gap: 6px;
  background: var(--ink); color: var(--bg); border-radius: 999px; padding: 8px 8px 8px 16px; font-size: 16px; box-shadow: var(--shadow);
}
.active-prompt[hidden] { display: none; }
.active-prompt span { opacity: .7; flex: none; }
.active-prompt strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.active-prompt button { flex: none; border: 0; background: rgba(255,255,255,.15); width: 26px; height: 26px; border-radius: 50%; cursor: pointer; font-size: 14px; }

.toasts { list-style: none; padding: 0; margin: 0; width: min(420px, 100%); display: grid; gap: 6px; }
.toasts li {
  display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 8px 12px 8px 8px; font-size: 16px; box-shadow: var(--shadow);
  animation: slideUp .3s ease-out;
}
.toasts img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex: none; background: var(--bg-soft); }
.toasts .body { flex: 1; min-width: 0; }
.toasts .bar { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; margin-top: 6px; }
.toasts .bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.toasts .done { color: var(--accent); font-weight: 600; }
.toasts .failed { color: var(--danger); font-weight: 600; }
.toasts .celebrate { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--gold); }
.toasts .celebrate svg { width: 22px; height: 22px; fill: none; stroke: #fffcf5; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@keyframes slideUp { from { transform: translateY(12px); opacity: 0; } }

/* ---------- dialogs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font-weight: 600; font-size: 17px; cursor: pointer; text-decoration: none;
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 16px; }

dialog { border: 0; border-radius: 24px; padding: 0; background: var(--card); color: var(--ink); max-width: min(400px, calc(100vw - 32px)); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(20, 15, 10, .55); backdrop-filter: blur(3px); }
#nameForm, .sheet { padding: 28px 24px 24px; display: grid; gap: 14px; text-align: center; }
#nameForm h2, .sheet h2 { font: 500 34px var(--serif); }
#nameForm p, .sheet p { margin: 0; }
.btn.plain { border-color: transparent; background: none; color: var(--muted); }
#nameInput, #codeInput {
  min-height: 50px; border: 1px solid var(--line); border-radius: 14px; padding: 0 16px;
  font: 18px var(--sans); background: var(--bg); color: var(--ink); text-align: center;
}
#codeInput { font-size: 22px; letter-spacing: .14em; background: var(--bg); }
#codeInput::placeholder { letter-spacing: .06em; font-style: italic; color: var(--muted); opacity: .7; }
#codeInput[aria-invalid="true"] { border-color: var(--danger); }
#nameInput:focus, #codeInput:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.viewer { max-width: 100vw; max-height: 100dvh; width: 100vw; height: 100dvh; border-radius: 0; background: #0d0b09; color: #fff; overflow: hidden; }
.viewer[open] { display: flex; flex-direction: column; }
/* The photo itself, blurred and dimmed, as the room behind the print. */
.viewer-bg {
  position: absolute; inset: -60px; background: center / cover no-repeat;
  filter: blur(40px) saturate(1.3) brightness(.42); transition: background-image .4s;
}
.viewer-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 30%, rgba(8, 10, 8, .55)); }
.viewer .stage { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; padding: 16px; }
.print {
  margin: 0; background: #fffcf5; padding: 12px 12px 0; display: flex; flex-direction: column; align-items: center;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .55); border-radius: 2px;
}
.print img {
  display: block; width: auto; height: auto;
  max-width: calc(100vw - 56px); max-height: calc(100dvh - 230px);
}
.print figcaption { color: #152116; text-align: center; padding: 12px 8px 14px; line-height: 1.15; }
.print-names { display: block; font: italic 500 24px var(--serif); }
.print-date { display: block; font: 600 13px var(--serif); letter-spacing: .22em; opacity: .75; margin-top: 4px; }
.viewer-bar { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); }
.viewer-meta { min-width: 0; }
.viewer-sub { color: rgba(255, 255, 255, .7); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer-actions { display: flex; gap: 8px; flex: none; }
.viewer .btn { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); gap: 6px; }
.viewer .btn .icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.viewer .btn:focus:not(:focus-visible) { outline: none; }
.viewer .btn.danger { color: #ff8a7d; }
.nav {
  position: absolute; top: 45%; z-index: 1; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .22); font-size: 28px; line-height: 1;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.nav.prev { left: 16px; }
.nav.next { right: 16px; }
/* Phones swipe between photos, so the arrows would only cover the print. */
@media (pointer: coarse) { .nav { display: none; } }

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

/* ---------- admin ---------- */
.admin-badge {
  position: fixed; top: calc(10px + env(safe-area-inset-top)); right: 12px; z-index: 20;
  border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent);
  border-radius: 999px; padding: 4px 12px; font-size: 15px; font-weight: 600; cursor: pointer; box-shadow: var(--shadow);
}
.admin-badge::before { content: "★ "; }
.admin-badge.off { background: var(--card); color: var(--accent); }
.admin-badge.off::before { content: "👁 "; }
.toasts li > .btn { flex: none; }

/* ---------- comments ---------- */
/* A cream sheet that slides up over the photo, like the print's paper. */
.comments {
  position: absolute; left: 0; right: 0; bottom: 100%; max-height: 56dvh; display: flex; flex-direction: column;
  background: #fffcf5; color: #152116; border-radius: 22px 22px 0 0; padding: 6px 16px 14px; gap: 12px;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, .45); animation: sheet .25s ease-out;
}
@keyframes sheet { from { transform: translateY(16px); opacity: 0; } }
.comments-head { display: grid; justify-items: center; gap: 8px; }
.comments-head .grabber { width: 38px; height: 4px; border-radius: 2px; background: #d9dccf; }
.comments-head strong { font: 600 18px var(--serif); }
.comment-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; display: grid; gap: 14px; }
.comment-list li { display: flex; gap: 10px; align-items: flex-start; }
.comment-list .avatar { width: 32px; height: 32px; font-size: 15px; flex: none; background: #dde5d3; color: #152116; }
.c-body { min-width: 0; flex: 1; }
.c-head { display: flex; align-items: baseline; gap: 8px; }
.c-head strong { font-weight: 600; font-size: 16px; }
.c-time { font-size: 13px; color: #6c7768; }
.c-text { margin: 1px 0 0; font-size: 18px; line-height: 1.3; overflow-wrap: anywhere; }
.comment-list .del {
  margin-left: auto; background: none; border: 0; padding: 0; cursor: pointer;
  font: 500 13px var(--serif); color: #8a8f86; text-decoration: underline; text-underline-offset: 2px;
}
.no-comments { margin: 0; text-align: center; color: #6c7768; font-style: italic; }
.comment-form { display: flex; gap: 8px; align-items: center; }
.comment-form input {
  flex: 1; min-width: 0; min-height: 44px; border-radius: 999px; border: 1px solid #e3e6d8; background: #f4f5ec;
  color: #152116; padding: 0 16px; font: 18px var(--sans);
}
.comment-form input::placeholder { color: #8a8f86; }
.comment-form input:focus { outline: 2px solid #2f4a35; outline-offset: 1px; background: #fff; }
.comment-form .send {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: #2f4a35; display: grid; place-items: center;
}
.comment-form .send svg { width: 20px; height: 20px; fill: none; stroke: #fffcf5; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.grid .cbadge {
  position: absolute; right: 5px; bottom: 5px; z-index: 1; display: inline-flex; align-items: center; gap: 3px;
  background: rgba(13, 11, 9, .55); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font: 600 13px/1 var(--serif); padding: 4px 7px 4px 6px; border-radius: 99px; pointer-events: none;
}
.grid .cbadge .icon { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }

/* ---------- shared flash ---------- */
.flash { position: fixed; inset: 0; z-index: 50; pointer-events: none; background: radial-gradient(circle at 50% 85%, #ffe2a8, #fff3d9 70%); opacity: 0; }
.flash.on { animation: flash .7s ease-out; }
@keyframes flash { 0% { opacity: 0; } 12% { opacity: .75; } 100% { opacity: 0; } }
