:root {
  --background: #fff6f8;
  --foreground: #3d2a32;
  --card: #fffbfc;
  --primary: #e45c7a;
  --primary-foreground: #fff;
  --live: #e45c7a;
  --muted: #fdecef;
  --muted-foreground: #8a6a73;
  --border: #f3d4dc;
  --input: #f0c9d4;
  --ring: #e45c7a;
  --blush: #ffd6e0;
  --gold: #c9a27a;
  --radius: 1.15rem;
  --sans: "Nunito", ui-sans-serif, system-ui, sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Great Vibes", cursive;
}
.dark {
  --background: #1a1013;
  --foreground: #f8ecef;
  --card: #27171c;
  --primary: #f07a94;
  --primary-foreground: #fff;
  --live: #f07a94;
  --muted: #3a2228;
  --muted-foreground: #c9a8b0;
  --border: #ffffff1a;
  --input: #ffffff26;
  --ring: #f07a94;
  --blush: #4a2832;
  --gold: #e2c39a;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { color-scheme: light; }
html.dark { color-scheme: dark; }
body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  background-color: var(--background);
  background-image:
    radial-gradient(ellipse 90% 55% at 50% -18%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 60%),
    radial-gradient(ellipse 45% 35% at 100% 100%, color-mix(in srgb, var(--blush) 70%, transparent), transparent 55%),
    radial-gradient(ellipse 40% 30% at 0% 85%, color-mix(in srgb, var(--blush) 55%, transparent), transparent 50%);
  color: var(--foreground);
  letter-spacing: -0.011em;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.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;
}

.float-hearts {
  position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0;
}
.float-hearts i {
  position: absolute;
  bottom: -2rem;
  width: 12px;
  height: 12px;
  background: var(--primary);
  opacity: .14;
  transform: rotate(-45deg);
  animation: riseHeart 16s linear infinite;
}
.float-hearts i::before,
.float-hearts i::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: inherit;
}
.float-hearts i::before { top: -6px; left: 0; }
.float-hearts i::after { top: 0; left: -6px; }
.float-hearts i:nth-child(1) { left: 8%; animation-duration: 18s; animation-delay: -2s; transform: rotate(-45deg) scale(.8); }
.float-hearts i:nth-child(2) { left: 26%; animation-duration: 22s; animation-delay: -8s; opacity: .1; }
.float-hearts i:nth-child(3) { left: 48%; animation-duration: 15s; animation-delay: -5s; transform: rotate(-45deg) scale(1.15); }
.float-hearts i:nth-child(4) { left: 72%; animation-duration: 20s; animation-delay: -11s; opacity: .12; }
.float-hearts i:nth-child(5) { left: 90%; animation-duration: 17s; animation-delay: -3s; transform: rotate(-45deg) scale(.7); }
@keyframes riseHeart {
  0% { bottom: -2rem; opacity: 0; }
  12% { opacity: .16; }
  100% { bottom: 110%; opacity: 0; }
}

.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1rem; position: relative; z-index: 1; }
.site-shell {
  display: grid;
  gap: 1rem;
  flex: 1;
  align-items: start;
  width: 100%;
}
@media (min-width: 900px) {
  .site-shell {
    grid-template-columns: 15.5rem minmax(0, 1fr);
    gap: 2rem;
  }
}
.site-col { min-width: 0; display: flex; flex-direction: column; }
.test-banner {
  position: relative; z-index: 2;
  background: var(--primary);
  color: #fff;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.55rem 1rem;
}
.site-header { width: 100%; position: relative; z-index: 2; }
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.25rem 1rem 1rem;
}
.logo {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-weight: 700; letter-spacing: -0.04em; font-size: 20px;
}
.logo svg { height: 22px; width: auto; flex-shrink: 0; }
.fill-primary { fill: var(--primary); }
.fill-fg { fill: var(--foreground); }
.logo .dot { color: var(--primary); }
.logo em {
  font-family: var(--script);
  font-style: normal;
  font-weight: 400;
  font-size: 1.55em;
  color: var(--primary);
  letter-spacing: 0;
  line-height: 1;
  margin-left: 1px;
}
.nav-side { display: flex; align-items: center; gap: 1rem; }
nav ul { display: flex; align-items: center; gap: 1.25rem; list-style: none; margin: 0; padding: 0; font-size: 0.875rem; }
nav a { font-weight: 700; color: var(--muted-foreground); }
nav a:hover, nav a[aria-current="page"] { color: var(--primary); }
.icon-btn {
  width: 1.75rem; height: 1.75rem; border: 0; border-radius: 999px;
  background: transparent; color: var(--foreground); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn:hover { background: var(--muted); }
.icon-btn svg { width: 16px; height: 16px; }

.page { flex: 1; display: flex; flex-direction: column; padding: 0.5rem 0 2rem; }
.stats { text-align: center; margin-bottom: 1.5rem; }
.stats-pill {
  display: inline-block; max-width: 100%; border-radius: 999px;
  background: var(--muted); padding: 0.375rem 0.85rem;
  font-size: 0.875rem; color: var(--muted-foreground); text-align: center;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
}
.dot-live { position: relative; display: inline-flex; width: 8px; height: 8px; }
.dot-live i, .dot-live b {
  position: absolute; inset: 0; border-radius: 999px; background: var(--live);
}
.dot-live i { animation: ping 1s cubic-bezier(0,0,.2,1) infinite; opacity: .75; }
.online { font-weight: 700; color: var(--live); }
@keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } }

.claim { scroll-margin-top: 1.5rem; }
.love-kicker {
  display: flex; align-items: center; justify-content: center; gap: 0.55rem;
  margin: 0 0 0.65rem; color: var(--primary); font-family: var(--script);
  font-size: 1.65rem; line-height: 1;
}
.love-kicker span { font-size: 0.85rem; }
.heart-rule {
  display: flex; align-items: center; justify-content: center; gap: 0.35rem;
  margin: 0.65rem 0 0; color: color-mix(in srgb, var(--primary) 55%, transparent);
  font-size: 0.7rem; letter-spacing: 0.35em;
}
.claim h2 {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0.5rem 0.65rem; text-align: center; font-size: 28px; font-weight: 600;
  font-family: var(--serif); letter-spacing: -0.03em; margin: 0; line-height: 1.1;
}
@media (min-width: 768px) { .claim h2 { font-size: 42px; } }
@media (max-width: 640px) {
  .logo { font-size: 15px; gap: 0.25rem; }
  .logo svg { height: 16px; }
  .logo em { font-size: 1.45em; }
  nav ul { gap: 0.7rem; font-size: 0.8rem; }
  .site-header .bar { gap: 0.5rem; padding: 0.9rem 0.75rem 0.6rem; }
  .love-kicker { font-size: 1.35rem; }
}
.step {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  line-height: 1;
  vertical-align: middle;
  font-family: var(--sans);
  font-weight: 800;
}
.step-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  margin: 0;
  padding: 0;
  border: 0;
  flex: 0 0 1.5rem;
  border-radius: 999px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background: color-mix(in srgb, var(--primary) 15%, transparent);
  color: var(--primary);
  line-height: 0;
}
.step-btn svg { display: block; width: 12px; height: 12px; }
.step-btn:hover { background: color-mix(in srgb, var(--primary) 25%, transparent); }
.amount {
  position: relative; display: inline-flex; align-items: center;
  color: var(--primary); line-height: 1;
  text-decoration: underline dashed; text-decoration-thickness: 2px; text-underline-offset: 6px;
}
.amount .ghost { visibility: hidden; white-space: nowrap; font-variant-numeric: tabular-nums; line-height: 1; }
.amount .edit {
  position: absolute; inset: 0; display: flex; align-items: center; line-height: 1;
}
.amount input {
  width: 100%; min-width: 0; height: 1em; background: transparent; border: 0; padding: 0;
  color: inherit; font: inherit; letter-spacing: inherit; font-variant-numeric: tabular-nums;
  outline: none; line-height: 1;
}
.hint {
  margin: 0.5rem auto 0; max-width: 28rem; text-align: center;
  font-size: 0.875rem; font-weight: 600; line-height: 1.625; color: var(--muted-foreground);
}
.hint .hi { color: color-mix(in srgb, var(--primary) 80%, #3d2a32); }
form.bid { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.row { display: flex; flex-direction: column; gap: 0.5rem; }
@media (min-width: 768px) {
  .row { flex-direction: row; align-items: center; }
}
.ident { position: relative; min-width: 0; flex: 1; }
.ident .av {
  position: absolute; left: 0.625rem; top: 50%; transform: translateY(-50%);
  width: 1.5rem; height: 1.5rem; border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  color: var(--primary); display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.ident .av svg { width: 14px; height: 14px; }
.ident input, .extra input, .extra textarea {
  width: 100%; min-width: 0; border-radius: 1.15rem; border: 1px solid var(--input);
  background: color-mix(in srgb, var(--card) 70%, transparent); padding: 0.25rem 0.75rem; outline: none; color: var(--foreground);
}
.ident input { height: 2.75rem; padding-left: 2.5rem; font-size: 1rem; border-radius: 999px; }
.ident input:focus, .extra input:focus, .extra textarea:focus {
  border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 28%, transparent);
}
.extra { display: grid; grid-template-columns: 1fr; gap: 0.5rem; }
@media (min-width: 640px) { .extra { grid-template-columns: 180px 1fr; } }
.extra input { border-radius: 999px; height: 2.75rem; }
.extra textarea { min-height: 2.75rem; padding: 0.6rem 0.9rem; resize: vertical; }
.declare { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.examples { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.ex, .ex-more {
  max-width: 100%;
  border: 1px solid var(--border);
  background: var(--muted);
  color: var(--muted-foreground);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  font-size: 0.72rem;
  line-height: 1.25;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ex.on { border-color: var(--primary); color: var(--foreground); background: color-mix(in srgb, var(--primary) 12%, transparent); }
.ex:hover, .ex-more:hover { border-color: var(--primary); color: var(--foreground); }
.ex-more { flex: 0 0 auto; font-weight: 800; color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent); }
.pay {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--primary); color: var(--primary-foreground);
  font-size: 0.875rem; font-weight: 800; padding: 0 1.2rem; height: 2.75rem; white-space: nowrap;
  box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--primary) 80%, transparent);
}
.pay svg { width: 14px; height: 14px; flex-shrink: 0; }
.pay:hover { filter: brightness(1.05); }
.pay:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.subhint { margin: 0; font-size: 0.8rem; color: var(--muted-foreground); text-align: center; }
.err { margin: 0; color: #d31245; font-size: 0.875rem; font-weight: 700; }
.warn { margin: 0; color: var(--muted-foreground); font-size: 0.8rem; text-align: center; }

.side { display: grid; gap: 0.75rem; margin-top: 0.25rem; }
@media (min-width: 768px) { .side { grid-template-columns: 1fr 1fr; } }
.card {
  border-radius: 1.25rem; background: var(--card);
  box-shadow: 0 16px 36px -20px color-mix(in srgb, var(--primary) 45%, #3d2a32);
  padding: 0.875rem 1rem 0.25rem;
  border: 1px solid color-mix(in srgb, var(--primary) 16%, var(--border));
}
.dark .card { box-shadow: 0 12px 32px -18px #000; }
.card h2 { margin: 0 0 0.25rem; font-size: 0.875rem; font-weight: 800; letter-spacing: -0.02em; }
.mini { display: flex; align-items: center; gap: 0.5rem; padding: 0.375rem 0; font-size: 0.75rem; color: var(--muted-foreground); }
.mini:hover { color: var(--foreground); }
.letter {
  width: 1.5rem; height: 1.5rem; border-radius: 999px;
  background: linear-gradient(180deg, #ffe4eb, #f7c4d0);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 800; color: var(--primary); flex-shrink: 0;
}
.dark .letter { background: linear-gradient(180deg, #5a303a, #3a2228); color: var(--primary-foreground); }
.mini .nm { color: var(--foreground); font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini .meta { margin-left: auto; white-space: nowrap; }
.empty { color: var(--muted-foreground); font-size: 0.8rem; padding: 0.5rem 0 0.75rem; }

.cats { min-width: 0; }
.cats h2 {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
#cats {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
  scrollbar-width: thin;
}
@media (min-width: 900px) {
  .cats {
    position: sticky;
    top: 1rem;
    align-self: start;
    padding: 0.85rem 0.7rem 1rem;
    border-radius: 1.25rem;
    background: var(--card);
    border: 1px solid color-mix(in srgb, var(--primary) 16%, var(--border));
    box-shadow: 0 16px 36px -22px color-mix(in srgb, var(--primary) 40%, #3d2a32);
    max-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
  }
  #cats {
    flex-direction: column;
    overflow: auto;
    padding-bottom: 0;
    flex: 1;
  }
}
.cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--foreground);
  background: var(--card);
  border: 1px solid var(--border);
  white-space: nowrap;
  flex: 0 0 auto;
}
@media (min-width: 900px) {
  .cat { background: transparent; }
}
.cat .cat-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cat span:last-child { color: var(--muted-foreground); font-weight: 700; font-variant-numeric: tabular-nums; }
.cat:hover { border-color: var(--primary); color: var(--primary); }
.cat.on {
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  border-color: var(--primary);
  color: var(--primary);
}
.board-title {
  margin: 1.25rem 0 0;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
}
.board-title strong { color: var(--primary); }
.now { color: var(--primary); font-weight: 800; margin-right: 0.35rem; }

.board { list-style: none; margin: 0.35rem 0 0; padding: 0; }
.row-item { position: relative; border-top: 1px solid var(--border); }
.row-item.top3 {
  margin: 0.375rem 0; border: 2px solid color-mix(in srgb, var(--primary) 40%, transparent);
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  border-radius: 1rem; border-top-width: 2px;
}
.row-item[data-rank="1"] {
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 16%, transparent), color-mix(in srgb, var(--primary) 6%, transparent));
  border-color: var(--primary);
}
.row-link { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.25rem; min-height: 100%; }
@media (min-width: 768px) { .row-link { gap: 0.75rem; padding: 0.75rem 0.25rem; } }
.rank {
  width: 2.5rem; min-width: 1.75rem; font-weight: 800; font-variant-numeric: tabular-nums;
  font-size: 0.875rem; color: var(--muted-foreground);
}
.row-item[data-rank="1"] .rank { color: var(--primary); }
.av-lg {
  width: 2.5rem; height: 2.5rem; border-radius: 999px;
  background: linear-gradient(180deg, #ffe4eb, #f4b8c6);
  display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0;
  color: var(--primary);
}
.dark .av-lg { background: linear-gradient(180deg, #5a303a, #3a2228); color: #fff; }
@media (min-width: 768px) { .av-lg { width: 3.5rem; height: 3.5rem; } }
.row-item[data-rank="1"] .av-lg {
  background: linear-gradient(180deg, #ff9aaf, #e45c7a);
  color: #fff;
  box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--primary);
}
.body { min-width: 0; flex: 1; }
.title { display: flex; align-items: baseline; gap: 0.5rem; }
.title p { margin: 0; min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.875rem; font-weight: 800; }
.title .amt { flex-shrink: 0; font-size: 0.875rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--primary); }
@media (min-width: 768px) {
  .title p, .title .amt { font-size: 1rem; }
}
.desc {
  margin: 0; min-width: 0;
  color: color-mix(in srgb, var(--muted-foreground) 85%, transparent);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  font-family: var(--serif); font-style: italic; font-size: 0.95rem; line-height: 1.35;
}
@media (min-width: 768px) { .desc { font-size: 1.05rem; } }
.meta {
  margin: 2px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem 0.375rem;
  font-size: 11px; color: color-mix(in srgb, var(--muted-foreground) 70%, transparent);
}
@media (min-width: 768px) { .meta { font-size: 0.75rem; } }
.clicks { display: inline-flex; align-items: center; gap: 0.25rem; font-weight: 700; color: var(--foreground); }
.clicks .ping { position: relative; width: 6px; height: 6px; }
.clicks .ping i, .clicks .ping b { position: absolute; inset: 0; border-radius: 999px; background: var(--primary); }
.clicks .ping i { animation: ping 1s cubic-bezier(0,0,.2,1) infinite; opacity: .75; }
.claim-pill {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%);
  z-index: 20; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--primary); color: var(--primary-foreground);
  padding: 0.125rem 0.7rem; font-size: 0.75rem; font-weight: 800; white-space: nowrap;
  box-shadow: 0 6px 14px -8px var(--primary); opacity: 0; pointer-events: none; transition: opacity .15s;
}
.row-item:hover .claim-pill, .row-item:focus-within .claim-pill { opacity: 1; pointer-events: auto; }
.row-item.preview { outline: 2px solid color-mix(in srgb, var(--primary) 40%, transparent); border-radius: 1rem; }
.divider {
  display: flex; align-items: center; gap: 0.5rem; margin: 0.5rem 0;
  font-size: 0.75rem; font-weight: 800; color: var(--primary);
  font-family: var(--script); font-size: 1.25rem; font-weight: 400; letter-spacing: 0.04em;
}
.divider:before, .divider:after { content: ""; flex: 1; height: 1px; background: var(--border); }

.pager {
  margin-top: 1.25rem; display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; color: var(--muted-foreground);
}
.pages { display: flex; align-items: center; gap: 0.15rem; }
.pages button {
  min-width: 2rem; height: 2rem; border: 0; background: transparent; cursor: pointer;
  border-radius: 999px; color: var(--primary); font-weight: 700;
}
.pages button.on { background: var(--muted); color: var(--foreground); }
.refresh {
  border: 0; background: transparent; color: var(--muted-foreground); cursor: pointer; font-size: 0.8rem;
}
.refresh:hover { color: var(--foreground); }

.made { margin-top: 3.5rem; display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--muted-foreground); }
.made a { font-weight: 700; color: var(--primary); }
.made a:hover { opacity: .8; }
.made strong { color: var(--foreground); }
.site-footer { margin-top: 4rem; padding-bottom: 2rem; text-align: center; font-size: 0.8rem; color: var(--muted-foreground); position: relative; z-index: 1; }
.site-footer a { color: var(--primary); }
.site-footer a:hover { opacity: .8; }

.prose { max-width: 40rem; margin: 0 auto; }
.prose h1 { font-family: var(--serif); font-size: 2.2rem; letter-spacing: -0.03em; margin: 0 0 0.75rem; }
.prose h2 { font-family: var(--serif); font-size: 1.3rem; margin: 1.75rem 0 0.5rem; }
.prose p, .prose li { color: var(--muted-foreground); line-height: 1.65; }
.prose a { color: var(--primary); font-weight: 700; }
.success-card {
  margin: 1.5rem auto; max-width: 36rem; padding: 1.5rem 1.35rem;
  border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--border));
  border-radius: 1.5rem; background: var(--card); text-align: center;
  box-shadow: 0 18px 36px -24px var(--primary);
}
.success-card h2 { margin: 0 0 0.35rem; font-family: var(--serif); font-size: 2rem; }
.success-card blockquote { font-family: var(--serif); font-style: italic; font-size: 1.15rem; }
.letter-page {
  max-width: 40rem; margin: 0 auto; text-align: center;
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--primary) 20%, var(--border));
  border-radius: 1.75rem;
  padding: 2.25rem 1.5rem 2rem;
  box-shadow: 0 24px 48px -28px color-mix(in srgb, var(--primary) 55%, #3d2a32);
}
.letter-page .hint { color: var(--primary); font-weight: 800; }
.letter-page h1 {
  font-family: var(--serif); font-size: clamp(2rem, 6vw, 3.5rem);
  letter-spacing: -0.04em; margin: 0.25rem 0;
}
.letter-page blockquote {
  font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1.5; margin: 1.25rem 0;
  color: var(--foreground);
}
.letter-page blockquote::before {
  content: "♡"; display: block; color: var(--primary); font-style: normal; margin-bottom: 0.4rem;
}
.letter-page .pay { margin-top: 0.5rem; }
