:root {
  --ink: #3f4b45;
  --paper: #fffaf0;
  --card: rgba(255, 253, 247, .88);
  --accent: #d88079;
  --leaf: #71936d;
  --line: rgba(101, 85, 63, .22);
  --muted: #746b60;
  --sage-dark: #536f58;
  --parallax-x: 0;
  --parallax-y: 0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff8e9; font-family: Georgia, "Times New Roman", serif; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: var(--ink);
  background: linear-gradient(180deg, #f9e9c5, #fff8e9);
  transition: background .8s ease, color .8s ease;
}
.site.time-night {
  --ink: #f8f0e6;
  --paper: #182b47;
  --card: rgba(22, 42, 67, .84);
  --accent: #f0b485;
  --leaf: #b5cfb0;
  --muted: #d5d8d4;
}
.site.season-spring.time-morning { background: linear-gradient(180deg,#ffe8b8,#d6edc5 64%,#f8f0d9); }
.site.season-spring.time-afternoon { background: linear-gradient(180deg,#bfe5ee,#d7edbb 65%,#f8f0d9); }
.site.season-spring.time-evening { background: linear-gradient(180deg,#f8bb9c,#d7a9c5 65%,#d2e4b2); }
.site.season-spring.time-night { background: linear-gradient(180deg,#1d3457,#41617a 70%,#5f8068); }
.site.season-summer.time-morning { background: linear-gradient(180deg,#ffe39a,#b7dd9a 68%,#e8d99e); }
.site.season-summer.time-afternoon { background: linear-gradient(180deg,#93d5ea,#d8e89b 66%,#e8d99e); }
.site.season-summer.time-evening { background: linear-gradient(180deg,#f5a86e,#d4929e 64%,#80a66c); }
.site.season-summer.time-night { background: linear-gradient(180deg,#122b55,#345272 70%,#496c54); }
.site.season-autumn.time-morning { background: linear-gradient(180deg,#fde0ab,#eeb679 67%,#d39b61); }
.site.season-autumn.time-afternoon { background: linear-gradient(180deg,#b6d4df,#edc17f 67%,#cf965c); }
.site.season-autumn.time-evening { background: linear-gradient(180deg,#e77e61,#b47b87 63%,#b77e54); }
.site.season-autumn.time-night { background: linear-gradient(180deg,#202747,#4a455e 70%,#765842); }
.site.season-winter.time-morning { background: linear-gradient(180deg,#e7eff4,#c8d8e1 68%,#e1e9ed); }
.site.season-winter.time-afternoon { background: linear-gradient(180deg,#a9c7de,#d9e5eb 66%,#eef4f6); }
.site.season-winter.time-evening { background: linear-gradient(180deg,#b69fc0,#829bb6 64%,#d8e4e9); }
.site.season-winter.time-night { background: linear-gradient(180deg,#101d3b,#314767 70%,#bdcbd1); }

.scene { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.orb {
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  right: 9%;
  top: 108px;
  background: #ffe49a;
  box-shadow: 0 0 45px rgba(255, 228, 154, .6);
  transform: translate(calc(var(--parallax-x) * -5px), calc(var(--parallax-y) * -3px));
  transition: transform .2s ease-out, background .8s;
}
.time-night .orb { background: #f6f1df; box-shadow: 0 0 35px rgba(246,241,223,.4); }
.ground {
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -7px;
  height: 27%;
  background: #9fbd85;
  border-radius: 50% 50% 0 0 / 22% 22% 0 0;
  transition: background .8s ease;
  transform: translate(calc(var(--parallax-x) * -8px), calc(var(--parallax-y) * -4px));
}
.tree {
  position: absolute;
  bottom: 15%;
  width: 20px;
  height: 150px;
  background: #7b5b41;
  border-radius: 12px;
  transition: transform .2s ease-out;
}
.tree::before {
  content: "";
  position: absolute;
  width: 130px;
  height: 120px;
  border-radius: 55% 45% 50% 50%;
  background: #78a46e;
  left: -55px;
  top: -68px;
  box-shadow: 14px 26px 0 -7px #78a46e;
  transition: background .8s ease, box-shadow .8s ease;
}
.tree::after { content: ""; position: absolute; top: -54px; left: -49px; font-size: 19px; letter-spacing: 11px; }
.tree-left { left: 10%; transform: translate(calc(var(--parallax-x) * 9px), calc(var(--parallax-y) * 4px)); }
.tree-right { right: 12%; transform: scale(.75) translate(calc(var(--parallax-x) * 9px), calc(var(--parallax-y) * 4px)); transform-origin: bottom; }
.season-spring .ground { background: #a9c989; }
.season-spring .tree::before { background: #8cb875; box-shadow: 14px 26px 0 -7px #8cb875; }
.season-spring .tree::after { content: "🌸 🌸"; }
.season-summer .ground { background: #7fae70; }
.season-summer .tree::before { background: #4f925c; box-shadow: 14px 26px 0 -7px #4f925c; }
.season-summer .tree::after { content: "🌼"; }
.season-autumn .ground { background: #b78956; }
.season-autumn .tree::before { background: #c26e3f; box-shadow: 14px 26px 0 -7px #d99245; }
.season-autumn .tree::after { content: "🍂 🍁"; }
.season-winter .ground { background: #d9e5e7; }
.season-winter .tree::before { width: 90px; height: 12px; left: -35px; top: 8px; border-radius: 50%; background: #6c625b; box-shadow: 25px -31px 0 -4px #6c625b, -20px -26px 0 -4px #6c625b, 0 -52px 0 -4px #6c625b; }
.season-winter .tree::after { content: "❄"; top: -80px; left: -28px; }
.time-night .ground { filter: brightness(.55); }
.detail { position: absolute; font-size: 28px; opacity: .76; animation: float 7s ease-in-out infinite; }
.detail:nth-child(5) { left: 8%; top: 25%; animation-delay: -2s; }
.detail:nth-child(6) { right: 17%; top: 33%; animation-delay: -4s; }
.detail:nth-child(7) { left: 4%; bottom: 13%; animation-delay: -1s; }
.detail:nth-child(8) { right: 5%; bottom: 17%; animation-delay: -5s; }
@keyframes float { 50% { transform: translateY(12px) rotate(7deg); } }
.snow { position: absolute; inset: 0; }
.snow i {
  position: absolute;
  top: -24px;
  left: calc((var(--i) * 5 + 2) * 1%);
  color: white;
  font-size: calc(8px + (var(--i) % 4) * 2px);
  opacity: .62;
  font-style: normal;
  animation: snowfall calc(8s + (var(--i) % 5) * 2s) linear infinite;
  animation-delay: calc(var(--i) * -.7s);
}
@keyframes snowfall { to { transform: translate3d(calc((var(--i) % 2 * 2 - 1) * 28px), 105vh, 0) rotate(160deg); } }

.hero, .memory-section, footer { position: relative; z-index: 1; width: min(1060px, calc(100% - 48px)); margin-left: auto; margin-right: auto; }
.topbar {
  position: relative;
  z-index: 5;
  width: min(1180px, calc(100% - 48px));
  margin: auto;
  min-height: 102px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(68,57,46,.18);
}
.brand { display: flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; font-weight: bold; font-size: 21px; letter-spacing: .02em; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid currentColor; border-radius: 50% 47% 52% 46%; font-style: italic; font-size: 24px; background: rgba(255,250,240,.42); }
.brand small { display: block; font: italic 11px Georgia,serif; font-weight: normal; letter-spacing: .08em; margin-top: 2px; opacity: .72; }
.topbar nav { display: flex; align-items: center; gap: 30px; }
.topbar nav a, .topbar nav button { color: inherit; text-decoration: none; background: none; border: 0; cursor: pointer; font-size: 14px; }
.topbar nav button { border: 1px solid currentColor; border-radius: 999px; padding: 11px 18px; background: rgba(255,250,240,.28); }

.hero { text-align: center; padding: 52px 24px 34px; }
.paw { font-size: 2rem; }
.hero h1 { font-size: clamp(2.7rem, 7vw, 5rem); margin: 12px 0 8px; line-height: 1; font-weight: bold; letter-spacing: -.035em; }
.hero p { font-size: 1.15rem; max-width: 530px; margin: auto; line-height: 1.55; }
.hero-story cite { display: block; margin-top: 7px; color: var(--muted); font-size: .92rem; font-style: normal; }
.primary-button { border: 0; border-radius: 999px; padding: 14px 20px; white-space: nowrap; background: var(--accent); color: white; font: 600 1rem Georgia,serif; cursor: pointer; box-shadow: 0 8px 22px rgba(95,66,56,.13); }

.memory-section { padding: 0 0 66px; }
.section-title { text-align: center; font-size: 2rem; margin: 0 0 20px; }
.search { max-width: 430px; margin: 0 auto 28px; position: relative; display: block; }
.search > span:first-child { position: absolute; left: 16px; top: 11px; font-size: 20px; z-index: 1; }
.search input { width: 100%; border: 1px solid rgba(101,85,63,.28); border-radius: 999px; padding: 13px 18px 13px 42px; background: var(--card); color: var(--ink); outline-color: var(--accent); backdrop-filter: blur(8px); }
.search input::placeholder { color: currentColor; opacity: .65; }
.memorial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.memorial-card {
  position: relative;
  min-width: 0;
  text-align: left;
  color: var(--ink);
  background: var(--card);
  border: 0;
  padding: 14px 14px 20px;
  border-radius: 20px;
  box-shadow: 0 12px 26px rgba(83,72,52,.12);
  transform: rotate(var(--tilt));
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  backdrop-filter: blur(8px);
}
.memorial-card:hover, .memorial-card:focus-visible { transform: rotate(0) translateY(-5px); box-shadow: 0 17px 30px rgba(83,72,52,.19); }
.pet-portrait { width: 100%; height: 205px; object-fit: cover; border-radius: 14px; }
.symbol-portrait { display: grid; place-items: center; font-size: 5.3rem; background: var(--wash); }
.card-copy { display: block; padding: 14px 2px 0; }
.card-copy strong { display: block; font-size: 1.45rem; }
.card-copy > span { display: block; margin-top: 3px; font-size: .9rem; opacity: .72; }
.card-copy small { display: -webkit-box; margin-top: 10px; line-height: 1.48; font-size: .96rem; font-style: normal; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.no-results { grid-column: 1 / -1; text-align: center; margin: 22px 0; font-style: italic; }
.gallery-loading-controls { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 28px; }
.load-more-button { min-width: 210px; }
.auto-load-toggle { min-width: 220px; border: 1px solid rgba(95,66,56,.25); border-radius: 999px; padding: 12px 18px; background: rgba(255,250,240,.72); color: var(--ink); font: 600 .95rem Georgia,serif; cursor: pointer; }
.auto-load-toggle span { display: inline-block; min-width: 30px; margin-left: 8px; color: var(--accent); }
.auto-load-toggle[aria-pressed="true"] { background: rgba(224,238,218,.9); border-color: rgba(78,118,79,.45); }
.auto-load-sentinel { height: 1px; }
footer { text-align: center; padding: 0 24px 36px; opacity: .82; font-size: .9rem; }
footer span { margin: 0 5px; }
footer p { margin: 0 0 12px; }
.footer-links { display: flex; align-items: center; justify-content: center; gap: 8px; }
.footer-removal-button { border: 0; border-bottom: 1px solid currentColor; padding: 2px 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.footer-removal-button:hover { color: var(--accent); }
.footer-links a { color: inherit; text-underline-offset: 3px; }
.footer-links a:hover { color: var(--accent); }

.support-page { position: relative; min-height: 100vh; overflow-x: hidden; overflow-y: auto; padding: 0 24px 48px; color: #3f4b45; background: linear-gradient(180deg,#f8e7bd 0%,#eef0cf 52%,#fff8e9 100%); }
.support-sky { position: fixed; inset: 0; pointer-events: none; opacity: .42; }
.support-sky::before { content: ""; position: absolute; top: 100px; right: 9%; width: 100px; height: 100px; border-radius: 50%; background: #ffe59a; box-shadow: 0 0 40px rgba(255,218,125,.55); }
.support-sky::after { content: ""; position: absolute; left: -8%; right: -8%; bottom: -80px; height: 34%; border-radius: 50% 50% 0 0; background: #a9c88d; }
.support-sky span { position: absolute; color: #d18275; font-size: 24px; }
.support-sky span:nth-child(1) { left: 12%; top: 23%; }
.support-sky span:nth-child(2) { right: 17%; top: 43%; color: #71936d; }
.support-sky span:nth-child(3) { left: 22%; top: 62%; font-size: 16px; }
.support-header { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; width: min(1060px,100%); min-height: 96px; margin: 0 auto; border-bottom: 1px solid rgba(101,85,63,.2); }
.support-home-link { color: #536f58; text-decoration: none; font-size: .9rem; }
.support-home-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.support-hero { position: relative; z-index: 1; width: min(740px,100%); margin: 72px auto 40px; text-align: center; }
.support-hero h1 { margin: 0; font-size: clamp(2.8rem,7vw,4.8rem); font-weight: normal; line-height: .98; letter-spacing: -.045em; }
.support-hero > p:last-child { max-width: 620px; margin: 22px auto 0; color: #746b60; font-size: 1.08rem; line-height: 1.7; }
.support-contents { position: relative; z-index: 1; width: min(920px,100%); margin: 0 auto 24px; padding: 24px 28px; border: 1px solid rgba(101,85,63,.2); border-radius: 22px; background: rgba(255,250,240,.78); box-shadow: 0 10px 24px rgba(83,72,52,.08); }
.support-contents h2 { margin: 0 0 16px; font-size: 1.5rem; font-weight: normal; }
.support-contents-links { display: flex; flex-wrap: wrap; gap: 10px; }
.support-contents a { padding: 9px 13px; border: 1px solid rgba(101,85,63,.16); border-radius: 999px; color: #536f58; background: rgba(255,255,255,.5); text-decoration: none; font-size: .9rem; }
.support-contents a:hover, .support-contents a:focus-visible { border-color: rgba(83,111,88,.48); background: rgba(230,223,189,.56); text-decoration: underline; text-underline-offset: 3px; }
.support-contents a:focus-visible { outline: 3px solid rgba(83,111,88,.28); outline-offset: 2px; }
.support-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; width: min(920px,100%); margin: 0 auto; }
.support-grid article { padding: 28px; border: 1px solid rgba(101,85,63,.2); border-radius: 22px; background: rgba(255,250,240,.86); box-shadow: 0 12px 28px rgba(83,72,52,.1); }
.support-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 16px; border-radius: 50%; color: #536f58; background: #e6dfbd; font-size: 20px; }
.support-grid h2 { margin: 0 0 10px; font-size: 1.55rem; font-weight: normal; }
.support-grid p { margin: 0; color: #746b60; line-height: 1.65; }
.support-grid p a { color: #536f58; font-weight: 600; text-underline-offset: 3px; overflow-wrap: anywhere; }
.support-contact-card { grid-column: 1 / -1; }
.support-removal-card .primary-button { display: inline-block; margin-top: 20px; text-decoration: none; }
.support-website { position: relative; z-index: 1; width: min(920px,100%); margin: 0 auto 32px; padding: 28px 32px; border: 1px solid rgba(126,89,58,.25); border-radius: 22px; background: linear-gradient(110deg,rgba(255,244,214,.94),rgba(244,229,198,.9)); box-shadow: 0 12px 28px rgba(83,72,52,.09); }
.support-website-main { min-width: 0; }
.support-coffee-mark { display: grid; place-items: center; flex: 0 0 66px; width: 66px; height: 66px; border-radius: 50%; background: rgba(181,129,82,.16); font-size: 30px; }
.support-website h2 { margin: 0 0 8px; font-size: 1.8rem; font-weight: normal; }
.support-website .support-website-copy { max-width: 680px; margin: 0; color: #746b60; line-height: 1.65; }
.support-coffee-link { display: inline-block; margin-top: 18px; text-decoration: none; }
.current-supporters { display: flex; align-items: flex-start; gap: 24px; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(126,89,58,.2); }
.current-supporters > div { flex: 1; min-width: 0; }
.current-supporters h3 { margin: 0 0 12px; font-size: 1.25rem; font-weight: normal; }
.current-supporters .supporters-subtitle { margin: -5px 0 8px; color: #755b44; font-style: italic; }
.current-supporters .supporters-gratitude { max-width: 650px; margin: 0 0 16px; color: #746b60; font-size: .9rem; line-height: 1.55; }
.current-supporters ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.current-supporters li { padding: 7px 11px; border: 1px solid rgba(126,89,58,.18); border-radius: 999px; color: #5a4e42; background: rgba(255,250,240,.7); font-size: .88rem; }
.supporter-vip-star { position: relative; display: inline-block; margin-left: 5px; color: #b47720; cursor: help; outline-offset: 3px; }
.supporter-vip-star::after { position: absolute; z-index: 10; left: 50%; bottom: calc(100% + 9px); width: max-content; max-width: 220px; padding: 7px 10px; border-radius: 8px; color: #fffaf0; background: #514638; box-shadow: 0 6px 16px rgba(54,43,31,.2); content: attr(data-tooltip); font: 12px/1.35 Arial,sans-serif; opacity: 0; pointer-events: none; transform: translate(-50%,4px); transition: opacity .15s ease,transform .15s ease; }
.supporter-vip-star:hover::after, .supporter-vip-star:focus-visible::after { opacity: 1; transform: translate(-50%,0); }
.current-supporters .supporters-empty { margin: 0; color: #746b60; font-style: italic; line-height: 1.55; }
.current-sponsors { display: flex; align-items: flex-start; gap: 24px; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(126,89,58,.2); }
.current-sponsors > div { flex: 1; min-width: 0; }
.sponsors-section-mark { display: grid; place-items: center; flex: 0 0 66px; width: 66px; height: 66px; border-radius: 50%; color: #9a671f; background: rgba(181,129,82,.16); font-size: 30px; }
.current-sponsors h3 { margin: 0 0 12px; font-size: 1.25rem; font-weight: normal; }
.current-sponsors .sponsors-subtitle { margin: -5px 0 8px; color: #755b44; font-style: italic; }
.current-sponsors .sponsors-gratitude { max-width: 650px; margin: 0 0 16px; color: #746b60; font-size: .9rem; line-height: 1.55; }
.current-sponsors ul, .sponsor-strip ul { display: flex; flex-wrap: wrap; gap: 9px; margin: 0; padding: 0; list-style: none; }
.current-sponsors li, .sponsor-strip li { border: 1px solid rgba(83,111,88,.28); border-radius: 999px; background: rgba(255,250,240,.78); }
.current-sponsors a, .sponsor-strip a { display: inline-flex; align-items: center; padding: 8px 12px; color: #405e49; font-size: .88rem; font-weight: 700; text-decoration: none; }
.current-sponsors a:hover, .current-sponsors a:focus-visible, .sponsor-strip a:hover, .sponsor-strip a:focus-visible { color: #744d34; text-decoration: underline; text-underline-offset: 3px; }
.sponsors-empty { margin: 0; color: #746b60; font-style: italic; line-height: 1.55; }
.sponsor-strip { position: relative; z-index: 1; width: min(920px,calc(100% - 48px)); margin: 8px auto 24px; padding: 18px 22px; border: 1px solid rgba(83,111,88,.2); border-radius: 18px; background: rgba(255,250,240,.7); text-align: center; }
.sponsor-strip-title { margin: 0 0 11px; color: #6c6258; font-size: .82rem; font-style: italic; }
.sponsor-strip ul { justify-content: center; }
.support-footer { position: relative; z-index: 1; width: min(920px,100%); margin: 48px auto 0; padding: 24px 0 0; border-top: 1px solid rgba(101,85,63,.2); }
.support-footer a { color: #536f58; text-underline-offset: 3px; }
.support-footer p { margin-top: 12px; }
.support-footer a + a { margin-left: 18px; }
.legal-hero { margin-bottom: 28px; }
.legal-hero .legal-updated { margin-top: 12px; font: 700 11px Arial,sans-serif; text-transform: uppercase; letter-spacing: .09em; }
.legal-toc { position: relative; z-index: 1; width: min(920px,100%); margin: 0 auto 24px; padding: 24px; border: 1px solid rgba(101,85,63,.2); border-radius: 22px; background: rgba(255,250,240,.88); box-shadow: 0 12px 28px rgba(83,72,52,.08); }
.legal-toc h2 { margin: 0 0 15px; font-size: 1.55rem; font-weight: normal; }
.legal-toc ol { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.legal-toc a { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 11px 13px; border: 1px solid rgba(101,85,63,.18); border-radius: 13px; color: #536f58; background: #fffdf7; text-decoration: none; }
.legal-toc a:hover, .legal-toc a:focus-visible { border-color: #536f58; box-shadow: 0 5px 15px rgba(83,72,52,.08); }
.legal-toc a span { color: #a06f55; font: 700 10px Arial,sans-serif; letter-spacing: .08em; }
.legal-content { position: relative; z-index: 1; display: grid; gap: 24px; width: min(920px,100%); margin: 0 auto; }
.legal-section { scroll-margin-top: 24px; padding: clamp(25px,5vw,46px); border: 1px solid rgba(101,85,63,.2); border-radius: 24px; background: rgba(255,250,240,.92); box-shadow: 0 14px 34px rgba(83,72,52,.09); }
.legal-section h2 { margin: 0 0 22px; font-size: clamp(2rem,5vw,3.1rem); font-weight: normal; letter-spacing: -.025em; }
.legal-section h3 { margin: 28px 0 8px; color: #536f58; font-size: 1.25rem; font-weight: normal; }
.legal-section p { max-width: 760px; margin: 0 0 14px; color: #625c54; font-size: 1rem; line-height: 1.75; }
.legal-section ul { max-width: 740px; margin: 4px 0 18px; padding-left: 24px; color: #625c54; line-height: 1.7; }
.legal-section li + li { margin-top: 5px; }
.legal-section code { padding: 2px 6px; border-radius: 6px; background: #eee5d3; font-size: .9em; }
.legal-back-to-top { display: inline-block; margin-top: 14px; color: #805b43; text-underline-offset: 4px; }
.legal-note { position: relative; z-index: 1; width: min(920px,100%); margin: 24px auto 0; padding: 20px 24px; border-left: 4px solid #b98369; border-radius: 0 14px 14px 0; background: rgba(255,244,214,.9); }
.legal-note p { margin: 6px 0 0; color: #625c54; line-height: 1.6; }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; overflow: auto; padding: 32px 16px; background: rgba(24,31,40,.52); backdrop-filter: blur(5px); }
.tribute-view, .submit-view { position: relative; width: min(680px,100%); margin: auto; padding: 24px; border-radius: 24px; color: var(--ink); background: var(--paper); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.close-button { position: absolute; z-index: 2; right: 14px; top: 13px; border: 0; border-radius: 50%; width: 36px; height: 36px; background: var(--accent); color: white; font-size: 1.3rem; cursor: pointer; }
.tribute-hero { display: block; text-align: center; padding: 5px 40px 10px; }
.pet-portrait.large { width: 100%; height: 240px; aspect-ratio: auto; border-radius: 18px; margin-bottom: 16px; box-shadow: none; font-size: 7rem; }
.featured-photo { position: relative; height: 240px; margin: 0 0 16px; overflow: hidden; border-radius: 18px; background: color-mix(in srgb, var(--accent) 16%, var(--card)); }
.featured-photo img { width: 100%; height: 100%; display: block; object-fit: cover; transition: opacity .2s ease; }
.featured-photo figcaption { position: absolute; left: 12px; right: 12px; bottom: 10px; width: fit-content; max-width: calc(100% - 24px); margin: auto; padding: 6px 11px; border-radius: 999px; color: white; background: rgba(32,34,32,.68); font-size: .82rem; backdrop-filter: blur(5px); }
.return-primary { position: absolute; top: 10px; left: 10px; border: 0; border-radius: 999px; padding: 7px 11px; color: white; background: rgba(32,34,32,.7); font-size: .78rem; cursor: pointer; backdrop-filter: blur(5px); }
.tribute-hero h2 { font-size: 2.3rem; margin: 0; font-weight: bold; }
.eyebrow { margin: 0 0 6px; text-transform: uppercase; letter-spacing: .15em; font: 700 10px Arial,sans-serif; color: var(--leaf); }
.dates { font-size: .95rem; margin: 5px 0 3px; opacity: .72; }
.kind { margin: 0; font-size: .9rem; color: var(--leaf); }
.story-copy { line-height: 1.55; text-align: center; max-width: 540px; margin: 10px auto 18px; font-size: 1rem; }
.drop-cap { float: none; font-size: inherit; line-height: inherit; margin: 0; color: inherit; }
.tribute-view h3 { display: block; text-align: center; margin: 0 0 12px; font-size: 1.17rem; }
.tribute-view h3 span { color: var(--accent); font-size: .7rem; }
.moments-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.moment-photo { position: relative; height: 115px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 13px; color: white; background: color-mix(in srgb, var(--accent) 16%, var(--card)); cursor: pointer; }
.moment-photo img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .2s ease, filter .2s ease; }
.moment-photo span { position: absolute; left: 6px; right: 6px; bottom: 6px; padding: 4px 6px; border-radius: 8px; background: rgba(28,31,29,.66); font-size: .72rem; line-height: 1.2; backdrop-filter: blur(4px); }
.moment-photo:hover img, .moment-photo:focus-visible img, .moment-photo.selected img { transform: scale(1.04); filter: saturate(1.08); }
.moment-photo.selected { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); }
.no-moment-photos { text-align: center; color: var(--muted); font-style: italic; }
.birthday-candle { display: flex; align-items: center; justify-content: center; gap: 16px; max-width: 500px; margin: 24px auto 2px; padding: 18px 20px; border-top: 1px solid var(--line); text-align: left; }
.birthday-candle.compact { justify-content: flex-start; gap: 7px; margin: 9px 2px -3px; padding: 7px 10px; border: 0; border-radius: 12px; color: #684b34; background: #fff4d6; box-shadow: inset 0 0 0 1px rgba(161,113,57,.2); }
.birthday-candle-copy { font-size: .9rem; line-height: 1.35; font-style: italic; }
.birthday-candle.compact .birthday-candle-copy { font-size: .76rem; font-weight: 700; font-style: normal; }
.memorial-candle { position: relative; display: block; flex: 0 0 42px; width: 42px; height: 78px; filter: drop-shadow(0 5px 5px rgba(79,61,43,.14)); }
.birthday-candle.compact .memorial-candle { transform: scale(.58); transform-origin: center; margin: -17px -9px; }
.candle-wax { position: absolute; left: 4px; right: 4px; bottom: 0; height: 49px; border-radius: 9px 9px 7px 7px; background: linear-gradient(90deg,#e8d5b6,#fff8e9 47%,#dec49b); box-shadow: inset 0 3px 0 rgba(255,255,255,.7); }
.candle-wick { position: absolute; z-index: 1; left: 20px; bottom: 48px; width: 2px; height: 9px; border-radius: 2px; background: #665440; }
.candle-flame { position: absolute; z-index: 2; left: 14px; bottom: 55px; width: 14px; height: 22px; border-radius: 70% 45% 65% 40%; background: linear-gradient(#fff7b0 12%,#efaa46 58%,#d7723e); opacity: 0; transform: translateY(3px) rotate(4deg) scale(.6); transform-origin: 50% 100%; }
.memorial-candle.is-lit .candle-flame { opacity: 1; animation: candle-flicker 2.4s ease-in-out infinite alternate; box-shadow: 0 -2px 14px rgba(240,169,72,.55); }
@keyframes candle-flicker {
  0% { transform: translateY(0) rotate(-3deg) scale(1,.97); }
  45% { transform: translateY(-1px) rotate(4deg) scale(.94,1.04); }
  100% { transform: translateY(0) rotate(1deg) scale(1.03,.96); }
}

.submit-view { width: min(760px,100%); }
.submit-view form { padding: 4px 12px; }
.submit-view h2 { margin: 0; font-size: 2.35rem; }
.form-intro { color: var(--muted); font-style: italic; margin: 8px 0 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.submit-view label, .submit-view legend { display: block; font: 700 10px Arial,sans-serif; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 18px; }
.submit-view input, .submit-view textarea { display: block; width: 100%; margin-top: 7px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); padding: 12px; color: var(--ink); text-transform: none; letter-spacing: normal; font: 15px Georgia,serif; }
.submit-view textarea { resize: vertical; }
.story-character-count { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; text-align: right; }
.birth-date-field > small { text-transform: none; letter-spacing: normal; font: italic 12px Georgia,serif; }
.field-helper { display: block; margin-top: 7px; color: var(--muted); text-transform: none; letter-spacing: normal; font: italic 13px/1.45 Georgia,serif; }
.submit-view fieldset { border: 0; padding: 0; margin: 4px 0; }
.submit-view fieldset legend { margin-bottom: 12px; }
.submit-view fieldset legend small { display: block; margin-top: 4px; text-transform: none; letter-spacing: normal; font: italic 13px Georgia,serif; }
.upload input[type="file"] { position: absolute !important; width: 1px !important; height: 1px !important; margin: 0 !important; padding: 0 !important; border: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; opacity: 0; pointer-events: none; }
.upload span { display: inline-block; max-width: 100%; margin-top: 7px; padding: 12px 18px; overflow-wrap: anywhere; border: 1px dashed currentColor; border-radius: 9px; cursor: pointer; text-transform: none; letter-spacing: normal; font: italic 14px Georgia,serif; }
.upload span.is-selected { border-style: solid; border-color: #71936d; color: #36543b; background: #e8f0e4; font-style: normal; font-weight: 700; }
.moment-upload-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.moment-upload { padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: color-mix(in srgb, var(--card) 82%, transparent); }
.moment-upload label { margin-bottom: 10px; }
.moment-upload label:last-child { margin-bottom: 0; }
.review-message { text-align: center; padding: 55px 35px; }
.review-message > span { display: grid; place-items: center; width: 82px; height: 82px; margin: 0 auto 26px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 25%, var(--card)); font-size: 32px; }
.review-message h2 { margin: 0; font-size: 2.4rem; }
.review-message p:not(.eyebrow) { max-width: 560px; margin: 16px auto 27px; line-height: 1.7; color: var(--muted); }
.removal-code-card { max-width: 520px; margin: 24px auto; padding: 20px; border: 1px dashed #ad8a5a; border-radius: 16px; background: #fff8e9; }
.removal-code-card strong { display: block; margin-bottom: 10px; }
.removal-code-card code { display: block; margin: 6px 0 10px; color: #3e5645; font: 700 clamp(1.15rem,4vw,1.55rem)/1.3 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing: .08em; overflow-wrap: anywhere; }
.review-message .removal-code-card p { margin: 8px auto 15px; font-size: .92rem; line-height: 1.55; }
.copy-code-button { border: 1px solid #8c7658; border-radius: 999px; padding: 9px 16px; background: transparent; color: #514637; cursor: pointer; }
.review-support-card { display: flex; align-items: center; gap: 16px; max-width: 520px; margin: 0 auto 24px; padding: 18px 20px; text-align: left; border: 1px solid var(--line); border-radius: 16px; background: color-mix(in srgb, var(--accent) 10%, var(--card)); }
.review-support-card > span { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; background: rgba(181,129,82,.16); font-size: 23px; }
.review-support-card strong { display: block; color: var(--ink); }
.review-message .review-support-card p { margin: 5px 0 12px; font-size: .9rem; line-height: 1.5; }
.review-support-link { display: inline-block; padding: 9px 15px; border: 1px solid var(--accent); border-radius: 999px; color: var(--accent); font-size: 12px; font-weight: 700; text-decoration: none; }
.removal-request-view { width: min(560px,100%); }
.request-unavailable { color: #7a6f62; font-size: .85rem; font-style: italic; }

.admin-page { min-height: 100vh; padding: 54px max(24px,calc((100vw - 1060px)/2)) 90px; color: #3f4b45; background: linear-gradient(180deg,#f9e9c5,#fff8e9); }
.admin-back { color: #536f58; font-size: 13px; text-decoration: none; }
.admin-lock { width: min(520px,100%); margin: 90px auto 0; padding: 50px; text-align: center; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,253,247,.88); box-shadow: 0 16px 35px rgba(83,72,52,.12); }
.lock-mark { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 24px; border-radius: 50%; background: #eadbc2; font-size: 31px; }
.admin-lock h1, .admin-header h1 { margin: 0; font-size: 46px; font-weight: normal; letter-spacing: -.035em; }
.admin-lock > p:not(.eyebrow) { color: #746b60; font-style: italic; line-height: 1.6; }
.admin-lock form { margin: 28px auto 22px; max-width: 330px; }
.admin-lock label { display: block; text-align: left; font: 700 10px Arial,sans-serif; text-transform: uppercase; letter-spacing: .12em; color: #746b60; }
.admin-lock input { display: block; width: 100%; margin: 8px 0 18px; padding: 13px; border: 1px solid var(--line); border-radius: 9px; background: #fffaf0; color: #3f4b45; }
.admin-lock small { color: #746b60; }
.admin-error { color: #9f453d !important; font-size: 13px; font-style: normal !important; }
.admin-header { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding-bottom: 35px; border-bottom: 1px solid var(--line); }
.admin-header .admin-back { display: inline-block; margin-bottom: 52px; }
.admin-header .eyebrow { margin-bottom: 10px; }
.admin-header > div > p:last-child { margin: 10px 0 0; color: #746b60; font-style: italic; }
.admin-signout { border: 1px solid var(--line); border-radius: 999px; background: transparent; padding: 11px 16px; color: #3f4b45; cursor: pointer; }
.admin-tabs { display: flex; gap: 7px; margin: 28px 0 0; padding: 6px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,253,247,.58); width: fit-content; max-width: 100%; }
.admin-tabs button { display: flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 11px 16px; background: transparent; color: #3f4b45; cursor: pointer; }
.admin-tabs button[aria-selected="true"] { background: #536f58; color: white; }
.admin-tabs button span { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px; background: rgba(255,255,255,.25); font-size: 11px; }
.admin-tabs button:not([aria-selected="true"]) span { background: #e7ddca; }
.admin-panel { padding-top: 32px; }
.panel-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 21px; }
.panel-heading h2 { margin: 0; font-size: 31px; font-weight: normal; }
.panel-heading p { margin: 7px 0 0; color: #746b60; font-style: italic; }
.admin-search { position: relative; width: min(330px,100%); }
.admin-search > span[aria-hidden="true"] { position: absolute; left: 15px; top: 10px; font-size: 20px; }
.admin-search input { width: 100%; padding: 12px 16px 12px 40px; border: 1px solid var(--line); border-radius: 999px; color: #3f4b45; background: #fffaf0; }
.review-list { display: grid; gap: 18px; margin-top: 34px; }
.review-card { display: grid; grid-template-columns: 175px 1fr auto; gap: 28px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: #fffaf0; box-shadow: 0 12px 26px rgba(83,72,52,.09); }
.review-card > img, .review-placeholder { width: 175px; height: 175px; border-radius: 14px; object-fit: cover; background: #dfd1b5; }
.review-placeholder { display: grid; place-items: center; font-size: 48px; color: #8e7661; }
.review-copy .eyebrow { margin-bottom: 5px; }
.review-copy h2, .review-copy h3 { font-size: 32px; font-weight: normal; margin: 0; }
.review-dates { color: #746b60; font-style: italic; margin: 4px 0 14px; }
.review-story { line-height: 1.6; margin: 0; }
.review-copy details { margin-top: 12px; color: #536f58; font-size: 13px; }
.review-moment-photos { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 13px; }
.review-moment-photos img { width: 54px; height: 54px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); }
.review-copy summary { cursor: pointer; }
.review-copy ul { columns: 2; padding-left: 18px; color: #746b60; }
.review-actions { display: flex; flex-direction: column; gap: 10px; }
.review-actions button { border: 0; border-radius: 999px; padding: 12px 18px; cursor: pointer; }
.approve { background: #536f58; color: white; }
.reject { background: #ead8d2; color: #7a433d; }
.memory-management-list { display: grid; gap: 11px; }
.memory-row { display: grid; grid-template-columns: 72px minmax(170px,1fr) auto auto; gap: 18px; align-items: center; padding: 12px 15px; border: 1px solid var(--line); border-radius: 16px; background: #fffaf0; box-shadow: 0 7px 17px rgba(83,72,52,.055); }
.memory-row > img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; background: #dfd1b5; }
.memory-row h3 { margin: 0 0 4px; font-size: 23px; font-weight: normal; }
.memory-row p { margin: 0; color: #746b60; font-size: 13px; font-style: italic; }
.status-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 88px; border-radius: 999px; padding: 7px 11px; text-transform: capitalize; font: 700 10px Arial,sans-serif; letter-spacing: .05em; }
.status-approved { color: #36543b; background: #dce8d6; }
.status-pending { color: #775e32; background: #eee1bd; }
.status-rejected { color: #7a433d; background: #ead8d2; }
.status-archived { color: #5f5d58; background: #e3e0da; }
.archive-button, .restore-button, .delete-button { border: 0; border-radius: 999px; padding: 10px 14px; cursor: pointer; }
.archive-button { color: #57544f; background: #e8e2d7; }
.restore-button { color: white; background: #536f58; }
.delete-button { color: #8d3e36; background: #f0ded9; }
.archive-actions { display: flex; gap: 8px; }
.moderator-management { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(320px, 1.2fr); gap: 22px; align-items: start; }
.moderator-form, .moderator-list { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fffaf0; box-shadow: 0 7px 17px rgba(83,72,52,.055); }
.moderator-form h3, .moderator-list h3 { margin: 0 0 18px; font-size: 23px; font-weight: normal; }
.moderator-form label { display: block; margin-bottom: 15px; font: 700 10px Arial,sans-serif; text-transform: uppercase; letter-spacing: .1em; color: #746b60; }
.moderator-form input { display: block; width: 100%; margin-top: 7px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: white; color: #3f4b45; text-transform: none; letter-spacing: normal; font: 15px Georgia,serif; }
.moderator-form .supporter-vip-option { display: flex; align-items: center; gap: 9px; font-size: 12px; }
.moderator-form .supporter-vip-option input { display: inline-block; width: 18px; height: 18px; margin: 0; padding: 0; accent-color: #8f672f; }
.moderator-success { color: #36543b; margin: 14px 0 0; font-size: 13px; }
.moderator-list article { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); }
.moderator-list article div { display: grid; gap: 3px; }
.moderator-list article span { color: #746b60; font-size: 12px; }
.moderator-list article button { border: 0; border-radius: 999px; padding: 8px 11px; color: #8d3e36; background: #f0ded9; cursor: pointer; }
.moderator-list .supporter-admin-actions { display: flex; grid-auto-flow: column; align-items: center; gap: 8px; }
.moderator-list .supporter-vip-toggle { color: #735319; background: #f3e8bd; }
.moderator-list .supporter-vip-toggle[aria-pressed="true"] { color: #fffaf0; background: #8f672f; }

@media (prefers-reduced-motion: reduce) {
  .supporter-vip-star::after { transition: none; }
}
.empty-review { text-align: center; padding: 100px 20px; border: 1px dashed var(--line); border-radius: 24px; }
.empty-review span { font-size: 38px; }
.empty-review h2 { font-size: 32px; font-weight: normal; margin: 16px 0 5px; }
.empty-review p { color: #746b60; }

@media (max-width: 780px) {
  .memorial-grid { grid-template-columns: repeat(2,1fr); }
  .tree-left { left: 5%; }
  .tree-right { right: 7%; }
  .review-card { grid-template-columns: 95px 1fr; }
  .review-card > img, .review-placeholder { width: 95px; height: 95px; }
  .review-actions { grid-column: 1 / -1; flex-direction: row; }
  .review-actions button { flex: 1; }
  .memory-row { grid-template-columns: 72px 1fr auto; }
  .memory-row > .archive-button, .memory-row > .archive-actions { grid-column: 2 / -1; justify-self: end; }
  .moderator-management { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .support-page { padding-inline: 16px; }
  .support-header { min-height: 82px; }
  .support-home-link { font-size: .78rem; }
  .support-hero { margin-top: 52px; }
  .support-contents { padding: 21px; }
  .support-contents-links { display: grid; grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .support-grid article { padding: 23px; }
  .legal-toc ol { grid-template-columns: 1fr; }
  .support-footer a { display: block; width: fit-content; margin: 0 0 10px; }
  .support-footer a + a { margin-left: 0; }
  .support-website { padding: 23px; }
  .support-coffee-mark { flex-basis: 48px; width: 48px; height: 48px; font-size: 23px; }
  .current-supporters, .current-sponsors { gap: 24px; }
  .sponsors-section-mark { flex-basis: 48px; width: 48px; height: 48px; font-size: 23px; }
  .sponsor-strip { width: calc(100% - 32px); padding: 16px; }
  .topbar { width: calc(100% - 32px); min-height: 82px; }
  .topbar nav { gap: 12px; }
  .topbar nav a:first-child { display: none; }
  .topbar nav a, .topbar nav button { font-size: 12px; }
  .brand { font-size: 17px; }
  .brand-mark { width: 35px; height: 35px; }
  .brand small { display: none; }
  .hero { padding-top: 45px; width: calc(100% - 30px); }
  .hero h1 { font-size: 3rem; }
  .memory-section { width: calc(100% - 32px); }
  .memorial-grid { grid-template-columns: 1fr; }
  .pet-portrait { height: 190px; }
  .tree { opacity: .68; }
  .moments-grid { grid-template-columns: repeat(2,1fr); }
  .moment-photo { height: 105px; }
  .form-grid { grid-template-columns: 1fr; }
  .moment-upload-grid { grid-template-columns: 1fr; }
  .submit-view { padding: 52px 20px 26px; }
  .review-message { padding: 30px 5px; }
  .admin-lock { margin-top: 45px; padding: 36px 22px; }
  .admin-header { display: block; }
  .admin-header .admin-back { margin-bottom: 42px; }
  .admin-signout { margin-top: 20px; }
  .admin-tabs { width: 100%; overflow-x: auto; border-radius: 18px; }
  .admin-tabs button { flex: 0 0 auto; }
  .panel-heading { display: block; }
  .admin-search { display: block; margin-top: 18px; }
  .memory-row { grid-template-columns: 58px 1fr; gap: 12px; }
  .memory-row > img { width: 58px; height: 58px; }
  .memory-row > .status-pill { grid-column: 1; grid-row: 2; min-width: 0; }
  .memory-row > .archive-button, .memory-row > .archive-actions { grid-column: 2; grid-row: 2; justify-self: end; }
  .archive-actions { flex-wrap: wrap; justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .ground, .tree, .orb { transform: none !important; }
}

/* Mochahost production edition */
dialog { position: fixed; inset: 14px 0 auto; width: min(1040px,calc(100% - 28px)); max-height: calc(100vh - 28px); max-height: calc(100dvh - 28px); margin: auto; padding: 0; border: 0; border-radius: 24px; color: var(--ink); background: transparent; box-shadow: 0 24px 70px rgba(27,31,31,.32); }
dialog::backdrop { background: rgba(24,31,40,.56); backdrop-filter: blur(5px); }
dialog[open] { display: block; }
[hidden] { display: none !important; }
.form-dialog { width: min(760px,calc(100% - 28px)); overflow: visible; background: transparent; box-shadow: none; }
.form-dialog .submit-view { position: relative; width: 100%; max-height: calc(100vh - 28px); max-height: calc(100dvh - 28px); margin: 0; overflow: auto; overscroll-behavior: contain; }
.tribute-dialog { overflow: auto; background: #fffaf0; }
.tribute-dialog .tribute-view { min-height: 620px; }
.tribute-dialog .tribute-view { display: grid; grid-template-columns: minmax(240px,.82fr) minmax(0,1.18fr); gap: 24px; width: 100%; }
.tribute-photo { position: sticky; top: 0; height: 430px; overflow: hidden; border-radius: 18px; background: #eadbc2; }
.tribute-photo img { width: 100%; height: 100%; object-fit: cover; }
.tribute-content { padding: 15px 30px 12px 0; }
.tribute-content h2 { margin: 0; font-size: 2.45rem; }
.tribute-content .years { color: #746b60; font-style: italic; }
.tribute-story { line-height: 1.65; }
.tribute-content h3 { margin-top: 24px; text-align: left; }
.moment-gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.moment-thumb { position: relative; height: 105px; overflow: hidden; padding: 0; border: 2px solid transparent; border-radius: 12px; color: white; background: #d9c8aa; cursor: pointer; }
.moment-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .16s ease; }
.moment-thumb span { position: absolute; left: 5px; right: 5px; bottom: 5px; padding: 4px; border-radius: 7px; background: rgba(30,31,29,.67); font-size: 11px; line-height: 1.25; }
.moment-thumb:hover img, .moment-thumb:focus-visible img { transform: scale(1.04); }
.tribute-content .no-moment-photos { color: #746b60; font-style: italic; }
.tribute-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 12px; margin-top: 22px; }
.share-memory-button { border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; color: var(--ink); background: rgba(255,253,247,.72); cursor: pointer; box-shadow: 0 6px 15px rgba(83,72,52,.08); }
.share-memory-button:hover { border-color: var(--accent); color: var(--accent); }
.share-memory-button span { margin-right: 5px; }
.share-status { min-height: 1.2em; color: #746b60; font-size: .85rem; font-style: italic; }
.staff-note { margin: 0 0 20px; padding: 15px 17px; border: 1px solid rgba(122,91,49,.24); border-left: 4px solid #c28a55; border-radius: 12px; color: #514637; background: #fff4d9; box-shadow: 0 7px 16px rgba(91,70,44,.07); }
.staff-note strong { display: block; margin-bottom: 5px; color: #805b33; font: 700 11px Arial,sans-serif; text-transform: uppercase; letter-spacing: .1em; }
.staff-note p { margin: 0; line-height: 1.55; overflow-wrap: anywhere; }
.topbar nav .nav-button { border: 1px solid currentColor; border-radius: 999px; padding: 11px 18px; background: rgba(255,250,240,.28); }
.birthday-page { min-height: 100vh; }
.birthday-hero { padding-bottom: 30px; }
.birthday-hero .eyebrow { margin: 12px 0 8px; }
.birthday-section { min-height: 430px; }
.birthday-count { position: relative; z-index: 2; margin: -12px 0 24px; text-align: center; color: var(--muted); font-style: italic; }
.birthday-memory { color: inherit; text-decoration: none; }
.birthday-empty { grid-column: 1 / -1; padding: 70px 25px; border: 1px dashed var(--line); border-radius: 22px; text-align: center; background: rgba(255,253,247,.65); }
.birthday-empty > span { font-size: 36px; }
.birthday-empty h2 { margin: 14px 0 7px; font-size: 28px; font-weight: normal; }
.birthday-empty p { margin: 0; color: var(--muted); }
.hidden, .memorial-card.initially-hidden { display: none !important; }
.honeypot { position: absolute !important; top: 0 !important; left: 0 !important; width: 1px !important; height: 1px !important; margin: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; pointer-events: none !important; }
.global-notice { position: relative; z-index: 3; width: min(920px,calc(100% - 32px)); margin: 0 auto 20px; }
.notice { padding: 12px 15px; border: 1px solid rgba(82,112,85,.25); border-radius: 10px; color: #36543b; background: #e8f0e4; line-height: 1.5; }
.notice.error { border-color: rgba(142,62,54,.25); color: #813e37; background: #f3e2dd; }
.character-count { display: block; margin-top: 6px; color: #746b60; font: 12px Arial,sans-serif; text-align: right; }
.security-check { width: 100%; min-width: 0; margin: 8px 0 4px; padding: 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,253,247,.62); }
.security-check-label { margin: 0 0 10px; color: #746b60; font: 700 10px Arial,sans-serif; text-transform: uppercase; letter-spacing: .12em; }
.security-check .cf-turnstile { width: 100%; min-width: 0; }
.security-check .field-helper { display: block; margin-top: 9px; }
.primary-button:disabled { cursor: not-allowed; opacity: .58; }
.review-message { position: relative; padding: 42px; text-align: center; background: #fffaf0; }
.review-message > span { font-size: 42px; }
.review-message .removal-code-card { margin: 24px auto; text-align: left; }
.copy-code-button { border: 0; border-radius: 999px; padding: 10px 14px; color: white; background: #536f58; cursor: pointer; }
.birthday-candle { position: relative; display: inline-block; width: 16px; height: 38px; margin: 12px; border-radius: 4px 4px 2px 2px; background: repeating-linear-gradient(45deg,#f5d7a5 0 6px,#d98770 6px 11px); box-shadow: 0 3px 9px rgba(79,58,38,.2); }
.birthday-candle i { position: absolute; left: 50%; bottom: calc(100% + 2px); width: 12px; height: 18px; border-radius: 60% 40% 55% 45%; background: radial-gradient(circle at 52% 65%,#fff6a8 0 23%,#f4a62a 25% 65%,#d36c32 68%); filter: drop-shadow(0 0 6px rgba(242,173,52,.8)); transform: translateX(-50%); animation: candle-flicker 1.7s ease-in-out infinite alternate; }
.birthday-candle.compact { position: absolute; top: 8px; right: 8px; z-index: 2; transform: scale(.65); transform-origin: top right; }
.birthday-message { display: flex; align-items: center; gap: 7px; color: #795628; }
@keyframes candle-flicker { to { transform: translateX(-50%) rotate(2deg) scale(.94,1.04); } }
.site:not(.season-winter) .snow { display: none; }

.installer { width: min(760px,calc(100% - 32px)); margin: 50px auto; padding: 32px; border: 1px solid var(--line); border-radius: 24px; background: #fffaf0; box-shadow: 0 18px 44px rgba(73,60,43,.12); }
.admin-body, .edit-page-body { min-height: 100vh; background: linear-gradient(180deg,#f9e9c5,#fff8e9); }
.installer h1 { margin: 5px 0 10px; font-size: clamp(34px,6vw,54px); font-weight: normal; }
.install-form { display: grid; gap: 20px; margin-top: 28px; }
.install-form fieldset { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; }
.install-form legend { padding: 0 8px; font-size: 20px; }
.install-form label, .admin-lock label, .management-form label, .admin-search label { display: grid; gap: 7px; color: #746b60; font: 700 11px Arial,sans-serif; text-transform: uppercase; letter-spacing: .08em; }
.install-form input, .admin-lock input, .management-form input, .admin-search input { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: white; font: 15px Georgia,serif; text-transform: none; letter-spacing: normal; }
.admin-lock { width: min(580px,calc(100% - 32px)); margin: 8vh auto; padding: clamp(34px,5vw,52px); border: 1px solid var(--line); border-radius: 24px; background: #fffaf0; box-shadow: 0 18px 44px rgba(73,60,43,.12); }
.admin-lock h1 { font-size: 36px; font-weight: normal; }
.admin-lock form { display: grid; gap: 16px; width: 100%; max-width: 420px; margin: 28px auto 0; }
.admin-dashboard { width: min(1180px,calc(100% - 32px)); margin: 32px auto 70px; }
.admin-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 28px; border: 1px solid var(--line); border-radius: 20px; background: #fffaf0; }
.admin-header h1 { margin: 3px 0; font-size: 34px; font-weight: normal; }
.admin-header p { margin: 0; }
.admin-header button { border: 0; border-radius: 999px; padding: 10px 14px; cursor: pointer; }
.admin-tabs { display: flex; gap: 8px; overflow-x: auto; margin: 20px 0; padding-bottom: 4px; }
.admin-tabs a { flex: 0 0 auto; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; color: #5b554d; background: #fffaf0; text-decoration: none; }
.admin-tabs a.active { color: white; background: #536f58; }
.admin-tabs span { display: inline-grid; place-items: center; min-width: 21px; height: 21px; margin-left: 5px; border-radius: 50%; background: rgba(255,255,255,.2); font-size: 11px; }
.admin-panel { padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,250,240,.9); }
.admin-panel > h2 { margin: 0 0 5px; font-size: 30px; font-weight: normal; }
.review-list { display: grid; gap: 14px; margin-top: 22px; }
.review-card { display: grid; grid-template-columns: 130px minmax(0,1fr) auto; gap: 18px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.review-card > img { width: 130px; height: 105px; border-radius: 12px; object-fit: cover; }
.review-copy h3 { margin: 0; font-size: 24px; font-weight: normal; }
.review-copy p { margin: 6px 0; line-height: 1.5; }
.review-copy small { color: #746b60; }
.review-title { display: flex; align-items: center; gap: 10px; }
.review-actions, .inline-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.review-actions button, .inline-actions button, .removal-card button, .management-list button { border: 0; border-radius: 999px; padding: 9px 12px; cursor: pointer; }
.edit-memory-button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid #536f58; border-radius: 999px; padding: 9px 12px; color: #536f58; background: white; text-decoration: none; }
.staff-note-editor { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 9px 12px; grid-column: 2 / -1; align-items: end; padding-top: 14px; border-top: 1px solid var(--line); }
.staff-note-editor label { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; color: #805b33; }
.staff-note-editor label strong { font: 700 11px Arial,sans-serif; text-transform: uppercase; letter-spacing: .1em; }
.staff-note-editor label span, .staff-note-editor small { color: #746b60; font-size: 12px; font-style: italic; }
.staff-note-editor textarea { width: 100%; min-width: 0; resize: vertical; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; color: #3f4b45; background: #fffaf0; line-height: 1.45; }
.staff-note-editor .save-note-button { border: 0; border-radius: 999px; padding: 10px 15px; color: white; background: #805b33; cursor: pointer; }
.staff-note-editor small { grid-column: 1 / -1; }
.approve-button { color: white; background: #536f58; }
.reject-button, .delete-button { color: #813e37; background: #f0ded9; }
.archive-button { color: #5f5b54; background: #e8e2d7; }
.restore-button { color: white; background: #536f58; }
.removal-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.removal-card h3 { margin: 0; }
.admin-search { display: flex; align-items: end; gap: 10px; margin: 20px 0; }
.admin-search label { flex: 1; }
.admin-search button { padding: 12px 16px; border: 0; border-radius: 9px; cursor: pointer; }
.management-grid { display: grid; grid-template-columns: minmax(280px,.8fr) minmax(340px,1.2fr); gap: 20px; margin-top: 22px; }
.management-form, .management-list { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.management-form { display: grid; gap: 15px; }
.management-form h3, .management-list h3 { margin: 0 0 8px; font-size: 23px; font-weight: normal; }
.management-form small { text-transform: none; letter-spacing: 0; font-weight: normal; }
.management-form .check-label { display: flex; align-items: center; gap: 8px; }
.management-form .check-label input { width: 18px; margin: 0; }
.customization-form { display: grid; gap: 20px; margin-top: 22px; }
.customization-form fieldset { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin: 0; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.customization-form legend { padding: 0 8px; color: var(--ink); font-size: 22px; }
.customization-form label { display: grid; gap: 7px; color: #746b60; font: 700 11px Arial,sans-serif; text-transform: uppercase; letter-spacing: .08em; }
.customization-form input, .customization-form textarea, .customization-form select { width: 100%; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: white; font: 15px Georgia,serif; text-transform: none; letter-spacing: normal; }
.customization-form textarea { resize: vertical; }
.customization-form small, .customization-form .field-helper { color: #756d62; font: 13px/1.5 Arial,sans-serif; text-transform: none; letter-spacing: normal; }
.customization-form .wide-field { grid-column: 1 / -1; }
.customization-form.feature-switches, .customization-form .feature-switches { grid-template-columns: repeat(2,minmax(0,1fr)); }
.customization-form .check-label { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; background: #faf5e9; text-transform: none; letter-spacing: normal; font-size: 14px; }
.customization-form .check-label input { width: 18px; height: 18px; margin: 0; flex: 0 0 auto; }
.preset-form { grid-template-columns: minmax(220px,1fr) auto; align-items: end; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #f5eedf; }
.preset-form .field-helper { grid-column: 1 / -1; margin: 0; }
.management-list article { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.management-list article > div:first-child { display: grid; gap: 3px; }
.management-list span { color: #746b60; font-size: 12px; }
.management-list .supporter-management-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.supporter-management-row > div:first-child { display: grid; min-width: 145px; gap: 3px; }
.admin-vip-star { color: #b47720; }
.supporter-admin-url { width: fit-content; color: #536f58; font-size: 12px; text-underline-offset: 3px; }
.supporter-admin-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.supporter-admin-actions form { margin: 0; }
.supporter-admin-actions button { white-space: nowrap; }
.supporter-link-editor { flex: 1 0 100%; padding-top: 8px; border-top: 1px dashed rgba(101,85,63,.2); }
.supporter-link-editor summary { width: fit-content; color: #536f58; font-size: 12px; cursor: pointer; text-underline-offset: 3px; }
.supporter-link-editor[open] summary { margin-bottom: 10px; }
.supporter-link-editor form { display: flex; align-items: end; gap: 9px; }
.supporter-link-editor label { display: grid; flex: 1; gap: 5px; color: #746b60; font: 700 10px Arial,sans-serif; text-transform: uppercase; letter-spacing: .07em; }
.supporter-link-editor input { width: 100%; min-width: 0; padding: 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: white; font: 13px Georgia,serif; }
.supporter-link-editor button { width: fit-content; white-space: nowrap; }
.vip-toggle { color: #735319; background: #f3e8bd; }
.vip-toggle.active { color: white; background: #8f672f; }
.sponsor-toggle { color: #405e49; background: #dfebdf; }
.sponsor-toggle.active { color: white; background: #536f58; }
.empty-review { padding: 60px 20px; border: 1px dashed var(--line); border-radius: 16px; text-align: center; }

.edit-memory-page { width: min(980px,calc(100% - 32px)); margin: 38px auto 80px; }
.edit-memory-header { margin-bottom: 24px; padding: 30px 34px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,250,240,.92); box-shadow: 0 15px 35px rgba(73,60,43,.1); }
.edit-memory-header .admin-back { display: inline-block; margin-bottom: 34px; }
.edit-memory-header h1 { margin: 5px 0 10px; font-size: clamp(34px,6vw,54px); font-weight: normal; }
.edit-memory-header > p:last-child { max-width: 720px; margin-bottom: 0; color: #746b60; line-height: 1.6; }
.edit-memory-form { display: grid; gap: 20px; }
.edit-form-section { padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: #fffaf0; box-shadow: 0 10px 25px rgba(73,60,43,.07); }
.edit-form-section h2 { margin: 0 0 18px; font-size: 28px; font-weight: normal; }
.edit-form-section > p { margin: -10px 0 20px; color: #746b60; font-style: italic; }
.edit-memory-form label { display: block; margin-bottom: 18px; color: #746b60; font: 700 10px Arial,sans-serif; text-transform: uppercase; letter-spacing: .1em; }
.edit-memory-form label small { text-transform: none; letter-spacing: normal; font: italic 12px Georgia,serif; }
.edit-memory-form input:not([type="checkbox"]), .edit-memory-form textarea { display: block; width: 100%; margin-top: 7px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; color: #3f4b45; background: white; text-transform: none; letter-spacing: normal; font: 15px Georgia,serif; }
.edit-memory-form textarea { resize: vertical; }
.edit-current-photo { display: block; width: 100%; height: 145px; margin: 0 0 14px; border-radius: 12px; object-fit: cover; background: #eadbc2; }
.edit-current-photo.portrait { width: min(360px,100%); height: 230px; }
.edit-moment h3 { margin: 0 0 12px; font-size: 19px; font-weight: normal; }
.edit-memory-form .remove-photo-option { display: flex; align-items: center; gap: 8px; margin: 11px 0 16px; color: #813e37; text-transform: none; letter-spacing: normal; font: 14px Georgia,serif; }
.edit-memory-form .remove-photo-option input { width: 18px; height: 18px; margin: 0; accent-color: #a55449; }
.edit-form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 4px 0; }
.edit-form-actions > a { color: #746b60; }

@media (max-width: 760px) {
  .install-form fieldset, .management-grid { grid-template-columns: 1fr; }
  .supporter-management-row .supporter-admin-actions { width: 100%; margin-left: 0; }
  .supporter-link-editor form { align-items: stretch; flex-direction: column; }
  .customization-form fieldset, .customization-form .feature-switches, .preset-form { grid-template-columns: 1fr; }
  .customization-form .wide-field, .preset-form .field-helper { grid-column: 1; }
  .review-card { grid-template-columns: 82px minmax(0,1fr); }
  .review-card > img { width: 82px; height: 82px; }
  .review-actions { grid-column: 1 / -1; }
  .admin-header { align-items: flex-start; }
  .tribute-dialog .tribute-view { grid-template-columns: 1fr; }
  .tribute-photo { position: static; height: 260px; }
  .tribute-content { padding: 0; }
  .moment-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .edit-memory-page { width: min(100% - 24px,980px); margin-top: 16px; }
  .edit-memory-header, .edit-form-section { padding: 22px 18px; }
  .edit-form-actions { align-items: stretch; flex-direction: column-reverse; text-align: center; }
}

@media (max-width: 620px) {
  .staff-note-editor { grid-column: 1 / -1; grid-template-columns: 1fr; }
  .staff-note-editor label { display: grid; gap: 4px; }
  .topbar nav a[href="/#memories"] { display: none; }
  .topbar nav .nav-button { padding: 9px 11px; }
}
