/* Meadows Homestay booking page. Palette from the logo: forest green, cream, wood/amber, charcoal. */
:root {
  --green-900: #1b3524;
  --green-800: #24492f;
  --green-700: #2f5d3a;
  --green-500: #5f8a5b;
  --green-100: #e3ecdf;
  --cream-50: #fdfaf4;
  --cream-100: #f7f0e1;
  --cream-200: #efe3c9;
  --amber-600: #a8691f;
  --amber-500: #c8893b;
  --amber-200: #f3dcb4;
  --amber-100: #fbefd9;
  --charcoal: #23271f;
  --muted: #555c51;
  --danger: #a1301f;
  --wa: #128c4b;

  --bg: var(--cream-50);
  --bg-grad: linear-gradient(180deg, var(--cream-100) 0%, #fffdf9 55%, #ffffff 100%);
  --surface: #ffffff;
  --surface-2: var(--cream-100);
  --text: var(--charcoal);
  --text-muted: var(--muted);
  --primary: var(--green-800);
  --primary-text: #ffffff;
  --primary-soft: var(--green-100);
  --accent: var(--amber-500);
  --accent-soft: var(--amber-100);
  --accent-text: #6b4210;
  --border: #e4dccb;
  --ring: 0 0 0 3px rgba(47, 93, 58, .35);
  --shadow-sm: 0 1px 2px rgba(35, 39, 31, .06), 0 1px 3px rgba(35, 39, 31, .08);
  --shadow-md: 0 2px 4px rgba(35, 39, 31, .04), 0 8px 24px rgba(35, 39, 31, .08);
  --shadow-lg: 0 4px 8px rgba(35, 39, 31, .05), 0 18px 48px rgba(35, 39, 31, .14);
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --font-serif: "Fraunces", Georgia, "Noto Sans Tamil", serif;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Tamil", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121813;
    --bg-grad: linear-gradient(180deg, #17201a 0%, #121813 60%);
    --surface: #1b241d;
    --surface-2: #222d24;
    --text: #efe9dc;
    --text-muted: #c1bcae;
    --primary: #8ccf9b;
    --primary-text: #102016;
    --primary-soft: #23382a;
    --accent: #e0a85e;
    --accent-soft: #3a2c17;
    --accent-text: #f3d2a1;
    --border: #334036;
    --ring: 0 0 0 3px rgba(140, 207, 155, .45);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, .35);
    --shadow-lg: 0 18px 48px rgba(0, 0, 0, .5);
    --danger: #ff9a85;
    --wa: #2fbf6c;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; font: 400 1.0625rem/1.55 var(--font-sans); color: var(--text);
  background: var(--bg); background-image: var(--bg-grad); background-attachment: fixed;
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}
html[lang="ta"] body { font-family: "Noto Sans Tamil", var(--font-sans); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.2; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: .75rem; }
.wrap { width: 100%; max-width: 560px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.brand { max-width: 560px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.brand img { width: 48px; height: 48px; border-radius: 50%; box-shadow: var(--shadow-sm); background: #fff; }
.brand-name { font-family: var(--font-serif); font-weight: 600; font-size: 1.15rem; line-height: 1.2; }
.brand-loc { display: flex; align-items: center; gap: 4px; font-size: .875rem; color: var(--text-muted); }
.mock-pill { margin-left: auto; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-text); }
.progress { max-width: 560px; margin: 0 auto; padding: 0 16px 10px; }
.progress-bar { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green-500), var(--primary)); border-radius: 99px; transition: width .25s var(--ease); }
.progress-label { margin-top: 6px; font-size: .8125rem; font-weight: 600; color: var(--text-muted); }

/* Step view */
.view { padding: 20px 0 8px; }
.view.enter { animation: enter .22s var(--ease); }
.view.enter-back { animation: enter-back .22s var(--ease); }
@keyframes enter { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes enter-back { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
.step-title { font-size: 1.75rem; margin-bottom: 6px; }
.step-title:focus { box-shadow: none; }
.step-hint { color: var(--text-muted); margin-bottom: 18px; }
.stack { display: grid; gap: 12px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 18px; }

/* Buttons */
.btn { min-height: 52px; padding: 0 20px; border-radius: 14px; border: 1px solid transparent; font-weight: 700; font-size: 1rem; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-decoration: none; transition: transform .15s var(--ease), background-color .15s, box-shadow .15s; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--primary); color: var(--primary-text); box-shadow: 0 6px 16px rgba(36, 73, 47, .25); flex: 1; }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-wa { background: var(--wa); color: #fff; flex: 1; box-shadow: 0 6px 16px rgba(18, 140, 75, .3); }
@media (prefers-color-scheme: dark) { .btn-wa { color: #08240f; } }
.btn-block { width: 100%; }
.btn-link { background: none; border: none; color: var(--primary); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; min-height: 48px; padding: 0 4px; cursor: pointer; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.btn-row .btn { flex: 1 1 160px; }

/* Sticky action bar */
.actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--border); box-shadow: 0 -8px 24px rgba(35, 39, 31, .06); }
.actionbar-inner { max-width: 528px; margin: 0 auto; display: flex; gap: 10px; }
.actionbar .btn-ghost { flex: 0 0 52px; padding: 0; }
.actionbar .btn { white-space: nowrap; }

/* Calendar */
.dates-summary { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin-bottom: 14px; }
.date-box { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 10px 12px; min-height: 64px; }
.date-box.active { border-color: var(--primary); box-shadow: var(--ring); }
.date-box small { display: block; font-size: .75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.date-box strong { font-size: 1rem; }
.nights-pill { font-size: .8125rem; font-weight: 700; padding: 6px 10px; border-radius: 99px; background: var(--primary-soft); color: var(--primary); white-space: nowrap; }
.cal { padding: 14px 10px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 10px; }
.cal-head h2 { font-size: 1.15rem; }
.cal-nav { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); display: grid; place-items: center; cursor: pointer; }
.cal-nav[disabled] { opacity: .35; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 4px; text-align: center; }
.cal-dow { font-size: .75rem; font-weight: 700; color: var(--text-muted); padding: 4px 0; }
.cal-day { position: relative; height: 48px; border: 0; background: none; font-weight: 600; font-size: 1rem; cursor: pointer; border-radius: 0; padding: 0; }
.cal-day span { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; }
.cal-day:hover span { background: var(--surface-2); }
.cal-day[disabled] { color: var(--text-muted); opacity: .4; cursor: default; text-decoration: line-through; text-decoration-thickness: 1px; }
.cal-day.today span { box-shadow: inset 0 0 0 1.5px var(--accent); }
.cal-day.in-range { background: var(--primary-soft); }
.cal-day.start { background: linear-gradient(90deg, transparent 50%, var(--primary-soft) 50%); }
.cal-day.end { background: linear-gradient(90deg, var(--primary-soft) 50%, transparent 50%); }
.cal-day.start.end { background: none; }
.cal-day.start span, .cal-day.end span { background: var(--primary); color: var(--primary-text); }

/* Steppers */
.stepper-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; }
.stepper-row + .stepper-row { border-top: 1px solid var(--border); }
.stepper-label b { display: block; font-size: 1.0625rem; }
.stepper-label span { font-size: .875rem; color: var(--text-muted); }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--border); background: var(--surface); cursor: pointer; display: grid; place-items: center; color: var(--primary); }
.stepper button[disabled] { opacity: .35; cursor: default; }
.stepper output { min-width: 36px; text-align: center; font-size: 1.25rem; font-weight: 700; }
.ages { display: grid; gap: 10px; margin-top: 6px; }
.age-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.age-row label { font-weight: 600; }
.select { appearance: none; min-height: 48px; min-width: 150px; padding: 0 40px 0 14px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpath fill='%235f8a5b' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 10px center; font-size: 1rem; }
.select.invalid { border-color: var(--danger); }

/* Choice cards */
.choices { display: grid; gap: 10px; }
.choice { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; min-height: 72px; padding: 14px 16px; border-radius: var(--radius); border: 1.5px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s var(--ease); }
.choice:active { transform: scale(.99); }
.choice[aria-checked="true"] { border-color: var(--primary); box-shadow: var(--ring), var(--shadow-md); }
.choice-icon { flex: 0 0 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-size: 1.35rem; }
.choice-text { flex: 1; }
.choice-text b { display: block; font-size: 1.0625rem; }
.choice-text span { font-size: .875rem; color: var(--text-muted); }
.choice-check { flex: 0 0 24px; height: 24px; border-radius: 50%; border: 2px solid var(--border); display: grid; place-items: center; }
.choice[aria-checked="true"] .choice-check { background: var(--primary); border-color: var(--primary); color: var(--primary-text); }
.agreed { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: .8125rem; font-weight: 700; color: var(--primary); }
.field { display: grid; gap: 6px; margin-top: 14px; }
.field label { font-weight: 700; }
.input { min-height: 52px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--surface); font-size: 1.0625rem; width: 100%; }
textarea.input { min-height: 96px; resize: vertical; }
.input:focus { border-color: var(--primary); }
.input.invalid { border-color: var(--danger); }
.phone { display: flex; align-items: stretch; }
.phone span { display: grid; place-items: center; padding: 0 12px; border: 1.5px solid var(--border); border-right: 0; border-radius: 12px 0 0 12px; background: var(--surface-2); font-weight: 700; }
.phone .input { border-radius: 0 12px 12px 0; }
.err { color: var(--danger); font-size: .9375rem; font-weight: 600; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

/* Option cards */
.options { display: grid; gap: 16px; }
.opt { position: relative; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; cursor: pointer; transition: box-shadow .2s, border-color .2s, transform .15s var(--ease); }
.opt:active { transform: scale(.995); }
.opt.on { border-color: var(--primary); box-shadow: var(--ring), var(--shadow-lg); }
.opt-photo { position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; aspect-ratio: 16 / 9; max-width: 100%; background: var(--surface-2); }
.opt-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-count { position: absolute; right: 12px; bottom: 12px; font-size: .8125rem; font-weight: 700; padding: 6px 12px; border-radius: 99px; background: rgba(27, 53, 36, .82); color: #fff; }
.bhk { display: inline-block; vertical-align: middle; font-family: var(--font-sans); font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--primary-soft); color: var(--primary); letter-spacing: .02em; }
.badges { position: absolute; pointer-events: none; top: 12px; left: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.badge { font-size: .75rem; font-weight: 700; padding: 5px 10px; border-radius: 99px; background: rgba(255, 255, 255, .94); color: #1b3524; box-shadow: var(--shadow-sm); }
.badge.amber { background: #fbefd9; color: #6b4210; }
.badge.green { background: #24492f; color: #fff; }
.opt-body { padding: 16px 18px 18px; }
.opt-name { font-size: 1.25rem; }
.opt-meta { margin-top: 6px; font-size: .9375rem; color: var(--text-muted); display: grid; gap: 2px; }
.opt-price { margin-top: 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; border-top: 1px dashed var(--border); padding-top: 14px; }
.opt-total { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 600; line-height: 1; }
.opt-total small { display: block; font-family: var(--font-sans); font-size: .8125rem; font-weight: 600; color: var(--text-muted); margin-top: 6px; }
.opt-night { text-align: right; font-size: .875rem; color: var(--text-muted); }
.opt-night b { color: var(--text); font-size: 1rem; }
.opt-owner { font-size: .9375rem; color: var(--accent-text); background: var(--accent-soft); border-radius: 12px; padding: 10px 12px; margin-top: 14px; }
.opt-split { margin-top: 12px; font-size: .875rem; color: var(--text-muted); }
.opt-split ul { margin: 4px 0 0; padding-left: 18px; }
.opt-select { margin-top: 14px; width: 100%; border: 0; font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.opt.on .opt-select { background: var(--primary); color: var(--primary-text); }
.tier-note { display: inline-block; margin-top: 8px; font-size: .8125rem; font-weight: 700; color: var(--accent-text); background: var(--accent-soft); padding: 4px 10px; border-radius: 99px; }

/* Notices and states */
.notice { border-radius: var(--radius-lg); padding: 18px; background: var(--accent-soft); color: var(--accent-text); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.notice h2 { font-size: 1.2rem; margin-bottom: 8px; color: inherit; }
.empty { text-align: center; padding: 28px 18px; }
.empty-art { width: 140px; height: 110px; margin: 0 auto 14px; }
.empty h2 { font-size: 1.35rem; margin-bottom: 8px; }
.empty p { color: var(--text-muted); }
.sk { background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface) 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; border-radius: var(--radius-lg); }
.sk-title { height: 32px; width: 60%; margin-bottom: 18px; border-radius: 10px; }
.sk-card { height: 300px; margin-bottom: 16px; }
.sk-line { height: 14px; border-radius: 8px; margin-top: 10px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.loading-label { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-weight: 600; margin-bottom: 14px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--primary-soft); border-top-color: var(--primary); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Preview */
.summary dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; }
.summary dt { color: var(--text-muted); font-size: .9375rem; }
.summary dd { margin: 0; font-weight: 600; }
.wa-chat { background: #e7dfd4; background-image: radial-gradient(rgba(0, 0, 0, .035) 1px, transparent 1px); background-size: 14px 14px; border-radius: var(--radius-lg); padding: 16px 12px; }
@media (prefers-color-scheme: dark) { .wa-chat { background-color: #0b141a; } }
.wa-bubble { margin-left: auto; max-width: 94%; background: #d9fdd3; color: #111b21; border-radius: 12px 2px 12px 12px; padding: 10px 12px 8px; box-shadow: 0 1px 1px rgba(0, 0, 0, .12); white-space: pre-wrap; word-break: break-word; font-size: .9375rem; line-height: 1.45; }
@media (prefers-color-scheme: dark) { .wa-bubble { background: #005c4b; color: #e9edef; } }
.wa-time { display: block; text-align: right; font-size: .6875rem; opacity: .6; margin-top: 4px; }
.ref-chip { display: inline-flex; align-items: center; gap: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; font-size: 1.05rem; background: var(--surface-2); border: 1px dashed var(--border); padding: 8px 14px; border-radius: 12px; }

/* Modal */
.modal { border: 0; padding: 0; background: transparent; width: 100%; max-width: 560px; margin: auto auto 0; max-height: 92vh; }
.modal::backdrop { background: rgba(18, 24, 19, .55); backdrop-filter: blur(2px); }
.modal[open] { animation: sheet .25s var(--ease); }
@keyframes sheet { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-card { background: var(--surface); color: var(--text); border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; max-height: 92vh; }
@media (min-width: 600px) { .modal { margin: auto; } .modal-card { border-radius: var(--radius-lg); } }
.modal-title { font-size: 1.35rem; margin-bottom: 10px; }
.modal-body { overflow-y: auto; padding-right: 4px; }
.modal-body ol { margin: 10px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.modal-body .lead { color: var(--text-muted); font-size: .9375rem; }
.modal-actions { display: flex; gap: 10px; margin-top: 16px; }
.tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.tab { flex: 1; text-align: center; font-size: .8125rem; font-weight: 700; padding: 8px 6px; border-radius: 99px; background: var(--surface-2); color: var(--text-muted); }
.tab.on { background: var(--primary); color: var(--primary-text); }
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rules li { display: flex; gap: 12px; align-items: flex-start; }
.rn { flex: 0 0 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .8125rem; font-weight: 700; background: var(--primary-soft); color: var(--primary); }
.times { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.times li { display: grid; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.times span { color: var(--text-muted); font-size: .9375rem; }
.radios { display: grid; gap: 8px; margin-bottom: 12px; }
.radio { display: flex; gap: 12px; align-items: center; min-height: 52px; padding: 0 14px; border: 1.5px solid var(--border); border-radius: 12px; font-weight: 700; cursor: pointer; }
.radio:has(input:checked) { border-color: var(--primary); box-shadow: var(--ring); }
.radio input { width: 22px; height: 22px; margin: 0; accent-color: var(--primary); }
#tmCustom .age-row + .age-row { margin-top: 10px; }
.modal-body .ack { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.tick { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border: 2px solid var(--accent); border-radius: 12px; font-weight: 700; cursor: pointer; }
.tick input { flex: 0 0 24px; width: 24px; height: 24px; margin: 0; accent-color: var(--primary); }
.opt-warn { display: block; margin-top: 6px; padding: 6px 10px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-text); font-weight: 700; font-size: .875rem; }
.modal-actions .btn-ghost { flex: 0 0 auto; }

.boot { padding-top: 8px; }

.gallery { border: 0; padding: 0; margin: 0; width: 100%; max-width: 100%; height: 100%; max-height: 100%; background: #0f1410; color: #f3efe4; }
.gallery::backdrop { background: #0f1410; }
.gallery[open] { display: flex; flex-direction: column; animation: sheet .2s var(--ease); }
.gallery-head { display: flex; align-items: center; gap: 12px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.gallery-head h2 { flex: 1; min-width: 0; font-size: 1.05rem; color: inherit; }
.gallery-close { flex: 0 0 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: inherit; display: grid; place-items: center; cursor: pointer; }
.gallery-body { flex: 1; min-height: 0; overflow: auto; padding: 12px 0 calc(24px + env(safe-area-inset-bottom)); }
.gallery figure { margin: 0 0 16px; overflow-x: auto; }
.gallery img { width: 100%; min-height: 220px; background: #1b231d; cursor: zoom-in; transition: width .2s var(--ease); }
.gallery img.zoom { width: 200%; max-width: none; cursor: zoom-out; }
.gallery figcaption { padding: 6px 16px 0; font-size: .875rem; opacity: .75; }

/* Intro: logo grows in, name rises, then the screen fades into the app */
.intro { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #fffdf8, var(--cream-100) 70%); animation: intro-out .45s 1.55s var(--ease) forwards; }
@media (prefers-color-scheme: dark) { .intro { background: radial-gradient(circle at 50% 40%, #1d281f, #121813 70%); } }
.intro-inner { position: relative; display: grid; justify-items: center; gap: 6px; }
.intro img { width: 132px; height: 132px; border-radius: 50%; box-shadow: 0 18px 48px rgba(36, 73, 47, .25); background: #fff; animation: intro-logo .7s var(--ease) both; }
.intro-ring { position: absolute; top: -12px; width: 156px; height: 156px; border-radius: 50%; border: 2px solid var(--amber-500); opacity: 0; animation: intro-ring 1.1s .35s var(--ease) both; }
.intro-name { margin-top: 12px; font-family: var(--font-serif); font-size: 1.6rem; font-weight: 600; color: var(--text); animation: intro-up .5s .45s var(--ease) both; }
.intro-loc { font-size: .9375rem; letter-spacing: .2em; text-transform: uppercase; color: var(--amber-600); animation: intro-up .5s .65s var(--ease) both; }
@media (prefers-color-scheme: dark) { .intro-loc { color: var(--accent); } }
@keyframes intro-logo { from { opacity: 0; transform: scale(.6) rotate(-10deg); } to { opacity: 1; transform: none; } }
@keyframes intro-ring { 0% { opacity: 0; transform: scale(.8); } 40% { opacity: .9; } 100% { opacity: 0; transform: scale(1.25); } }
@keyframes intro-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }

@media (prefers-reduced-motion: reduce) {
  .intro { animation-delay: .4s; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
