/* ────────────────────────────────────────────────────────────
   Oliver & Hina — Find your seat
   Palette + type sampled from the printed Mughal-miniature signs:
     rose #db437c · green #3a7c46 · cream #f6f3e6 · gold #bd9a52
   The frame + paper-grain images live in data.js and are applied
   to .frame via a <style> block injected by app.js.
   ──────────────────────────────────────────────────────────── */

:root {
  --paper: #f6f3e6;
  --paper-deep: #efe8d4;
  --rose: #db437c;
  --green: #3a7c46;
  --gold: #bd9a52;
  --ink: #4a4036;
  --ink-soft: #7a6f60;
}

* {
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
}

.wrap {
  min-height: 100vh;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(16px, 5vw, 48px) clamp(12px, 4vw, 24px);
  background:
    radial-gradient(120% 80% at 50% -10%, #f7ecf1 0%, transparent 55%),
    linear-gradient(160deg, #f3e8de 0%, #efe2ea 100%);
}

.panel {
  width: 100%;
  max-width: 460px;
}
.panel.plan {
  max-width: 1000px;
}

/* ── The decorative sign frame (real printed Mughal border) ──── */
.sign-shadow {
  filter: drop-shadow(0 22px 46px rgba(120, 30, 70, 0.34));
}
.frame-sign {
  border-width: clamp(30px, 9vw, 46px);
}
.frame-inner {
  position: relative;
  padding: clamp(16px, 5vw, 30px) clamp(12px, 4vw, 24px);
}

/* ── Eyebrow ─────────────────────────────────────────────────── */
.eyebrow {
  text-align: center;
  margin-bottom: 4px;
}
.eyebrow .names {
  font-family: Mukta, sans-serif;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--rose);
}
.eyebrow .meta {
  font-family: Mukta, sans-serif;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 9.5px;
  color: var(--ink-soft);
  margin-top: 5px;
}

/* ── Headings + copy ─────────────────────────────────────────── */
.finder {
  text-align: center;
}
.script-h1 {
  font-family: "Pinyon Script", cursive;
  color: var(--green);
  font-weight: 400;
  line-height: 1;
}
.finder .script-h1 {
  font-size: clamp(46px, 15vw, 68px);
  margin: 10px 0 2px;
}
.finder .lede {
  font-family: Ovo, serif;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.5;
  margin: 0 auto 22px;
  max-width: 300px;
}

/* ── Seat finder input + results ─────────────────────────────── */
.search {
  position: relative;
  text-align: left;
}
.seat-input {
  width: 100%;
  box-sizing: border-box;
  font-family: Ovo, serif;
  font-size: 19px;
  color: var(--ink);
  padding: 13px 16px;
  border-radius: 3px;
  border: 1px solid var(--gold);
  background: #fffdf6;
  outline: none;
}
.seat-input:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(219, 67, 124, 0.18);
}

.results {
  list-style: none;
  margin: 8px 0 0;
  padding: 6px;
  border: 1px solid rgba(189, 154, 82, 0.55);
  border-radius: 4px;
  background: #fffdf6;
  box-shadow: 0 16px 30px -22px rgba(120, 30, 70, 0.5);
}
.seat-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 11px 12px;
  border-radius: 3px;
  text-align: left;
}
.seat-row:hover,
.seat-row:focus-visible {
  background: var(--paper-deep);
  outline: none;
}
.seat-row .name {
  font-family: Ovo, serif;
  font-size: 18px;
  color: var(--ink);
}
.seat-row .tag {
  font-family: Mukta, sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose);
  white-space: nowrap;
}
.no-match {
  font-family: Mukta, sans-serif;
  font-size: 14px;
  color: var(--ink-soft);
  margin: 12px 2px 0;
  line-height: 1.5;
}

/* ── Divider + link buttons ──────────────────────────────────── */
.divider-row {
  margin-top: 26px;
}
.rule {
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  opacity: 0.6;
}
.link-btn {
  font-family: Mukta, sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--rose);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 12px;
}
.link-btn:hover {
  text-decoration: underline;
}
.link-btn.green {
  color: var(--green);
}

/* ── Reveal screen ───────────────────────────────────────────── */
.reveal {
  text-align: center;
}
.label {
  font-family: Mukta, sans-serif;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--ink-soft);
}
.label.green {
  color: var(--green);
}
.reveal .table-word {
  font-family: "Pinyon Script", cursive;
  color: var(--green);
  font-size: clamp(42px, 13vw, 60px);
  line-height: 1;
  margin-top: 6px;
}
.reveal .table-num {
  font-family: Ovo, serif;
  color: var(--rose);
  font-size: clamp(96px, 32vw, 150px);
  line-height: 0.9;
  margin: 2px 0 4px;
}
.reveal .flower {
  display: block;
  margin: 8px auto 0;
  width: min(180px, 52%);
  height: auto;
  filter: drop-shadow(0 10px 16px rgba(120, 30, 70, 0.18));
}
.company {
  margin-top: 26px;
}
.company .heading {
  margin-bottom: 10px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
}
.chip {
  font-family: Ovo, serif;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper-deep);
  border: 1px solid rgba(189, 154, 82, 0.4);
  padding: 5px 13px;
  border-radius: 20px;
}
.reveal .actions {
  margin-top: 28px;
  display: flex;
  gap: 18px;
  justify-content: center;
}

/* ── Full table plan ─────────────────────────────────────────── */
.plan-head {
  text-align: center;
  margin-bottom: 22px;
}
.plan-head .script-h1 {
  font-size: clamp(42px, 13vw, 58px);
  margin: 8px 0 0;
}
.plan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 520px) {
  .plan-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 840px) {
  .plan-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
.plan-card-shadow {
  filter: drop-shadow(0 14px 28px rgba(120, 30, 70, 0.28));
}
.frame-card {
  border-width: clamp(20px, 7vw, 30px);
  height: 100%;
  box-sizing: border-box;
}
.card-inner {
  padding: 14px 10px 12px;
}
.card-flower {
  width: 58px;
  height: 58px;
  object-fit: contain;
  margin: 0 auto 2px;
  display: block;
}
.card-title {
  text-align: center;
  margin-bottom: 8px;
}
.card-title .word {
  font-family: "Pinyon Script", cursive;
  color: var(--green);
  font-size: 24px;
  vertical-align: middle;
}
.card-title .num {
  font-family: Ovo, serif;
  color: var(--rose);
  font-size: 28px;
  vertical-align: middle;
}
.card-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.card-list li {
  font-family: Ovo, serif;
  font-size: 15.5px;
  color: var(--ink);
  text-align: center;
  padding: 3px 10px;
  border-radius: 20px;
  margin: 1px auto;
  display: block;
  max-width: fit-content;
}
.card-list li.on {
  color: #fff;
  background: var(--rose);
  font-weight: 600;
}
.plan-back {
  text-align: center;
  margin-top: 26px;
}

/* ── Footer ──────────────────────────────────────────────────── */
.with-love {
  text-align: center;
  margin-top: 18px;
  font-family: "Pinyon Script", cursive;
  color: var(--green);
  opacity: 0.85;
  font-size: 22px;
}

/* ── Focus + motion ──────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 2px;
  border-radius: 3px;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes bloomIn {
  0% {
    opacity: 0;
    transform: scale(0.82) translateY(8px);
  }
  60% {
    opacity: 1;
    transform: scale(1.04);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }
  70% {
    transform: scale(1.06);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
.anim {
  opacity: 0;
  animation-fill-mode: forwards;
  animation-duration: 0.62s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
}
.rise {
  animation-name: riseIn;
}
.bloom {
  animation-name: bloomIn;
}
.pop {
  animation-name: popIn;
}
@media (prefers-reduced-motion: reduce) {
  .anim {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
