/* ═══════════════════════════════════════════════════════════════
   themilf.online — Roxxxy link hub
   Dark-first glassmorphism, mobile-first. Customize in :root below.
   ═════════════════════════════════════════════════[data-]═════ */
:root {
  /* Brand accents */
  --rose:   #ff2d78;   /* primary accent            */
  --rose-2: #ff5e3a;   /* secondary (gradient mate) */
  --gold:   #ffd166;   /* subtle sparkle accent     */

  /* Dark theme surfaces */
  --bg-0: #12030b;
  --bg-1: #1d0713;
  --ink:  #fff0f6;
  --ink-dim: rgba(255, 240, 246, .62);

  /* Glass */
  --glass: rgba(255, 255, 255, .055);
  --glass-strong: rgba(255, 255, 255, .09);
  --stroke: rgba(255, 255, 255, .14);
  --stroke-soft: rgba(255, 255, 255, .08);

  /* Layout */
  --card-w: 30rem;
  --radius: 26px;
  --radius-sm: 16px;
}

/* ── Light theme ─────────────────────────────────────────────── */
[data-theme="light"] {
  --bg-0: #fdf1f6;
  --bg-1: #ffe4ee;
  --ink:  #2a0817;
  --ink-dim: rgba(42, 8, 23, .62);
  --glass: rgba(255, 255, 255, .55);
  --glass-strong: rgba(255, 255, 255, .75);
  --stroke: rgba(42, 8, 23, .14);
  --stroke-soft: rgba(42, 8, 23, .08);
  --gold: #b8860b;
}

/* ── Fonts (self-hosted; nginx CSP is font-src 'self') ───────── */
/* Inter variable, latin subset, weights 400–700 in one file. SIL OFL. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
}
/* Playfair Display 800, latin subset — only the name uses it. SIL OFL. */
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("assets/fonts/playfair-display-800-latin.woff2") format("woff2");
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg-0);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }   /* author display rules (e.g. .board__more) must not override the hidden attribute */

/* ── Background atmosphere ───────────────────────────────────── */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(255, 45, 120, .16), transparent 55%),
    radial-gradient(110% 80% at 0% 100%, rgba(255, 94, 58, .12), transparent 50%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1));
  transition: background .5s ease;
}
.bg__aurora {
  position: absolute;
  inset: -20%;
  background: conic-gradient(from 180deg at 50% 50%,
    rgba(255, 45, 120, .10), rgba(255, 94, 58, .08),
    rgba(255, 209, 102, .06), rgba(255, 45, 120, .10));
  filter: blur(90px);
  animation: spin 26s linear infinite;
}
[data-theme="light"] .bg__aurora { opacity: .35; }
@keyframes spin { to { transform: rotate(1turn); } }
.bg__grain {
  position: absolute;
  inset: 0;
  opacity: .5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}
.bg__glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .35; }
.bg__glow--1 { width: 320px; height: 320px; top: -80px; left: -100px; background: var(--rose); }
.bg__glow--2 { width: 280px; height: 280px; bottom: 6%; right: -90px; background: var(--rose-2); }

/* ── Theme toggle ────────────────────────────────────────────── */
.theme-toggle {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  right: calc(env(safe-area-inset-right, 0px) + 14px);
  z-index: 20;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--stroke);
  background: var(--glass-strong);
  color: var(--ink);
  font-size: 19px;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .3s ease, background .3s ease;
}
.theme-toggle:hover { transform: rotate(20deg) scale(1.08); }
.theme-toggle .theme-toggle__icon { display: block; transform: rotate(0); transition: transform .4s ease; }
[data-theme="light"] .theme-toggle .theme-toggle__icon { display: inline-block; }

/* ── Card ────────────────────────────────────────────────────── */
.card {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2rem), var(--card-w));
  margin: 2.2rem auto 3.5rem;
  padding: 2rem 1.4rem 1.6rem;
  background: var(--glass);
  border: 1px solid var(--stroke-soft);
  border-radius: var(--radius);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .45);
}
[data-theme="light"] .card { box-shadow: 0 24px 70px rgba(42, 8, 23, .14); }

/* ── Profile ─────────────────────────────────────────────────── */
.profile { text-align: center; }
.avatar-wrap { position: relative; width: 132px; height: 132px; margin: 0 auto .9rem; }
.avatar {
  width: 132px; height: 132px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, .22);
  box-shadow: 0 10px 34px rgba(255, 45, 120, .38);
}
[data-theme="light"] .avatar { border-color: rgba(42, 8, 23, .12); }
.avatar-ring {
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  background: conic-gradient(var(--rose), var(--gold), var(--rose-2), var(--rose));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3.5px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3.5px), #000 calc(100% - 3px));
  animation: spin 7s linear infinite;
}
.avatar-status {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #2ecc71;
  border: 3px solid var(--bg-0);
  display: grid;
  place-items: center;
}
[data-theme="light"] .avatar-status { border-color: var(--bg-0); }
.pulse {
  display: block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.6); opacity: .55; } }

.name {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 6vw, 2.5rem);
  font-weight: 800;
  letter-spacing: .5px;
  background: linear-gradient(92deg, var(--ink) 35%, var(--rose) 75%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tagline { margin: .3rem 0 0; font-size: .95rem; font-weight: 600; color: var(--rose); }
.verified { font-size: .8em; }
.bio { margin: .55rem auto 0; max-width: 26rem; font-size: .92rem; line-height: 1.55; color: var(--ink-dim); }
/* Scroll hint under the bio: full-strength ink so it is not skimmed past, both words are jump links
   (#gallery, #board). The light theme gets a darker rose: #ff2d78 on the pale card is under 4.5:1. */
.bio--hint { margin-top: .45rem; font-weight: 600; color: var(--ink); }
.bio--hint a { white-space: nowrap; color: var(--rose); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.bio--hint a:hover, .bio--hint a:focus-visible { color: var(--rose-2); }
[data-theme="light"] .bio--hint a { color: #c2185b; }
[data-theme="light"] .bio--hint a:hover, [data-theme="light"] .bio--hint a:focus-visible { color: #8e0f40; }
.bio__arrow { display: inline-block; margin-left: .1rem; color: var(--rose); animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
/* 2.6rem, not 1rem: a section that has not been revealed yet is still shifted down 22px (.reveal) when the
   browser measures the jump, then slides up - with a small margin its heading ended 6px above the screen. */
#gallery, #board { scroll-margin-top: 2.6rem; }

.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
  margin-top: 1.05rem;
}
.stat {
  min-width: 124px;
  padding: .55rem 1rem;
  background: var(--glass);
  border: 1px solid var(--stroke-soft);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.stat b { display: block; font-size: 1.18rem; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 2px; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-dim); }
/* live chips (visitors / online now) — filled by board.js; the number pops when it changes */
.stat--live b { transition: color .3s ease; }
.stat--live.bump b { animation: bump .5s cubic-bezier(.2, .9, .3, 1.4); color: var(--rose); }
@keyframes bump { 40% { transform: scale(1.18); } }

/* ── Links ───────────────────────────────────────────────────── */
.links { display: grid; gap: .85rem; margin-top: 1.5rem; }

.link {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .85rem;
  padding: .95rem 1rem;
  min-height: 74px;
  border-radius: var(--radius-sm);
  background: var(--glass);
  border: 1px solid var(--stroke-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  isolation: isolate;
  transition: transform .35s cubic-bezier(.2, .9, .3, 1.4), box-shadow .35s ease, border-color .35s ease;
  will-change: transform;
}
.link:hover, .link:focus-visible {
  transform: translateY(-4px) scale(1.015);
  border-color: rgba(255, 45, 120, .55);
  box-shadow: 0 18px 44px rgba(255, 45, 120, .28);
  outline: none;
}
.link:active { transform: translateY(-1px) scale(.99); }

/* photo revealed on hover — hidden on touch/coarse pointers, opacity 0 otherwise */
.link__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center 22%;
  opacity: 0;
  transform: scale(1.12);
  transition: opacity .45s ease, transform .8s ease;
}
.link:hover .link__bg, .link:focus-visible .link__bg { opacity: .92; transform: scale(1.02); }
.link__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(10, 2, 8, .82) 0%, rgba(10, 2, 8, .55) 45%, rgba(10, 2, 8, .18) 100%);
  opacity: 0;
  transition: opacity .45s ease;
}
.link:hover .link__scrim, .link:focus-visible .link__scrim { opacity: 1; }

.link__icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--glass-strong);
  border: 1px solid var(--stroke-soft);
  color: var(--ink);
  transition: transform .35s ease, background .35s ease;
}
.link:hover .link__icon { transform: rotate(-8deg) scale(1.1); }

.link__body b { display: block; font-size: 1.02rem; font-weight: 700; letter-spacing: .01em; }
.link__body small { display: block; margin-top: 2px; font-size: .78rem; color: var(--ink-dim); }
.link:hover .link__body small { color: rgba(255, 240, 246, .85); }

.link__cta {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  border: 1px solid var(--stroke);
  padding: .42rem .7rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: all .3s ease;
}
.link:hover .link__cta {
  background: linear-gradient(135deg, var(--rose), var(--rose-2));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 20px rgba(255, 45, 120, .45);
}
.link__arrow {
  position: absolute;
  right: .9rem;
  bottom: .55rem;
  font-size: .95rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: all .3s ease;
}
.link:hover .link__arrow { opacity: .8; transform: translateX(0); }

/* the e-mail list card is a <button>: strip the UA button styling so it renders like the <a> cards */
button.link {
  width: 100%;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.link--list[aria-expanded="true"] { border-color: rgba(255, 45, 120, .55); }
.link--list[aria-expanded="true"] .link__arrow { opacity: .8; transform: rotate(90deg); }
.link--list[aria-expanded="true"] .link__cta { background: linear-gradient(135deg, var(--rose), var(--rose-2)); border-color: transparent; color: #fff; }

/* per-platform accent on the CTA chip (.link--mail keeps the default rose gradient) */
.link--fansly:hover .link__cta,
.link--gift:hover .link__cta      { background: linear-gradient(135deg, #2196f3, #0d47a1); }
.link--x:hover .link__cta         { background: linear-gradient(135deg, #333, #000); }
.link--cashapp:hover .link__cta   { background: linear-gradient(135deg, #00d632, #00962a); }
.link--instagram:hover .link__cta { background: linear-gradient(135deg, #f58529, #dd2a7b 55%, #8134af); }

/* gift-code card: gold edge at rest so the offer reads as the one to click first */
.link--gift { border-color: rgba(255, 209, 102, .38); }
.link--gift:hover, .link--gift:focus-visible {
  border-color: rgba(255, 209, 102, .85);
  box-shadow: 0 18px 44px rgba(255, 209, 102, .22);
}
/* pale gold vanishes on the light surfaces; use the light theme's darker gold there */
[data-theme="light"] .link--gift { border-color: rgba(184, 134, 11, .45); }
[data-theme="light"] .link--gift:hover, [data-theme="light"] .link--gift:focus-visible {
  border-color: rgba(184, 134, 11, .85);
  box-shadow: 0 18px 44px rgba(184, 134, 11, .18);
}
/* "Only 100" pill inside the card title. Fixed colours: --gold changes in the light theme and the
   pill has to stay readable on the hover photo in both themes. */
.link__badge {
  display: inline-block;
  vertical-align: 2px;
  margin-left: .35rem;
  padding: .14rem .5rem;
  border-radius: 999px;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #2a0817;
  background: linear-gradient(135deg, #ffd166, #ffb347);
  white-space: nowrap;
}

@media (hover: none) {
  .link__bg, .link__scrim { display: none; }
}

/* ── Special requests (email + Cash App) ─────────────────────── */
.links--requests { margin-top: 1.7rem; }
.links__head { text-align: center; }
.links__lead {
  margin: .6rem auto 0;
  max-width: 24rem;
  font-size: .84rem;
  line-height: 1.5;
  color: var(--ink-dim);
}
.links__lead b { color: var(--ink); font-weight: 700; }

/* ── Gallery ─────────────────────────────────────────────────── */
.gallery { margin-top: 2.2rem; }
/* section rule: label between two hairlines (shared with the Special requests heading) */
.gallery__title, .links__title {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin: 0 0 1rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.links__title { margin-bottom: 0; }
.gallery__title::before, .gallery__title::after,
.links__title::before, .links__title::after { content: ""; height: 1px; flex: 1; background: var(--stroke-soft); }
/* 3 columns; the first tile is a full-width landscape hero, so 1 + 12 tiles fill 5 rows exactly */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
}
.tile {
  position: relative;
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--stroke-soft);
  cursor: zoom-in;
  transform: translateZ(0);
}
.tile img {
  width: 100%;
  height: auto;            /* the height="" attribute is only a layout hint; without this it wins over aspect-ratio */
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.tile:hover img { transform: scale(1.07); }
/* hero: full width, landscape. Declared after .tile img so the aspect-ratio wins the cascade. */
.tile--wide { grid-column: 1 / -1; }
.tile--wide img { aspect-ratio: 3 / 2; }
.tile::after {
  content: attr(data-cap);
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.4rem .55rem .45rem;
  background: linear-gradient(transparent, rgba(10, 2, 8, .85));
  color: #fff;
  font-size: .7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition: all .35s ease;
}
.tile:hover::after { opacity: 1; transform: translateY(0); }
.gallery__note {
  margin: .9rem 0 0;
  text-align: center;
  font-size: .8rem;
  color: var(--ink-dim);
}
.gallery__note a { color: var(--rose); font-weight: 600; }
.gallery__note a:hover { text-decoration: underline; }

/* ── E-mail list panel (opens under the "Join my email list" card) ── */
.subscribe {
  margin-top: -.25rem;
  padding: .9rem .95rem 1rem;
  background: var(--glass);
  border: 1px solid rgba(255, 45, 120, .3);
  border-radius: var(--radius-sm);
  animation: msgIn .35s ease;
}
.subscribe__form { display: grid; gap: .55rem; }
.subscribe__row { display: flex; gap: .55rem; }
.subscribe__row .board__input { flex: 1; min-width: 0; }
.subscribe__consent { display: flex; align-items: flex-start; gap: .55rem; font-size: .78rem; line-height: 1.45; color: var(--ink-dim); cursor: pointer; }
.subscribe__consent input { flex: none; width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--rose); cursor: pointer; }
.subscribe__status { min-height: 0; }

/* ── Instagram QR strip (under the primary nav) ──────────────── */
.qr {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: .9rem;
  margin-top: .85rem;
  padding: .8rem .9rem;
  background: var(--glass);
  border: 1px solid var(--stroke-soft);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.qr__img {
  display: block;
  width: 104px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;             /* the QR needs its white quiet zone in both themes */
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
  transition: transform .3s ease;
}
.qr__img:hover, .qr__img:focus-visible { transform: scale(1.04); outline: none; }
.qr__img img { width: 100%; height: auto; }
.qr__text b { display: block; font-size: .95rem; font-weight: 700; }
.qr__text span { display: block; margin-top: 3px; font-size: .78rem; line-height: 1.45; color: var(--ink-dim); }
.qr__text span b { display: inline; font-size: inherit; color: var(--ink); }

/* ── Message board ───────────────────────────────────────────── */
.board { position: relative; margin-top: 2.2rem; }
.board__form { display: grid; gap: .7rem; margin-top: 1rem; }
.board__row { display: grid; gap: .3rem; }
.board__label { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-dim); }
.board__label em { font-style: normal; font-weight: 500; letter-spacing: 0; text-transform: none; opacity: .8; }
.board__input {
  width: 100%;
  padding: .7rem .85rem;
  font: inherit;
  font-size: .92rem;
  color: var(--ink);
  background: var(--glass-strong);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  outline: none;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.board__input::placeholder { color: var(--ink-dim); opacity: .85; }
.board__input:focus { border-color: rgba(255, 45, 120, .6); box-shadow: 0 0 0 3px rgba(255, 45, 120, .18); }
.board__textarea { min-height: 84px; max-height: 260px; resize: vertical; line-height: 1.45; }
.board__meta { display: flex; justify-content: flex-end; }
.board__count { font-size: .68rem; color: var(--ink-dim); font-variant-numeric: tabular-nums; }
.board__count.over { color: var(--rose-2); font-weight: 700; }
/* honeypot: off-screen, never display:none (some bots skip hidden fields) */
.board__hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.board__actions { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.board__status { margin: 0; min-height: 1.2em; font-size: .8rem; color: var(--ink-dim); }
.board__status.err { color: var(--rose-2); }
.board__status.ok { color: #2ecc71; }
.board__submit {
  flex: none;
  padding: .62rem 1.35rem;
  font: inherit;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--rose-2));
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(255, 45, 120, .35);
  transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease;
}
.board__submit:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255, 45, 120, .45); }
.board__submit:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.board__list { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .6rem; }
.msg {
  padding: .75rem .9rem;
  background: var(--glass);
  border: 1px solid var(--stroke-soft);
  border-radius: var(--radius-sm);
  animation: msgIn .45s ease;
}
.msg--own { border-color: rgba(255, 45, 120, .38); }
.msg--owner { border-color: rgba(255, 209, 102, .5); background: rgba(255, 209, 102, .06); }
.msg__head { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.msg__name { font-size: .9rem; font-weight: 700; overflow-wrap: anywhere; }
.msg__badge {
  padding: .12rem .45rem;
  border-radius: 999px;
  font-size: .56rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #2a0817;
  background: linear-gradient(135deg, #ffd166, #ffb347);
}
.msg__badge--you { color: var(--ink-dim); background: var(--glass-strong); border: 1px solid var(--stroke); }
.msg__time { margin-left: auto; font-size: .68rem; color: var(--ink-dim); white-space: nowrap; }
.msg__body { margin: .35rem 0 0; font-size: .9rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.removing { opacity: 0; transform: translateX(12px); transition: opacity .35s ease, transform .35s ease; }
@keyframes msgIn { from { opacity: 0; transform: translateY(-6px); } }
.board__empty { margin: 1.2rem 0 0; text-align: center; font-size: .84rem; color: var(--ink-dim); }
.board__more {
  display: block;
  margin: .9rem auto 0;
  padding: .5rem 1rem;
  font: inherit;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  cursor: pointer;
}
.board__more:hover { color: var(--ink); border-color: rgba(255, 45, 120, .5); }

/* ── Footer ──────────────────────────────────────────────────── */
.foot { margin-top: 2.2rem; text-align: center; }
.foot p { margin: .3rem 0; }
.foot__age { font-size: .74rem; color: var(--ink-dim); }
.foot__copy { font-size: .68rem; color: var(--ink-dim); opacity: .7; }

/* ── Lightbox ────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: rgba(8, 1, 5, .9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: fadeIn .25s ease;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  /* portrait shots are bounded by height, landscape ones by width */
  max-width: min(92vw, 960px);
  max-height: 82dvh;
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .6);
  animation: zoomIn .3s cubic-bezier(.2, .9, .3, 1.2);
}
.lightbox__close, .lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--stroke);
  background: var(--glass-strong);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .25s ease, background .25s ease;
}
.lightbox__close:hover, .lightbox__nav:hover { transform: scale(1.12); background: rgba(255, 45, 120, .35); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__nav--prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__cap { color: rgba(255,255,255,.85); font-size: .85rem; margin-top: .8rem; text-align: center; }

@keyframes fadeIn { from { opacity: 0; } }
@keyframes zoomIn { from { transform: scale(.92); opacity: 0; } }

/* ── Entrance animations ─────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .9, .3, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bg__aurora { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .link, .link__bg, .tile img, .avatar-ring { transition: none; animation: none; }
  .msg, .stat--live.bump b, .bio__arrow { animation: none; }
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 420px) {
  .card { padding: 1.6rem 1rem 1.3rem; margin-top: 1.4rem; }
  .stat { min-width: 0; flex: 1 1 0; padding: .5rem .4rem; }
  .stat b { font-size: 1.05rem; }
  .stat span { font-size: .6rem; letter-spacing: .08em; }
  .qr__img { width: 88px; }
  .qr__text span { font-size: .74rem; }
  .msg__time { margin-left: 0; flex-basis: 100%; }
  .link__cta { display: none; }
  .link__body small { font-size: .74rem; }
  .gallery__grid { gap: .4rem; }
  .tile::after { font-size: .64rem; padding: 1.1rem .45rem .35rem; }
  .lightbox { padding: 1rem; }
  .lightbox__nav { width: 40px; height: 40px; }
  .lightbox__nav--prev { left: 6px; }
  .lightbox__nav--next { right: 6px; }
}