/* Petmories — quiet, warm and refined. Tokens match BRIEF.md. */
:root {
  --bg: #faf7f2;          /* ivory page */
  --paper: #ffffff;       /* cards, frames */
  --stone: #f2ede5;       /* soft panels */
  --sage: #d3e4c4;        /* soft panels, second tone */
  --blush: #f7d3d9;       /* soft panels, third tone */
  --ink: #1f2328;         /* text, primary buttons (15.6:1 on ivory) */
  --muted: #67625b;       /* secondary text (5.7:1) */
  --line: #e6dfd4;        /* hairlines */
  --line-strong: #cbc1b1; /* outlines on controls */
  --gold: #b08d57;        /* decorative only: icons, rules, accents */
  --gold-deep: #7d5f2c;   /* gold text and links (5.6:1) */
  --dawn: linear-gradient(90deg, #e9d8c4, #d9bf98, #b08d57, #d9bf98, #e9d8c4);
  --display: 'Cormorant Garamond', 'Cormorant', Garamond, 'Times New Roman', serif;
  --body: 'Jost', 'Futura', 'Avenir Next', system-ui, sans-serif;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --shadow-frame: 0 1px 2px rgba(31, 35, 40, .05), 0 18px 40px -22px rgba(31, 35, 40, .35);
  --wrap: 1160px;
  --focus: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.7 var(--body);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'kern', 'liga';
}
img, video { max-width: 100%; display: block; }
input[type=file] { max-width: 100%; }
a { color: var(--gold-deep); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.08; margin: 0 0 .45em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 400; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 400; }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; max-width: 66ch; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.eyebrow { font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); font-weight: 500; margin: 0 0 18px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 4px; z-index: 50; }
.skip:focus { left: 8px; }
.ic { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: -.25em; }

/* ---------------------------------------------------------------- header */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(250, 247, 242, .9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.7rem; font-weight: 500; letter-spacing: .01em; color: var(--ink); text-decoration: none; }
.logo svg { width: 30px; height: 30px; }
.logo:hover { color: var(--ink); }
.nav { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; padding: 8px 14px; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--gold-deep); }
.nav a[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--gold); }
.nav .btn { margin-left: 10px; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--ink); }
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg); padding: 12px 16px 20px; border-bottom: 1px solid var(--line); margin: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; }
  .nav .btn { margin: 8px 0 0; text-align: center; justify-content: center; }
}

/* ---------------------------------------------------------------- buttons & forms */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--bg); font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: #33383f; color: var(--bg); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.ghost, .nav .btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); }
.btn.coral { background: var(--ink); }
.btn.small { padding: 10px 18px; font-size: .72rem; }
.nav a.btn { color: var(--bg); }
.linkish { background: none; border: 0; padding: 0; color: var(--gold-deep); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.quiet { color: var(--muted); font-size: .85rem; }

label { display: block; font-weight: 500; margin-bottom: 6px; }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: .88rem; margin-top: 2px; }
input[type=text], input[type=email], input[type=date], input[type=number], input[type=search], select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--paper);
  transition: border-color .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); }
textarea { min-height: 140px; resize: vertical; }
.field { margin-bottom: 20px; }
.row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 4vw, 44px); }
.form-card fieldset { border: 0; padding: 0; margin: 0 0 32px; }
.form-card legend { font-family: var(--display); font-size: 1.7rem; margin-bottom: 14px; padding: 0; }
.error { background: #fbf0ec; border: 1px solid #d9a99a; color: var(--ink); padding: 12px 16px; border-radius: var(--r-sm); margin: 0 0 16px; }
.notice { background: var(--stone); border-radius: var(--r-md); padding: 16px 20px; margin: 0 0 16px; }

/* ---------------------------------------------------------------- frame (pet portrait card; class kept as .polaroid) */
.polaroid {
  background: var(--paper); padding: 12px 12px 16px; border-radius: 3px; border: 1px solid var(--line);
  box-shadow: var(--shadow-frame); display: block; color: var(--ink); text-decoration: none;
}
.polaroid .photo { aspect-ratio: 4 / 5; background: var(--stone); overflow: hidden; display: grid; place-items: center; }
.polaroid .photo img { width: 100%; height: 100%; object-fit: cover; }
.monogram { font-family: var(--display); font-style: italic; font-weight: 400; font-size: clamp(3.4rem, 9vw, 5rem); color: var(--gold); line-height: 1; }
.polaroid .caption { display: block; padding: 14px 4px 0; text-align: center; }
.polaroid .caption strong { font-family: var(--display); font-weight: 500; font-size: 1.45rem; display: block; line-height: 1.1; }
.polaroid .caption span { display: block; color: var(--muted); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; margin-top: 6px; }
a.polaroid { transition: transform .3s ease, box-shadow .3s ease; }
a.polaroid:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(31, 35, 40, .05), 0 28px 50px -24px rgba(31, 35, 40, .45); }
.wall { display: grid; gap: clamp(20px, 3vw, 32px); grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); padding: 8px 0; }

/* ---------------------------------------------------------------- home */
.hero { overflow: hidden; position: relative; border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 48px; padding-block: clamp(56px, 9vw, 120px); position: relative; }
.hero h1 { max-width: 13ch; }
.hero p { font-size: 1.15rem; max-width: 38ch; color: var(--muted); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .btn:not(.primary) { background: transparent; color: var(--ink); }
.hero .btn:not(.primary):hover { background: var(--ink); color: var(--bg); }
.hero-stack { position: relative; height: 560px; margin-top: 40px; }
.hero-note { font-size: .92rem !important; color: var(--muted); text-align: center; margin: 18px auto 0; max-width: 34ch !important; }
.hero-note.share-site { margin-top: 6px; max-width: 40ch !important; }
.polaroid .photo video { width: 100%; height: 100%; object-fit: cover; display: block; }
.polaroid.showcase .photo { position: relative; }
.plus-tag { position: absolute; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px 3px 6px; border-radius: 999px;
  background: rgba(31, 35, 40, .72); color: #f3e6cf; font-size: .6rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; backdrop-filter: blur(4px); }
.plus-tag .ic { width: 12px; height: 12px; fill: currentColor; }
.polaroid .caption .quote { display: block; font-family: var(--display); font-style: italic; font-size: 1.05rem; line-height: 1.3; color: var(--muted); margin-top: 6px; }
.hero-stack .polaroid { position: absolute; width: 210px; }
.hero-stack .polaroid:nth-child(1) { left: 0; top: 90px; }
.hero-stack .polaroid:nth-child(2) { left: 28%; top: -40px; z-index: 2; width: 220px; }
.hero-stack .polaroid:nth-child(3) { right: 0; top: 200px; }
.bridge-arc { position: absolute; right: -180px; top: 50%; width: 760px; height: 760px; transform: translateY(-40%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, transparent 60%, rgba(176, 141, 87, .22) 60% calc(60% + 1px), transparent calc(60% + 1px) 67%, rgba(176, 141, 87, .16) 67% calc(67% + 1px), transparent calc(67% + 1px) 74%, rgba(176, 141, 87, .1) 74% calc(74% + 1px), transparent calc(74% + 1px)); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-stack { height: 440px; margin-top: 30px; }
  .hero-stack .polaroid:nth-child(2) { top: -30px; }
  .polaroid .caption .quote { font-size: .85rem; margin-top: 4px; }
  .hero-stack .polaroid:nth-child(1) { top: 60px; }
  .hero-stack .polaroid:nth-child(2) { left: 31%; }
  .hero-stack .polaroid:nth-child(3) { top: 150px; }
  .hero-stack .polaroid { width: 140px; padding: 8px 8px 10px; }
  .hero-stack .polaroid:nth-child(2) { width: 155px; }
  .hero-stack .polaroid .caption strong { font-size: 1.1rem; }
  .hero-stack .polaroid .caption span { display: none; }
  .bridge-arc { right: -380px; }
}

.band { padding-block: clamp(56px, 8vw, 104px); }
.band.sky { background: var(--stone); }
.band-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }
.band-head p { margin: 0; }
.band-head > a, .tradition > div > a { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }

.tradition { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.tradition .chips { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) { .tradition { grid-template-columns: 1fr; } }
.chip { display: inline-flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px 7px 12px; font-size: .92rem; }
.chip .ic { color: var(--gold); }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 32px; }
.plan { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px; background: var(--paper); }
.plan.plus { background: var(--ink); color: var(--bg); border-color: var(--ink); position: relative; overflow: hidden; }
.plan.plus .muted { color: #c9c2b6; }
.plan.plus::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: var(--dawn); }
.plan ul { padding: 0; margin: 18px 0 0; list-style: none; }
.plan li { margin: 10px 0; padding-left: 22px; position: relative; }
.plan li::before { content: ''; position: absolute; left: 0; top: .78em; width: 10px; height: 1px; background: var(--gold); }
.price { font-family: var(--display); font-size: 2.8rem; line-height: 1; margin: 8px 0 8px; }

.site-foot { border-top: 1px solid var(--line); padding: 44px 0 56px; margin-top: 56px; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-foot a { color: var(--ink); text-decoration: none; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.site-foot a:hover { color: var(--gold-deep); }

/* ---------------------------------------------------------------- browse */
.filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.filters input { flex: 1 1 260px; }
.filters select { flex: 0 1 220px; }
.empty { text-align: center; padding: 56px 16px; }
.empty .face { color: var(--gold); margin-bottom: 8px; }
.empty .face .ic { width: 44px; height: 44px; }
.more { display: flex; justify-content: center; margin-top: 40px; }

/* ---------------------------------------------------------------- memorial */
.memorial-top { background: var(--stone); padding-block: clamp(36px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.memorial-top .wrap { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.memorial-top .polaroid .caption strong { font-size: 1.2rem; }
.pet-name { margin-bottom: 4px; }
.pet-aka { font-family: var(--display); font-style: italic; font-size: 1.5rem; color: var(--muted); margin: 0 0 16px; }
.pet-kind { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.pet-kind .chip { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; padding: 6px 14px; background: transparent; border-color: var(--line-strong); }
.stamps { display: flex; gap: 0; flex-wrap: wrap; margin-bottom: 26px; }
.stamp { padding: 2px 28px 2px 0; margin-right: 28px; border-right: 1px solid var(--line-strong); }
.stamp:last-child { border-right: 0; margin-right: 0; }
.stamp b { display: block; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); font-weight: 500; }
.stamp span { font-family: var(--display); font-size: 1.35rem; line-height: 1.3; }
.top-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.love { margin: 0 0 18px; padding-top: 22px; border-top: 1px solid var(--line-strong); }
.love-title { font-family: var(--display); font-size: 1.4rem; margin: 0 0 12px; }
.badge.free { background: transparent; border: 1px solid var(--gold); color: var(--gold-deep); vertical-align: 4px; margin-left: 6px; }
.love-row { display: flex; flex-wrap: wrap; gap: 8px; }
.love-btn {
  display: inline-flex; align-items: center; gap: 9px; background: var(--paper); border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 9px 18px 9px 14px; font-size: .95rem; cursor: pointer; transition: border-color .2s, background .2s;
}
.love-btn .ic { color: var(--gold); width: 20px; height: 20px; transition: transform .3s ease; }
.love-btn:hover { border-color: var(--ink); }
.love-btn:hover .ic { transform: scale(1.08); }
.love-btn.sent { background: var(--ink); border-color: var(--ink); color: var(--bg); cursor: default; }
.love-btn.sent .ic { color: #d9bf98; animation: glow 1.4s ease-out 1; }
.love-btn[disabled] { cursor: default; }
@keyframes glow { 0% { transform: scale(1); } 30% { transform: scale(1.25); } 100% { transform: scale(1); } }
.love-name { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 12px 0 0; }
.love-name label { margin: 0; font-size: .92rem; }
.love-name input { flex: 1 1 180px; max-width: 260px; padding: 8px 12px; }
.love-count { font-family: var(--display); font-style: italic; font-size: 1.2rem; color: var(--muted); margin: 12px 0 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0; margin: 12px 0 28px; border-top: 1px solid var(--line); }
.facts > div { padding: 18px 20px 18px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); font-weight: 500; }
.facts dd { margin: 6px 0 0; font-family: var(--display); font-size: 1.3rem; line-height: 1.3; }
.item .p.free { color: var(--gold-deep); }
.share .copy-row { display: flex; gap: 10px; margin: 8px 0 14px; }
.share .copy-row input { flex: 1; min-width: 0; }
.share-links { display: flex; gap: 8px; flex-wrap: wrap; }
.sm-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 700px) { .top-actions, .love-row, .love-name { justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .love-btn.sent .ic { animation: none; } }
.counts { display: flex; gap: 24px; flex-wrap: wrap; color: var(--muted); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
@media (max-width: 700px) {
  .memorial-top .wrap { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .memorial-top .polaroid { width: min(280px, 80%); }
  .pet-kind, .stamps, .counts { justify-content: center; }
  .stamp { padding-right: 16px; margin-right: 16px; }
  .stamp span { font-size: 1.15rem; }
}

.memorial-body { display: grid; grid-template-columns: 1fr 390px; gap: 56px; align-items: start; padding-block: 48px; }
@media (max-width: 980px) { .memorial-body { grid-template-columns: 1fr; } }
.section { margin-bottom: 56px; }
.story { font-family: var(--display); font-size: 1.4rem; line-height: 1.55; white-space: pre-line; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.tabs button { background: none; border: 0; padding: 12px 18px; cursor: pointer; color: var(--muted); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); box-shadow: inset 0 -1px 0 var(--ink); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.gallery button { padding: 0; border: 0; background: var(--stone); border-radius: 2px; overflow: hidden; aspect-ratio: 1; cursor: zoom-in; position: relative; }
.gallery img, .gallery video { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery button:hover img { transform: scale(1.03); }
.gallery .play { position: absolute; inset: auto 8px 8px auto; background: rgba(31, 35, 40, .75); color: #fff; border-radius: 999px; padding: 2px 10px; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }

.messages { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.message { padding: 22px 0; border-bottom: 1px solid var(--line); }
.message p { white-space: pre-line; margin-bottom: 10px; font-family: var(--display); font-size: 1.3rem; line-height: 1.5; }
.message footer { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: .85rem; }

.offering-log { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.offering-log li { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.offering-log .emojis { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--gold); }
.offering-log .emojis .ic { width: 22px; height: 22px; }
.offering-log .who { font-weight: 500; }
.offering-log .meta { color: var(--muted); font-size: .88rem; }

/* offering panel */
.send-panel { position: sticky; top: 92px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-frame); }
.send-panel header { background: var(--ink); color: var(--bg); padding: 24px 24px 20px; position: relative; }
.send-panel header::after { content: ''; position: absolute; inset: auto 0 0; height: 2px; background: var(--dawn); }
.send-panel header h2 { font-size: 1.75rem; margin: 0 0 4px; }
.send-panel header p { margin: 0; font-size: .92rem; color: #c9c2b6; }
.send-panel .inner { padding: 20px 24px 24px; }
@media (max-width: 980px) { .send-panel { position: static; } }
.shelf { max-height: 460px; overflow-y: auto; margin: 0 -24px; padding: 0 24px; border-block: 1px solid var(--line); }
.shelf h3 { font-family: var(--body); font-weight: 500; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); margin: 22px 0 8px; }
.item { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; width: 100%; text-align: left; background: none; border: 1px solid transparent; border-radius: var(--r-sm); padding: 10px 8px; cursor: pointer; transition: background .2s, border-color .2s; }
.item:hover { background: var(--bg); }
.item[aria-pressed="true"] { border-color: var(--ink); background: var(--bg); }
.item .e { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--gold); }
.item .e .ic { width: 20px; height: 20px; }
.item[aria-pressed="true"] .e { background: var(--ink); border-color: var(--ink); color: #d9bf98; }
.item .n { font-weight: 500; line-height: 1.25; }
.item .b { display: block; font-weight: 400; color: var(--muted); font-size: .84rem; line-height: 1.4; margin-top: 2px; }
.item .p { font-family: var(--display); font-size: 1.15rem; }
.item.other { cursor: default; opacity: .55; }
.item.other:hover { background: none; }
.item .for { display: inline-block; margin-top: 4px; font-size: .68rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }
.basket { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 16px 0; font-weight: 500; }
.basket .e { display: inline-flex; gap: 4px; color: var(--gold); }

/* ---------------------------------------------------------------- send moment: given to the flame */
.send-moment { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; text-align: center; padding: 24px; overflow: auto;
  background: radial-gradient(ellipse 70% 60% at 50% 46%, #2b2119 0%, #16130f 55%, #0d0c0b 100%); color: #f3ece0;
  animation: sm-in .6s ease both; }
@keyframes sm-in { from { opacity: 0; } }
.send-moment .sm-inner { max-width: 520px; }
.send-moment .eyebrow { color: #c9a56a; margin-bottom: 6px; }
.send-moment .hearth { position: relative; width: min(420px, 88vw); height: 340px; margin: 0 auto; }
.send-moment .fire { position: absolute; inset: 0; width: 100%; height: 100%; }
.send-moment .slips { position: absolute; inset: 0; }
.send-moment .brazier { position: absolute; left: 50%; bottom: 0; width: 150px; transform: translateX(-50%); }
.send-moment .slip { position: absolute; top: 0; width: 56px; height: 72px; border-radius: 2px; opacity: 0;
  background: linear-gradient(160deg, #f6eedd, #e6d6b6); box-shadow: 0 6px 18px rgba(0, 0, 0, .45); display: grid; place-items: center; }
.send-moment .slip .foil { width: 34px; height: 34px; display: grid; place-items: center; color: #6e5223;
  background: linear-gradient(135deg, #e9c983, #b08d57 55%, #d9b874); box-shadow: inset 0 0 0 1px rgba(110, 82, 35, .35); }
.send-moment .slip .ic { width: 22px; height: 22px; }
.send-moment h2 { margin: 18px 0 8px; color: #f6efe2; }
.send-moment .sm-text { color: #c4b7a3; max-width: 44ch; margin: 0 auto; min-height: 3em; }
.send-moment .sm-actions { margin-top: 22px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.send-moment .btn { color: #f3ece0; border-color: rgba(201, 165, 106, .55); background: transparent; }
.send-moment .btn:hover { border-color: #c9a56a; background: rgba(201, 165, 106, .08); }
.send-moment .btn:first-child { background: #c9a56a; border-color: #c9a56a; color: #17120d; }
@media (prefers-reduced-motion: reduce) {
  .send-moment { animation: none; }
  * { scroll-behavior: auto !important; }
}

.prose .lede { font-family: var(--display); font-size: 1.5rem; line-height: 1.5; color: var(--ink); }

/* ---------------------------------------------------------------- dialogs & toasts */
dialog { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 0; max-width: min(920px, 94vw); background: var(--paper); }
dialog::backdrop { background: rgba(31, 35, 40, .7); }
dialog .dlg { padding: 22px; }
dialog .dlg img, dialog .dlg video { max-height: 72vh; margin: 0 auto; border-radius: 2px; }
dialog .dlg-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 22px; border-radius: 999px; font-size: .92rem; z-index: 70; max-width: calc(100vw - 32px); }

/* ---------------------------------------------------------------- create / keeper */
.page-head { padding-block: clamp(44px, 7vw, 80px) 28px; }
.page-head p { font-size: 1.15rem; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.portrait-pick { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.portrait-pick .polaroid { width: 150px; }
.portrait-pick .monogram { font-size: 3rem; }
.my-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.my-pet { display: grid; grid-template-columns: 88px 1fr auto; gap: 20px; align-items: center; border-bottom: 1px solid var(--line); padding: 18px 0; }
.my-pet .thumb { width: 88px; aspect-ratio: 4 / 5; background: var(--stone); overflow: hidden; display: grid; place-items: center; }
.my-pet .thumb .monogram { font-size: 2.4rem; }
.my-pet .thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 560px) { .my-pet { grid-template-columns: 72px 1fr; } .my-pet .thumb { width: 72px; } .my-pet .actions { grid-column: 1 / -1; } }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .66rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; background: var(--stone); }
.badge.plus { background: var(--ink); color: #e9d8c4; }
.badge.held { background: #f6e6df; }
.manage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.manage-tile { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--paper); }
.manage-tile .m { aspect-ratio: 1; background: var(--stone); }
.manage-tile .m img, .manage-tile .m video { width: 100%; height: 100%; object-fit: cover; }
.manage-tile .t { padding: 8px 10px 10px; font-size: .88rem; }
.manage-tile textarea { min-height: 54px; padding: 6px 8px; font-size: .88rem; }
.meter { height: 3px; border-radius: 999px; background: var(--line); overflow: hidden; margin: 8px 0 6px; }
.meter i { display: block; height: 100%; background: var(--gold); }
.toggle { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; margin-bottom: 14px; }
.toggle input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--ink); }
.loading { padding: 64px 0; text-align: center; color: var(--muted); font-family: var(--display); font-style: italic; font-size: 1.2rem; }

/* ---------------------------------------------------------------- tradition page */
.prose { font-size: 1.1rem; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding: 0; list-style: none; }
.prose li { padding-left: 26px; position: relative; margin: 10px 0; }
.prose li::before { content: ''; position: absolute; left: 0; top: .85em; width: 12px; height: 1px; background: var(--gold); }
.faq dt { font-family: var(--display); font-size: 1.35rem; margin-top: 24px; }
.faq dd { margin: 4px 0 0; }
.prompts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); column-gap: 16px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { box-shadow: 0 0 0 3px rgba(176, 141, 87, .25); border-radius: var(--r-sm); }
.monogram .ic { width: .7em; height: .7em; }
input[type=file]::file-selector-button {
  font: inherit; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; margin-right: 12px;
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer;
}
input[type=file]::file-selector-button:hover { background: var(--ink); color: var(--bg); }
@media (max-width: 560px) {
  .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .wall .polaroid { padding: 8px 8px 12px; }
  .wall .polaroid .caption strong { font-size: 1.15rem; }
  .wall .polaroid .caption span { font-size: .62rem; letter-spacing: .12em; }
}

/* ---------------------------------------------------------------- press-and-hold gestures */
.love-title { margin-bottom: 2px; }
.love-hint { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; min-height: 1.4em; }
.love-btn { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation; padding: 6px 18px 6px 7px; }
.love-btn .hold { position: relative; width: 34px; height: 34px; display: grid; place-items: center; flex: none; }
.love-btn .hold .ic { width: 19px; height: 19px; }
.love-btn .ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.love-btn .ring circle { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 103.67; stroke-dashoffset: 103.67; }
.love-btn.draining .ring circle { transition: stroke-dashoffset .3s ease-out; }
.love-btn.holding { border-color: var(--gold); background: #fffdf9; }
.love-btn.holding .ic { transform: scale(1.12); transition: transform 1.4s ease-out; }
.love-btn.sending .ring circle { stroke-dashoffset: 0; }
.love-btn.sent .ring circle { stroke: #d9bf98; stroke-dashoffset: 0; }
.love-btn.confirm { border-color: var(--ink); }
.love-name { margin: 14px 0 0; }
.love-name label { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .love-btn.holding .ic { transform: none; transition: none; } }

/* ---------------------------------------------------------------- admin */
.admin-head { padding-bottom: 12px; }
.admin { padding-bottom: 40px; }
.admin .tabs { overflow-x: auto; flex-wrap: nowrap; }
.admin .tabs button { white-space: nowrap; }
.tabs .count:not(:empty) { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 8px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: .66rem; letter-spacing: 0; }
.admin-h { font-size: 1.6rem; margin: 28px 0 8px; }
.admin-list { list-style: none; padding: 0; margin: 0 0 24px; border-top: 1px solid var(--line); }
.admin-item { display: grid; grid-template-columns: 88px 1fr auto; gap: 20px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.admin-item.no-thumb { grid-template-columns: 1fr auto; }
.admin-item .thumb { width: 88px; aspect-ratio: 4 / 5; background: var(--stone); overflow: hidden; display: grid; place-items: center; }
.admin-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-item .thumb .monogram { font-size: 2.4rem; }
.admin-item h3 { margin: 0 0 2px; font-size: 1.5rem; }
.admin-item h3 a { color: var(--ink); text-decoration: none; }
.admin-item p { margin: 4px 0; }
.admin .flag { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); font-weight: 500; }
.admin .excerpt, .admin .quote { font-family: var(--display); font-size: 1.15rem; line-height: 1.5; white-space: pre-line; }
.admin .acts { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.admin-grid { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.admin-tile { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--paper); }
.admin-tile .m { aspect-ratio: 1; background: var(--stone); }
.admin-tile .m img, .admin-tile .m video { width: 100%; height: 100%; object-fit: cover; }
.admin-tile .t { padding: 10px 12px 14px; }
.admin-tile .acts { flex-direction: row; margin-top: 8px; }
.table-wrap { overflow-x: auto; border-top: 1px solid var(--line); }
.admin-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.admin-table th { text-align: left; font-weight: 500; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: 12px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table tr.warn td { background: #fbf3ea; }
.mfa-steps { padding-left: 1.2em; margin: 0 0 20px; }
.mfa-steps li { margin: 0 0 18px; }
.qr { display: inline-block; background: #fff; padding: 12px; border: 1px solid var(--line); margin-top: 10px; }
.qr img { width: 180px; height: 180px; }
.key { font-family: ui-monospace, Menlo, monospace; word-break: break-all; color: var(--ink); }
input.code { max-width: 200px; font-family: ui-monospace, Menlo, monospace; font-size: 1.3rem; letter-spacing: .3em; }
@media (max-width: 640px) {
  .admin-item, .admin-item.no-thumb { grid-template-columns: 64px 1fr; }
  .admin-item.no-thumb .body { grid-column: 1 / -1; }
  .admin-item .thumb { width: 64px; }
  .admin-item .acts { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
}

/* ---------------------------------------------------------------- memorial page styles (Plus) */
.memorial { background: var(--bg); color: var(--ink); }
.memorial.theme-night {
  --bg: #15171c; --paper: #1f222a; --stone: #1b1e25; --ink: #f1ebe1; --muted: #b3aa9c;
  --line: #30343e; --line-strong: #474c58; --gold: #c9a56a; --gold-deep: #dcc08d;
  --shadow-frame: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 40px -22px rgba(0, 0, 0, .8);
  --dawn: linear-gradient(90deg, #3a2f22, #8a6c3e, #c9a56a, #8a6c3e, #3a2f22);
}
.memorial.theme-garden {
  --bg: #eaf2e2; --paper: #ffffff; --stone: #d3e4c4; --ink: #1c2a1c; --muted: #4a5c44;
  --line: #c3d8b1; --line-strong: #93b47c; --gold: #5a8f3c; --gold-deep: #36652a;
  --dawn: linear-gradient(90deg, #c9e0b4, #8cbb6c, #4f8a32, #8cbb6c, #c9e0b4);
}
.memorial.theme-rose {
  --bg: #fcecef; --paper: #ffffff; --stone: #f7d3d9; --ink: #2c1c22; --muted: #6b4a53;
  --line: #f0c4cc; --line-strong: #e099a6; --gold: #d0607a; --gold-deep: #9c3350;
  --dawn: linear-gradient(90deg, #f7cdd5, #ec95a7, #d0607a, #ec95a7, #f7cdd5);
}
.memorial.theme-night .btn.ghost:hover, .memorial.theme-night .btn:hover { background: #e6dccb; color: #15171c; }
.memorial.theme-night .send-panel header { background: #0f1115; color: #f1ebe1; }
.memorial.theme-night .send-panel header p { color: #b3aa9c; }
.memorial.theme-night input, .memorial.theme-night select, .memorial.theme-night textarea { color-scheme: dark; }
.memorial.theme-night .love-btn.holding { background: #262a33; }
.memorial.theme-night .notice { background: #262a33; }

/* style picker on the keeper page */
.theme-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 12px 0 4px; }
.theme-opt { border: 1px solid var(--line-strong); border-radius: var(--r-md); padding: 10px; background: var(--paper); cursor: pointer; text-align: left; }
.theme-opt[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.theme-opt .sw { display: grid; grid-template-columns: 2fr 1fr 1fr; height: 46px; border-radius: 6px; overflow: hidden; margin-bottom: 8px; border: 1px solid rgba(0, 0, 0, .06); }
.theme-opt .nm { font-weight: 500; display: block; }
.theme-opt .ds { color: var(--muted); font-size: .82rem; }
.slug-row { display: flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--paper); overflow: hidden; }
.slug-row span { padding: 12px 0 12px 14px; color: var(--muted); white-space: nowrap; }
.slug-row input { border: 0 !important; padding-left: 2px !important; min-width: 0; }
.slug-status { font-size: .88rem; margin-top: 6px; min-height: 1.4em; }
.slug-status.ok { color: #3f6b3a; }
.slug-status.bad { color: #9a3b2b; }
.plus-perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 6px 20px; padding: 0; margin: 10px 0 16px; list-style: none; }
.plus-perks li { padding-left: 20px; position: relative; }
.plus-perks li::before { content: ''; position: absolute; left: 0; top: .8em; width: 10px; height: 1px; background: var(--gold); }
.plus-buy { display: flex; gap: 10px; flex-wrap: wrap; }

/* share window */
.share-make { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 6px 0 14px; }
.share-make .make { display: flex; gap: 12px; align-items: center; text-align: left; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--paper); cursor: pointer; }
.share-make .make:hover, .share-make .make[aria-pressed="true"] { border-color: var(--ink); }
.share-make .make .ic { width: 28px; height: 28px; color: var(--gold); flex: none; }
.share-make .make strong { display: block; font-weight: 500; }
.share-make .make small { display: block; color: var(--muted); font-size: .84rem; line-height: 1.35; }
.share-progress { font-family: var(--display); font-style: italic; font-size: 1.15rem; color: var(--muted); margin: 4px 0 14px; }
.share-preview { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: center; margin: 4px 0 16px; padding: 12px; background: var(--stone); border-radius: var(--r-md); }
.share-preview video, .share-preview img { width: 150px; max-height: 270px; object-fit: contain; border-radius: 6px; background: #000; }
@media (max-width: 520px) { .share-preview { grid-template-columns: 110px 1fr; } .share-preview video, .share-preview img { width: 110px; } }
dialog .dlg.share { max-width: 620px; }

/* ---------------------------------------------------------------- premium page styles: gold frames and ornaments */
.polaroid.framed {
  position: relative; padding: 20px 20px 22px; border: 6px solid transparent; border-radius: 2px;
  border-image: linear-gradient(135deg, #7d5f2c 0%, #f1d9a0 22%, #a9843f 45%, #f6e6b4 62%, #8c6a30 80%, #e5c983 100%) 1;
  background-color: #fffdf8;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30' fill='none'%3E%3Cg transform='rotate(0 15 15)' stroke='%23b8913f' stroke-width='1.2' stroke-linecap='round'%3E%3Cpath d='M2 28V9a7 7 0 0 1 7-7h19'/%3E%3Cpath d='M6 28V13a7 7 0 0 1 7-7h15'/%3E%3Cpath d='M13 13c2.5-3 7-2.4 7 .8 0 2.6-3.6 3-4.2.6'/%3E%3Ccircle cx='9' cy='9' r='2' fill='%23e2c57e'/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30' fill='none'%3E%3Cg transform='rotate(90 15 15)' stroke='%23b8913f' stroke-width='1.2' stroke-linecap='round'%3E%3Cpath d='M2 28V9a7 7 0 0 1 7-7h19'/%3E%3Cpath d='M6 28V13a7 7 0 0 1 7-7h15'/%3E%3Cpath d='M13 13c2.5-3 7-2.4 7 .8 0 2.6-3.6 3-4.2.6'/%3E%3Ccircle cx='9' cy='9' r='2' fill='%23e2c57e'/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30' fill='none'%3E%3Cg transform='rotate(270 15 15)' stroke='%23b8913f' stroke-width='1.2' stroke-linecap='round'%3E%3Cpath d='M2 28V9a7 7 0 0 1 7-7h19'/%3E%3Cpath d='M6 28V13a7 7 0 0 1 7-7h15'/%3E%3Cpath d='M13 13c2.5-3 7-2.4 7 .8 0 2.6-3.6 3-4.2.6'/%3E%3Ccircle cx='9' cy='9' r='2' fill='%23e2c57e'/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30' fill='none'%3E%3Cg transform='rotate(180 15 15)' stroke='%23b8913f' stroke-width='1.2' stroke-linecap='round'%3E%3Cpath d='M2 28V9a7 7 0 0 1 7-7h19'/%3E%3Cpath d='M6 28V13a7 7 0 0 1 7-7h15'/%3E%3Cpath d='M13 13c2.5-3 7-2.4 7 .8 0 2.6-3.6 3-4.2.6'/%3E%3Ccircle cx='9' cy='9' r='2' fill='%23e2c57e'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 30px 30px;
  background-position: left 3px top 3px, right 3px top 3px, left 3px bottom 3px, right 3px bottom 3px;
  box-shadow: 0 2px 4px rgba(60, 40, 10, .12), 0 24px 46px -24px rgba(60, 40, 10, .55);
}
.polaroid.framed .photo { outline: 1px solid rgba(184, 145, 63, .75); outline-offset: 4px; }
.polaroid.framed .caption strong { background: linear-gradient(100deg, #7d5f2c 0%, #c9a24e 28%, #f3e2a9 50%, #b8913f 72%, #7d5f2c 100%); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 600; }
.polaroid.framed.theme-night { background-color: #1d2028; }
.polaroid.framed.theme-night .caption span { color: #b3aa9c; }
.polaroid.framed.theme-garden { background-color: #cfe2bd; }
.polaroid.framed.theme-garden .caption span { color: #3f5a35; }
.polaroid.framed.theme-rose { background-color: #f8ccd5; }
.polaroid.framed.theme-rose .caption span { color: #7a3a4c; }
.wall .polaroid.framed { padding: 16px 16px 18px; border-width: 5px; background-size: 24px 24px; }
@media (max-width: 560px) { .wall .polaroid.framed { padding: 12px 12px 14px; border-width: 4px; background-size: 20px 20px; } }

.memorial.theme-night .memorial-top, .memorial.theme-garden .memorial-top, .memorial.theme-rose .memorial-top {
  border-bottom: 3px double #b8913f; position: relative;
}
.memorial.theme-night .memorial-top { background-color: #15171c; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160' fill='%23f3e6c4'%3E%3Ccircle cx='12' cy='18' r='1' opacity='.7'/%3E%3Ccircle cx='70' cy='40' r='.8' opacity='.5'/%3E%3Ccircle cx='130' cy='14' r='1.2' opacity='.8'/%3E%3Ccircle cx='100' cy='90' r='.7' opacity='.5'/%3E%3Ccircle cx='30' cy='110' r='1.1' opacity='.6'/%3E%3Ccircle cx='150' cy='130' r='.8' opacity='.6'/%3E%3Ccircle cx='60' cy='150' r='.7' opacity='.4'/%3E%3Cpath d='M118 62l1.2 3.4 3.4 1.2-3.4 1.2-1.2 3.4-1.2-3.4-3.4-1.2 3.4-1.2z' fill='%23e2c57e' opacity='.7'/%3E%3C/svg%3E"), radial-gradient(ellipse 80% 70% at 30% 0%, #2a2f3b 0%, #15171c 70%); }
.memorial.theme-garden .memorial-top { background-color: #c9ddb6; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140' fill='none' stroke='%234f8a32' stroke-width='1.2' opacity='.5'%3E%3Cpath d='M20 60c10-14 26-16 34-10-8 12-22 16-34 10z'/%3E%3Cpath d='M20 60c12-2 22-6 34-10'/%3E%3Cpath d='M96 120c6-12 20-16 28-12-6 10-18 14-28 12z'/%3E%3Cpath d='M96 120c10-2 18-6 28-12'/%3E%3Cpath d='M100 26c-4 8-2 16 4 20 4-8 2-16-4-20z'/%3E%3C/svg%3E"); }
.memorial.theme-rose .memorial-top { background-color: #f6c6cf; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150' viewBox='0 0 150 150' fill='%23d0607a' opacity='.4'%3E%3Cellipse cx='30' cy='34' rx='7' ry='4' transform='rotate(-30 30 34)'/%3E%3Cellipse cx='112' cy='60' rx='6' ry='3.5' transform='rotate(40 112 60)'/%3E%3Cellipse cx='64' cy='122' rx='7' ry='4' transform='rotate(10 64 122)'/%3E%3Cellipse cx='136' cy='132' rx='5' ry='3' transform='rotate(-60 136 132)'/%3E%3C/svg%3E"); }
.memorial.theme-night .pet-name, .memorial.theme-garden .pet-name, .memorial.theme-rose .pet-name {
  background: linear-gradient(100deg, #7d5f2c 0%, #c9a24e 28%, #f3e2a9 50%, #b8913f 72%, #7d5f2c 100%); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 500;
}
.memorial.theme-night .pet-name::after, .memorial.theme-garden .pet-name::after, .memorial.theme-rose .pet-name::after {
  content: ''; display: block; width: 200px; max-width: 70%; height: 16px; margin: 12px 0 4px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='16' viewBox='0 0 200 16' fill='none' stroke='%23b8913f' stroke-width='1.1'%3E%3Cpath d='M4 8h76M120 8h76'/%3E%3Cpath d='M100 2l6 6-6 6-6-6z' fill='%23e2c57e'/%3E%3Ccircle cx='86' cy='8' r='1.6' fill='%23b8913f'/%3E%3Ccircle cx='114' cy='8' r='1.6' fill='%23b8913f'/%3E%3C/svg%3E") no-repeat left center / contain;
}
@media (max-width: 700px) {
  .memorial.theme-night .pet-name::after, .memorial.theme-garden .pet-name::after, .memorial.theme-rose .pet-name::after { margin-left: auto; margin-right: auto; background-position: center; }
}
.memorial.theme-night .send-panel, .memorial.theme-garden .send-panel, .memorial.theme-rose .send-panel { border: 1px solid #c9a56a; }
.memorial.theme-night .send-panel header::after, .memorial.theme-garden .send-panel header::after, .memorial.theme-rose .send-panel header::after { height: 3px; background: linear-gradient(135deg, #7d5f2c 0%, #f1d9a0 22%, #a9843f 45%, #f6e6b4 62%, #8c6a30 80%, #e5c983 100%); }
.theme-opt[data-theme="night"] .sw, .theme-opt[data-theme="garden"] .sw, .theme-opt[data-theme="rose"] .sw { border: 3px solid transparent; border-image: linear-gradient(135deg, #7d5f2c 0%, #f1d9a0 22%, #a9843f 45%, #f6e6b4 62%, #8c6a30 80%, #e5c983 100%) 1; }
.polaroid.framed:not(.theme-night) .caption strong { background-image: linear-gradient(100deg, #6b4f1f 0%, #9c7a34 35%, #c49b4a 55%, #8a6a2f 75%, #5e4419 100%); }
.memorial.theme-garden .pet-name, .memorial.theme-rose .pet-name { background-image: linear-gradient(100deg, #6b4f1f 0%, #9c7a34 35%, #c49b4a 55%, #8a6a2f 75%, #5e4419 100%); }
