:root {
  --emerald-950: #063d31;
  --emerald-900: #0b4d3b;
  --emerald-800: #08745a;
  --emerald-700: #149170;
  --emerald-100: #dff4e9;
  --cream: #fff8e8;
  --paper: #fffaf0;
  --gold: #c9973e;
  --gold-light: #e7bc64;
  --ink: #0b3b31;
  --muted: #5f7067;
  --line: #dfc88f;
  --shadow: 0 28px 68px rgb(5 61 49 / 22%);
  --font-party: "Avenir Next", "Trebuchet MS", "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-script: "Segoe Print", "Bradley Hand", "Comic Sans MS", "Brush Script MT", cursive;
}

.party-hero {
  background: linear-gradient(160deg, #68465f, #b1607b 66%, #d98f8e);
}

.hero-photo-background {
  opacity: 0.62;
  filter: saturate(0.82) contrast(1.06) brightness(0.82);
}

.party-hero::before {
  background: linear-gradient(
    180deg,
    rgb(48 31 45 / 65%),
    rgb(121 58 84 / 48%) 45%,
    rgb(205 122 127 / 84%) 69%,
    #fdf8f5 94%
  );
}

.hero-content h1 {
  text-shadow: 0 7px 28px rgb(45 19 35 / 60%);
}

.contribution-card {
  background: rgb(255 250 247 / 94%);
  border-color: rgb(255 255 255 / 82%);
  box-shadow: 0 30px 75px rgb(75 37 59 / 27%);
}

.guestbook-shortcut {
  color: #59384f;
  background: linear-gradient(135deg, #f3dce7, #f4dda0);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 72%);
}

.secondary-actions {
  display: block;
  margin-top: 10px;
}

.secondary-actions .feed-button {
  display: none !important;
}

.secondary-actions button {
  width: 100%;
  min-height: 54px;
  color: #59384f;
  background: linear-gradient(135deg, #f3dce7, #f4dda0);
  border: 0;
  border-radius: 18px;
  gap: 9px;
  font-size: 11px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 72%);
}

.secondary-actions button svg {
  color: #a0476a;
  width: 22px;
  height: 22px;
}

.secondary-actions button span {
  display: inline;
  color: inherit;
  font-size: inherit;
}

.primary-button {
  background: linear-gradient(135deg, #744c70, #a96f8a);
}

.live-ticker {
  color: #fffaf5;
  background: linear-gradient(90deg, #70475f, #a7647e 52%, #c77e89);
  border-color: #e6c66e;
  box-shadow: 0 8px 28px rgb(89 46 70 / 18%);
}

.live-ticker-track {
  animation-duration: 3.75s;
}

.snap-feed {
  height: 100dvh;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-y: none;
}

.photo-slide {
  height: 100dvh;
  min-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.slide-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--face-x, 50%) var(--face-y, 32%);
}

.section-title-row > a {
  color: #fffaf7;
  background: linear-gradient(135deg, #8e5878, #aa6d8a);
  box-shadow: 0 9px 22px rgb(103 57 85 / 22%);
}

.photo-year {
  display: none !important;
}

.guestbook-section {
  background:
    radial-gradient(circle at 90% 10%, rgb(244 221 160 / 32%), transparent 27%),
    linear-gradient(145deg, #a95f7b, #765379 72%, #4f374f);
}

.moment-tile {
  box-shadow: 0 15px 36px rgb(70 42 58 / 20%);
}

@media (width < 700px) {
  .moments-section {
    padding-inline: 10px;
  }

  .masonry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .moment-tile {
    border-radius: 18px;
  }

  .moment-tile .photo-credit {
    max-width: calc(100% - 16px);
    padding: 7px 9px;
    font-size: 9px;
    bottom: 8px;
    left: 8px;
  }
}

/* Celebration-first hero: large, handwritten and compact enough to keep the actions close. */
.party-hero {
  min-height: 0;
  padding: max(18px, env(safe-area-inset-top)) 16px 30px;
}

.hero-photo-background {
  height: 470px;
  object-position: 66% center;
}

.party-hero::before {
  background: linear-gradient(
    180deg,
    rgb(44 27 41 / 72%),
    rgb(112 54 80 / 56%) 45%,
    rgb(196 107 121 / 88%) 70%,
    #fdf8f5 96%
  );
}

.hero-content {
  width: min(860px, 100%);
  margin: 24px auto 22px;
  text-align: center;
}

.hero-live-row {
  justify-content: center;
}

.hero-live-row > span {
  display: none;
}

.hero-live-row .hero-kicker {
  display: inline-flex;
  width: auto;
  margin: 0 0 12px;
  padding: 7px 12px;
  color: #fffaf5;
  background: rgb(93 48 73 / 66%);
  border: 1px solid rgb(255 250 245 / 35%);
  border-radius: 999px;
  letter-spacing: 0.14em;
  box-shadow: 0 8px 24px rgb(45 19 35 / 20%);
}

.hero-content h1 {
  max-width: 11.5ch;
  margin-inline: auto;
  color: #fffaf5;
  font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", "Brush Script MT", cursive;
  font-size: clamp(3.35rem, 15.5vw, 7.4rem);
  font-weight: 700;
  line-height: 0.93;
  letter-spacing: -0.055em;
  text-transform: none;
  text-wrap: balance;
  text-shadow:
    0 3px 0 rgb(66 31 53 / 28%),
    0 10px 34px rgb(45 19 35 / 72%);
  transform: rotate(-1.2deg);
}

.hero-content h1::after {
  content: "";
  display: block;
  width: min(210px, 54%);
  height: 5px;
  margin: 13px auto 0;
  background: linear-gradient(90deg, transparent, #f4dda0 18% 82%, transparent);
  border-radius: 999px;
  transform: rotate(1.2deg);
  box-shadow: 0 4px 14px rgb(45 19 35 / 25%);
}

.hero-date {
  margin-top: 11px;
  color: #fff4c8;
  font-size: 13px;
  font-weight: 850;
}

.contribution-card {
  border-radius: 26px;
  padding: 16px;
}

/* Faster, punchier guest quotes. */
.live-ticker {
  color: #fffaf5;
  background: linear-gradient(100deg, #653d60, #a55376 53%, #d07d84);
  border-block: 3px solid #f4dda0;
  box-shadow: 0 10px 30px rgb(89 46 70 / 22%);
}

.live-ticker-track {
  min-height: 64px;
}

.live-ticker-track span {
  max-width: none;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 8px rgb(54 24 43 / 32%);
}

.live-ticker-track span::before {
  content: "“";
  margin-right: 2px;
  color: #f4dda0;
  font-family: Georgia, serif;
  font-size: 29px;
  font-weight: 900;
  line-height: 0;
}

.live-ticker-track span::after {
  content: "”  ✦";
  margin-left: 4px;
  color: #f4dda0;
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 900;
}

.live-ticker-track b {
  color: #fff0b4;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.02em;
}

/* Let the photo-feed heading and action use the full mobile row. */
.moments-section {
  padding-top: 36px;
}

.moments-section .section-kicker {
  display: none;
}

.section-title-row {
  align-items: center;
  width: 100%;
  margin: 0 0 20px;
}

.section-title-row > div {
  flex: 1 1 auto;
  min-width: 0;
}

.section-title-row h2 {
  font-size: clamp(2.5rem, 11vw, 4.8rem);
  line-height: 0.9;
}

.section-title-row > a {
  flex: 0 0 auto;
  max-width: 112px;
  padding: 11px 14px;
  text-align: center;
  line-height: 1.15;
}

/* Full-screen feed palette and face-aware crop hooks. */
.feed-page,
.photo-slide,
.feed-loading-more {
  background: #241824;
}

.slide-backdrop {
  filter: blur(28px) brightness(0.34) saturate(0.9);
}

.slide-shade {
  background: linear-gradient(
    180deg,
    rgb(45 25 41 / 58%),
    transparent 24% 66%,
    rgb(45 25 41 / 88%)
  );
}

.feed-back {
  color: #fffaf5;
  background: rgb(91 52 79 / 82%);
  border-color: rgb(255 250 245 / 34%);
  box-shadow: 0 8px 24px rgb(28 14 26 / 22%);
}

.feed-back span,
.feed-brand span {
  color: #f4dda0;
}

.feed-position {
  color: #fffaf5;
  background: rgb(91 52 79 / 82%);
  border: 1px solid rgb(255 250 245 / 24%);
}

.slide-caption > span {
  color: #f4dda0;
  background: rgb(116 76 112 / 84%);
  border-color: rgb(255 250 245 / 34%);
}

.feed-retry {
  color: #fffaf5;
  background: rgb(91 52 79 / 88%);
  border-color: rgb(255 250 245 / 30%);
}

.slide-photo[data-face-focus="detected"] {
  transition: object-position 260ms ease-out;
}

.feed-tabs {
  z-index: 12;
  top: calc(68px + env(safe-area-inset-top));
  left: 50%;
  display: flex;
  gap: 4px;
  padding: 4px;
  background: rgb(53 31 49 / 82%);
  border: 1px solid rgb(255 250 245 / 28%);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  position: fixed;
  transform: translateX(-50%);
  box-shadow: 0 10px 28px rgb(20 9 18 / 24%);
}

.feed-tabs button {
  min-height: 42px;
  padding: 0 15px;
  color: rgb(255 250 245 / 76%);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.feed-tabs button[aria-selected="true"] {
  color: #5b344f;
  background: linear-gradient(135deg, #fff0b4, #f4dda0);
  box-shadow: 0 6px 16px rgb(22 10 19 / 24%);
}

.slide-love {
  z-index: 5;
  right: 16px;
  bottom: calc(88px + env(safe-area-inset-bottom));
  width: 62px;
  min-height: 72px;
  padding: 8px 6px 7px;
  color: #fffaf5;
  background: rgb(91 52 79 / 84%);
  border: 1px solid rgb(255 250 245 / 32%);
  border-radius: 24px;
  display: grid;
  place-items: center;
  gap: 2px;
  position: absolute;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgb(22 10 19 / 32%);
}

.slide-love svg {
  width: 31px;
  height: 31px;
  color: #ffd6e5;
  overflow: visible;
  filter: drop-shadow(0 3px 7px rgb(32 11 24 / 32%));
}

.slide-love svg path {
  fill: transparent;
  stroke: currentColor;
  stroke-width: 2.15;
  transition: fill 160ms ease, transform 160ms ease;
}

.slide-love strong {
  min-width: 2ch;
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
}

.slide-love[aria-pressed="true"] {
  color: #fff;
  background: linear-gradient(145deg, rgb(184 67 112 / 94%), rgb(126 65 105 / 94%));
  border-color: rgb(255 224 235 / 62%);
}

.slide-love[aria-pressed="true"] svg path {
  fill: #ff8db7;
}

.slide-love.just-loved svg {
  animation: party-heart-pop 520ms cubic-bezier(0.2, 0.9, 0.3, 1.35);
}

.slide-love.love-error {
  animation: party-heart-shake 320ms ease;
}

.moment-love {
  z-index: 5;
  right: 10px;
  bottom: 10px;
  min-width: 48px;
  height: 48px;
  padding: 5px 9px;
  color: #fff9f5;
  background: rgb(91 52 79 / 86%);
  border: 1px solid rgb(255 250 245 / 46%);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  position: absolute;
  backdrop-filter: blur(10px);
  box-shadow: 0 7px 20px rgb(22 10 19 / 34%);
}

.moment-love svg {
  width: 23px;
  height: 23px;
  color: #ffd6e5;
  overflow: visible;
}

.moment-love svg path {
  fill: transparent;
  stroke: currentColor;
  stroke-width: 2.15;
  transition: fill 160ms ease, transform 160ms ease;
}

.moment-love strong {
  min-width: 1ch;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
}

.moment-love[aria-pressed="true"] {
  background: linear-gradient(145deg, rgb(184 67 112 / 96%), rgb(126 65 105 / 96%));
  border-color: rgb(255 224 235 / 72%);
}

.moment-love[aria-pressed="true"] svg path {
  fill: #ff8db7;
}

.moment-love.just-loved svg {
  animation: party-heart-pop 520ms cubic-bezier(0.2, 0.9, 0.3, 1.35);
}

.moment-love.love-error {
  animation: party-heart-shake 320ms ease;
}

.moment-tile:has(.photo-credit) .moment-love {
  top: 10px;
  bottom: auto;
}

.slide-tools {
  z-index: 6;
  right: 13px;
  bottom: calc(83px + env(safe-area-inset-bottom));
  display: grid;
  justify-items: center;
  gap: 8px;
  position: absolute;
}

.slide-tools .slide-love {
  right: auto;
  bottom: auto;
  width: 56px;
  min-height: 64px;
  position: static;
}

.slide-tool {
  width: 52px;
  height: 48px;
  padding: 0;
  color: #fffaf5;
  background: rgb(91 52 79 / 82%);
  border: 1px solid rgb(255 250 245 / 32%);
  border-radius: 18px;
  display: grid;
  place-items: center;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgb(22 10 19 / 30%);
}

.slide-tool svg {
  width: 24px;
  height: 24px;
}

.slide-tool:active {
  transform: scale(.92);
}

.slide-tool[aria-pressed="true"] {
  color: #fff0b4;
  background: rgb(164 62 91 / 94%);
}

.slide-tool.working svg {
  animation: spin 850ms linear infinite;
}

.party-toast {
  z-index: 120;
  left: 50%;
  bottom: calc(26px + env(safe-area-inset-bottom));
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 11px 16px;
  color: #fffaf7;
  background: rgb(76 43 67 / 94%);
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
  text-align: center;
  opacity: 0;
  position: fixed;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
  box-shadow: 0 12px 38px rgb(22 10 19 / 35%);
}

.party-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.party-toast.error {
  background: rgb(139 45 57 / 96%);
}

.admin-download-all {
  gap: 6px;
  display: inline-flex !important;
  align-items: center;
}

.admin-download-all svg {
  width: 17px;
  height: 17px;
  flex: none;
}

@keyframes party-heart-pop {
  0% { transform: scale(0.72); }
  48% { transform: scale(1.42) rotate(-8deg); }
  100% { transform: scale(1); }
}

@keyframes party-heart-shake {
  0%, 100% { transform: translateX(0); }
  35% { transform: translateX(-4px); }
  70% { transform: translateX(4px); }
}

.most-loved-feed[hidden],
.most-loved-position[hidden] {
  display: none !important;
}

.show-most-loved .feed-position:not(.most-loved-position) {
  display: none;
}

.most-loved-rank {
  z-index: 4;
  top: calc(128px + env(safe-area-inset-top));
  left: 16px;
  padding: 8px 11px;
  color: #5b344f;
  background: linear-gradient(135deg, #fff0b4, #f4dda0);
  border: 1px solid rgb(255 255 255 / 58%);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  position: absolute;
  box-shadow: 0 8px 22px rgb(22 10 19 / 24%);
}

@media (width <= 420px) {
  .section-title-row {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .section-title-row > a {
    align-self: auto;
  }
}

@media (width >= 700px) {
  .party-hero {
    min-height: 780px;
    padding-inline: 35px;
  }

  .hero-photo-background {
    height: 590px;
  }

  .hero-content {
    margin-top: 64px;
  }

  .contribution-card {
    margin-top: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-ticker-track {
    animation-duration: 1ms;
    animation-iteration-count: 1;
  }

  .slide-photo[data-face-focus="detected"] {
    transition: none;
  }

  .slide-love.just-loved svg,
  .slide-love.love-error {
    animation: none;
  }
}

/* Emerald, champagne and cream celebration palette. */
html,
body {
  background: var(--emerald-900);
}

body {
  color: var(--ink);
  font-family: var(--font-party);
}

:focus-visible {
  outline: 4px solid #ffd87a;
  outline-offset: 3px;
}

.public-site {
  background:
    radial-gradient(circle at 8% 34%, rgb(231 188 100 / 22%), transparent 19rem),
    radial-gradient(circle at 92% 62%, rgb(255 248 232 / 14%), transparent 23rem),
    linear-gradient(160deg, #0a8061 0%, #08745a 48%, #0b4d3b 100%);
}

.party-hero {
  color: var(--cream);
  background: linear-gradient(155deg, #0c765b, #08745a 58%, #0b4d3b);
}

.hero-photo-background {
  opacity: 0.73;
  filter: saturate(1.15) contrast(1.04) brightness(0.92);
}

.party-hero::before {
  background: linear-gradient(
    180deg,
    rgb(6 61 49 / 56%),
    rgb(8 116 90 / 31%) 41%,
    rgb(8 116 90 / 78%) 72%,
    #08745a 97%
  );
}

.spark-field i {
  background: #ffe09a;
  box-shadow: 0 0 17px rgb(255 224 154 / 94%);
}

.party-mark,
.admin-logo,
.feed-brand {
  letter-spacing: -0.045em;
}

.party-mark span,
.admin-logo span,
.feed-brand span {
  color: #ffe09a;
}

.nav-actions a,
.nav-share {
  color: var(--cream);
  background: rgb(6 61 49 / 58%);
  border-color: rgb(231 188 100 / 74%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 15%);
}

.hero-live-row .hero-kicker {
  color: var(--cream);
  background: rgb(6 61 49 / 63%);
  border-color: rgb(231 188 100 / 72%);
  box-shadow: 0 8px 24px rgb(5 55 44 / 24%);
}

.hero-content h1 {
  color: var(--cream);
  font-family: var(--font-script);
  text-shadow:
    0 3px 0 rgb(6 61 49 / 74%),
    0 10px 34px rgb(4 48 39 / 64%);
}

.hero-content h1::after {
  background: linear-gradient(90deg, transparent, #ffe09a 18% 82%, transparent);
  box-shadow: 0 4px 15px rgb(5 55 44 / 28%);
}

.hero-date {
  color: #ffe4a8;
}

.contribution-card {
  color: var(--ink);
  background: rgb(255 248 232 / 97%);
  border: 3px solid var(--gold-light);
  box-shadow:
    0 28px 72px rgb(5 55 44 / 34%),
    inset 0 1px 0 rgb(255 255 255 / 88%);
}

.card-heading h2,
.sheet-title-row h2,
.panel-heading h2 {
  color: var(--emerald-900);
}

.card-heading .mini-label,
.mini-label.emerald {
  color: #8a641f;
}

.status-dot,
.status-dot.live {
  background: var(--gold-light);
  box-shadow: 0 0 0 5px rgb(231 188 100 / 25%);
}

.action-button {
  color: var(--emerald-900);
}

.action-button > span {
  color: var(--emerald-950);
  background: linear-gradient(145deg, #ffe19b, #e7bc64 55%, #c9973e);
  border-color: var(--cream);
  box-shadow:
    0 15px 30px rgb(112 75 14 / 30%),
    inset 0 2px 1px rgb(255 248 232 / 72%);
}

.action-button small {
  color: #64766c;
}

.action-library > span {
  color: var(--emerald-800);
  background: linear-gradient(145deg, #fffdf4, #fff1ce);
  border-color: var(--gold-light);
  box-shadow:
    0 15px 30px rgb(5 61 49 / 18%),
    inset 0 2px 1px #fff;
}

.guestbook-shortcut {
  color: var(--emerald-900);
  background: linear-gradient(135deg, #fffdf4, #f8e8bd);
  border: 2px solid var(--gold-light);
  box-shadow: inset 0 1px 0 #fff;
}

.guestbook-shortcut svg {
  color: var(--gold);
  fill: rgb(231 188 100 / 32%);
}

.secondary-actions button {
  color: var(--emerald-900);
  background: var(--cream);
  border: 2px solid var(--gold-light);
  box-shadow: inset 0 1px 0 #fff;
}

.secondary-actions button svg {
  color: var(--emerald-700);
}

.primary-button,
.cream-button {
  color: var(--emerald-950);
  background: linear-gradient(135deg, #f5d483, #e7bc64 55%, #c9973e);
  box-shadow:
    0 12px 27px rgb(104 69 12 / 25%),
    inset 0 1px 0 rgb(255 255 255 / 65%);
}

.secondary-button {
  color: var(--emerald-800);
  background: var(--cream);
  border: 2px solid var(--gold-light);
}

.live-ticker {
  color: var(--emerald-950);
  background: linear-gradient(90deg, #fff8e8, #f7e2b2 52%, #fff8e8);
  border-color: var(--gold);
  box-shadow: 0 10px 31px rgb(5 61 49 / 24%);
}

.live-ticker-track span {
  color: var(--emerald-950);
  text-shadow: none;
}

.live-ticker-track span::before,
.live-ticker-track span::after,
.live-ticker-track b {
  color: #956819;
}

.live-ticker-track {
  animation-duration: 3.375s;
}

.moments-section {
  color: var(--cream);
}

.section-kicker,
.section-kicker.gold {
  color: #ffe09a;
}

.section-title-row h2,
.guestbook-intro h2 {
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  text-shadow: 0 4px 20px rgb(6 61 49 / 36%);
}

.section-title-row > a {
  color: var(--emerald-950);
  background: linear-gradient(135deg, #f5d483, #e7bc64 60%, #c9973e);
  border: 1px solid #ffe19b;
  box-shadow: 0 10px 25px rgb(5 61 49 / 26%);
}

.moment-tile {
  background: var(--cream);
  border: 4px solid var(--gold-light);
  border-radius: 30px;
  padding: 5px;
  box-shadow:
    0 17px 39px rgb(4 52 42 / 35%),
    0 0 0 1px rgb(255 248 232 / 56%);
}

.moment-tile img {
  border-radius: 21px;
}

.moment-tile .photo-credit {
  color: var(--emerald-950);
  background: rgb(255 248 232 / 95%);
  border-color: var(--gold-light);
  box-shadow: 0 6px 18px rgb(6 61 49 / 27%);
}

.moment-love {
  color: var(--emerald-900);
  background: rgb(255 248 232 / 72%);
  border: 2px solid var(--gold-light);
  opacity: 0.8;
  backdrop-filter: blur(7px);
  box-shadow: 0 8px 21px rgb(5 55 44 / 28%);
}

.moment-love svg {
  color: var(--gold);
}

.moment-love[aria-pressed="true"] {
  color: var(--emerald-950);
  background: linear-gradient(145deg, #f5d483, var(--gold-light));
  border-color: #ffe5aa;
}

.moment-love[aria-pressed="true"] svg path {
  fill: var(--emerald-800);
}

.loading-card,
.empty-card {
  color: var(--emerald-900);
  background: rgb(255 248 232 / 94%);
  border-color: var(--gold-light);
}

.guestbook-section {
  background:
    radial-gradient(circle at 88% 9%, rgb(255 224 154 / 36%), transparent 28%),
    radial-gradient(circle at 6% 88%, rgb(255 248 232 / 14%), transparent 30%),
    linear-gradient(145deg, #0d8968, #08745a 52%, #0b4d3b);
  border-top: 3px solid var(--gold-light);
}

.guestbook-intro > p:last-child {
  color: rgb(255 248 232 / 87%);
}

.guestbook-form {
  color: var(--ink);
  background: rgb(255 248 232 / 97%);
  border: 3px solid var(--gold-light);
  box-shadow: 0 22px 55px rgb(5 55 44 / 29%);
}

.field-label.light,
.field-label.light span {
  color: var(--emerald-900);
}

.field-label.light span {
  opacity: 0.7;
}

.dark-field,
.text-field {
  color: var(--ink);
  background: #fffdf7;
  border-color: #d8bd7c;
}

.dark-field::placeholder,
.text-field::placeholder {
  color: #718178;
}

.character-row {
  color: #607068;
}

.message-card {
  background: rgb(255 248 232 / 95%);
  border: 2px solid rgb(231 188 100 / 87%);
  box-shadow: 0 12px 29px rgb(5 55 44 / 19%);
}

.message-card > p {
  color: var(--emerald-950);
}

.message-card footer {
  color: #617169;
}

.message-card footer strong {
  color: #8d6319;
}

.no-messages {
  color: rgb(255 248 232 / 83%);
}

.site-footer {
  color: var(--emerald-900);
  background: var(--cream);
  border-top: 3px solid var(--gold-light);
}

.upload-sheet {
  background: rgb(6 61 49 / 79%);
}

.upload-sheet-panel {
  background: linear-gradient(180deg, #fffdf5, #fff3d5);
  border: 3px solid var(--gold-light);
  border-bottom: 0;
  box-shadow: 0 -25px 80px rgb(5 55 44 / 43%);
}

.sheet-handle {
  background: var(--gold);
}

.sheet-close {
  color: var(--emerald-800);
  background: var(--cream);
  border: 2px solid var(--gold-light);
}

.queue-card {
  background: var(--cream);
  border: 2px solid var(--gold-light);
  box-shadow: 0 7px 19px rgb(5 61 49 / 17%);
}

.queue-card > button {
  color: var(--cream);
  background: rgb(6 61 49 / 89%);
  border: 1px solid var(--gold-light);
}

.queue-progress span {
  background: linear-gradient(90deg, var(--gold), #ffe19b);
}

.feed-page,
.photo-slide,
.feed-loading-more {
  background: var(--emerald-950);
}

.photo-slide {
  border: 3px solid var(--gold-light);
}

.slide-backdrop {
  filter: blur(28px) brightness(0.43) saturate(1.08);
}

.slide-shade {
  background: linear-gradient(
    180deg,
    rgb(6 61 49 / 59%),
    transparent 24% 66%,
    rgb(6 61 49 / 91%)
  );
}

.feed-back {
  color: var(--emerald-950);
  background: rgb(255 248 232 / 95%);
  border: 2px solid var(--gold-light);
  box-shadow: 0 8px 24px rgb(4 48 39 / 30%);
}

.feed-back span {
  color: var(--gold);
}

.feed-position {
  color: var(--emerald-950);
  background: var(--gold-light);
  border-color: #ffe5aa;
  font-weight: 900;
}

.feed-retry {
  color: var(--emerald-950);
  background: var(--cream);
  border-color: var(--gold-light);
}

.feed-tabs {
  background: rgb(6 61 49 / 88%);
  border: 2px solid rgb(231 188 100 / 84%);
  box-shadow: 0 10px 29px rgb(4 48 39 / 34%);
}

.feed-tabs button {
  color: rgb(255 248 232 / 88%);
}

.feed-tabs button[aria-selected="true"] {
  color: var(--emerald-950);
  background: linear-gradient(135deg, #f5d483, #e7bc64);
  box-shadow: 0 6px 17px rgb(4 48 39 / 30%);
}

.slide-love,
.slide-tool {
  color: var(--emerald-900);
  background: rgb(255 248 232 / 70%);
  border: 2px solid var(--gold-light);
  box-shadow: 0 9px 25px rgb(4 48 39 / 34%);
}

.slide-tools {
  opacity: 0.8;
  transition: opacity 160ms ease;
}

.slide-tools:hover,
.slide-tools:focus-within,
.moment-love:hover,
.moment-love:focus-visible,
.moment-love[aria-pressed="true"] {
  opacity: 1;
}

.slide-love svg {
  color: var(--gold);
  filter: drop-shadow(0 2px 5px rgb(112 75 14 / 22%));
}

.slide-love[aria-pressed="true"] {
  color: var(--emerald-950);
  background: linear-gradient(145deg, #f5d483, var(--gold-light));
  border-color: #ffe5aa;
}

.slide-love[aria-pressed="true"] svg path {
  fill: var(--emerald-800);
}

.slide-tool[aria-pressed="true"] {
  color: var(--emerald-950);
  background: var(--gold-light);
}

.slide-caption > span {
  color: var(--emerald-950);
  background: var(--cream);
  border: 2px solid var(--gold-light);
}

.party-toast {
  color: var(--cream);
  background: rgb(6 61 49 / 96%);
  border: 2px solid var(--gold-light);
  box-shadow: 0 12px 39px rgb(4 48 39 / 44%);
}

.most-loved-rank {
  color: var(--emerald-950);
  background: linear-gradient(135deg, #f5d483, var(--gold-light));
  border-color: #ffe5aa;
  box-shadow: 0 8px 23px rgb(4 48 39 / 31%);
}

.admin-auth-page {
  background:
    radial-gradient(circle at 85% 5%, rgb(255 224 154 / 43%), transparent 28%),
    linear-gradient(145deg, #0d8968, #08745a 50%, #0b4d3b);
}

.login-card {
  background: var(--cream);
  border: 3px solid var(--gold-light);
  box-shadow: 0 30px 90px rgb(5 55 44 / 47%);
}

.admin-monogram {
  color: var(--emerald-950);
  background: linear-gradient(145deg, #f5d483, var(--gold));
  border: 2px solid #ffe3a5;
}

.admin-monogram span {
  color: var(--emerald-900);
}

.admin-page {
  background:
    radial-gradient(circle at 100% 0%, rgb(231 188 100 / 23%), transparent 27rem),
    #fff4d9;
}

.admin-header {
  background: linear-gradient(100deg, var(--emerald-900), var(--emerald-800));
  border-bottom: 3px solid var(--gold-light);
}

.admin-tabs {
  background: rgb(255 248 232 / 96%);
  border-bottom-color: var(--gold-light);
}

.admin-tabs button.active {
  color: var(--emerald-950);
  border-bottom-color: var(--gold);
  background: rgb(231 188 100 / 19%);
}

.admin-tabs span,
.state-preview span,
.qr-event-date {
  color: var(--emerald-900);
  background: var(--emerald-100);
}

.admin-panel,
.admin-photo,
.admin-message-list article {
  background: var(--cream);
  border-color: #d9bd78;
}

.admin-panel {
  box-shadow: 0 10px 29px rgb(5 61 49 / 13%);
}

.qr-frame {
  background: #fffdf7;
  border: 3px solid var(--gold-light);
}

.photo-summary button {
  color: var(--emerald-900);
  background: var(--cream);
  border-color: var(--gold-light);
}

.photo-summary button.active {
  color: var(--emerald-950);
  background: var(--gold-light);
}

.admin-photo {
  border-width: 2px;
}

.photo-admin-actions button,
.admin-message-list button {
  background: #fffdf7;
  border-color: #dcc484;
}

.guestbook-shortcut,
.secondary-actions button,
.primary-button,
.cream-button,
.secondary-button,
.section-title-row > a,
.action-button > span,
.moment-love,
.slide-love,
.slide-tool {
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.guestbook-shortcut:hover,
.secondary-actions button:hover,
.primary-button:hover,
.cream-button:hover,
.secondary-button:hover,
.section-title-row > a:hover,
.action-button:hover > span,
.moment-love:hover,
.slide-love:hover,
.slide-tool:hover {
  filter: brightness(1.04) saturate(1.07);
  transform: translateY(-2px);
}

@media (width < 700px) {
  .moment-tile {
    border-width: 3px;
    border-radius: 19px;
    padding: 3px;
  }

  .moment-tile img {
    border-radius: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-ticker-track {
    animation-duration: 1ms;
    animation-iteration-count: 1;
  }

  .guestbook-shortcut,
  .secondary-actions button,
  .primary-button,
  .cream-button,
  .secondary-button,
  .section-title-row > a,
  .action-button > span,
  .moment-love,
  .slide-love,
  .slide-tool {
    transition: none;
  }

  .slide-tools {
    transition: none;
  }
}
