@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght,SOFT,WONK@0,9..144,300..900,0..100,0..1;1,9..144,300..900,0..100,0..1&family=Quicksand:wght@400;500;600;700&family=Lora:ital,wght@0,400..700;1,400..700&family=Noto+Serif+TC:wght@300;400;500;700&family=Noto+Sans+TC:wght@400;500;700&family=Caveat:wght@500;700&display=swap');

*, *::before, *::after { box-sizing: border-box; }

:root {
  /* Warm paper palette — gentle on eyes */
  --paper: #fbf5e9;
  --paper-soft: #f5ead4;
  --paper-deep: #ecdfc4;
  --cream-light: #fff8e9;
  --ink: #3d2a20;
  --ink-mid: #6b5246;
  --ink-soft: #8c7263;
  --ink-muted: #a3937f;
  --rose: #c97862;
  --rose-deep: #a55a45;
  --rose-soft: #ecc7bb;
  --rose-glow: #f3d4c7;
  --sage: #7a8e5a;
  --sage-soft: #c8d3b2;
  --butter: #e6b347;
  --butter-soft: #f6e6b9;
  --cocoa: #6b3f28;
  --plum: #8b4d5e;
  --warm-red: #c44a3b;

  --shadow-soft: 0 6px 18px -6px rgba(101, 64, 44, 0.18);
  --shadow-mid: 0 18px 40px -16px rgba(101, 64, 44, 0.25);
  --shadow-deep: 0 30px 60px -20px rgba(101, 64, 44, 0.35);
  --glow-rose: 0 0 28px rgba(201, 120, 98, 0.22);

  --font-display: 'Fraunces', 'Noto Serif TC', serif;
  --font-serif: 'Lora', 'Noto Serif TC', serif;
  --font-sans: 'Quicksand', 'Noto Sans TC', sans-serif;
  --font-hand: 'Caveat', 'Noto Serif TC', cursive;

  --rule-soft: 1px solid rgba(122, 96, 82, 0.16);
  --rule-mid: 1px solid rgba(122, 96, 82, 0.28);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
}

html, body { background: var(--paper); color: var(--ink); }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-weight: 500;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.005em;
}

[hidden] { display: none !important; }

/* ─── Atmosphere — warm paper texture ───────────────────── */
.atmosphere { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.atmosphere .grain {
  position: absolute; inset: -50%; opacity: 0.18;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.55 0 0 0 0 0.40 0 0 0 0 0.30 0 0 0 0.4 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}
.atmosphere .spot { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.65; }
.atmosphere .spot-tl {
  width: 52vw; height: 52vw; top: -20vw; left: -16vw;
  background: radial-gradient(circle, rgba(243, 212, 199, 0.5), transparent 70%);
}
.atmosphere .spot-tr {
  width: 46vw; height: 46vw; top: -14vw; right: -16vw;
  background: radial-gradient(circle, rgba(246, 230, 185, 0.45), transparent 70%);
}
.atmosphere .spot-bc {
  width: 70vw; height: 50vw; bottom: -28vw; left: 14vw;
  background: radial-gradient(circle, rgba(200, 211, 178, 0.30), transparent 70%);
}
.atmosphere .vignette {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(251, 245, 233, 0.2), transparent 20%, transparent 80%, rgba(236, 223, 196, 0.35));
}

/* ─── Header ────────────────────────────────────────────── */
header {
  position: relative; padding: 56px 32px 32px;
  max-width: 1440px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px;
}
header::after {
  content: ""; position: absolute; left: 32px; right: 32px; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(122, 96, 82, 0.22) 20%, rgba(122, 96, 82, 0.22) 80%, transparent);
}
.brand-mark { text-align: left; animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.brand-ornament { display: block; width: 48px; height: 24px; color: var(--rose); margin-bottom: 12px; opacity: 0.8; }
.brand-mark h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 0.95;
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.brand-tag {
  margin: 12px 0 0;
  font-family: var(--font-hand);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--rose);
  text-transform: none;
}

#nav { display: flex; align-items: center; gap: 16px; }
#userInfo {
  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.02em;
  position: relative;
  padding-right: 18px;
}
#userInfo::after {
  content: "•"; position: absolute; right: 0; top: 50%;
  transform: translateY(-50%); color: var(--rose); font-size: 18px;
}
#userInfo:empty::after { display: none; }

#loginToggleBtn, #logoutBtn {
  padding: 10px 22px;
  background: var(--rose);
  color: var(--cream-light);
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
#loginToggleBtn:hover, #logoutBtn:hover {
  background: var(--rose-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-mid);
}

@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

main { max-width: 1440px; margin: 0 auto; padding: 0 32px 120px; }

/* ─── Auth panel ────────────────────────────────────────── */
#authView {
  position: relative;
  max-width: 440px;
  margin: 40px auto 48px;
  padding: 44px 36px 32px;
  background: var(--cream-light);
  border: var(--rule-mid);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-deep);
  animation: pop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}
#authView::before {
  content: "";
  position: absolute; inset: 8px;
  border: 1px dashed rgba(201, 120, 98, 0.35);
  border-radius: calc(var(--radius-lg) - 6px);
  pointer-events: none;
}
@keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

.close-btn {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px;
  border: 0;
  background: var(--paper-soft);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-sans);
  transition: all 0.25s ease;
  z-index: 2;
}
.close-btn:hover {
  background: var(--rose);
  color: var(--cream-light);
  transform: rotate(90deg);
}

.auth-heading {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin-bottom: 22px;
}
.auth-ornament { width: 10px; height: 10px; color: var(--rose); }
.auth-label {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 26px;
  color: var(--ink);
  letter-spacing: 0.01em;
  font-variation-settings: "opsz" 120, "SOFT" 100, "WONK" 1;
}

.tabs {
  display: flex; gap: 8px;
  margin-bottom: 22px;
  padding: 4px;
  background: var(--paper-soft);
  border-radius: var(--radius-pill);
}
.tabs button {
  flex: 1; background: transparent;
  color: var(--ink-soft);
  border: 0;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
}
.tabs button:hover { color: var(--ink); }
.tabs button.active {
  background: var(--cream-light);
  color: var(--rose);
  box-shadow: var(--shadow-soft);
}

.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form[hidden] { display: none !important; }
.auth-form input {
  background: var(--paper);
  border: 1.5px solid rgba(122, 96, 82, 0.18);
  border-radius: var(--radius);
  color: var(--ink);
  padding: 13px 16px;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 400;
  transition: all 0.25s ease;
}
.auth-form input::placeholder {
  color: var(--ink-muted);
  font-style: italic;
}
.auth-form input:focus {
  outline: none;
  border-color: var(--rose);
  background: var(--cream-light);
  box-shadow: 0 0 0 4px var(--rose-glow);
}
.auth-form button {
  margin-top: 8px;
  padding: 14px 24px;
  background: var(--rose);
  color: var(--cream-light);
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: all 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
  box-shadow: var(--shadow-soft);
}
.auth-form button:hover {
  background: var(--rose-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-mid);
}

.msg {
  margin: 14px 0 0; min-height: 1.4em;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-soft);
  text-align: center;
}
.msg.error { color: var(--warm-red); }
.msg.ok { color: var(--sage); }

/* ─── Guest notice ──────────────────────────────────────── */
.guest-notice {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  max-width: 720px; margin: 24px auto 28px;
  padding: 14px 22px;
  background: var(--butter-soft);
  border: var(--rule-soft);
  border-radius: var(--radius-pill);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14.5px;
  color: var(--cocoa);
  letter-spacing: 0.01em;
}
.guest-mark { color: var(--rose); font-size: 15px; }
.link-btn {
  background: none; border: 0;
  color: var(--rose-deep);
  font-family: inherit;
  font-style: italic;
  font-size: inherit;
  cursor: pointer;
  border-bottom: 1px solid var(--rose);
  padding: 0 2px;
  font-weight: 600;
  transition: color 0.25s ease;
}
.link-btn:hover { color: var(--cocoa); }

/* ─── Filter bar ────────────────────────────────────────── */
.filter-bar {
  display: flex; gap: 8px;
  overflow-x: auto; scrollbar-width: none;
  padding: 6px 0 14px; margin-bottom: 28px;
  -webkit-overflow-scrolling: touch;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-bar:empty { display: none; }
.filter-chip {
  flex-shrink: 0;
  padding: 8px 16px;
  background: var(--cream-light);
  border: 1.5px solid rgba(122, 96, 82, 0.16);
  border-radius: var(--radius-pill);
  color: var(--ink-soft);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: all 0.3s ease;
}
.filter-chip:hover {
  color: var(--ink);
  border-color: var(--rose);
  transform: translateY(-1px);
}
.filter-chip.active {
  color: var(--cream-light);
  background: var(--rose);
  border-color: var(--rose);
  box-shadow: var(--shadow-soft);
}
.filter-chip.dup {
  color: var(--warm-red);
  border-color: rgba(196, 74, 59, 0.4);
}
.filter-chip.dup.active {
  background: var(--warm-red);
  color: var(--cream-light);
  border-color: var(--warm-red);
}

/* ─── Gallery sections ──────────────────────────────────── */
.gallery { display: flex; flex-direction: column; gap: 52px; }
.gallery > section { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.group-header {
  margin: 0 0 18px; padding: 0;
  font-family: var(--font-display);
  font-style: italic; font-weight: 400;
  font-size: clamp(24px, 2.6vw, 34px);
  color: var(--ink);
  letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 14px;
  font-variation-settings: "opsz" 96, "SOFT" 100, "WONK" 1;
}
.group-header::before {
  content: "❀";
  color: var(--rose);
  font-size: 16px; font-style: normal;
  transform: translateY(-2px);
}
.group-header::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(201, 120, 98, 0.4), transparent);
  margin-left: 10px;
}

.group-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
@media (min-width: 720px) { .group-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; } }
@media (min-width: 1100px) { .group-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; } }

/* ─── Tile ──────────────────────────────────────────────── */
.tile {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
  background: var(--paper-soft);
  border: 1.5px solid rgba(122, 96, 82, 0.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 0.3s ease,
    box-shadow 0.4s ease;
  transform: translateY(8px);
  opacity: 0;
  animation: tileIn 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
@keyframes tileIn { to { transform: translateY(0); opacity: 1; } }
.tile:hover {
  transform: translateY(-4px);
  border-color: var(--rose);
  box-shadow: var(--shadow-deep), 0 0 0 1px var(--rose-glow);
}
.tile img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(1) contrast(1);
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.4s ease;
}
.tile:hover img { transform: scale(1.05); filter: saturate(1.08) contrast(1.04); }

.tile-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(61, 42, 32, 0.85) 100%);
  opacity: 0; transition: opacity 0.35s ease;
  padding: 16px 14px 12px;
  display: flex; flex-direction: column; justify-content: flex-end;
  pointer-events: none;
}
.tile:hover .tile-overlay { opacity: 1; }
.tile-date {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--cream-light);
  letter-spacing: 0.02em;
}

.tile-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-family: var(--font-sans);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--cream-light);
  background: var(--sage);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-soft);
}
.tile-badge.dup {
  background: var(--warm-red);
  top: 10px; left: auto; right: 10px;
}

.tile-tags {
  position: absolute; bottom: 10px; left: 10px; right: 10px;
  display: flex; flex-wrap: wrap; gap: 4px; z-index: 2;
  opacity: 0; transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.35s ease;
  pointer-events: none;
}
.tile:hover .tile-tags { opacity: 1; transform: translateY(0); }
.tile-tag {
  background: rgba(255, 248, 233, 0.95);
  color: var(--rose-deep);
  font-family: var(--font-sans);
  font-size: 10px; font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden; text-overflow: ellipsis;
  box-shadow: var(--shadow-soft);
}

.tile-lock {
  position: absolute; bottom: 10px; left: 10px; z-index: 2;
  background: rgba(255, 248, 233, 0.95);
  color: var(--cocoa);
  font-family: var(--font-sans);
  font-size: 10px; font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  opacity: 0; transition: opacity 0.3s ease;
  box-shadow: var(--shadow-soft);
}
.tile:hover .tile-lock { opacity: 1; }

.tile-delete {
  position: absolute; top: 10px; right: 10px; z-index: 4;
  width: 28px; height: 28px;
  border: 0;
  background: rgba(255, 248, 233, 0.95);
  color: var(--warm-red);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 18px; font-weight: 500; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  opacity: 0; transform: scale(0.85);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-soft);
  padding: 0;
}
.tile:hover .tile-delete { opacity: 1; transform: scale(1); }
.tile-delete:hover {
  background: var(--warm-red);
  color: var(--cream-light);
}

.tile-corner {
  position: absolute; bottom: 10px; right: 10px; z-index: 2;
  display: flex; gap: 4px;
}
.tile-corner-badge {
  background: rgba(255, 248, 233, 0.95);
  color: var(--rose-deep);
  font-family: var(--font-sans);
  font-size: 10px; font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-soft);
}
.tile-corner-badge.share { color: var(--sage); }

/* ── Like button ───────────────────────────────────────────── */
.like-btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--rose-soft);
  background: var(--cream-light);
  color: var(--rose-deep);
  font-family: var(--font-sans);
  font-weight: 700;
  cursor: pointer;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, background 0.25s ease, border-color 0.25s ease;
  padding: 9px 16px;
  font-size: 14px;
}
.like-btn:hover { transform: translateY(-1px); border-color: var(--rose); }
.like-btn.liked { background: var(--rose-soft); border-color: var(--rose); }
.like-btn .like-heart { font-size: 1.05em; line-height: 1; }
.like-btn .like-count { min-width: 0.7em; text-align: center; }
.like-btn[disabled] { opacity: 0.6; cursor: default; }
.like-btn.pop .like-heart { animation: likePop 0.3s ease; }
@keyframes likePop {
  0% { transform: scale(1); }
  40% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* compact variant used inside the tile corner cluster */
.like-btn.compact {
  padding: 3px 9px;
  font-size: 10px;
  gap: 4px;
  border-width: 1px;
  z-index: 3;
}

/* ── Top 3 ranking ─────────────────────────────────────────── */
.top-ranking { margin-bottom: 8px; }
.tile.ranked { border-color: var(--rose); box-shadow: var(--shadow-deep), 0 0 0 1px var(--rose-glow); }
.rank-badge {
  position: absolute; top: 8px; left: 8px; z-index: 4;
  font-size: 24px; line-height: 1;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
  pointer-events: none;
}

/* ── Settings card (profile) ───────────────────────────────── */
.settings-card {
  position: relative;
  width: min(440px, 92vw);
  background: var(--paper);
  border: 1.5px solid var(--rose-soft);
  border-radius: var(--radius-lg, 22px);
  box-shadow: var(--shadow-deep);
  padding: 30px 28px 24px;
  display: flex; flex-direction: column; gap: 8px;
  animation: contentIn 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.1);
  z-index: 1;
}
.settings-title {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 500;
  color: var(--ink);
  margin: 0 0 6px;
}
.settings-card .field-label {
  font-family: var(--font-sans);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--cocoa);
  margin-top: 8px;
}
.settings-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1.5px solid var(--rose-soft);
  border-radius: var(--radius-pill);
  background: var(--cream-light);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  transition: border-color 0.25s ease;
}
.settings-input:focus { outline: none; border-color: var(--rose); }
.settings-hint {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--cocoa);
  opacity: 0.8;
  margin: 8px 0 4px;
}
.settings-actions {
  display: flex; gap: 10px; justify-content: flex-end;
  margin-top: 8px;
}

/* ── Site footer / sponsor ─────────────────────────────────── */
.site-footer {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 48px 20px 64px;
  text-align: center;
}
.sponsor-lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--ink);
  margin: 0 0 4px;
}
.sponsor-row {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.sponsor-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--rose) 0%, var(--rose-deep) 100%);
  color: var(--cream-light);
  font-family: var(--font-sans);
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: var(--shadow-mid);
  transition: transform 0.25s ease, box-shadow 0.3s ease, filter 0.25s ease;
}
/* boba variant — bobaboba.me brand tone */
.sponsor-btn.boba {
  background: linear-gradient(135deg, #CCA78C 0%, #a9805f 100%);
}

/* ── Venue links (Burlesque Osaka reservation + official site) ── */
.venue-links {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 16px;
}
.venue-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--ink);
  transition: transform 0.2s ease, background 0.25s ease, color 0.25s ease;
}
.venue-btn:hover { transform: translateY(-1px); background: var(--ink); color: var(--cream-light); }
.venue-btn.primary {
  color: var(--cream-light);
  background: var(--ink);
  border-color: var(--ink);
}
.venue-btn.primary:hover { filter: brightness(1.15); background: var(--ink); }

/* ── Small sponsor chips (header tagline + inline banner) ──── */
.sponsor-mini {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 12px;
}
.sponsor-chip {
  display: inline-flex; align-items: center;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--cream-light);
  background: linear-gradient(135deg, var(--rose) 0%, var(--rose-deep) 100%);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
}
.sponsor-chip:hover { transform: translateY(-1px); filter: saturate(1.1) brightness(1.04); }
.sponsor-chip.boba { background: linear-gradient(135deg, #CCA78C 0%, #a9805f 100%); }

/* ── Inline sponsor banner (woven into the gallery) ────────── */
.sponsor-banner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  margin: 10px 0 22px;
  padding: 14px 20px;
  border: 1.5px dashed var(--rose-soft);
  border-radius: var(--radius);
  background: var(--paper-soft);
}
.sponsor-banner-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--cocoa);
}
.sponsor-banner-btns { display: inline-flex; gap: 8px; }
.sponsor-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-deep);
  filter: saturate(1.1);
}
.sponsor-btn .sponsor-emoji {
  font-size: 1.15em;
  animation: sponsorSteam 2.6s ease-in-out infinite;
}
@keyframes sponsorSteam {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-1.5px) rotate(-6deg); }
}
.footer-note {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  color: var(--cocoa);
  opacity: 0.7;
  margin: 0;
}
.footer-heart { color: var(--rose); font-style: normal; }

.tile.skeleton {
  cursor: default;
  border-color: transparent;
  background: linear-gradient(90deg,
    var(--paper-soft) 0%,
    var(--paper-deep) 50%,
    var(--paper-soft) 100%);
  background-size: 280% 100%;
  animation:
    shimmer 1.8s linear infinite,
    tileIn 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.tile.skeleton:hover { transform: translateY(0); border-color: transparent; box-shadow: var(--shadow-soft); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.gallery-empty {
  text-align: center;
  padding: 100px 24px;
  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  position: relative;
}
.gallery-empty .emoji { display: none; }
.gallery-empty::before {
  content: "❀";
  display: block;
  color: var(--rose);
  font-size: 32px;
  margin-bottom: 16px;
  font-style: normal;
}

/* ─── FAB ───────────────────────────────────────────────── */
.fab {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 64px; height: 64px;
  border: 0;
  border-radius: 50%;
  background: var(--rose);
  color: var(--cream-light);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 60;
  box-shadow: 0 14px 32px -8px rgba(165, 90, 69, 0.55), var(--shadow-deep);
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.fab svg { width: 24px; height: 24px; }
.fab .fab-ring {
  position: absolute; inset: -8px;
  border: 1.5px solid var(--rose);
  border-radius: 50%;
  opacity: 0.35;
  transition: all 0.45s ease;
}
.fab::before {
  content: ""; position: absolute; inset: -18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 120, 98, 0.30), transparent 70%);
  opacity: 0.6;
  animation: fabPulse 3s ease-in-out infinite;
}
@keyframes fabPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.98); }
  50%      { opacity: 0.75; transform: scale(1.08); }
}
.fab:hover {
  background: var(--rose-deep);
  transform: translateY(-4px) rotate(90deg);
  box-shadow: 0 22px 42px -10px rgba(165, 90, 69, 0.65), var(--shadow-deep);
}
.fab:hover .fab-ring { inset: -14px; opacity: 0.6; }

/* ─── Upload sheet ──────────────────────────────────────── */
.upload-sheet { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; }
.upload-sheet[hidden] { display: none !important; }
.upload-sheet-backdrop {
  position: absolute; inset: 0;
  background: rgba(61, 42, 32, 0.40);
  backdrop-filter: blur(10px);
  animation: fadeIn 0.3s ease;
}
.upload-sheet-content {
  position: relative; width: 100%; max-width: 600px;
  background: var(--cream-light);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 14px 36px 40px;
  box-shadow: 0 -20px 50px -10px rgba(61, 42, 32, 0.25);
  animation: sheetUp 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.1);
}
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.upload-sheet-handle {
  width: 44px; height: 4px;
  background: var(--ink-muted);
  border-radius: 2px;
  margin: 4px auto 18px;
  opacity: 0.5;
}

.sheet-heading {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 14px; margin-bottom: 22px;
}
.sheet-heading svg { width: 100%; height: 12px; color: var(--rose); opacity: 0.6; }
.sheet-heading h3 {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  color: var(--ink);
  letter-spacing: -0.005em;
  text-align: center;
  white-space: nowrap;
  font-variation-settings: "opsz" 100, "SOFT" 100, "WONK" 1;
}

.field-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  margin: 10px 0 10px;
}

/* ─── Tag picker / chips ────────────────────────────────── */
.tag-picker { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.tag-picker .chip-input { margin-bottom: 0; }

.preset-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.preset-tag {
  padding: 9px 16px;
  background: var(--paper-soft);
  border: 1.5px solid transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--radius-pill);
  transition: all 0.3s ease;
}
.preset-tag:hover {
  color: var(--ink);
  border-color: var(--rose);
  transform: translateY(-1px);
}
.preset-tag.active {
  background: var(--rose);
  color: var(--cream-light);
  border-color: var(--rose);
  box-shadow: var(--shadow-soft);
}

.chip-input {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 8px 10px;
  background: var(--paper);
  border: 1.5px solid rgba(122, 96, 82, 0.18);
  border-radius: var(--radius);
  align-items: center;
  cursor: text;
  min-height: 46px;
  transition: all 0.25s ease;
}
.chip-input:focus-within {
  border-color: var(--rose);
  background: var(--cream-light);
  box-shadow: 0 0 0 4px var(--rose-glow);
}
.chip-input input {
  flex: 1; min-width: 80px;
  background: transparent; border: 0; outline: 0;
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--ink);
  padding: 4px;
  font-style: italic;
}
.chip-input input::placeholder { color: var(--ink-muted); font-style: italic; }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 4px 4px 12px;
  background: var(--rose-soft);
  color: var(--rose-deep);
  font-family: var(--font-sans);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: var(--radius-pill);
}
.chip button {
  width: 18px; height: 18px;
  border: 0;
  background: rgba(255, 255, 255, 0.6);
  color: var(--rose-deep);
  cursor: pointer;
  font-size: 13px; line-height: 1;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
  font-family: inherit;
  transition: all 0.2s ease;
}
.chip button:hover {
  background: var(--rose);
  color: var(--cream-light);
}

.upload-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 28px 24px;
  background: var(--paper-soft);
  color: var(--rose-deep);
  border: 2px dashed var(--rose);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.01em;
  font-variation-settings: "opsz" 80, "SOFT" 100, "WONK" 1;
  transition: all 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
  width: 100%;
  text-align: center;
}
.upload-btn:hover {
  background: var(--rose-soft);
  transform: scale(1.01);
  box-shadow: var(--shadow-mid);
}
.upload-btn.drag-over {
  background: var(--rose);
  color: var(--cream-light);
  border-style: solid;
  transform: scale(1.02);
}

.upload-hint {
  margin: 10px 0 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 12.5px;
  color: var(--ink-soft);
  text-align: center;
}

#uploadProgress {
  margin-top: 20px;
  display: flex; flex-direction: column; gap: 8px;
  max-height: 280px; overflow-y: auto;
}
#uploadProgress::-webkit-scrollbar { width: 4px; }
#uploadProgress::-webkit-scrollbar-thumb { background: var(--ink-muted); border-radius: 2px; }

.progress-row {
  background: var(--paper-soft);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  transition: opacity 0.4s ease;
}
.progress-row.done { opacity: 0.45; }
.progress-row.error { background: rgba(196, 74, 59, 0.12); }
.progress-info { display: flex; justify-content: space-between; align-items: center; font-size: 12px; margin-bottom: 6px; }
.progress-info .filename {
  color: var(--ink);
  max-width: 70%;
  overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13.5px;
}
.progress-info .status {
  color: var(--rose-deep);
  font-weight: 700;
  font-size: 12px;
  font-family: var(--font-sans);
}
.progress-bar { height: 3px; background: var(--paper-deep); border-radius: 2px; overflow: hidden; }
.progress-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--rose), var(--butter));
  transition: width 0.2s ease;
  border-radius: 2px;
}

/* ─── Lightbox ──────────────────────────────────────────── */
.modal {
  position: fixed; inset: 0;
  background: rgba(61, 42, 32, 0.88);
  backdrop-filter: blur(14px);
  display: none;
  align-items: center; justify-content: center;
  z-index: 100;
  padding: 32px;
}
.modal::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, transparent 50%, rgba(45, 28, 20, 0.45) 100%);
  pointer-events: none;
}
.modal.open { display: flex; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-inner {
  max-width: 92vw; max-height: 92vh;
  position: relative;
  display: flex; flex-direction: column;
  gap: 16px; align-items: center;
  animation: contentIn 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.1);
  overflow-y: auto;
  padding: 0 4px;
  z-index: 1;
}
.modal-inner::-webkit-scrollbar { width: 4px; }
.modal-inner::-webkit-scrollbar-thumb { background: rgba(255, 248, 233, 0.3); border-radius: 2px; }
.modal-inner > .comments { width: 100%; max-width: 760px; }
@keyframes contentIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }

.modal img, .modal video {
  max-width: 92vw; max-height: 80vh;
  display: block;
  border-radius: var(--radius);
  box-shadow:
    0 0 0 6px var(--cream-light),
    0 0 0 7px var(--rose-soft),
    0 30px 80px rgba(0, 0, 0, 0.5);
}
.modal-close {
  position: absolute; top: 24px; right: 28px;
  width: 42px; height: 42px;
  background: var(--cream-light);
  border: 0; color: var(--ink);
  font-size: 22px; font-weight: 400; cursor: pointer;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 110;
  font-family: var(--font-sans);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-mid);
}
.modal-close:hover {
  background: var(--rose);
  color: var(--cream-light);
  transform: rotate(90deg);
}

.modal-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px;
  background: var(--cream-light);
  border: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 26px; font-weight: 400;
  cursor: pointer;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 110;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-mid);
}
.modal-nav:hover { background: var(--rose); color: var(--cream-light); }
.modal-nav.prev { left: 28px; }
.modal-nav.next { right: 28px; }
.modal-nav[disabled] { opacity: 0.3; cursor: default; }
.modal-nav[disabled]:hover { background: var(--cream-light); color: var(--ink); }

.lightbox-counter {
  position: absolute; top: 28px; left: 32px;
  color: var(--cream-light);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.04em;
  z-index: 110;
  font-variation-settings: "opsz" 60;
}

.lightbox-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 14px;
  padding: 12px 18px;
  background: var(--cream-light);
  border-radius: var(--radius-pill);
  flex-wrap: wrap;
  box-shadow: var(--shadow-mid);
}
.lightbox-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 22px;
  background: var(--rose);
  color: var(--cream-light);
  text-decoration: none;
  border: 0;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-soft);
}
.lightbox-btn:hover {
  background: var(--rose-deep);
  transform: translateY(-1px);
  box-shadow: var(--shadow-mid);
}
.lightbox-btn.ghost {
  background: transparent;
  color: var(--rose-deep);
  border: 1.5px solid var(--rose);
  box-shadow: none;
}
.lightbox-btn.ghost:hover {
  background: var(--rose-soft);
  color: var(--rose-deep);
  border-color: var(--rose-deep);
}
.lightbox-spec {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13.5px;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}
.lightbox-note {
  background: var(--cream-light);
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-soft);
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  box-shadow: var(--shadow-mid);
}

.lightbox-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center; align-items: center;
  background: var(--cream-light);
  padding: 12px 18px;
  border-radius: var(--radius);
  max-width: 92vw;
  box-shadow: var(--shadow-soft);
}
.lightbox-tags.editing { flex-direction: column; align-items: stretch; }
.lightbox-tags .chip { background: var(--rose-soft); }
.lightbox-tags .empty {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-muted);
}
.lightbox-tags .edit-btn {
  background: transparent;
  border: 1.5px dashed var(--rose);
  color: var(--rose-deep);
  padding: 5px 14px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  border-radius: var(--radius-pill);
  transition: all 0.25s ease;
}
.lightbox-tags .edit-btn:hover {
  border-style: solid;
  background: var(--rose);
  color: var(--cream-light);
}

/* ─── Share view ────────────────────────────────────────── */
.share-view {
  max-width: 900px; margin: 12px auto 0;
  padding: 16px 0 80px;
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.share-back {
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 24px;
  color: var(--rose-deep);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}
.share-back:hover { color: var(--cocoa); }

.share-media {
  width: 100%;
  border-radius: var(--radius);
  box-shadow:
    0 0 0 8px var(--cream-light),
    0 0 0 9px var(--rose-soft),
    var(--shadow-deep);
  display: block;
}
.share-actions {
  display: flex; align-items: center; gap: 14px;
  margin-top: 24px; flex-wrap: wrap;
  padding: 16px 22px;
  background: var(--cream-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.share-link-row {
  display: flex; align-items: center; gap: 10px;
  padding: 0 6px 0 16px;
  background: var(--paper);
  border-radius: var(--radius-pill);
  font-size: 12px;
  flex: 1;
  min-width: 240px;
}
.share-link-row code {
  font-family: var(--font-sans);
  color: var(--ink-soft);
  max-width: 280px;
  overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.share-link-row button {
  background: var(--rose);
  color: var(--cream-light);
  border: 0;
  padding: 8px 16px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.25s ease;
}
.share-link-row button:hover { background: var(--rose-deep); }

/* ─── Comments ──────────────────────────────────────────── */
.comments {
  margin-top: 36px;
  padding: 28px 32px;
  background: var(--cream-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: var(--rule-soft);
}
.comments h3 {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  color: var(--ink);
  letter-spacing: -0.005em;
  position: relative;
  padding-bottom: 12px;
  font-variation-settings: "opsz" 100, "SOFT" 100, "WONK" 1;
}
.comments h3::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 56px; height: 2px;
  background: var(--rose);
  border-radius: 1px;
}

.comment {
  padding: 16px 0;
  border-bottom: var(--rule-soft);
}
.comment:last-of-type { border-bottom: 0; }
.comment-header {
  display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px;
}
.comment-author {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  font-variation-settings: "opsz" 72, "SOFT" 100, "WONK" 1;
}
.comment-author.admin { color: var(--rose-deep); }
.comment-author.admin::after {
  content: " · admin";
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}
.comment-time {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}
.comment-delete {
  margin-left: auto;
  background: none;
  border: 0;
  color: var(--warm-red);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  transition: all 0.25s ease;
}
.comment-delete:hover {
  background: var(--warm-red);
  color: var(--cream-light);
}
.comment-text {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  word-wrap: break-word;
}
.comments-empty {
  text-align: center; padding: 20px 0;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink-muted);
  font-size: 14px;
}

.comment-form {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 20px;
  padding-top: 22px;
  border-top: var(--rule-soft);
  position: relative;
}
.comment-form::before {
  content: "❀";
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  background: var(--cream-light);
  color: var(--rose);
  font-size: 14px;
  padding: 0 10px;
}
.comment-form input,
.comment-form textarea {
  background: var(--paper);
  border: 1.5px solid rgba(122, 96, 82, 0.16);
  padding: 12px 14px;
  border-radius: var(--radius);
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--ink);
  outline: 0;
  transition: all 0.25s ease;
  resize: vertical;
}
.comment-form input::placeholder,
.comment-form textarea::placeholder {
  color: var(--ink-muted);
  font-style: italic;
}
.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--rose);
  background: var(--cream-light);
  box-shadow: 0 0 0 4px var(--rose-glow);
}
.comment-form textarea { min-height: 72px; }
.comment-form button {
  align-self: flex-end;
  padding: 10px 26px;
  background: var(--rose);
  color: var(--cream-light);
  border: 0;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-soft);
}
.comment-form button:hover {
  background: var(--rose-deep);
  transform: translateY(-1px);
  box-shadow: var(--shadow-mid);
}
.comment-form button:disabled {
  opacity: 0.4;
  cursor: default;
}

/* ─── Toast ─────────────────────────────────────────────── */
.toast-host {
  position: fixed; top: 22px; left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
  max-width: 92vw;
}
.toast {
  padding: 12px 22px;
  background: var(--cream-light);
  color: var(--ink);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  border-radius: var(--radius-pill);
  pointer-events: auto;
  animation: toastIn 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.1);
  text-align: center;
  box-shadow: var(--shadow-deep);
}
.toast.error {
  background: var(--warm-red);
  color: var(--cream-light);
}
.toast.ok {
  background: var(--sage);
  color: var(--cream-light);
}
@keyframes toastIn {
  from { transform: translateY(-12px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 720px) {
  header { padding: 36px 20px 24px; grid-template-columns: 1fr; text-align: center; }
  .brand-mark { text-align: center; }
  .brand-ornament { margin: 0 auto 10px; }
  #nav { justify-content: center; flex-wrap: wrap; }
  #userInfo { display: none; }
  main { padding: 0 18px 80px; }

  #authView { margin: 20px 0 28px; padding: 36px 24px 28px; }
  .group-header { font-size: 22px; }
  .group-grid { gap: 8px; }

  .fab { width: 56px; height: 56px; right: 18px; bottom: 18px; }
  .upload-sheet-content { padding: 10px 22px 32px; }

  .modal-close { top: 12px; right: 14px; width: 38px; height: 38px; }
  .modal-nav { width: 42px; height: 42px; font-size: 22px; }
  .modal-nav.prev { left: 10px; }
  .modal-nav.next { right: 10px; }
  .modal img, .modal video {
    max-height: 75vh;
    box-shadow:
      0 0 0 4px var(--cream-light),
      0 0 0 5px var(--rose-soft),
      var(--shadow-deep);
  }
  .lightbox-counter { top: 14px; left: 16px; font-size: 12px; }
  .comments { padding: 22px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
