/* ============================================================
   beloved 2026 — official brand palette (Brand Guide v1.0)
   Deep Pink #ba5461 · Off White #ffebdb · Black #000 · Pastel grey red #ce9a9d
   Type: Playfair Display (primary web) · Radley (supporting)
   ============================================================ */
:root {
  --ink: #181114;          /* brand black, softened a hair for body text */
  --ink-soft: #4a363c;
  --offwhite: #ffebdb;     /* brand off white — page background */
  --paper: #fffaf5;        /* cards */
  --dusty: #ce9a9d;        /* pastel grey red */
  --deep: #ba5461;         /* deep pink — primary */
  --deep-press: #9e4452;
  --muted: #97767c;
  --line: #ecd5cc;
  --ok: #3e7d5a;

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Radley", Georgia, serif;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(24, 17, 20, 0.08), 0 8px 24px rgba(186, 84, 97, 0.07);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--offwhite);
  color: var(--ink);
  min-height: 100dvh;
  padding-bottom: 84px;
  touch-action: manipulation; /* no double-tap zoom */
  -webkit-text-size-adjust: 100%;
}

/* ---------- Masthead ---------- */
.masthead {
  position: relative;
  background: linear-gradient(165deg, var(--deep) 0%, #a84a57 100%);
  color: var(--offwhite);
  text-align: center;
  padding: 15px 44px; /* side padding leaves room for the sync dot */
}
.masthead-org {
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--offwhite);
  white-space: nowrap;
}

.sync-dot {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 10px;
  color: #d9f0e2;
  transition: color 0.3s;
}
.sync-dot.pending { color: var(--offwhite); }
.sync-dot.offline { color: rgba(255, 235, 219, 0.45); }

/* ---------- Intro animation (5s cinematic scroll + typewriter) ---------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(165deg, var(--deep) 0%, #a84a57 100%);
  overflow: hidden;
}
.intro.done { animation: introOut 0.8s ease forwards; }
@keyframes introOut { to { opacity: 0; } }

.intro-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  will-change: transform, opacity;
  transform: translateY(34%);
  opacity: 0;
}
.intro.run .intro-stage { animation: introScroll 5s cubic-bezier(0.33, 0, 0.2, 1) forwards; }
@keyframes introScroll {
  0%   { transform: translateY(34%); opacity: 0; }
  14%  { opacity: 1; }
  24%  { transform: translateY(0); }
  72%  { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-46%); opacity: 0; }
}
.intro-logo {
  width: 64%;
  max-width: 300px;
  filter: drop-shadow(0 8px 26px rgba(0, 0, 0, 0.28));
}
.intro-tag {
  min-height: 1.4em;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  letter-spacing: 0.08em;
  color: var(--offwhite);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}
.intro-tag.typing::after {
  content: "|";
  margin-left: 2px;
  opacity: 0.85;
  animation: introCaret 0.7s step-end infinite;
}
@keyframes introCaret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .intro.run .intro-stage { animation: none; opacity: 1; transform: none; }
}

/* ---------- Prize redeemed ---------- */
.prize-badge {
  display: inline-block;
  margin: 8px 0 2px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ok);
  background: #eef7f0;
  border: 1px solid #bfe0cb;
  border-radius: 999px;
  padding: 6px 16px;
}
.prize-pop {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 8, 9, 0.55);
  animation: prizeFade 0.3s ease;
}
@keyframes prizeFade { from { opacity: 0; } }
.prize-pop-card {
  background: var(--paper);
  border-radius: 20px;
  padding: 28px 30px;
  text-align: center;
  max-width: 80%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: prizePop 0.5s cubic-bezier(0.2, 1.5, 0.4, 1);
}
@keyframes prizePop { from { transform: scale(0.7); opacity: 0; } }
.prize-pop-emoji { font-size: 56px; line-height: 1; }
.prize-pop-card h2 { font-family: var(--font-display); font-weight: 500; color: var(--deep); margin: 10px 0 4px; }
.prize-pop-card p { color: var(--ink-soft); font-size: 14.5px; margin: 0; }

/* ---------- Connect "Profile" link + Tonight team header ---------- */
.connect-head { position: relative; }
.profile-link {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--font-body);
  font-size: 12.5px;
  color: var(--deep);
  background: none;
  border: 1px solid var(--dusty);
  border-radius: 999px;
  padding: 5px 14px;
  cursor: pointer;
}
.profile-link:active { background: #fbece9; }
.team-name { margin: 2px 0 2px; }
.team-daughters { font-style: italic; color: var(--muted); margin: 0 0 6px; }

/* ---------- Superlative Shout-Outs ---------- */
.cheer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.cheer-pick {
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--ink);
  background: var(--offwhite);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 8px;
  cursor: pointer;
}
.cheer-pick:active { background: var(--deep); border-color: var(--deep-press); color: var(--offwhite); }
.team-qr { display: flex; justify-content: center; margin: 12px 0 2px; }
.team-qr img, .team-qr canvas { width: 168px !important; height: 168px !important; border-radius: 8px; }
.cheer-got { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.cheer-got .cheer-n { color: var(--deep); font-family: var(--font-display); }

/* ---------- In-app QR scanner ---------- */
.scanner { position: fixed; inset: 0; z-index: 320; background: #0c0809; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.scan-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scan-frame { position: relative; width: 66%; max-width: 280px; aspect-ratio: 1; border: 3px solid rgba(255, 235, 219, 0.92); border-radius: 22px; box-shadow: 0 0 0 100vmax rgba(12, 8, 9, 0.55); }
.scan-hint { position: absolute; bottom: 12%; left: 50%; transform: translateX(-50%); width: 84%; text-align: center; z-index: 2; font-family: var(--font-display); font-size: 18px; color: var(--offwhite); text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75); }
.scan-close { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 14px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 235, 219, 0.4); background: rgba(12, 8, 9, 0.45); color: var(--offwhite); font-size: 19px; cursor: pointer; }

/* ---------- Screen / cards ---------- */
.screen { padding: 16px; max-width: 560px; margin: 0 auto; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 14px;
}
.card h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 21px;
  margin: 0 0 6px;
}
.card h3 { font-family: var(--font-display); font-weight: 500; font-size: 17px; margin: 0 0 4px; }
.card p { margin: 6px 0; font-size: 14.5px; color: var(--ink-soft); }
.card .hint { font-size: 12.5px; color: var(--muted); }

.badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--deep);
  border: 1px solid var(--dusty);
  border-radius: 999px;
  padding: 2px 10px;
  margin-bottom: 8px;
}

/* ---------- Forms ---------- */
label { display: block; font-size: 13.5px; font-weight: 400; margin: 12px 0 4px; color: var(--ink); }
input[type="text"], input[type="email"], input[type="number"] {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
input:focus { outline: 2px solid var(--dusty); border-color: var(--deep); }

.daughter-row { display: flex; gap: 8px; margin-bottom: 8px; }
.daughter-row input[data-field="name"] { flex: 1; }
.daughter-row input[data-field="age"] { width: 76px; }
.daughter-row .remove {
  border: none; background: none; color: var(--muted);
  font-size: 18px; cursor: pointer; padding: 0 4px;
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 15.5px;
  color: var(--offwhite);
  background: var(--deep);
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  margin-top: 14px;
  cursor: pointer;
  width: 100%;
}
.btn:active { background: var(--deep-press); }
.btn.secondary {
  background: none;
  color: var(--deep);
  border: 1.5px solid var(--deep);
}
.btn.ghost {
  background: none;
  color: var(--muted);
  border: none;
  text-decoration: underline;
  font-size: 13px;
  width: auto;
  padding: 6px 0 0;
}
.btn:disabled { opacity: 0.5; }

.error { color: var(--deep); font-size: 13px; margin-top: 8px; }
.success { color: var(--ok); font-size: 13.5px; margin-top: 8px; }

/* ---------- Tab bar ---------- */
.tabbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  display: flex;
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 10;
}
.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-family: var(--font-body);
  font-size: 11.5px;
  color: var(--muted);
  background: none;
  border: none;
  padding: 10px 0 8px;
  cursor: pointer;
}
.tab .tab-ico { font-size: 17px; line-height: 1; }
.tab.active { color: var(--deep); }
.tab.active .tab-ico { color: var(--dusty); }

/* ---------- Misc ---------- */
.daughter-chip {
  display: inline-block;
  background: var(--dusty);
  color: #fff;
  font-size: 12.5px;
  border-radius: 999px;
  padding: 4px 12px;
  margin: 0 6px 6px 0;
}
.points {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--deep);
  font-weight: 500;
}
.divider { border: none; border-top: 1px solid var(--line); margin: 14px 0; }
.center { text-align: center; }

/* ---------- Connect: decks ---------- */
.deck-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.deck-kind {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 8px;
  color: #fff;
  background: var(--dusty);
}
.deck-kind.kind-ask { background: var(--deep); }
.deck-kind.kind-her { background: var(--ink); color: var(--offwhite); }
.deck-text {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.45;
  color: var(--ink);
  margin: 4px 0 10px;
}
.deck-actions { display: flex; gap: 10px; }
.deck-actions .btn { margin-top: 4px; }

/* ---------- Connect: polls ---------- */
.match-q { font-weight: 400; font-size: 15.5px; color: var(--ink); margin: 14px 0 6px; }
.option-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 8px 0;
}
.option {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  background: var(--offwhite);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 8px;
  cursor: pointer;
}
.option:active { border-color: var(--deep); }
.option.picked { background: var(--deep); border-color: var(--deep-press); color: var(--offwhite); }

.word-row { display: flex; gap: 8px; align-items: stretch; }
.word-row input { flex: 1; }
.word-row .btn { width: auto; margin-top: 0; padding: 10px 20px; }

/* ---------- Quest ---------- */
.quest-banner { text-align: center; border-color: var(--dusty); background: #fff5ec; }
.quest-emoji { font-size: 38px; line-height: 1.2; }
.quest-item.found { border-color: var(--dusty); background: #fff5ec; }
.quest-row { display: flex; gap: 12px; align-items: flex-start; }
.quest-row .quest-emoji { font-size: 28px; width: 40px; text-align: center; }

/* ---------- Selfie Studio: full-screen layer ---------- */
/* black backdrop so Safari's floating bottom bar goes dark too */
body.studio-open { overflow: hidden; background: #0c0809; }
html:has(body.studio-open) { background: #0c0809; }

.studio-full {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #0c0809;
}
/* the hidden attribute must beat display:flex on overlay chrome */
.studio-full [hidden] { display: none !important; }
.studio-full video,
.studio-full #sfPreview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.studio-full #sfPreview { object-fit: contain; background: #0c0809; }
.studio-full video.mirror { transform: scaleX(-1); }
.studio-full.flash::after {
  content: "";
  position: absolute; inset: 0;
  background: #fff;
  animation: flashfade 0.35s ease-out forwards;
  pointer-events: none;
}
@keyframes flashfade { from { opacity: 0.95; } to { opacity: 0; } }

.sf-scrim {
  position: absolute; left: 0; right: 0;
  display: flex; align-items: center;
  z-index: 3;
}
.sf-top {
  top: 0;
  justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top)) 14px 26px;
  background: linear-gradient(rgba(12, 8, 9, 0.75), transparent);
}
.sf-title {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--offwhite);
}
.sf-title span { font-style: italic; color: var(--dusty); }
.sf-close, .sf-flip {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 235, 219, 0.4);
  background: rgba(12, 8, 9, 0.45);
  color: var(--offwhite);
  font-size: 19px;
  cursor: pointer;
}

.sf-prompt {
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  width: 86%;
  z-index: 2;
  text-align: center;
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1.35;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.75);
  background: rgba(12, 8, 9, 0.32);
  border-radius: 16px;
  padding: 12px 16px;
}
.sf-count {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  font-family: var(--font-display);
  font-size: 130px;
  color: var(--offwhite);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}
.sf-count.pop { animation: pop 0.9s ease; }
@keyframes pop { 0% { transform: translate(-50%, -50%) scale(1.7); opacity: 0.3; } 30% { transform: translate(-50%, -50%) scale(1); opacity: 1; } }

.sf-toast {
  position: absolute;
  top: calc(70px + env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  background: var(--deep);
  color: var(--offwhite);
  font-size: 15px;
  border-radius: 999px;
  padding: 8px 20px;
  opacity: 0;
}
.sf-toast.show { animation: toastin 1.9s ease forwards; }
@keyframes toastin { 8% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }

.sf-denied {
  position: absolute; inset: 30% 10% auto;
  z-index: 2;
  text-align: center;
  color: var(--offwhite);
  background: rgba(12, 8, 9, 0.7);
  border-radius: 16px;
  padding: 18px;
}
.sf-denied .sf-small { font-size: 13px; color: var(--dusty); }

.sf-bottom {
  bottom: 0;
  justify-content: space-around;
  padding: 22px 22px calc(20px + env(safe-area-inset-bottom));
  background: rgba(12, 8, 9, 0.78);
}
/* one continuous fade that rises up behind the lens carousel — no seam */
.sf-bottom::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 118px;
  background: linear-gradient(transparent, rgba(12, 8, 9, 0.78));
  pointer-events: none;
}
.sf-shutter {
  width: 76px; height: 76px;
  border-radius: 50%;
  border: 5px solid var(--offwhite);
  background: var(--deep);
  box-shadow: 0 0 0 4px rgba(12, 8, 9, 0.35);
  cursor: pointer;
}
.sf-shutter:active { transform: scale(0.92); }
.sf-side {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 84px;
  font-family: var(--font-body);
  font-size: 24px;
  color: var(--offwhite);
  background: none;
  border: none;
  cursor: pointer;
}
.sf-side span { font-size: 12px; color: var(--dusty); }
.sf-points { font-family: var(--font-display); }

.sf-review { flex-direction: column; gap: 10px; }
.sf-frames { justify-content: center; margin: 0; }
.sf-frames .frame-pick {
  background: rgba(255, 235, 219, 0.12);
  border-color: rgba(255, 235, 219, 0.35);
  color: var(--offwhite);
}
.sf-frames .frame-pick.active { background: var(--deep); border-color: var(--deep); }
.sf-review-actions { display: flex; gap: 10px; width: 100%; }
.sf-action {
  flex: 1;
  font-family: var(--font-body);
  font-size: 15.5px;
  border-radius: 999px;
  padding: 13px 10px;
  cursor: pointer;
  border: none;
}
.sf-action.primary { background: var(--deep); color: var(--offwhite); }
.sf-action.ghosted {
  background: rgba(255, 235, 219, 0.12);
  color: var(--offwhite);
  border: 1px solid rgba(255, 235, 219, 0.35);
}
.sf-keep {
  background: none; border: none;
  color: var(--dusty);
  font-family: var(--font-body);
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}

/* live effects overlay */
.studio-full #sfFx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* faces badge (crowns mode) */
.sf-badge {
  position: absolute;
  top: calc(64px + env(safe-area-inset-top));
  right: 14px;
  z-index: 3;
  font-size: 13px;
  color: var(--offwhite);
  background: rgba(12, 8, 9, 0.5);
  border: 1px solid rgba(206, 154, 157, 0.4);
  border-radius: 999px;
  padding: 5px 12px;
}

/* persistent current-filter chip, top center under the title */
.sf-current {
  position: absolute;
  top: calc(64px + env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--offwhite);
  background: rgba(186, 84, 97, 0.75);
  border: 1px solid rgba(255, 235, 219, 0.35);
  border-radius: 999px;
  padding: 6px 16px;
  cursor: pointer;
}
.sf-current.is-natural {
  background: rgba(12, 8, 9, 0.45);
  color: rgba(255, 235, 219, 0.8);
}

/* filter panel: category tabs + lens carousel (hidden until ✨ Filters) */
.sf-lenspanel {
  position: absolute;
  left: 0; right: 0;
  bottom: calc(116px + env(safe-area-inset-bottom));
  z-index: 3;
}
.sf-cats {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-bottom: 6px;
}
.sf-cat {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255, 235, 219, 0.85);
  background: rgba(12, 8, 9, 0.45);
  border: 1px solid rgba(255, 235, 219, 0.3);
  border-radius: 999px;
  padding: 6px 18px;
  cursor: pointer;
}
.sf-cat.active {
  background: var(--deep);
  border-color: var(--deep);
  color: var(--offwhite);
}
.sf-lenses {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 14px 6px;
}
.sf-lenses::-webkit-scrollbar { display: none; }
.lens {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 62px;
}
.lens-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 24px;
  background: rgba(12, 8, 9, 0.4);
  border: 2px solid rgba(255, 235, 219, 0.35);
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}
.lens-label {
  font-family: var(--font-body);
  font-size: 10.5px;
  color: rgba(255, 235, 219, 0.8);
  white-space: nowrap;
}
.lens.active .lens-circle {
  border-color: var(--deep);
  background: rgba(186, 84, 97, 0.45);
  transform: scale(1.12);
}
.lens.active .lens-label { color: var(--offwhite); }
.lens:active .lens-circle { transform: scale(0.94); }

/* lens name flash (center screen on change) */
.sf-lensname {
  position: absolute;
  top: 32%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--offwhite);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7);
  background: rgba(12, 8, 9, 0.35);
  border-radius: 999px;
  padding: 8px 22px;
  opacity: 0;
  pointer-events: none;
}
.sf-lensname.show { animation: lensname 1.4s ease forwards; }
@keyframes lensname {
  0% { opacity: 0; transform: translateX(-50%) scale(1.15); }
  12% { opacity: 1; transform: translateX(-50%) scale(1); }
  78% { opacity: 1; }
  100% { opacity: 0; }
}

/* gallery delete */
.gallery-item { position: relative; }
.gallery-del {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: rgba(24, 17, 20, 0.65);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}

/* ---------- Frames / gallery ---------- */
.frame-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.frame-pick {
  font-family: var(--font-body);
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--offwhite);
  color: var(--ink);
  cursor: pointer;
}
.frame-pick.active { border-color: var(--deep); background: var(--deep); color: var(--offwhite); }

.preview-canvas {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.gallery-item { margin: 0; }
.gallery-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.gallery-item figcaption { font-size: 10.5px; margin-top: 2px; color: var(--muted); }
.status-approved { color: var(--ok); }
.status-pending { color: var(--deep); }
.status-rejected { color: var(--muted); }

/* ---------- Title sponsor (quiet) ---------- */
.sponsor-card {
  background: #fff;
  text-align: center;
  padding: 18px 16px 14px;
}
.sponsor-label {
  font-size: 10.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.sponsor-card img { max-width: 78%; max-height: 130px; object-fit: contain; }
.sponsor-name {
  font-family: var(--font-display);
  font-size: 23px;
  letter-spacing: 0.08em;
  color: #4d8f88;
}
.sponsor-name::after {
  content: "";
  display: block;
  width: 140px;
  height: 2px;
  background: #e8c34a;
  margin: 6px auto;
}
.sponsor-sub { font-size: 10px; letter-spacing: 0.3em; color: rgba(77, 143, 136, 0.85); }
.sponsor-thanks { font-size: 12.5px; font-style: italic; color: var(--muted); margin: 10px 0 0; }

.presented-by {
  text-align: center;
  font-size: 12px;
  font-style: italic;
  color: var(--muted);
  margin: 2px 0 10px;
}

/* ---------- Portrait-only guard (phones in landscape) ---------- */
.rotate-block {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: linear-gradient(165deg, var(--deep) 0%, #a84a57 100%);
  color: var(--offwhite);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}
.rotate-block h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 34px;
  margin: 6px 0 0;
}
.rotate-block p { font-style: italic; font-size: 15px; color: #ecd0d4; margin: 0; }
.rotate-phone {
  width: 52px;
  height: 30px;
  border: 3px solid var(--offwhite);
  border-radius: 8px;
  animation: rotate-hint 1.6s ease-in-out infinite alternate;
}
@keyframes rotate-hint {
  from { transform: rotate(0deg); }
  to { transform: rotate(-90deg); }
}
/* phones only — tall desktop windows stay unaffected */
@media (orientation: landscape) and (max-height: 520px) {
  .rotate-block { display: flex; }
}
