:root {
  --ink: #3d3a55;
  --muted: #7d7a95;
  --cream: #fffaf2;
  --gold: #e6b04f;
  --gold-deep: #c98d2c;
  --peach: #f8d8c6;
  --lav: #e7e1fb;
  --sage: #d6ead9;
  --rose: #f6c9d3;
  --line: rgba(61, 58, 85, 0.12);
  --serif: "Cormorant Garamond", "Palatino Linotype", Georgia, serif;
  --sans: "Nunito Sans", system-ui, -apple-system, sans-serif;
  --hand: "Caveat", "Bradley Hand", cursive;
}

* { box-sizing: border-box; }
html { background: #eef5e8; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: linear-gradient(180deg, #e9e4fb 0%, #f8e3e3 38%, #fdeedd 68%, #eef5e8 100%) fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Sky ---------- */
.sky { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.sun {
  position: absolute; left: 50%; top: 10%; width: 720px; height: 720px; margin-left: -360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 246, 214, 0.95) 0%, rgba(255, 224, 170, 0.45) 30%, rgba(255, 210, 180, 0) 65%);
  animation: breathe 9s ease-in-out infinite;
}
.cloud { position: absolute; background: #fff; border-radius: 50%; filter: blur(28px); opacity: 0.55; }
.c1 { width: 380px; height: 90px; top: 14%; left: -10%; animation: drift 90s linear infinite; }
.c2 { width: 260px; height: 70px; top: 30%; left: -20%; animation: drift 120s linear infinite -40s; }
.c3 { width: 480px; height: 110px; top: 6%; left: -30%; animation: drift 150s linear infinite -90s; opacity: 0.4; }
#motes { position: absolute; inset: 0; width: 100%; height: 100%; }
@keyframes breathe { 50% { transform: scale(1.08); opacity: 0.85; } }
@keyframes drift { to { transform: translateX(140vw); } }

/* ---------- Header ---------- */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 28px;
}
.brand {
  display: flex; align-items: center; gap: 10px; background: none; border: 0;
  font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: 0.01em;
}
.brand-mark {
  width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff6cf, #f3c766 55%, #d99a35);
  box-shadow: 0 0 0 4px rgba(243, 199, 102, 0.25), 0 0 22px rgba(243, 199, 102, 0.7);
}
.sound {
  display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(8px);
}
.spk { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.spk-body { fill: var(--ink); }
.spk-on { display: none; }
.sound[aria-pressed="true"] .spk-on { display: inline; }
.sound[aria-pressed="true"] .spk-off { display: none; }

/* ---------- Screens ---------- */
main { position: relative; z-index: 1; padding: 90px 24px 90px; }
.screen { display: none; max-width: 1080px; margin: 0 auto; }
.screen.active { display: block; animation: fadeUp 0.7s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.015em; margin: 0 0 12px; }
h1 { font-size: clamp(42px, 5.4vw, 68px); line-height: 1.02; }
h1 em { color: #b5803a; font-style: italic; }
h2 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; }
h3 { font-family: var(--serif); font-size: 25px; font-weight: 600; margin: 10px 0 6px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.18em; font-size: 12px; font-weight: 700; color: #b0866b; margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.lede { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 600px; margin: 0 auto; }
.footnote { text-align: center; color: var(--muted); font-size: 14px; margin-top: 26px; }

/* Full-bleed screens sit over the living scene */
.scene-layer { position: fixed; inset: 0; z-index: 0; display: none; } /* above .sky (earlier in DOM), below main */
body[data-screen="home"] .scene-layer, body[data-screen="lake"] .scene-layer { display: block; animation: fadeIn 1.2s ease both; }
body[data-screen="home"] .sky, body[data-screen="lake"] .sky { opacity: 0; }
#scene-canvas { width: 100%; height: 100%; display: block; }
.screen.fullbleed.active { position: fixed; inset: 0; max-width: none; margin: 0; z-index: 5; pointer-events: none; }
.screen.fullbleed button, .screen.fullbleed .chip { pointer-events: auto; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Home */
.home-copy { position: absolute; top: 78px; left: 0; right: 0; text-align: center; padding: 0 20px; text-shadow: 0 1px 22px rgba(255, 246, 236, 0.95); }
.home-copy h1 { font-size: clamp(38px, 4.6vw, 60px); }
.home-copy .lede { color: #4f4c6c; font-size: 17px; max-width: 620px; }
.home-actions { position: absolute; left: 0; right: 0; bottom: 22px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.steps { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; }
.steps li { display: flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(6px); font-weight: 700; font-size: 14px; }
.steps b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #f0c26b; color: #fff; font-size: 12px; }
.big-btn { font-size: 17px; padding: 16px 34px; }
.home-actions .footnote { margin: 0; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35); }

/* Cards & controls */
.card {
  background: rgba(255, 252, 247, 0.78); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 28px;
  padding: 34px 36px; box-shadow: 0 20px 60px rgba(120, 100, 150, 0.14);
}
.card.wide { max-width: 760px; margin: 0 auto; }
.btn {
  border: 0; border-radius: 999px; padding: 14px 26px; font-weight: 700; font-size: 15px;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.btn:hover:not(:disabled) { transform: translateY(-2px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.primary { background: linear-gradient(135deg, #f0c26b, #e39a5a); color: #fff; box-shadow: 0 10px 24px rgba(227, 154, 90, 0.4); }
.btn.ghost { background: rgba(255, 255, 255, 0.7); border: 1px solid var(--line); }
.btn.apple { background: #1d1d1f; color: #fff; }
.chip {
  display: inline-block; padding: 7px 14px; border-radius: 999px; font-size: 13px;
  background: rgba(255, 255, 255, 0.75); border: 1px solid var(--line);
}
.chip.on { background: #fdf0d8; border-color: #e8c27a; color: #8a5d1c; font-weight: 700; }
.chip.disabled { opacity: 0.5; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 18px 0; }
.row.end { justify-content: space-between; }
.row.center { justify-content: center; }
.label { display: block; font-weight: 700; font-size: 14px; margin: 22px 0 8px; }
.input { width: 100%; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line); background: #fff; font: inherit; color: var(--ink); }
.check { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 14px; color: var(--muted); margin-top: 18px; }

/* Pay */
.pay-card { max-width: 460px; margin: 30px auto 0; text-align: center; }
.pay-buttons { display: grid; gap: 10px; margin: 24px 0 18px; }
.crypto { display: flex; gap: 6px; align-items: center; justify-content: center; flex-wrap: wrap; }
.crypto-label { font-size: 13px; font-weight: 700; margin-right: 4px; }
.soon { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: #9a7cc9; background: var(--lav); padding: 4px 9px; border-radius: 999px; }
.processing { display: flex; gap: 10px; align-items: center; justify-content: center; color: var(--muted); margin-top: 16px; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #f0d9ae; border-top-color: var(--gold-deep); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.tabs { display: flex; gap: 4px; padding: 4px; margin: 22px 0 8px; border-radius: 999px; background: rgba(61, 58, 85, 0.06); }
.tab { flex: 1; border: 0; border-radius: 999px; padding: 9px; background: none; font-size: 14px; font-weight: 600; color: var(--muted); }
.soon-tag { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; background: var(--lav); color: #9a7cc9; padding: 2px 6px; border-radius: 999px; margin-left: 4px; }
.tab.on { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); }
.qr-wrap { display: flex; gap: 18px; align-items: center; justify-content: center; margin: 8px 0 14px; text-align: left; }
#qr { border-radius: 14px; border: 1px solid var(--line); width: 150px; height: 150px; }
.qr-info { display: flex; flex-direction: column; gap: 6px; }
.qr-info b { font-size: 20px; }
.small-btn { color: var(--ink); padding: 8px 14px; font-size: 13px; text-decoration: none; text-align: center; }
#qr-img { width: 150px; height: 150px; border-radius: 14px; border: 1px solid var(--line); }
.gift-input { text-align: center; font-size: 20px; letter-spacing: 0.12em; text-transform: uppercase; font-family: ui-monospace, monospace; }
#pay-gift { margin-top: 14px; }
#pay-gift .row { margin: 10px 0; }
.pay-more { text-align: left; margin: 10px 0 0; font-size: 14px; }
.pay-more summary { cursor: pointer; color: var(--muted); }
.pay-more .row { margin: 8px 0; }
#crypto-status { display: flex; gap: 8px; align-items: center; justify-content: center; }
.link { border: 0; background: none; color: #b5803a; font-weight: 700; font-size: 13px; text-decoration: underline; }

/* Testimonials (home) */
.testimonial { margin: 0 0 4px; max-width: 600px; padding: 12px 22px; border-radius: 18px; background: rgba(45, 40, 70, 0.42); backdrop-filter: blur(8px); text-align: center; color: #fff; text-shadow: 0 1px 10px rgba(30, 25, 50, 0.45); transition: opacity 0.8s; }
.testimonial blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.35; }
.testimonial figcaption { margin-top: 4px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; }
.testimonial.fade { opacity: 0; }
.demo-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; padding: 2px 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.25); text-shadow: none; }

/* Live from the fire */
#live.active { background: #000; pointer-events: auto; }
#live-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.live-bar { position: absolute; left: 24px; bottom: 24px; display: flex; align-items: center; gap: 12px; color: #fff; font-size: 14px; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
.live-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 6px; background: #e0322f; font-weight: 800; font-size: 12px; letter-spacing: 0.08em; text-shadow: none; }
.live-badge i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: livepulse 1.4s ease-in-out infinite; }
@keyframes livepulse { 50% { opacity: 0.25; } }
.live-clock { opacity: 0.85; font-variant-numeric: tabular-nums; }
.live-sound { position: absolute; right: 24px; bottom: 22px; border: 0; border-radius: 999px; padding: 8px 14px; background: rgba(0, 0, 0, 0.45); color: #fff; font-size: 13px; }
body[data-screen="live"] .top .brand { color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); }

/* Night scenes (bonfire) */
body.dark-scene .brand, body.dark-scene .lake-copy, body.dark-scene .home-copy { color: #fff8ee; text-shadow: 0 1px 14px rgba(20, 15, 40, 0.7); }
body.dark-scene .lake-copy p:last-child, body.dark-scene .home-copy .lede { color: #f2e6f0; }
body.dark-scene .sound { background: rgba(255, 255, 255, 0.85); }

/* Write: the lantern half */
.lantern-card { display: flex; gap: 18px; margin-top: 28px; padding: 22px; border-radius: 22px; background: linear-gradient(135deg, #fff6df, #f6effd); border: 1px solid #f0d9a8; }
.lantern-icon { flex: none; width: 46px; height: 62px; border-radius: 10px 10px 14px 14px; background: radial-gradient(ellipse at 50% 60%, #fff6c8 0%, #ffd27a 45%, #e8a24c 100%); box-shadow: 0 0 30px rgba(255, 200, 100, 0.8); position: relative; animation: breathe 4s ease-in-out infinite; }
.lantern-icon::before { content: ""; position: absolute; left: 12px; right: 12px; top: -8px; height: 8px; border-radius: 4px 4px 0 0; background: #c9933a; }
.lantern-body { flex: 1; }
.lantern-body h3 { margin-top: 0; }
.hand-input { font-family: var(--hand); font-size: 26px; padding: 8px 16px; margin-top: 6px; }
.pay-lantern { width: 70px; height: 92px; margin: 0 auto 18px; border-radius: 14px 14px 20px 20px; background: radial-gradient(ellipse at 50% 60%, #fff6c8 0%, #ffd27a 45%, #e8a24c 100%); box-shadow: 0 0 50px rgba(255, 200, 100, 0.85); animation: float 4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* Pledge */
.pledges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0 6px; }
.pledge {
  text-align: left; border-radius: 18px; padding: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.7);
  display: flex; flex-direction: column; gap: 4px; transition: all 0.2s;
}
.pledge span { font-size: 13px; color: var(--muted); }
.pledge[aria-checked="true"] { border-color: #e8c27a; background: #fdf3dc; box-shadow: 0 0 0 3px rgba(232, 194, 122, 0.25); }
.promise-done { margin-top: 22px; padding: 22px; border-radius: 20px; background: linear-gradient(135deg, #fdf3dc, #f3ecfd); text-align: center; animation: fadeUp 0.6s both; }
.seal { width: 56px; height: 56px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 24px; background: radial-gradient(circle at 35% 30%, #f8d98a, #d99a35); box-shadow: 0 0 30px rgba(243, 199, 102, 0.8); }

/* Write */
.paper-input {
  margin-top: 22px; border-radius: 6px; padding: 18px 22px 10px 64px; position: relative;
  background:
    linear-gradient(90deg, transparent 46px, rgba(240, 150, 160, 0.45) 46px 48px, transparent 48px),
    repeating-linear-gradient(180deg, transparent 0 35px, #eadfc9 35px 36px),
    #fdf7ea;
  box-shadow: 0 14px 30px rgba(120, 90, 60, 0.15); transform: rotate(-0.6deg);
}
.paper-input textarea {
  width: 100%; height: 180px; border: 0; outline: 0; resize: none; background: transparent;
  font-family: var(--hand); font-size: 30px; line-height: 36px; color: #43406a;
}
.paper-input.short textarea { height: 108px; }
.privacy { min-height: 22px; margin-top: 12px; font-size: 14px; }
.privacy .warn { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 12px; background: #fff3dd; color: #8a5d1c; border: 1px solid #f0d49b; }
.privacy .ok { color: #6c9a76; }
.suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* Set sail */
.lake-copy { position: absolute; top: 74px; left: 0; right: 0; text-align: center; pointer-events: none; text-shadow: 0 1px 18px rgba(255, 245, 235, 0.9); transition: opacity 1s; }
.lake-copy p:last-child { color: #5d5a78; font-size: 17px; margin: 0; }
.lake-actions { position: absolute; left: 0; right: 0; bottom: 26px; display: flex; justify-content: center; gap: 10px; }

.star-note { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); width: min(560px, 92vw); display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 18px; border-radius: 18px; background: rgba(35, 30, 60, 0.55); backdrop-filter: blur(10px); color: #fff; font-size: 14px; line-height: 1.45;
  box-shadow: 0 10px 40px rgba(20, 15, 40, 0.3); animation: noteIn 1.2s ease both; }
.star-note b { display: block; font-family: var(--serif); font-size: 19px; font-weight: 600; margin-bottom: 2px; }
.star-note-icon { font-size: 26px; color: #ffe39a; text-shadow: 0 0 18px #ffd27a; line-height: 1; }
@keyframes noteIn { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
.scene-picker { position: absolute; left: 0; right: 0; bottom: 86px; display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 13px; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35); transition: opacity 0.8s; }
.scene-picker .chip { text-shadow: none; color: var(--ink); backdrop-filter: blur(6px); }
.lit .scene-picker, .lit .lake-copy, .done .scene-picker { opacity: 0; pointer-events: none; }

/* Keeper */
.places { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.place { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.7); font-weight: 600; font-size: 14px; }
.place.on { border-color: #e8c27a; background: #fdf3dc; }
.pi { width: 30px; height: 30px; border-radius: 10px; flex: none; }
.pi.sea { background: linear-gradient(180deg, #ffe1b8 0 45%, #9fd0de 45%); }
.pi.mountain { background: linear-gradient(135deg, transparent 50%, #b7c7b0 50%), linear-gradient(225deg, transparent 50%, #9fb59c 50%), #e9e4fb; }
.pi.forest { background: radial-gradient(circle at 30% 60%, #8fb58a 0 28%, transparent 30%), radial-gradient(circle at 70% 55%, #a8c99a 0 30%, transparent 32%), #eef5e8; }
.pi.temple { background: linear-gradient(180deg, transparent 30%, #e8b07c 30% 40%, transparent 40%), linear-gradient(90deg, transparent 25%, #d79a6a 25% 35%, transparent 35% 65%, #d79a6a 65% 75%, transparent 75%), #fde8dc; }
.pi.city { background: radial-gradient(circle at 25% 30%, #ffd978 0 8%, transparent 9%), radial-gradient(circle at 70% 25%, #ffd978 0 8%, transparent 9%), linear-gradient(180deg, transparent 45%, #8f88b5 45%), #cfc6ef; }
.pi.home { background: linear-gradient(135deg, transparent 50%, #e9a58f 50%) top/100% 50% no-repeat, linear-gradient(225deg, transparent 50%, #e9a58f 50%) top/100% 50% no-repeat, linear-gradient(180deg, transparent 50%, #f5d7a8 50%), #fdf0d8; }
.keeper-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }

/* Status */
.status-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 20px; align-items: start; }
.timeline { list-style: none; padding: 0; margin: 22px 0; }
.timeline li { position: relative; padding: 0 0 20px 38px; display: flex; flex-direction: column; gap: 2px; }
.timeline li span { font-size: 13px; color: var(--muted); }
.timeline li .note { color: #8a5d1c; font-weight: 600; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #ddd3e8; background: #fff; }
.timeline li::after { content: ""; position: absolute; left: 10px; top: 24px; bottom: 0; width: 2px; background: #e6deef; }
.timeline li:last-child::after { display: none; }
.timeline li.done::before { background: #f3c766; border-color: #f3c766; box-shadow: 0 0 12px rgba(243, 199, 102, 0.7); }
.timeline li.now::before { border-color: #f3c766; animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(243, 199, 102, 0.25); } }
.photo { position: relative; height: 280px; border-radius: 18px; overflow: hidden; margin: 6px 0 14px; background: linear-gradient(180deg, #f6c4b0 0%, #fbdcb7 45%); }
.ph-sun { position: absolute; left: 60%; top: 34%; width: 70px; height: 70px; border-radius: 50%; background: #fff0c4; box-shadow: 0 0 60px 30px rgba(255, 228, 160, 0.8); }
.ph-sea { position: absolute; left: 0; right: 0; top: 50%; height: 26%; background: linear-gradient(180deg, #9fc7d4, #c4dfe0); }
.ph-sand { position: absolute; left: 0; right: 0; bottom: 0; height: 26%; background: linear-gradient(180deg, #ecd3b0, #dfc29b); }
.ph-paper { position: absolute; left: 24%; bottom: 14%; width: 70px; height: 48px; background: #fbf3e2; transform: rotate(-8deg); border-radius: 3px; box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); }
.ph-flame { position: absolute; left: 30%; top: -42px; width: 34px; height: 58px; border-radius: 50% 50% 45% 45% / 65% 65% 35% 35%; background: radial-gradient(ellipse at 50% 75%, #fff6c8 0%, #ffc15c 35%, rgba(243, 123, 90, 0.85) 65%, transparent 72%); animation: flicker 0.9s ease-in-out infinite alternate; transform-origin: bottom; }
@keyframes flicker { to { transform: scaleY(1.15) scaleX(0.9) skewX(4deg); } }
.ph-play { position: absolute; right: 12px; bottom: 12px; background: rgba(0, 0, 0, 0.45); color: #fff; font-size: 12px; padding: 5px 10px; border-radius: 999px; }
.proof-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; }
.hash { font-family: ui-monospace, monospace; color: #6c9a76; }

/* On-chain memento */
.token-grid { display: grid; grid-template-columns: 380px 1fr; gap: 24px; align-items: start; margin-top: 10px; }
.nft { border-radius: 26px; overflow: hidden; background: #fff; box-shadow: 0 24px 60px rgba(120, 100, 150, 0.25); transform: rotate(-1.5deg); }
.nft-scene { position: relative; height: 380px; background: linear-gradient(180deg, #c9d4f1 0%, #efdbe6 45%, #fde1c6 70%); overflow: hidden; }
.nft-sun { position: absolute; left: 50%; top: 46%; width: 220px; height: 220px; margin: -110px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 246, 214, 0.95), rgba(255, 220, 160, 0) 70%); }
.nft-hills { position: absolute; left: -10%; right: -10%; top: 52%; height: 60px; background: #94b5a3; clip-path: polygon(0 100%, 8% 40%, 18% 70%, 30% 20%, 42% 65%, 55% 30%, 68% 70%, 80% 25%, 92% 60%, 100% 35%, 100% 100%); }
.nft-water { position: absolute; left: 0; right: 0; top: 66%; bottom: 0; background: linear-gradient(180deg, #cfe3e4, #7fb0bb); }
.nft-boat { position: absolute; left: 50%; top: 66%; width: 60px; height: 10px; margin: -10px 0 0 -30px; border-radius: 0 0 30px 30px; background: #fbf8f1; }
.nft-ember { position: absolute; left: 50%; top: 42%; width: 120px; height: 120px; margin: -60px; border-radius: 50%; background: radial-gradient(circle, #fff8d8 0%, #ffd27a 22%, rgba(255, 160, 70, 0.55) 45%, rgba(255, 140, 60, 0) 70%); animation: breathe 3.5s ease-in-out infinite; }
.nft-star { position: absolute; left: 24%; top: 14%; color: #fff6d6; font-size: 26px; text-shadow: 0 0 18px #ffd978; animation: breathe 3s infinite; }
.nft-foot { padding: 16px 20px; display: flex; flex-direction: column; gap: 2px; }
.nft-foot b { font-family: var(--serif); font-size: 22px; }
.nft-foot span { color: var(--muted); font-size: 13px; }
.traits { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0 8px; }
.traits div { padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.75); border: 1px solid var(--line); }
.traits dt { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: #b0866b; font-weight: 700; }
.traits dd { margin: 2px 0 0; font-weight: 600; font-size: 14px; }
.traits .mono { font-family: ui-monospace, monospace; color: #6c9a76; }
.traits .pending { color: var(--muted); font-weight: 400; }
@media (max-width: 820px) { .token-grid, .traits { grid-template-columns: 1fr; } }

/* Choose the place */
.place-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.place-card { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 0 0 14px; border-radius: 20px; overflow: hidden; border: 2px solid transparent; background: rgba(255, 255, 255, 0.8); font-size: 13px; color: var(--muted); box-shadow: 0 6px 18px rgba(120, 100, 150, 0.1); }
.place-card b { font-family: var(--serif); font-size: 24px; color: var(--ink); padding: 0 14px; margin-top: 8px; }
.place-card span { padding: 0 14px; }
.place-card .pc-date { color: #8a5d1c; font-weight: 700; margin-top: 4px; }
.place-card.on { border-color: #e8c27a; box-shadow: 0 0 0 4px rgba(232, 194, 122, 0.25); }
.place-card.place-soon { opacity: 0.85; cursor: pointer; }
.place-card.place-soon:hover { opacity: 1; }
.suggest-panel { margin-top: 18px; padding: 18px 20px; border-radius: 18px; background: linear-gradient(135deg, #f6effd, #fff6df); border: 1px solid #e6dcf5; }
.suggest-panel h3 { margin: 0 0 4px; }
.suggest-panel .row { margin: 12px 0 4px; flex-wrap: nowrap; }
.leaderboard { list-style: none; margin: 10px 0 0; padding: 0; counter-reset: rank; }
.leaderboard li { display: flex; align-items: center; gap: 12px; padding: 8px 4px; border-bottom: 1px solid var(--line); counter-increment: rank; }
.leaderboard li::before { content: counter(rank); width: 22px; text-align: center; font-weight: 800; color: #b0866b; }
.leaderboard .lb-name { flex: 1; font-weight: 600; }
.leaderboard .lb-vote { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 700; }
.leaderboard .lb-vote.voted { background: #fdf0d8; border-color: #e8c27a; color: #8a5d1c; cursor: default; }
.pc-art { display: block; height: 96px; padding: 0 !important; }
.moher-art { background: linear-gradient(180deg, #f0d0dc 0 40%, transparent 40%), linear-gradient(100deg, transparent 55%, #8d7464 55% 70%, #6f9d55 70% 72%, #a08070 72%), linear-gradient(180deg, #ffd6ac 0 50%, #7fa8bd 50%); }
.riviera-art { background: radial-gradient(circle at 75% 35%, #fff0c4 0 9%, transparent 10%), linear-gradient(115deg, #b4bd86 0 30%, transparent 30%), linear-gradient(180deg, #a7c7ee 0 50%, #3fa2b0 50%); }
.photo-art { background-size: cover; background-position: center; height: 120px !important; }
.seal-photo { position: relative; width: 150px; flex: none; }
.seal-photo img { width: 100%; display: block; border-radius: 8px; }
.printed .seal-photo canvas.qr-on-card { position: absolute; left: 41%; top: 54.5%; width: 17.5%; height: 17.5%; border-radius: 0; }
.watch-live { margin-top: 12px; color: #c0392b; }
.cam video { width: 100%; height: 100%; object-fit: cover; display: block; }
.soon-art { display: grid !important; place-items: center; font-size: 34px; color: #e6b04f; background: #f6effd; }

/* QR seal + Keeper app */
.printed { position: relative; display: flex; gap: 16px; align-items: center; padding: 18px; border-radius: 6px; background: #fdf7ea; box-shadow: 0 10px 24px rgba(120, 90, 60, 0.15); transform: rotate(-1deg); }
.seal-box { display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.seal-box .qr-real { width: 96px; height: 96px; border-radius: 8px; flex: none; }
.printed .qr-real { position: absolute; left: 41%; top: 54.5%; width: 17.5%; height: 17.5%; }
.seal-box canvas { width: 96px; height: 96px; border-radius: 8px; flex: none; }
.printed-fold { position: absolute; top: 6px; right: 12px; font-size: 11px; color: #b0a08a; letter-spacing: 0.1em; text-transform: uppercase; }
.printed canvas { width: 110px; height: 110px; border-radius: 8px; }
.printed-meta { display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--muted); }
.printed-meta b { font-family: var(--serif); font-size: 20px; color: var(--ink); }
.small-photo { height: 180px; }
.phones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 26px; }
.phone { background: #1f1d2b; border-radius: 34px; padding: 14px 12px 18px; color: #fff; text-align: center; box-shadow: 0 20px 50px rgba(40, 30, 60, 0.3); }
.phone p { font-size: 14px; margin: 12px 4px 0; line-height: 1.4; }
.phone .muted { color: #b9b4d4; }
.phone-top { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: #f0c26b; margin: 4px 0 10px; }
.viewfinder, .map, .cam, .sent { position: relative; height: 230px; border-radius: 20px; overflow: hidden; }
.viewfinder { background: #3a3650; display: grid; place-items: center; }
.viewfinder canvas { width: 120px; height: 120px; border-radius: 6px; }
.corner { position: absolute; width: 26px; height: 26px; border: 3px solid #f0c26b; }
.corner.a { top: 40px; left: 36px; border-right: 0; border-bottom: 0; } .corner.b { top: 40px; right: 36px; border-left: 0; border-bottom: 0; }
.corner.c { bottom: 40px; left: 36px; border-right: 0; border-top: 0; } .corner.d { bottom: 40px; right: 36px; border-left: 0; border-top: 0; }
.map { background: linear-gradient(90deg, #9fc7d4 0 38%, #b8d3a4 38%); }
.map-ring { position: absolute; left: 50%; top: 50%; width: 140px; height: 140px; margin: -70px; border-radius: 50%; border: 2px dashed #f0c26b; background: rgba(240, 194, 107, 0.15); }
.map-dot { position: absolute; left: 46%; top: 54%; width: 16px; height: 16px; border-radius: 50%; background: #4a7cf0; border: 3px solid #fff; animation: pulse 2s infinite; }
.map span { position: absolute; left: 0; right: 0; bottom: 10px; font-size: 12px; font-weight: 700; color: #2f3a3a; }
.cam { background: linear-gradient(180deg, #f6c4b0 0%, #fbdcb7 45%); }
.rec { position: absolute; left: 10px; top: 10px; font-size: 11px; font-weight: 700; background: rgba(0, 0, 0, 0.45); padding: 4px 8px; border-radius: 999px; }
.sent { display: grid; place-items: center; font-size: 64px; color: #fff6d6; background: radial-gradient(circle, rgba(255, 210, 122, 0.6), rgba(31, 29, 43, 0) 65%); text-shadow: 0 0 30px #ffd27a; }
@media (max-width: 980px) { .phones { grid-template-columns: repeat(2, 1fr); } }

/* Mockup navigator */
.mock-nav { position: fixed; right: 18px; bottom: 18px; z-index: 50; font-size: 13px; }
.mock-toggle { padding: 9px 16px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; font-weight: 700; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); }
#mock-list { list-style: none; margin: 0 0 8px; padding: 8px; position: absolute; bottom: 100%; right: 0; width: 210px; background: #fff; border-radius: 16px; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18); display: none; }
.mock-nav.open #mock-list { display: block; }
#mock-list button { width: 100%; text-align: left; padding: 8px 10px; border: 0; border-radius: 10px; background: none; }
#mock-list button:hover, #mock-list button.current, #mock-list a:hover { background: #fdf3dc; }
#mock-list a { display: block; padding: 8px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; }
#mock-list .mock-sep { padding: 10px 10px 4px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
#mock-list { max-height: 80vh; overflow: auto; width: 250px; }
.mockup-banner { position: fixed; left: 50%; top: 8px; transform: translateX(-50%); z-index: 60; font-size: 11px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; padding: 4px 12px; border-radius: 999px; background: #3d3a55; color: #fff; pointer-events: none; }

@media (max-width: 820px) {
  .place-cards, .rituals, .pledges, .places, .status-grid { grid-template-columns: 1fr; }
  .card { padding: 26px 22px; }
  .keeper-foot { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* On scrolling (card) screens the header gets a frosted background so text never runs under the logo */
body:not([data-screen="home"]):not([data-screen="lake"]):not([data-screen="live"]) .top {
  background: rgba(250, 246, 242, 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(61, 58, 85, 0.06);
}

/* Gifts */
.gifted { display: inline-flex; gap: 12px; align-items: center; text-align: left; margin: 0 auto 14px; padding: 10px 16px;
  border-radius: 16px; background: rgba(255, 252, 245, 0.9); box-shadow: 0 8px 26px rgba(120, 90, 60, 0.18); text-shadow: none; animation: noteIn2 .8s ease both; }
.gifted b { display: block; font-family: var(--serif); font-size: 20px; }
.gifted span { font-size: 14px; color: var(--muted); }
.gifted-icon { font-size: 30px; }
@keyframes noteIn2 { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.give-link { color: #fff; text-decoration: underline; text-underline-offset: 4px; text-shadow: 0 1px 8px rgba(0,0,0,.35); font-size: 14px; }
.give-link-dark { margin-top: 12px; }
.give-icon { font-size: 54px; margin-bottom: 8px; }
.pack-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0 12px; }
.pack { display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: 18px; border: 2px solid var(--line); background: #fff; }
.pack b { font-family: var(--serif); font-size: 22px; }
.pack span { color: var(--muted); font-weight: 700; }
.pack.on { border-color: #e8c27a; background: #fdf3dc; box-shadow: 0 0 0 4px rgba(232, 194, 122, 0.25); }
#give-pay, #give-qr { margin-top: 14px; }
#give-qr-img { width: 170px; height: 170px; border-radius: 14px; border: 1px solid var(--line); }
.give-done { margin-top: 18px; padding: 18px; border-radius: 18px; background: linear-gradient(135deg, #fdf3dc, #f3ecfd); }
.give-done .row { justify-content: center; }
.mono { font-family: ui-monospace, monospace; }

.home-links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.share-progress { margin: 18px 0 8px; }
.share-progress p { margin: 8px 0 0; font-size: 15px; }
.share-bar { height: 12px; border-radius: 999px; background: rgba(61, 58, 85, 0.08); overflow: hidden; }
.share-bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #f0c26b, #e39a5a); transition: width 0.8s ease; }
#share-done { margin-top: 14px; }

/* ---------- Phones ---------- */
@media (max-width: 640px) {
  .top { padding: 12px 16px; }
  .brand { font-size: 19px; }
  .sound { width: 38px; height: 38px; }
  .home-copy { top: 66px; padding: 0 18px; }
  .home-copy .eyebrow { font-size: 10px; margin-bottom: 8px; }
  .home-copy h1 { font-size: 31px; line-height: 1.08; }
  .home-copy .lede { display: none; }
  .home-actions { bottom: 14px; gap: 8px; padding: 0 16px; }
  .steps { display: none; }
  .testimonial { padding: 8px 16px; max-width: 92vw; }
  .testimonial blockquote { font-size: 16px; }
  .big-btn { font-size: 16px; padding: 14px 28px; }
  .home-actions .footnote { font-size: 12px; line-height: 1.4; text-align: center; }
  .lake-copy { top: 62px; padding: 0 16px; }
  .lake-copy h2 { font-size: 26px; }
  .lake-copy p:last-child { font-size: 14px; }
  .lake-actions { flex-wrap: wrap; padding: 0 12px; bottom: 16px; }
  .scene-picker { bottom: 132px; flex-wrap: wrap; padding: 0 12px; }
  .star-note { bottom: 150px; font-size: 13px; }
  main { padding: 76px 12px 40px; }
  .card { padding: 22px 18px; border-radius: 22px; }
  .tab { font-size: 13px; padding: 9px 6px; white-space: nowrap; }
  .tabs { gap: 2px; }
  .seal-box { flex-direction: column; align-items: flex-start; }
  .qr-wrap { flex-direction: column; text-align: center; }
  .qr-info { align-items: center; }
  .live-bar { left: 14px; right: 14px; bottom: 66px; flex-wrap: wrap; gap: 6px 10px; font-size: 13px; }
  .live-sound { right: 14px; bottom: 18px; }
  .keeper-foot { flex-direction: column; align-items: stretch; gap: 14px; }
  .suggest-panel .row { flex-wrap: wrap; }
}

.pay-icon { font-size: 56px; line-height: 1; margin: 0 auto 14px; animation: float 4s ease-in-out infinite; }
a.btn { text-decoration: none; color: inherit; display: inline-block; }
a.btn.primary { color: #fff; }
#share .row:has(#share-link), #give-done .row:has(#give-link) { flex-wrap: nowrap; }
#share-link, #give-link { min-width: 0; flex: 1; font-size: 14px; }

.nft-tag { display: inline-flex; align-items: center; gap: 1px; font-size: 12px; font-weight: 800; padding: 1px 6px 1px 5px; margin-left: 4px;
  border-radius: 999px; background: linear-gradient(135deg, #f0c26b, #e39a5a); color: #fff; vertical-align: 1px; }
.btn.apple { width: 100%; }
.star-nudge { display: flex; flex-direction: column; gap: 4px; text-align: left; margin-top: 14px; padding: 12px 14px;
  border-radius: 14px; background: #fdf3dc; border: 1px solid #f0d49b; font-size: 13px; color: #6b5330; }
.star-nudge .link { align-self: flex-start; padding: 0; }
#give-pay { display: flex; flex-direction: column; gap: 8px; align-items: center; }

.star-ico { width: 12px; height: 12px; fill: #fff; filter: drop-shadow(0 0 2px rgba(255, 240, 190, 0.9)); }

.insp-row { display: flex; align-items: center; gap: 12px; pointer-events: auto; }
.insp-card { display: flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 14px; text-decoration: none; color: var(--ink);
  background: rgba(255, 252, 245, 0.88); backdrop-filter: blur(8px); box-shadow: 0 6px 18px rgba(30, 25, 50, 0.25); transition: transform .2s; }
.insp-card:hover { transform: translateY(-2px); }
.insp-card img { width: 76px; height: 40px; object-fit: cover; border-radius: 9px; display: block; background: #1a1a18; }
.insp-card span { font-family: var(--serif); font-size: 16px; font-weight: 600; line-height: 1.1; }
.insp-card small { display: block; font-family: var(--sans); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #b5803a; }
.insp-more { color: #fff; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; text-shadow: 0 1px 6px rgba(0, 0, 0, .4); }
@media (max-width: 640px) { .insp-card img { width: 60px; height: 32px; } .insp-card span { font-size: 14px; } }

/* pay: shared fire or your own flame */
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 6px; text-align: left; }
.tier { font: inherit; color: inherit; text-align: left; background: rgba(255, 255, 255, 0.7); border: 1.5px solid var(--line); border-radius: 18px; padding: 12px 14px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.tier b { display: flex; justify-content: space-between; gap: 8px; font-size: 15px; }
.tier em { font-style: normal; color: var(--gold, #c98d2c); }
.tier span { display: block; margin-top: 4px; font-size: 13px; line-height: 1.35; color: var(--muted); }
.tier.on { border-color: #e7b45a; box-shadow: 0 0 0 3px rgba(243, 199, 102, 0.28); background: #fffaf0; }
@media (max-width: 520px) { .tiers { grid-template-columns: 1fr; } }

/* add the Star to the phone's wallet */
.wallet-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.wallet-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; background: #000; color: #fff !important;
  font: 600 14px/1.1 -apple-system, system-ui, sans-serif; text-decoration: none; border: 1px solid #333; }
.wallet-btn svg { width: 22px; height: 22px; flex: none; }
.wallet-btn small { display: block; font-size: 10px; font-weight: 500; opacity: .8; }
