/* ==========================================================================
   Unity 2026 — shared stylesheet
   Palette and layout follow the approved key visual.
   ========================================================================== */

:root {
  /* Core palette */
  --navy-900: #0c2455;
  --navy-800: #12356e;
  --navy-700: #17458c;
  --navy-600: #1d55ad;
  --sky-500: #3f9ade;
  --sky-400: #62b3ea;
  --sky-300: #8fcbf2;

  --gold-600: #a8801f;
  --gold-500: #c9a227;
  --gold-400: #dfc063;
  --gold-200: #f0e2b4;

  --cream: #f7f2e6;
  --cream-soft: #fcf9f2;
  --paper: #ffffff;

  --ink: #17202f;
  --ink-soft: #4d5867;
  --line: #e6ddc9;

  /* Category accents (mirror the icon colours in the key visual) */
  --c-info: #1b4f9c;
  --c-rules-yes: #2fa84f;
  --c-rules-no: #e04b4b;
  --c-flight: #1b6fc4;
  --c-hotel: #e8892b;
  --c-rundown: #7b4fa8;
  --c-dest: #17a2a0;
  --c-contact: #12356e;

  /* System */
  --radius: 14px;
  --radius-sm: 8px;
  --shell: 1120px;
  --shadow-card: 0 10px 30px rgba(12, 36, 85, 0.08);
  --shadow-lift: 0 18px 40px rgba(12, 36, 85, 0.16);

  --font-script: "Lobster", "Brush Script MT", cursive;
  --font-display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--navy-700); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-800);
  line-height: 1.2;
  margin: 0 0 .6em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }

p { margin: 0 0 1rem; }

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.shell {
  width: min(var(--shell), calc(100% - 2.5rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-800);
  color: #fff;
  padding: .7rem 1.2rem;
  z-index: 999;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Navigation ------------------------------------------------- */

.topbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  padding: 1.1rem 0;
}
.topbar--solid {
  position: relative;
  background: var(--navy-900);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.brandmark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: .82;
  text-decoration: none;
  color: #fff;
  flex: 0 0 auto;
  padding: .35rem .1rem;
}
.brandmark__word {
  font-family: var(--font-script);
  font-size: 1.75rem;
  letter-spacing: .5px;
  text-shadow: 0 2px 0 rgba(12, 36, 85, .55);
}
.brandmark__year {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .72rem;
  letter-spacing: .32em;
  padding-left: .32em;
  color: var(--gold-400);
}

.nav {
  margin-left: auto;
  background: var(--navy-800);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  padding: .35rem;
}
.nav__list {
  list-style: none;
  display: flex;
  gap: .1rem;
  margin: 0;
  padding: 0;
}
.nav__list a {
  display: block;
  padding: .55rem 1rem;
  border-radius: 999px;
  color: #eaf2ff;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color .18s ease, color .18s ease;
}
.nav__list a:hover, .nav__list a:focus-visible {
  background: #fff;
  color: var(--navy-800);
}
.nav__list a[aria-current="page"] {
  background: var(--gold-500);
  color: var(--navy-900);
  font-weight: 700;
}
.nav__list a[aria-current="page"]:hover { background: var(--gold-400); color: var(--navy-900); }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: var(--navy-800);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 10px;
  transition: background-color .2s ease, color .2s ease;
  padding: .6rem .8rem;
  font: 600 .9rem var(--font-display);
  cursor: pointer;
}
.nav-toggle:hover { background: #fff; color: var(--navy-800); }

/* ---------- Buttons ---------------------------------------------------- */

.btn {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  padding: .7rem 1.4rem;
  font: 600 .88rem var(--font-display);
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover, .btn:focus-visible { transform: translateY(-2px); }

/* Hover inverts each button: the fill becomes the text colour and vice versa.
   The outline is an inset shadow, not a border, so nothing shifts on hover. */
.btn--primary { background: var(--navy-800); color: #fff; box-shadow: 0 6px 14px rgba(18, 53, 110, .25); }
.btn--primary:hover, .btn--primary:focus-visible {
  background: var(--paper);
  color: var(--navy-800);
  box-shadow: inset 0 0 0 1.5px var(--navy-800), 0 10px 22px rgba(18, 53, 110, .2);
}

.btn--gold { background: var(--gold-500); color: var(--navy-900); }
.btn--gold:hover, .btn--gold:focus-visible {
  background: var(--navy-800);
  color: var(--gold-400);
  box-shadow: inset 0 0 0 1.5px var(--gold-500), 0 10px 22px rgba(12, 36, 85, .25);
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .6);
}
.btn--ghost:hover, .btn--ghost:focus-visible {
  background: #fff;
  color: var(--navy-800);
  border-color: #fff;
}
.btn--block { display: block; text-align: center; }

/* ---------- Hero ------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 640px;
  display: grid;
  place-items: center;
  padding: 8rem 0 4rem;
  text-align: center;
  overflow: hidden;
  /* Warm sunset tones, so a slow-loading artwork never flashes flat blue. */
  background:
    radial-gradient(120% 80% at 50% 82%, #f9c877 0%, rgba(249, 200, 119, 0) 46%),
    linear-gradient(180deg, #3f93cf 0%, #7cb9de 34%, #d8c39b 68%, #b8823f 100%);
  background-color: #7cb9de;
}

/* Key visual. The layer is deliberately taller than the hero, so there is always
   spare artwork to travel through whatever the screen shape — main.js slides it
   on scroll, starting on the clouds and walking down to the gate. */
.hero__art {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 145%;
  background-image: url("hero-bali.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  will-change: transform;
}

/* No motion for anyone who has asked the OS to reduce it. */
@media (prefers-reduced-motion: reduce) {
  .hero__art {
    height: 100%;
    background-position: center 60%;
    transform: none !important;
    will-change: auto;
  }
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 31, 68, .34) 0%, rgba(8, 31, 68, .08) 40%, rgba(8, 31, 68, .34) 100%);
}
.hero__content { position: relative; z-index: 2; }

.hero__title {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(4rem, 13vw, 8.5rem);
  line-height: .9;
  color: #fff;
  margin: 0;
  -webkit-text-stroke: 6px var(--navy-900);
  paint-order: stroke fill;
  text-shadow: 0 12px 26px rgba(6, 24, 56, .45);
}
.hero__year {
  display: block;
  font-family: var(--font-script);
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  margin-top: -.12em;
}

.hero__tagline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 2.4vw, 1.6rem);
  color: #fff;
  margin: 1.4rem 0 1.6rem;
  text-shadow: 0 3px 10px rgba(6, 24, 56, .6);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  justify-content: center;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: var(--navy-800);
  color: #fff;
  border-radius: 999px;
  padding: .6rem 1.3rem;
  font: 700 .9rem var(--font-display);
  letter-spacing: .02em;
  box-shadow: 0 8px 20px rgba(6, 24, 56, .3);
}
.chip svg { width: 18px; height: 18px; }

/* ---------- Page banner (inner pages) ---------------------------------- */

.page-banner {
  position: relative;
  background:
    linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: #fff;
  padding: 3.2rem 0 3.6rem;
  text-align: center;
  border-bottom: 4px solid var(--gold-500);
}
.page-banner::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 90px;
  background-image:
    radial-gradient(circle at 12% 100%, rgba(223, 192, 99, .22) 0 34px, transparent 35px),
    radial-gradient(circle at 88% 100%, rgba(223, 192, 99, .22) 0 34px, transparent 35px);
  pointer-events: none;
}
.page-banner h1 { color: #fff; margin-bottom: .35rem; }
.page-banner p {
  max-width: 60ch;
  margin: 0 auto;
  color: #d5e2f7;
}
.breadcrumb {
  font-size: .82rem;
  color: var(--gold-400);
  margin-bottom: .9rem;
}
.breadcrumb a { color: var(--gold-400); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Sections --------------------------------------------------- */

.section {
  position: relative;
  padding: 4.5rem 0;
}
.section--paper { background: var(--cream-soft); }
.section--tight { padding: 3rem 0; }

.section__head {
  text-align: center;
  max-width: 62ch;
  margin: 0 auto 2.6rem;
}
.section__head p { color: var(--ink-soft); }

.ornament {
  display: block;
  width: 190px;
  height: 12px;
  margin: 0 auto 1.6rem;
  background:
    linear-gradient(var(--gold-500), var(--gold-500)) center/100% 1px no-repeat;
  position: relative;
}
.ornament::before,
.ornament::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -4.5px;
  background: var(--gold-500);
  transform: rotate(45deg);
}
.ornament::before { left: calc(50% - 16px); }
.ornament::after { left: calc(50% + 7px); }

/* ---------- Menu cards (landing) --------------------------------------- */

.menu-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1rem;
}

.menu-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1rem 1.2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform .18s ease, box-shadow .18s ease;
}
.menu-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.menu-card__icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--accent, var(--navy-700));
}
.menu-card__icon svg { width: 30px; height: 30px; }

/* Split circle for the Do's & Don'ts card */
.menu-card__icon--split {
  background: none;
  display: flex;
  gap: .3rem;
  width: auto;
}
.menu-card__icon--split span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.menu-card__icon--split span:first-child { background: var(--c-rules-yes); }
.menu-card__icon--split span:last-child { background: var(--c-rules-no); }
.menu-card__icon--split svg { width: 22px; height: 22px; }

.menu-card h3 {
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .02em;
  margin-bottom: .5rem;
}
.menu-card p {
  font-size: .82rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 1.2rem;
}
.menu-card .btn {
  margin-top: auto;
  font-size: .76rem;
  padding: .6rem .9rem;
}

/* ---------- About + gallery -------------------------------------------- */

.about {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.4rem;
  align-items: stretch;
}

.about__panel {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  color: #fff;
  border-radius: var(--radius);
  padding: 2.4rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about__panel h2 { color: #fff; }
.about__panel p { color: #cfdcf2; }
.about__panel .ornament { margin-left: 0; margin-right: auto; width: 150px; }
.about__panel .btn { align-self: flex-start; margin-top: .6rem; }

.gallery {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
}
.gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(150deg, var(--sky-400), var(--navy-700));
  min-height: 150px;
  position: relative;
}
.gallery figure:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.4rem .9rem .7rem;
  background: linear-gradient(transparent, rgba(8, 24, 56, .8));
  color: #fff;
  font: 600 .8rem var(--font-display);
}

/* ---------- Quote ribbon ------------------------------------------------ */

.ribbon {
  background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
  color: #fff;
  text-align: center;
  padding: 3rem 1rem;
  border-top: 4px solid var(--gold-500);
}
.ribbon p {
  font-family: var(--font-script);
  font-size: clamp(1.3rem, 3.2vw, 2.1rem);
  line-height: 1.5;
  max-width: 24ch;
  margin: 0 auto;
}

/* ---------- Content blocks (inner pages) -------------------------------- */

.prose { max-width: 72ch; }
.prose ul, .prose ol { padding-left: 1.2rem; margin: 0 0 1.2rem; }
.prose li { margin-bottom: .45rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-card);
}
.card h3 { margin-bottom: .5rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card__kicker {
  font: 700 .75rem var(--font-display);
  color: var(--gold-600);
  letter-spacing: .06em;
  display: block;
  margin-bottom: .4rem;
}

.rule-list { list-style: none; padding: 0; margin: 0; }
.rule-list li {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  padding: .6rem 0;
  border-bottom: 1px dashed var(--line);
}
.rule-list li:last-child { border-bottom: 0; }
.rule-list .mark {
  flex: 0 0 22px;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font: 700 .8rem var(--font-display);
  margin-top: .18rem;
}
.mark--yes { background: var(--c-rules-yes); }
.mark--no { background: var(--c-rules-no); }

.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
thead th {
  background: var(--navy-800);
  color: #fff;
  font: 700 .82rem var(--font-display);
  text-align: left;
  padding: .85rem 1rem;
}
tbody td {
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: .92rem;
  vertical-align: top;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: var(--cream-soft); }

/* Rundown */
.tabs {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
}
.tab {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--navy-800);
  border-radius: 999px;
  padding: .65rem 1.4rem;
  font: 600 .88rem var(--font-display);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.tab:not([aria-selected="true"]):hover {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: #fff;
}
.tab[aria-selected="true"] {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: #fff;
}
.tabpanel[hidden] { display: none; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 1.6rem; border-left: 2px solid var(--gold-400); }
.timeline li { position: relative; padding: 0 0 1.6rem 1.2rem; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -1.75rem;
  top: .45rem;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gold-500);
  border: 2px solid var(--cream-soft);
}
.timeline time {
  font: 700 .85rem var(--font-display);
  color: var(--navy-700);
  display: block;
}
.timeline h3 { margin: .1rem 0 .25rem; font-size: 1.02rem; }
.timeline p { margin: 0; color: var(--ink-soft); font-size: .92rem; }

/* Placeholder marker */
.tbc {
  display: inline-block;
  background: var(--gold-200);
  color: var(--gold-600);
  border: 1px dashed var(--gold-500);
  border-radius: 999px;
  padding: .1rem .6rem;
  font: 700 .7rem var(--font-display);
  letter-spacing: .04em;
  vertical-align: middle;
}

.notice {
  background: #fff8e4;
  border: 1px solid var(--gold-400);
  border-left: 5px solid var(--gold-500);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  font-size: .92rem;
  margin-bottom: 2rem;
}
.notice strong { color: var(--gold-600); }

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  min-height: 380px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.5rem;
  color: var(--ink-soft);
}
.map-frame iframe { width: 100%; min-height: 380px; border: 0; display: block; }

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list span { display: block; font-size: .8rem; color: var(--ink-soft); }
.contact-list a { font-weight: 600; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

.dest-card { padding: 0; overflow: hidden; }
.dest-card__img {
  height: 170px;
  background: linear-gradient(150deg, var(--sky-400), var(--navy-700));
  background-size: cover;
  background-position: center;
}
.dest-card__body { padding: 1.3rem 1.4rem 1.5rem; }

.back-home { text-align: center; padding-bottom: 4rem; }

/* ---------- Footer ------------------------------------------------------ */

.footer {
  background: var(--navy-900);
  color: #b9c9e4;
  padding: 3rem 0 2rem;
  font-size: .9rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer h4 {
  color: #fff;
  font-size: .82rem;
  letter-spacing: .08em;
  margin-bottom: .8rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .45rem; }
.footer a { color: #b9c9e4; text-decoration: none; }
.footer a:hover { color: var(--gold-400); }
.footer__base {
  padding-top: 1.4rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .82rem;
}

/* ---------- Responsive -------------------------------------------------- */

@media (max-width: 1080px) {
  .menu-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 1.25rem;
    left: 1.25rem;
    margin-top: .6rem;
    border-radius: var(--radius);
    padding: .6rem;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; }
  .nav__list a { padding: .8rem 1rem; border-radius: var(--radius-sm); }

  .about { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero { min-height: 520px; padding-top: 7rem; }
}

@media (max-width: 620px) {
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: 1fr; }
  .gallery figure:first-child { grid-row: auto; }
  .hero__title { -webkit-text-stroke-width: 4px; }
  .section { padding: 3.2rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ==========================================================================
   OPERATIONS PAGES — dinner-rsvp, admin, raffle
   Same tokens as the public site. Nothing here is used by the public pages.
   ========================================================================== */

/* ---------- Forms ------------------------------------------------------- */

.field { margin-bottom: 1rem; }
.field > label {
  display: block;
  font: 700 .78rem var(--font-display);
  color: var(--navy-800);
  letter-spacing: .04em;
  margin-bottom: .4rem;
}
.field__hint { font-size: .8rem; color: var(--ink-soft); margin: .4rem 0 0; }

.input,
.textarea,
.select {
  width: 100%;
  font: 400 1rem var(--font-body);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .75rem .95rem;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.input:focus, .textarea:focus, .select:focus {
  outline: 0;
  border-color: var(--navy-600);
  box-shadow: 0 0 0 3px rgba(29, 85, 173, .16);
}
.textarea { min-height: 190px; resize: vertical; font-family: var(--font-body); line-height: 1.5; }
.select { appearance: none; padding-right: 2.4rem; background-image:
  linear-gradient(45deg, transparent 50%, var(--navy-700) 50%),
  linear-gradient(135deg, var(--navy-700) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 12px) 52%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn--sm { padding: .45rem .9rem; font-size: .78rem; }
.btn--danger { background: var(--c-rules-no); color: #fff; }
.btn--danger:hover, .btn--danger:focus-visible {
  background: var(--paper); color: var(--c-rules-no);
  box-shadow: inset 0 0 0 1.5px var(--c-rules-no);
}
.btn--quiet {
  background: var(--paper); color: var(--navy-800);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn--quiet:hover, .btn--quiet:focus-visible { background: var(--navy-800); color: #fff; box-shadow: none; }

/* ---------- Alerts ------------------------------------------------------ */

.alert {
  border-radius: var(--radius-sm);
  padding: .8rem 1.05rem;
  font-size: .9rem;
  margin-bottom: 1.1rem;
  border-left: 5px solid;
}
.alert--error { background: #fdeaea; border-color: var(--c-rules-no); color: #8d2020; }
.alert--ok    { background: #e9f7ee; border-color: var(--c-rules-yes); color: #17632f; }
.alert--info  { background: #eaf1fb; border-color: var(--navy-600); color: var(--navy-900); }
.alert[hidden] { display: none; }

/* ---------- Password gate ----------------------------------------------- */

.gate { display: grid; place-items: center; padding: 4.5rem 0 5rem; }
.gate__card {
  width: min(420px, 100%);
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 5px solid var(--gold-500);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  padding: 2.2rem 2rem 2rem;
}
.gate__card h2 { font-size: 1.35rem; margin-bottom: .3rem; }
.gate__card > p { color: var(--ink-soft); font-size: .9rem; margin-bottom: 1.6rem; }

/* ---------- Stat tiles --------------------------------------------------- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1.3rem 1.4rem;
  border-left: 5px solid var(--accent, var(--navy-700));
}
.stat__value {
  font: 800 2.3rem/1 var(--font-display);
  color: var(--navy-900);
  display: block;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font: 600 .78rem var(--font-display);
  color: var(--ink-soft);
  letter-spacing: .03em;
  display: block;
  margin-top: .45rem;
}

.meter {
  height: 10px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
  margin: .3rem 0 1.9rem;
}
.meter__fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--navy-600), var(--sky-500));
  transition: width .5s ease;
}

/* ---------- Toolbars ----------------------------------------------------- */

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  align-items: center;
  margin-bottom: 1.2rem;
}
.toolbar .input { flex: 1 1 240px; width: auto; }
.toolbar__spacer { flex: 1 1 auto; }

.seg { display: flex; gap: .35rem; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: .25rem; }
.seg button {
  border: 0; background: transparent; cursor: pointer;
  border-radius: 999px; padding: .45rem 1rem;
  font: 600 .82rem var(--font-display); color: var(--navy-800);
  transition: background-color .18s ease, color .18s ease;
}
.seg button:hover { background: var(--cream); }
.seg button[aria-pressed="true"] { background: var(--navy-800); color: #fff; }

/* ---------- Status pills -------------------------------------------------- */

.pill {
  display: inline-flex; align-items: center; gap: .38rem;
  border-radius: 999px; padding: .2rem .7rem;
  font: 700 .74rem var(--font-display); letter-spacing: .02em;
  white-space: nowrap;
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill--yes  { background: #e2f5e8; color: #1d7a3a; }
.pill--no   { background: #f0eee9; color: #7b7367; }
.pill--gold { background: var(--gold-200); color: var(--gold-600); }

/* ---------- Data table ---------------------------------------------------- */

.table-scroll { max-height: 62vh; overflow: auto; }
.table-scroll thead th { position: sticky; top: 0; z-index: 2; }
.table-scroll table { min-width: 720px; }
.table-scroll tbody td { font-size: .88rem; }
.row-num { color: var(--ink-soft); font-variant-numeric: tabular-nums; width: 3.5rem; }
.cell-name { font-weight: 600; color: var(--navy-800); }
.cell-actions { text-align: right; white-space: nowrap; }

.empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--ink-soft);
  font-size: .92rem;
}
.empty strong { display: block; font: 700 1.05rem var(--font-display); color: var(--navy-800); margin-bottom: .35rem; }

/* ---------- RSVP search --------------------------------------------------- */

.rsvp { width: min(620px, 100%); margin-inline: auto; }

.searchbox { position: relative; }
.searchbox .input {
  font-size: 1.15rem;
  padding: 1.05rem 1.1rem 1.05rem 3.1rem;
  border-radius: var(--radius);
  border-width: 2px;
}
.searchbox svg {
  position: absolute; left: 1.05rem; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; color: var(--ink-soft); pointer-events: none;
}

.results { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .6rem; }
.results li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  display: flex; align-items: center; gap: 1rem;
  padding: .95rem 1.1rem;
}
.results__name { flex: 1 1 auto; min-width: 0; }
.results__name b { display: block; font: 700 1.02rem var(--font-display); color: var(--navy-800); }
.results__name span { display: block; font-size: .82rem; color: var(--ink-soft); }
.results mark { background: var(--gold-200); color: inherit; border-radius: 3px; padding: 0 .12em; }

/* ---------- Check-in confirmation ------------------------------------------ */

.confirm {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 6px solid var(--c-rules-yes);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  padding: 2.4rem 1.8rem 2rem;
  text-align: center;
}
.confirm--repeat { border-top-color: var(--gold-500); }
.confirm__tick {
  width: 74px; height: 74px; border-radius: 50%;
  margin: 0 auto 1.2rem;
  display: grid; place-items: center;
  background: var(--c-rules-yes); color: #fff;
  animation: tick-in .42s cubic-bezier(.2, .9, .3, 1.2) both;
}
.confirm--repeat .confirm__tick { background: var(--gold-500); color: var(--navy-900); }
.confirm__tick svg { width: 38px; height: 38px; }
@keyframes tick-in { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.confirm h2 { font-size: 1.7rem; margin-bottom: .2rem; }
.confirm__unit { color: var(--ink-soft); margin-bottom: 1.4rem; }
.confirm__note { font-size: .9rem; color: var(--ink-soft); margin-bottom: 1.5rem; }

/* ---------- Raffle stage ---------------------------------------------------- */

.stage {
  background:
    radial-gradient(90% 70% at 50% 8%, rgba(63, 154, 222, .22) 0%, transparent 60%),
    linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .12);
  padding: 2.6rem 1.6rem;
  text-align: center;
  min-height: 340px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
/* place-items:center on .stage would otherwise shrink-wrap this to its content
   and stack the winner cards in a narrow column instead of across the screen. */
.stage > * { width: 100%; }

.stage__prize {
  font: 700 .85rem var(--font-display);
  letter-spacing: .18em;
  color: var(--gold-400);
  margin-bottom: 1.4rem;
}
.stage__idle { color: #a9c0e2; font-size: .95rem; }
.stage__idle strong { display: block; font: 800 1.5rem var(--font-display); color: #fff; margin-bottom: .4rem; }

/* The spinning name. Kept on one line and clamped so a long name cannot
   push the stage wider mid-spin. */
.reel {
  font: 800 clamp(1.8rem, 6vw, 4rem)/1.15 var(--font-display);
  color: #fff;
  min-height: 1.2em;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-shadow: 0 6px 24px rgba(0, 0, 0, .4);
}
.reel--spin { color: var(--sky-300); opacity: .85; }

.winners { display: grid; gap: .7rem; width: 100%; }
.winners--multi { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Above a dozen names the cards have to give up some height to stay on screen. */
.winners--dense { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .5rem; }
.winners--dense .winner { padding: .6rem .7rem; gap: .6rem; }
.winners--dense .winner__no { flex-basis: 26px; width: 26px; height: 26px; font-size: .72rem; }
.winners--dense .winner__name {
  font-size: clamp(.85rem, 1.5vw, 1.05rem);
  white-space: normal;          /* a truncated winner is no use to the MC */
  line-height: 1.25;
}
.winners--dense .winner { align-items: flex-start; }
.winners--dense .winner__no { margin-top: .1rem; }
.winners--dense .winner__unit { font-size: .72rem; }

.winner {
  background: linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04));
  border: 1px solid var(--gold-500);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  text-align: left;
  display: flex; align-items: center; gap: .9rem;
  animation: winner-in .45s cubic-bezier(.2, .9, .3, 1.15) both;
}
.winner__no {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold-500); color: var(--navy-900);
  font: 800 .85rem var(--font-display);
}
.winner__body { min-width: 0; }
.winner__name {
  display: block;
  font: 800 clamp(1rem, 2.4vw, 1.45rem) var(--font-display);
  color: #fff;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.winner__unit { display: block; font-size: .8rem; color: #b8cbe8; }
@keyframes winner-in { from { transform: translateY(14px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }

/* Single winner gets the whole stage instead of a card. */
.winners--solo .winner {
  background: none; border: 0; padding: 0;
  flex-direction: column; text-align: center; gap: .5rem;
}
.winners--solo .winner__no { display: none; }
.winners--solo .winner__name { font-size: clamp(2rem, 7vw, 4.4rem); white-space: normal; }
.winners--solo .winner__unit { font-size: 1rem; }

.draw-bar {
  display: grid;
  grid-template-columns: 1fr 150px auto;
  gap: .8rem;
  align-items: end;
  margin-top: 1.6rem;
}
.draw-bar .field { margin-bottom: 0; }
.draw-bar .btn { padding: .85rem 2rem; font-size: 1rem; }

.log-round {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 1.1rem 1.3rem;
  margin-bottom: .8rem;
}
.log-round__head {
  display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap;
  margin-bottom: .6rem;
}
.log-round__head h3 { margin: 0; font-size: 1rem; }
.log-round__head time { font-size: .8rem; color: var(--ink-soft); margin-left: auto; }
.log-names { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.log-names li {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .28rem .8rem;
  font-size: .85rem;
}
.log-names span { color: var(--ink-soft); font-size: .78rem; }

/* ---------- Live badge ------------------------------------------------------ */

.live {
  display: inline-flex; align-items: center; gap: .45rem;
  font: 600 .78rem var(--font-display); color: var(--ink-soft);
}
.live::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-rules-yes);
  animation: live-pulse 2.4s ease-in-out infinite;
}
@keyframes live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* ---------- Responsive ------------------------------------------------------- */

@media (max-width: 900px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .draw-bar { grid-template-columns: 1fr 1fr; }
  .draw-bar .btn { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .stat__value { font-size: 1.9rem; }
  .results li { flex-wrap: wrap; }
  .results li .btn { width: 100%; text-align: center; }
  .toolbar .input { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .confirm__tick, .winner { animation: none; }
  .live::before { animation: none; }
}
