:root {
  --bg: #faf6ee;
  --bg-2: #f3ede1;
  --surface: #ffffff;
  --ink: #1c2b24;
  --muted: #6b7a71;
  --line: rgba(28, 43, 36, 0.12);
  --accent: #1f3d2e;
  --accent-2: #2d5a43;
  --accent-ink: #faf6ee;
  --soft: rgba(31, 61, 46, 0.08);
  --gold: #b8924a;
  --blush: #e9c9c1;
  --sage: #a9bba6;
  --danger: #b4412f;
  --glass: rgba(250, 246, 238, 0.72);
  --shadow: 0 10px 30px -12px rgba(28, 43, 36, 0.35);
  --radius: 22px;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", -apple-system, "Segoe UI", Roboto, system-ui, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1613;
    --bg-2: #141e19;
    --surface: #18221d;
    --ink: #f1ece2;
    --muted: #9aa79f;
    --line: rgba(241, 236, 226, 0.12);
    --accent: #e8dcc0;
    --accent-2: #f3ead6;
    --accent-ink: #142019;
    --soft: rgba(232, 220, 192, 0.1);
    --gold: #d4b26a;
    --danger: #e0705d;
    --glass: rgba(15, 22, 19, 0.7);
    --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.45 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  min-height: 100dvh;
}
body.locked { overflow: hidden; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; touch-action: manipulation; }
img { -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }
[hidden] { display: none !important; }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------------------------------------------------------------- top bar */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(var(--safe-t) + 10px) 16px 10px;
  transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
.topbar.scrolled {
  background: var(--glass);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: 0 1px 0 var(--line);
}
.monogram { font: 400 24px/1 var(--serif); color: var(--ink); text-decoration: none; letter-spacing: 0.02em; }
.monogram em { color: var(--gold); padding: 0 1px; }
.topbar-right { display: flex; gap: 8px; align-items: center; }
.live, .admin-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 99px;
  background: var(--glass); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.admin-badge { color: var(--gold); padding: 7px 10px; }
.admin-badge .i { width: 15px; height: 15px; }
.live .dot { width: 7px; height: 7px; border-radius: 50%; background: #3fa66a; box-shadow: 0 0 0 0 rgba(63, 166, 106, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(63, 166, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 166, 106, 0); } }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; text-align: center; overflow: hidden;
  padding: calc(var(--safe-t) + 74px) 16px 26px;
  background:
    radial-gradient(120% 60% at 50% 0%, var(--bg-2), transparent 70%),
    var(--bg);
}
.sprig { position: absolute; top: calc(var(--safe-t) + 70px); width: 34px; height: 104px; fill: var(--sage); stroke: var(--sage); stroke-width: 2; opacity: 0.55; pointer-events: none; }
.sprig-l { left: -10px; transform: rotate(-34deg); }
.sprig-r { right: -10px; transform: rotate(34deg) scaleX(-1); }
.eyebrow { margin: 0 0 8px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
h1 { margin: 0; font: 400 clamp(54px, 17vw, 96px)/0.95 var(--serif); letter-spacing: -0.01em; }
h1 em { font-style: italic; color: var(--gold); font-size: 0.8em; }
h1 span { display: inline-block; animation: rise 0.9s cubic-bezier(.2,.8,.2,1) both; }
h1 span:last-child { animation-delay: 0.12s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.tagline { margin: 10px auto 0; max-width: 30ch; color: var(--muted); font-size: 16px; }

.stage {
  position: relative; margin: 6px auto 0; height: 262px; max-width: 520px;
  touch-action: manipulation; user-select: none; -webkit-user-select: none;
}
.arch {
  position: absolute; left: 50%; bottom: 14px; width: 250px; height: 236px; translate: -50% 0;
  border: 1.5px solid color-mix(in srgb, var(--gold) 55%, transparent);
  border-bottom: 0; border-radius: 125px 125px 0 0;
  background: radial-gradient(80% 70% at 50% 85%, color-mix(in srgb, var(--sage) 22%, transparent), transparent 70%);
}
.ground { position: absolute; left: 8%; right: 8%; bottom: 13px; height: 1.5px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--gold) 60%, transparent), transparent); }
/* Looping clip, 3:4 with the couple's feet ~4% above its bottom edge (tools/loop.py). */
.couple {
  position: absolute; left: 50%; bottom: 3px; height: 256px; aspect-ratio: 3 / 4; translate: -50% 0;
  cursor: pointer; transform-origin: 50% 96%; -webkit-tap-highlight-color: transparent;
}
.couple .shadow { position: absolute; left: 12%; right: 12%; bottom: 3%; height: 12px; border-radius: 50%; background: rgba(20, 30, 25, 0.22); filter: blur(3px); }
.couple img, .couple canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.couple canvas { opacity: 0; transition: opacity 0.4s; }
.couple.playing canvas { opacity: 1; }
.couple.playing .poster { opacity: 0; transition: opacity 0.4s 0.1s; }
.fx { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.fx .p { position: absolute; width: 22px; height: 22px; }
.fx .p svg { width: 100%; height: 100%; }
.fx .word {
  position: absolute; z-index: 1; padding: 5px 11px 6px; border-radius: 99px; white-space: nowrap;
  font: 700 15px/1 var(--sans); letter-spacing: 0.01em; background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.35);
}
.fx .word::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; translate: -50% 0; rotate: 45deg; border-radius: 2px; background: inherit; z-index: -1; }

.cta { display: flex; flex-direction: column; gap: 10px; max-width: 360px; margin: 16px auto 0; }
.fine { margin: 12px 0 0; font-size: 13px; color: var(--muted); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 0 20px; border-radius: 99px;
  font-weight: 600; font-size: 16px; letter-spacing: -0.005em;
  transition: transform 0.15s, background 0.2s, opacity 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn.big { min-height: 56px; font-size: 17px; }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn.primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow); }
.btn.soft { background: var(--soft); color: var(--ink); }
.btn.text { color: var(--accent); padding: 0 10px; }
@media (prefers-color-scheme: dark) { .btn.text { color: var(--gold); } }
.btn.danger { background: var(--danger); color: #fff; }
.btn:disabled { opacity: 0.4; }

/* ---------------------------------------------------------------- album */
.album { min-height: 60vh; padding-bottom: 130px; }
.album-head {
  position: sticky; top: calc(var(--safe-t) + 52px); z-index: 10;
  display: grid; grid-template-columns: 1fr minmax(0, 340px) 1fr; align-items: center; gap: 8px;
  padding: 10px 12px; background: var(--glass);
  -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
}
.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 99px; background: var(--soft); grid-column: 2; }
#selectBtn { grid-column: 3; justify-self: end; }
.seg-btn { position: relative; z-index: 1; height: 36px; border-radius: 99px; font-size: 14.5px; font-weight: 600; color: var(--muted); transition: color 0.25s; white-space: nowrap; }
.seg-btn[aria-selected="true"] { color: var(--ink); }
.seg-btn .n { font-weight: 500; opacity: 0.6; font-variant-numeric: tabular-nums; }
.seg-pill { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 99px; background: var(--surface); box-shadow: 0 2px 8px rgba(0,0,0,0.1); transition: translate 0.35s cubic-bezier(.3,1.3,.5,1); }
.seg[data-view="mine"] .seg-pill { translate: 100% 0; }
.mine-bar { display: flex; justify-content: center; padding: 2px 16px 10px; }
.name-chip {
  display: inline-flex; align-items: center; gap: 5px; max-width: 100%;
  min-height: 36px; padding: 0 12px; border-radius: 99px;
  font-size: 14px; color: var(--muted);
  transition: background 0.2s, transform 0.15s;
}
.name-chip:hover { background: var(--soft); }
.name-chip:active { transform: scale(0.97); background: var(--soft); }
.name-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.name-chip-label { flex: none; }
.name-chip strong { color: var(--ink); font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.name-chip .i { width: 15px; height: 15px; margin-left: 1px; color: var(--accent); }
@media (prefers-color-scheme: dark) { .name-chip .i { color: var(--gold); } }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 0 3px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 0 12px; } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(6, 1fr); max-width: 1280px; margin: 0 auto; } }
.tile {
  position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 4px;
  background: var(--line); content-visibility: auto; contain-intrinsic-size: 130px;
  animation: pop 0.45s cubic-bezier(.2,.9,.3,1.2) both;
}
@keyframes pop { from { opacity: 0; transform: scale(0.85); } }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity 0.35s, transform 0.25s; }
.tile img.ok { opacity: 1; }
.tile:active img { transform: scale(0.96); }
.tile .badge { position: absolute; left: 6px; bottom: 6px; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 99px; background: rgba(0,0,0,0.45); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.tile .check { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; background: rgba(0,0,0,0.2); display: none; place-items: center; color: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.3); }
.tile .check .i { width: 14px; height: 14px; stroke-width: 3; opacity: 0; }
.selecting .tile .check { display: grid; }
.selecting .tile.nodelete { opacity: 0.45; }
.tile.selected .check { background: var(--accent-2); border-color: #fff; }
@media (prefers-color-scheme: dark) { .tile.selected .check { background: var(--gold); } }
.tile.selected .check .i { opacity: 1; }
.tile.selected img { transform: scale(0.9); border-radius: 6px; }
.tile .up { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(15, 22, 19, 0.35); color: #fff; transition: opacity 0.4s; }
.tile .up svg.ring { width: 38px; height: 38px; transform: rotate(-90deg); }
.tile .up circle { fill: none; stroke-width: 3.5; }
.tile .up circle.track { stroke: rgba(255,255,255,0.3); }
.tile .up circle.bar { stroke: #fff; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 0.3s; }
.tile .up.err { background: rgba(120, 30, 20, 0.55); }
.tile .up.done { opacity: 0; pointer-events: none; }

.empty { text-align: center; padding: 30px 24px 10px; color: var(--muted); }
.empty p { margin: 10px auto 18px; max-width: 26ch; font-size: 16px; }
.loader { display: flex; justify-content: center; gap: 6px; padding: 24px; opacity: 0; transition: opacity 0.2s; }
.loader.on { opacity: 1; }
.loader span { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); animation: blink 1s infinite; }
.loader span:nth-child(2) { animation-delay: 0.15s; } .loader span:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 50% { opacity: 0.25; transform: scale(0.7); } }
.foot { text-align: center; font: italic 16px var(--serif); color: var(--muted); padding: 0 0 calc(var(--safe-b) + 110px); margin-top: -90px; }

/* ---------------------------------------------------------------- dock / fab */
.dock {
  position: fixed; left: 0; right: 0; bottom: calc(var(--safe-b) + 16px); z-index: 40;
  display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none;
  transition: translate 0.4s cubic-bezier(.3,1.2,.5,1), opacity 0.3s;
}
.dock.away { translate: 0 140%; opacity: 0; }
.dock > * { pointer-events: auto; }
.fab {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  height: 58px; padding: 0 26px 0 12px; border-radius: 99px;
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 14px 34px -10px rgba(20, 40, 30, 0.55), inset 0 1px 0 rgba(255,255,255,0.15);
  font-weight: 650; font-size: 16.5px;
  transition: transform 0.15s;
}
.fab:active { transform: scale(0.96); }
.fab-icon { width: 22px; height: 22px; stroke-width: 2.4; position: absolute; left: 21px; top: 18px; }
.fab-ring { width: 40px; height: 40px; display: block; }
.fab-ring svg { width: 40px; height: 40px; transform: rotate(-90deg); }
.fab-ring circle { fill: none; stroke-width: 2.6; stroke: color-mix(in srgb, var(--accent-ink) 22%, transparent); }
.fab-ring circle.prog { stroke: var(--accent-ink); stroke-dasharray: 97.4; stroke-dashoffset: 97.4; stroke-linecap: round; transition: stroke-dashoffset 0.4s; opacity: 0; }
.fab.busy .fab-ring circle.prog { opacity: 1; }
.fab.busy .fab-icon { animation: nudge 1.2s ease-in-out infinite; }
.fab.warn { background: var(--danger); color: #fff; }
.fab.warn .fab-ring circle { stroke: rgba(255,255,255,0.3); }
.fab.warn .fab-ring circle.prog { stroke: #fff; opacity: 1; }
@keyframes nudge { 50% { translate: 0 -3px; } }
.new-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 99px;
  background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow); border: 1px solid var(--line); animation: pop 0.4s both;
}
.new-pill .i { width: 16px; height: 16px; }

.selbar {
  position: fixed; left: 12px; right: 12px; bottom: calc(var(--safe-b) + 14px); z-index: 45;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 8px 8px 6px; border-radius: 99px; background: var(--glass);
  -webkit-backdrop-filter: saturate(1.6) blur(20px); backdrop-filter: saturate(1.6) blur(20px);
  border: 1px solid var(--line); box-shadow: var(--shadow); font-weight: 600; font-size: 15px;
  animation: slideUp 0.35s cubic-bezier(.3,1.2,.5,1) both;
}
@keyframes slideUp { from { translate: 0 120%; } }

/* ---------------------------------------------------------------- sheets */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(8, 12, 10, 0.45); animation: fade 0.25s both; }
.scrim.out { animation: fade 0.2s reverse both; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  position: fixed; left: 0; right: 0; bottom: var(--kb, 0px); z-index: 61; margin: 0 auto; max-width: 560px;
  padding: 10px 20px calc(var(--safe-b) + 22px);
  background: var(--surface); border-radius: 26px 26px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
  animation: sheetIn 0.38s cubic-bezier(.25,1.1,.4,1) both; touch-action: pan-y;
  max-height: min(88dvh, calc(var(--vvh, 100dvh) - 12px)); overflow-y: auto;
  transition: bottom 0.25s ease-out;
}
.sheet.out { animation: sheetOut 0.22s ease-in both; }
@keyframes sheetIn { from { translate: 0 100%; } }
@keyframes sheetOut { to { translate: 0 100%; } }
.grabber { width: 38px; height: 5px; border-radius: 9px; background: var(--line); margin: 0 auto 14px; }
.sheet h2 { margin: 0 0 6px; font: 400 30px/1.1 var(--serif); }
.sheet .sub { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.sheet .hint { margin: 14px 2px 0; color: var(--muted); font-size: 13.5px; }
.sheet .row { display: flex; gap: 10px; margin-top: 14px; }
.sheet .row .btn { flex: 1; }
.sheet input {
  width: 100%; height: 54px; padding: 0 18px; border-radius: 16px; font-size: 17px;
  background: var(--soft); border: 1.5px solid transparent; outline: none;
}
.sheet input:focus { border-color: var(--gold); }
.option {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 14px; margin-top: 10px; border-radius: 18px; background: var(--soft);
  transition: transform 0.15s;
}
.option:active { transform: scale(0.98); }
.option-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); flex: none; }
.option-icon .i { width: 24px; height: 24px; }
.option strong { display: block; font-size: 16.5px; }
.option small { display: block; color: var(--muted); font-size: 14px; }

.up-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 46dvh; overflow-y: auto; }
.up-item { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 12px; }
.up-item .th { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; background: var(--line); }
.up-item .nm { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-item .bar { height: 5px; border-radius: 9px; background: var(--line); margin-top: 6px; overflow: hidden; }
.up-item .bar span { display: block; height: 100%; width: 0; background: var(--accent-2); border-radius: 9px; transition: width 0.3s; }
@media (prefers-color-scheme: dark) { .up-item .bar span { background: var(--gold); } }
.up-item .st { font-size: 13px; color: var(--muted); white-space: nowrap; }
.up-item .why { font-size: 12.5px; color: var(--danger); margin-top: 4px; }
.up-item .why:empty { display: none; }
.up-item.err .bar { display: none; }
.up-item.err .st { color: var(--danger); }
.up-item.done .st { color: #3fa66a; }

/* ---------------------------------------------------------------- viewer */
.viewer { position: fixed; inset: 0; z-index: 80; background: #000; color: #fff; animation: fade 0.2s both; touch-action: none; }
.viewer.out { animation: fade 0.18s reverse both; }
.v-top, .v-bottom {
  position: absolute; left: 0; right: 0; z-index: 3; display: flex; align-items: center;
  transition: opacity 0.25s;
}
.v-top { top: 0; padding: calc(var(--safe-t) + 8px) 10px 24px; justify-content: space-between; background: linear-gradient(rgba(0,0,0,0.55), transparent); }
.v-bottom { bottom: 0; padding: 24px 10px calc(var(--safe-b) + 10px); justify-content: center; gap: 8px; background: linear-gradient(transparent, rgba(0,0,0,0.6)); }
.viewer.chrome-off .v-top, .viewer.chrome-off .v-bottom, .viewer.chrome-off .v-nav { opacity: 0; pointer-events: none; }
.v-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.v-meta { display: flex; flex-direction: column; align-items: center; line-height: 1.25; font-size: 13px; color: rgba(255,255,255,0.75); text-align: center; }
.v-meta strong { font-size: 15px; color: #fff; }
.v-count { width: 44px; text-align: center; font-size: 13px; color: rgba(255,255,255,0.7); font-variant-numeric: tabular-nums; }
.v-action {
  display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 76px; padding: 8px 10px;
  border-radius: 16px; color: #fff; text-decoration: none; font-size: 12px; font-weight: 600;
  background: rgba(255,255,255,0.1); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.v-action .i { width: 22px; height: 22px; }
.v-action.danger { color: #ffb4a6; }
.v-action.busy { opacity: 0.6; pointer-events: none; }
.v-action.ready { background: #fff; color: #111; }
.v-track { position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; touch-action: pan-x; overscroll-behavior: contain; }
.v-track::-webkit-scrollbar { display: none; }
.v-track.zoomed { overflow: hidden; touch-action: none; }
.v-slide { position: relative; flex: none; width: 100vw; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; display: grid; place-items: center; overflow: hidden; }
.v-slide img { max-width: 100%; max-height: 100%; object-fit: contain; transform-origin: 0 0; opacity: 0; transition: opacity 0.3s; will-change: transform; }
.v-slide img.ok { opacity: 1; }
.v-slide .spin { position: absolute; width: 30px; height: 30px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,0.2); border-top-color: #fff; animation: spin 0.8s linear infinite; }
.v-slide img.ok + .spin { display: none; }
@keyframes spin { to { rotate: 360deg; } }
.v-nav { position: absolute; top: 50%; z-index: 3; translate: 0 -50%; width: 46px; height: 46px; border-radius: 50%; display: none; place-items: center; background: rgba(255,255,255,0.14); color: #fff; }
.v-nav.prev { left: 14px; } .v-nav.next { right: 14px; }
@media (hover: hover) and (pointer: fine) { .v-nav { display: grid; } }

/* ---------------------------------------------------------------- toasts / confetti */
.toasts { position: fixed; top: calc(var(--safe-t) + 62px); left: 0; right: 0; z-index: 90; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast {
  max-width: calc(100vw - 32px); padding: 11px 18px; border-radius: 99px; font-size: 14.5px; font-weight: 600;
  background: var(--ink); color: var(--bg); box-shadow: var(--shadow);
  animation: toastIn 0.4s cubic-bezier(.3,1.3,.5,1) both;
}
.toast.out { animation: fade 0.25s reverse both; }
@keyframes toastIn { from { opacity: 0; translate: 0 -16px; scale: 0.9; } }
.confetti { position: fixed; inset: 0; z-index: 95; pointer-events: none; width: 100%; height: 100%; }

@media (min-width: 720px) {
  .hero { padding-top: calc(var(--safe-t) + 90px); }
  .cta { flex-direction: row; max-width: 520px; }
  .cta .btn { flex: 1; }
  .sprig { width: 70px; height: 210px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
