/* ============================================================
   Shamrock Reizen — site.css
   Vanilla CSS with custom properties.
   Palette and feel inspired by the prototype, simplified.
   ============================================================ */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  --gold:          #f5c518;
  --gold-light:    #ffd84d;
  --gold-dark:     #c9a000;
  --green-bg:      #091a09;
  --green-card:    #132e13;
  --green-mid:     #1e4a1e;
  --green-border:  #3a6e3a;
  --green-accent:  #4ade80;
  --cream:         #faf4e8;
  --cream-dim:     #c8bfa8;
  --error:         #f87171;
  --silver:        #9ca3af;
  --bronze:        #cd7f32;

  --font-sans:     'Inter', system-ui, sans-serif;
  --font-serif:    'Cinzel', Georgia, serif;

  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     20px;

  --shadow-gold:   0 0 20px rgba(245, 197, 24, 0.25);
  --shadow-card:   0 4px 16px rgba(0, 0, 0, 0.4);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--green-bg);
  color: var(--cream);
  min-height: 100dvh;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
ul, ol { list-style: none; }

/* ── Utility ─────────────────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ── App Shell ───────────────────────────────────────────────── */
.app-shell {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.bottom-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-top: 1px solid var(--green-border);
  background: var(--green-bg);
  position: sticky;
  bottom: 0;
  z-index: 100;
  gap: 8px;
}
.bottom-nav__right { display: flex; gap: 8px; }

.app-footer {
  text-align: center;
  padding: 12px 16px;
  font-size: 0.75rem;
  color: var(--cream-dim, rgba(255,255,255,0.35));
  letter-spacing: 0.03em;
}

/* ── Animated Shamrock Background ──────────────────────────── */
.shamrock-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.shamrock-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(245,197,24,0.06) 0%, transparent 70%);
}
.shamrock-bg__leaf {
  position: absolute;
  font-size: 3.5rem;
  opacity: 0.07;
  animation: pulse-shamrock 4s ease-in-out infinite;
  user-select: none;
}
.shamrock-bg__leaf:nth-child(1) { top:  5%; left:  8%; animation-delay: 0s;    font-size: 2.5rem; }
.shamrock-bg__leaf:nth-child(2) { top: 15%; right: 6%; animation-delay: 0.8s;  font-size: 4rem; }
.shamrock-bg__leaf:nth-child(3) { top: 45%; left:  3%; animation-delay: 1.6s;  font-size: 3rem; }
.shamrock-bg__leaf:nth-child(4) { top: 65%; right: 5%; animation-delay: 2.4s;  font-size: 2rem; }
.shamrock-bg__leaf:nth-child(5) { top: 85%; left: 15%; animation-delay: 3.2s;  font-size: 3.5rem; }

@keyframes pulse-shamrock {
  0%, 100% { opacity: 0.07; transform: scale(1); }
  50%       { opacity: 0.13; transform: scale(1.08); }
}

/* ── Screen containers ──────────────────────────────────────── */
.screen {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.screen__inner {
  flex: 1;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Sticky headers ─────────────────────────────────────────── */
.sticky {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(9, 26, 9, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--green-border);
}

/* ── Typography ─────────────────────────────────────────────── */
.screen-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  text-align: center;
  letter-spacing: 0.02em;
}
.screen-sub {
  text-align: center;
  color: var(--cream-dim);
  font-size: 0.95rem;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.1s, opacity 0.2s;
  text-align: center;
}
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn--primary {
  background: var(--gold);
  color: var(--green-bg);
}
.btn--primary:hover:not(:disabled) { background: var(--gold-light); }

.btn--secondary {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}
.btn--secondary:hover:not(:disabled) { background: rgba(245,197,24,0.08); }

.btn--ghost {
  background: transparent;
  color: var(--cream-dim);
  border: 1px solid var(--green-border);
  padding: 8px 14px;
}
.btn--ghost:hover { color: var(--cream); border-color: var(--cream-dim); }

.btn--sm { font-size: 0.82rem; padding: 7px 12px; border-radius: var(--radius-sm); }
.btn--full { width: 100%; }

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--green-card);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-md);
  padding: 16px;
}

/* ── Forms ───────────────────────────────────────────────────── */
.form { display: flex; flex-direction: column; gap: 14px; }
.form__group { display: flex; flex-direction: column; gap: 6px; }
.form__label { font-size: 0.9rem; font-weight: 500; color: var(--cream-dim); }
.form__input {
  background: var(--green-card);
  border: 1.5px solid var(--green-border);
  border-radius: var(--radius-sm);
  color: var(--cream);
  padding: 11px 14px;
  font-size: 1rem;
  transition: border-color 0.2s;
  width: 100%;
}
.form__input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245,197,24,0.12);
}
.form__input--numeric { max-width: 200px; }

/* ── Alerts ──────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}
.alert--error {
  background: rgba(248,113,113,0.12);
  border: 1px solid var(--error);
  color: var(--error);
}

/* ── Divider ─────────────────────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cream-dim);
  font-size: 0.85rem;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  border-top: 1px solid var(--green-border);
}
.divider--shamrock span {
  color: var(--gold);
  opacity: 0.7;
  font-size: 1rem;
}

/* ═══════════════════════════════════════════════════════════════
   JOIN PAGE
   ═══════════════════════════════════════════════════════════════ */
.screen--join .screen__inner { justify-content: center; }

.screen-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.screen-header__title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  text-shadow: var(--shadow-gold);
}
.screen-header__sub { color: var(--cream-dim); font-size: 0.95rem; }
.screen-header__greeting { color: var(--cream-dim); font-size: 1rem; }
.rules-content ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 8px 0;
}
.rules-content ul li {
  padding-left: 1.4em;
  position: relative;
  color: var(--cream);
  line-height: 1.5;
}
.rules-content ul li::before {
  content: '●';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.6em;
  top: 0.35em;
}

.screen-header__group-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--cream-dim);
  letter-spacing: 0.03em;
}

.shamrock-logo {
  font-size: 3.5rem;
  filter: drop-shadow(0 0 14px rgba(245,197,24,0.5));
  animation: pulse-shamrock 3s ease-in-out infinite;
}

.recovery {
  border: 1px solid var(--green-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.recovery__toggle {
  padding: 12px 16px;
  cursor: pointer;
  color: var(--cream-dim);
  font-size: 0.9rem;
  list-style: none;
}
.recovery__toggle:hover { color: var(--cream); }
.recovery .form { padding: 0 16px 16px; }

/* ═══════════════════════════════════════════════════════════════
   QUIZ PAGE
   ═══════════════════════════════════════════════════════════════ */
.quiz-header {
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.quiz-header__name {
  font-size: 0.9rem;
  color: var(--cream-dim);
  font-weight: 500;
}
.quiz-progress {
  display: flex;
  align-items: center;
  gap: 10px;
}
.quiz-progress__bar {
  flex: 1;
  height: 5px;
  background: var(--green-mid);
  border-radius: 99px;
  overflow: hidden;
}
.quiz-progress__fill {
  height: 100%;
  background: var(--gold);
  border-radius: 99px;
  transition: width 0.4s ease;
}
.quiz-progress__label {
  font-size: 0.78rem;
  color: var(--cream-dim);
  white-space: nowrap;
}

.quiz-question {
  display: none;
  flex-direction: column;
  gap: 20px;
  padding: 24px 20px 32px;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}
.quiz-question--active { display: flex; }

.quiz-question__text {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--cream);
  line-height: 1.45;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quiz-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: var(--green-card);
  border: 1.5px solid var(--green-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.quiz-option:hover {
  border-color: rgba(245,197,24,0.4);
  background: rgba(245,197,24,0.05);
}
.quiz-option--selected {
  border-color: var(--gold);
  background: rgba(245,197,24,0.1);
  transform: scale(1.02);
  box-shadow: var(--shadow-gold);
}
.quiz-option__input { display: none; }
.quiz-option__letter {
  min-width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-mid);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--cream-dim);
  transition: background 0.2s, color 0.2s;
}
.quiz-option--selected .quiz-option__letter {
  background: var(--gold);
  color: var(--green-bg);
}
.quiz-option__text { font-size: 0.95rem; }

/* ═══════════════════════════════════════════════════════════════
   REVEAL PAGE
   ═══════════════════════════════════════════════════════════════ */
.screen--reveal .screen__inner { justify-content: center; align-items: center; text-align: center; }

/* ── COMPLETION PAGE
   ═══════════════════════════════════════════════════════════════ */
.screen--completion .screen__inner { justify-content: center; align-items: center; text-align: center; }

.oath-text {
  font-style: italic;
  color: var(--cream);
  font-size: 1.05rem;
  line-height: 1.7;
  border-left: 3px solid var(--gold);
  padding: 12px 16px;
  margin: 8px 0 24px;
  text-align: left;
}

.completion-score {
  margin: 8px 0 28px;
}
.completion-score__label {
  color: var(--cream-dim);
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.completion-score__points {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  text-shadow: var(--shadow-gold);
}

.completion-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.reveal-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: var(--green-card);
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-gold), var(--shadow-card);
  width: 100%;
  animation: reveal-in 0.5s ease-out;
}
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}
.reveal-card__shamrock {
  font-size: 3rem;
  filter: drop-shadow(0 0 14px rgba(245,197,24,0.6));
}
.reveal-card__name {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  text-shadow: 0 0 24px rgba(245,197,24,0.4);
}
.reveal-card__description {
  color: var(--cream-dim);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════
   PUBS OVERVIEW
   ═══════════════════════════════════════════════════════════════ */
.pubs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 20px;
}
.pubs-header__identity {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
}
.pubs-header__shamrock { color: var(--gold); }
.pubs-header__name { color: var(--gold); }

.score-badge {
  background: var(--gold);
  color: var(--green-bg);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 4px 10px;
  border-radius: 99px;
}

.progress-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--cream-dim);
}
.progress-bar {
  height: 6px;
  background: var(--green-mid);
  border-radius: 99px;
  overflow: hidden;
}
.progress-bar__fill {
  height: 100%;
  background: var(--gold);
  border-radius: 99px;
  transition: width 0.4s ease;
}

.pub-list { display: flex; flex-direction: column; gap: 10px; }
.pub-card {
  background: var(--green-card);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s, transform 0.15s;
}
.pub-card:hover { border-color: rgba(245,197,24,0.4); transform: translateY(-1px); }
.pub-card--done { border-color: var(--green-accent); opacity: 0.8; }
.pub-card__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  gap: 12px;
}
.pub-card__info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.pub-card__name { font-weight: 600; font-size: 0.95rem; }
.pub-card__pts { color: var(--gold); font-size: 0.82rem; font-weight: 600; }
.badge {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}
.badge--done { background: var(--green-accent); color: var(--green-bg); }
.badge--open { background: var(--green-mid); color: var(--cream-dim); font-size: 1rem; }

/* ═══════════════════════════════════════════════════════════════
   PUB DETAIL PAGE
   ═══════════════════════════════════════════════════════════════ */
.pub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 20px;
}
.pub-header__name { font-weight: 600; font-size: 0.9rem; color: var(--gold); }
.header-actions { display: flex; gap: 4px; }
.btn-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 5px 8px;
  border: 1px solid var(--green-border);
  border-radius: var(--radius-sm);
  color: var(--cream-dim);
  text-decoration: none;
  font-size: 1.1rem;
  line-height: 1;
}
.btn-icon small {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
}
.btn-icon:hover { color: var(--gold); border-color: var(--gold); }

.pub-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 8px;
}
.pub-intro:not(:has(.pub-intro__photo)) {
  grid-template-columns: 1fr;
}
.pub-intro__photo { flex-shrink: 0; }
.photo-thumbnail {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
  margin-bottom: 10px;
}

.pub-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
}
.pub-intro__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.pub-address {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.pub-address__icon { font-size: 1.1rem; }
.pub-address__text {
  color: var(--cream-dim);
  font-size: 0.85rem;
  line-height: 1.4;
}
.pub-address__nav { margin: 0; }
.pub-description {
  color: var(--cream-dim);
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: center;
}

.completed-banner {
  background: rgba(74,222,128,0.12);
  border: 1px solid var(--green-accent);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  text-align: center;
  color: var(--green-accent);
  font-weight: 600;
}

.question-card--photo-done { border-color: var(--green-accent); }
.photo-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.pub-quiz { display: flex; flex-direction: column; gap: 14px; }
.pub-quiz__title {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--gold);
  font-weight: 600;
}

.question-card {
  background: var(--green-card);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.question-card--answered { opacity: 0.85; }
.question-card--action { border-color: var(--gold-dark); }
.question-card__text { font-size: 0.95rem; line-height: 1.55; }
.action-challenge__hint { font-size: 0.8rem; color: var(--cream-dim); margin: 0; }

.question-card__result {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
}
.question-card__result--correct {
  background: rgba(74,222,128,0.12);
  color: var(--green-accent);
}
.question-card__result--wrong {
  background: rgba(248,113,113,0.1);
  color: var(--error);
}

.answer-options { display: flex; flex-direction: column; gap: 8px; }
.answer-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: var(--green-mid);
  border: 1.5px solid var(--green-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
  transition: border-color 0.2s, background 0.2s;
}
.answer-option:hover { border-color: rgba(245,197,24,0.4); }
.answer-option--selected {
  border-color: var(--gold);
  background: rgba(245,197,24,0.1);
}
.answer-option input[type="radio"] { display: none; }
.answer-option__letter {
  font-weight: 700;
  color: var(--gold);
  min-width: 18px;
}

.answer-numeric {
  display: flex;
  align-items: center;
  gap: 8px;
}
.answer-numeric__unit { color: var(--cream-dim); font-size: 0.9rem; }
.answer-form .btn { margin-top: 12px; }

/* ═══════════════════════════════════════════════════════════════
   LEADERBOARD
   ═══════════════════════════════════════════════════════════════ */
.leaderboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 20px;
}
.leaderboard-header__title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold);
  flex: 1;
  text-align: center;
}
.leaderboard-header__name { color: var(--cream-dim); font-size: 0.82rem; }

/* Podium */
.podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  padding: 20px 0 8px;
}
.podium__place {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  max-width: 120px;
}
.podium__place--me .podium__irish-name { color: var(--gold); font-weight: 700; }
.podium__crown { font-size: 1.4rem; }
.podium__irish-name { font-size: 0.82rem; font-weight: 600; text-align: center; }
.podium__real-name { font-size: 0.72rem; color: var(--cream-dim); text-align: center; }
.podium__bar {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 6px 8px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  gap: 4px;
}
.podium__bar--1 { background: var(--gold); color: var(--green-bg); height: 90px; }
.podium__bar--2 { background: var(--silver); color: var(--green-bg); height: 65px; }
.podium__bar--3 { background: var(--bronze); color: #fff; height: 48px; }
.podium__pts { font-weight: 700; font-size: 0.85rem; }
.podium__rank { font-size: 0.75rem; opacity: 0.75; }

/* Ranking list */
.ranking-list { display: flex; flex-direction: column; gap: 8px; }
.ranking-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--green-card);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-sm);
}
.ranking-item--me {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}
.ranking-item__rank {
  font-weight: 700;
  color: var(--cream-dim);
  font-size: 0.85rem;
  min-width: 30px;
}
.ranking-item--me .ranking-item__rank { color: var(--gold); }
.ranking-item__names { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ranking-item__irish { font-weight: 600; font-size: 0.9rem; }
.ranking-item__shamrock { font-size: 1.4rem; line-height: 1; display: flex; align-items: center; }
.ranking-item__shamrock--busy { filter: grayscale(1); opacity: 0.4; }
.ranking-item__real { color: var(--cream-dim); font-size: 0.78rem; }
.ranking-item__pts { font-weight: 700; color: var(--gold); font-size: 0.88rem; white-space: nowrap; }

.leaderboard-legend {
  font-size: 0.78rem;
  color: var(--cream-dim);
  margin-top: 12px;
}

.leaderboard-refresh {
  text-align: center;
  font-size: 0.78rem;
  color: var(--cream-dim);
  margin-top: 8px;
}

/* ── Photo Gallery ──────────────────────────────────────────── */
.gallery__group-name {
  color: var(--cream-dim);
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.gallery__message {
  color: var(--cream-dim);
  text-align: center;
  margin-top: 32px;
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.gallery__item {
  background: var(--green-card);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.gallery__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.gallery__caption {
  font-size: 0.72rem;
  color: var(--cream-dim);
  padding: 6px 8px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Bottom nav ─────────────────────────────────────────────── */
.app-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-top: 1px solid var(--green-border);
  background: var(--green-bg);
}
.app-nav__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cream-dim);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--green-border);
  transition: color 0.15s, border-color 0.15s;
}
.app-nav__link:hover { color: var(--gold); border-color: var(--gold); }

/* ── Consent checkbox ───────────────────────────────────────── */
.form__consent {
  background: rgba(245,197,24,0.07);
  border: 1px solid var(--gold-dark);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.form__consent-text {
  font-size: 0.85rem;
  color: var(--cream-dim);
  line-height: 1.55;
  margin: 0;
}
.form__consent-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.form__consent-check { width: 18px; height: 18px; accent-color: var(--gold); flex-shrink: 0; }

/* ── Gallery updates ────────────────────────────────────────── */
.gallery__pub-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold);
  margin: 20px 0 10px;
}
.gallery__img-wrap { position: relative; }
.gallery__item--excluded .gallery__img { opacity: 0.4; }
.gallery__excluded-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--error);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  pointer-events: none;
}
.gallery__exclude-form { padding: 4px 8px 8px; }
.btn--xs { font-size: 0.72rem; padding: 4px 10px; }
.btn--danger-ghost {
  background: transparent;
  border: 1px solid var(--error);
  color: var(--error);
}
.btn--danger-ghost:hover { background: rgba(248,113,113,0.1); }

/* ── Lightbox ───────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.92);
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.lightbox--open { display: flex; }

.lightbox__img-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 48px 8px;
  min-height: 0;
}
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-md);
  display: block;
}
.lightbox__footer {
  padding: 8px 16px 20px;
  text-align: center;
}
.lightbox__caption {
  color: var(--cream);
  font-size: 0.9rem;
  margin: 0 0 2px;
}
.lightbox__counter {
  color: var(--cream-dim);
  font-size: 0.78rem;
  margin: 0;
}
.lightbox__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  opacity: 0.8;
}
.lightbox__close:hover { opacity: 1; }
.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--cream);
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  opacity: 0.7;
}
.lightbox__prev:hover,
.lightbox__next:hover { opacity: 1; background: rgba(255,255,255,0.2); }
.lightbox__prev { left: 8px; }
.lightbox__next { right: 8px; }
