/* ==========================================================================
   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-danger-btn: #c03434;   /* 5.6:1 with white text */
  --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);
}

/* Outlined button. It was hard-coded white, which vanished the moment it was
   used on a light section. The ink is now a variable that dark surfaces
   override, so the button follows whatever it is sitting on. */
.btn--ghost {
  --ghost-ink: var(--navy-800);   /* the outline and label */
  --ghost-on:  #fff;              /* the label once it fills on hover */
  background: transparent;
  color: var(--ghost-ink);
  border: 1.5px solid var(--ghost-ink);
}
.btn--ghost:hover, .btn--ghost:focus-visible {
  background: var(--ghost-ink);
  color: var(--ghost-on);
  border-color: var(--ghost-ink);
}

/* Every dark surface on the site. Anything added later that is navy-on-white
   text should join this list. */
.hero .btn--ghost,
.ribbon .btn--ghost,
.footer .btn--ghost,
.about__panel .btn--ghost,
.agenda__card .btn--ghost,
.stage .btn--ghost,
.page-banner .btn--ghost,
.topbar .btn--ghost {
  --ghost-ink: #fff;
  --ghost-on:  var(--navy-800);
}
.btn--block { display: block; width: 100%; text-align: center; }  /* width: buttons shrink-wrap under display:block, anchors don't */

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



/* Two key visuals, each already drawn for the shape it fills: a 2.21:1 version
   for desktop and a 4:5 one for phones. Because the artwork matches the frame,
   the image is drawn at its own ratio — no object-fit, no max-height, nothing
   that could crop the title or the date pill. */
.hero__kv {
  width: 100%;
  height: auto;
  display: block;
}


.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); }
}

/* Nine items. The bar only fits inline on a wide screen, so it collapses to
   the toggle everywhere below. */
@media (max-width: 1579px) {
  .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); }
}

@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: 1fr; }
  .gallery figure:first-child { grid-row: auto; }
  .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; }
/* A dedicated, darker red for buttons. --c-rules-no (#e04b4b) is tuned for
   icons and marks; behind white button text it only reaches 3.98:1. */
.btn--danger { background: var(--c-danger-btn); color: #fff; }
.btn--danger:hover, .btn--danger:focus-visible {
  background: var(--paper); color: var(--c-danger-btn);
  box-shadow: inset 0 0 0 1.5px var(--c-danger-btn);
}
.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; }
}

/* ---------- QR generator ---------------------------------------------------- */

.qr-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.seg--stack { flex-direction: column; align-items: stretch; border-radius: var(--radius); padding: .35rem; }
.seg--stack button { text-align: left; border-radius: var(--radius-sm); }

.qr-stage { display: grid; place-items: center; }

/* The printable card. Deliberately narrow — this is a table tent, not a poster. */
.qr-card {
  width: min(360px, 100%);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  padding: 1.8rem 1.6rem 1.6rem;
  text-align: center;
  border-top: 6px solid var(--gold-500);
}

.qr-card__head { line-height: .82; margin-bottom: 1.4rem; }
.qr-card__word {
  display: block;
  font-family: var(--font-script);
  font-size: 2.2rem;
  color: var(--navy-800);
}
.qr-card__year {
  display: block;
  font: 800 .78rem var(--font-display);
  letter-spacing: .32em;
  padding-left: .32em;
  color: var(--gold-600);
}

.qr-card__code {
  width: min(260px, 100%);
  margin: 0 auto 1.3rem;
  aspect-ratio: 1;
}
.qr-card__code svg { width: 100%; height: 100%; display: block; }

.qr-card__caption {
  font: 700 .95rem var(--font-display);
  color: var(--navy-800);
  margin: 0 0 .3rem;
}
.qr-card__url {
  font-size: .78rem;
  color: var(--ink-soft);
  margin: 0;
  word-break: break-all;
}

@media (max-width: 900px) {
  .qr-layout { grid-template-columns: 1fr; }
}

/* Printing gives just the card, centred, with nothing else on the sheet. */
@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
  .section, .section--paper { padding: 0; background: #fff; }
  .qr-layout { display: block; }
  .qr-card {
    box-shadow: none;
    border: 1px solid #c9c9c9;
    margin: 1.5cm auto;
    width: 9cm;
    break-inside: avoid;
  }
}

/* ---------- Attendance checkbox ---------------------------------------------
   The admin table is a checklist someone works down during the dinner, so the
   hit target has to be generous and the state readable at a glance. */

.col-check { width: 8.5rem; }

.check {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  cursor: pointer;
  user-select: none;
  padding: .25rem 0;
}
.check input { position: absolute; opacity: 0; width: 0; height: 0; }

.check__box {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--line);
  background: var(--paper);
  display: grid;
  place-items: center;
  transition: background-color .15s ease, border-color .15s ease;
}
.check__box::after {
  content: "";
  width: 11px;
  height: 6px;
  border-left: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(-45deg) scale(.4);
  opacity: 0;
  transition: opacity .15s ease, transform .15s ease;
  margin-top: -2px;
}
.check:hover .check__box { border-color: var(--c-rules-yes); }
.check input:checked + .check__box {
  background: var(--c-rules-yes);
  border-color: var(--c-rules-yes);
}
.check input:checked + .check__box::after { opacity: 1; transform: rotate(-45deg) scale(1); }
.check input:focus-visible + .check__box {
  outline: 2px solid var(--navy-600);
  outline-offset: 2px;
}

.check__text {
  font: 700 .78rem var(--font-display);
  color: var(--ink-soft);
  letter-spacing: .02em;
}
.check input:checked ~ .check__text { color: #1d7a3a; }

.check--locked { cursor: not-allowed; opacity: .65; }
.check--locked .check__box { border-color: var(--gold-500); }
.check--locked input:checked + .check__box { background: var(--gold-500); border-color: var(--gold-500); }

.cell-time { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.row-saving { opacity: .55; }

/* ==========================================================================
   LANDING PAGE — agenda, dress code, destinations
   ========================================================================== */

/* ---------- General agenda ---------------------------------------------- */

.agenda {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.agenda__day { position: relative; display: flex; flex-direction: column; }

.agenda__num {
  display: block;
  text-align: center;
  font: 800 1.55rem var(--font-display);
  color: var(--navy-900);
  margin-bottom: .7rem;
}

.agenda__card {
  flex: 1;
  background: var(--navy-800);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1.6rem 1.5rem 1.7rem;
  border-top: 5px solid var(--gold-500);
}
.agenda__card h3 {
  font: 800 1.12rem/1.25 var(--font-display);
  text-transform: uppercase;
  letter-spacing: .02em;
  color: #fff;
  margin: 0 0 .5rem;
}
.agenda__card time {
  display: block;
  font: 700 .86rem var(--font-display);
  color: var(--gold-400);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.agenda__items { list-style: none; margin: 0; padding: 0; display: grid; gap: .72rem; }
.agenda__items li {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .96rem;
  color: #e6eefb;
}
.agenda__items svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  color: var(--sky-300);
}

/* Connector arrow between days, desktop only. */
@media (min-width: 861px) {
  .agenda__day + .agenda__day::before {
    content: "";
    position: absolute;
    left: -1.05rem;
    top: 55%;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--gold-500);
    border-right: 2px solid var(--gold-500);
    transform: rotate(45deg);
  }
}

.agenda__more { text-align: center; margin: 1.9rem 0 0; }

/* ---------- Dress code ---------------------------------------------------- */

.dress {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 2.2rem;
  align-items: start;
}

.dress__figure {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1.4rem 1.4rem 1rem;
}
.dress__figure img { width: 100%; height: auto; display: block; }
.dress__figure figcaption {
  margin-top: .9rem;
  text-align: center;
  font-size: .82rem;
  color: var(--ink-soft);
}

.dress__notes h3 {
  font-size: 1.05rem;
  margin: 0 0 .7rem;
}
.dress__notes h3 + * { margin-top: 0; }
.dress__notes h3:not(:first-child) { margin-top: 1.6rem; }

.dress__specs, .dress__days { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.dress__specs li, .dress__days li {
  display: flex;
  gap: .8rem;
  align-items: baseline;
  font-size: .94rem;
  padding-bottom: .55rem;
  border-bottom: 1px dashed var(--line);
}
.dress__specs span, .dress__days strong {
  flex: 0 0 5.6rem;
  font: 700 .78rem var(--font-display);
  letter-spacing: .03em;
  color: var(--navy-800);
  text-transform: uppercase;
}
.dress__specs em { font-style: normal; font-weight: 600; color: var(--navy-800); }
.dress__notes .notice { margin-top: 1.4rem; }

/* ---------- Destinations --------------------------------------------------- */

.dest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.dest {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.dest:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }

.dest__media { aspect-ratio: 4 / 3; background: var(--cream); overflow: hidden; }
.dest__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Keeps the card from collapsing if the photo has not been dropped in yet. */
.dest__media--empty { background: linear-gradient(135deg, var(--navy-700), var(--navy-900)); }

.dest__body { padding: 1.2rem 1.3rem 1.4rem; }
.dest__kicker {
  display: block;
  font: 700 .7rem var(--font-display);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: .35rem;
}
.dest__body h3 { font-size: 1.12rem; margin: 0 0 .4rem; }
.dest__body p { margin: 0; font-size: .92rem; color: var(--ink-soft); }

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

@media (max-width: 860px) {
  .agenda, .dest-grid { grid-template-columns: 1fr; }
  .dress { grid-template-columns: 1fr; }
  .agenda__num { text-align: left; }
}

/* The welcome block is now a short lead-in above the agenda, not a section
   heading over a card grid, so it needs less air beneath it. */
.section__head--intro { margin-bottom: 0; }

/* ---------- Akomodasi ------------------------------------------------------ */

.hotel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
}

.hotel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.hotel:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }

/* The supplied artwork is portrait with the hotel logo across the top, so the
   frame is kept tall and anchored to the top — a 16/9 crop would cut the logo. */
.hotel img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hotel__body { padding: 1.1rem 1.3rem 1.3rem; }
.hotel__body h3 { font-size: 1.05rem; margin: 0 0 .25rem; }
.hotel__body p { margin: 0; font-size: .88rem; color: var(--ink-soft); }

@media (max-width: 860px) {
  .hotel-grid { grid-template-columns: 1fr; }
}

/* ---------- Hotel columns --------------------------------------------------
   Two hotels side by side, each carrying its own photo, address and map.
   A hairline rule separates them on desktop, as in the reference layout. */

.hotelx-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  position: relative;
}
@media (min-width: 861px) {
  .hotelx-grid::before {
    content: "";
    position: absolute;
    left: 50%;
    top: .5rem;
    bottom: .5rem;
    width: 1px;
    background: var(--line);
  }
  /* the dots that cap the rule */
  .hotelx-grid::after {
    content: "";
    position: absolute;
    left: 50%;
    top: .5rem;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--navy-800);
    transform: translateX(-50%);
  }
}

.hotelx { min-width: 0; text-align: center; }

.hotelx__badge {
  display: inline-block;
  font: 700 .7rem var(--font-display);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: .3rem;
}
.hotelx__name {
  font-size: 1.24rem;
  margin: 0 0 1.1rem;
  line-height: 1.3;
}

.hotelx__hero {
  margin: 0 0 1.2rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--cream);
}
/* The supplied artwork is a 4:5 portrait card with the hotel logo across the
   top. Matching that ratio shows it whole — a landscape crop either cut the
   logo off or, on the InterContinental image, left nothing but sky. */
.hotelx__hero img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.hotelx__address { font-style: normal; margin-bottom: 1.3rem; }
.hotelx__address p { margin: 0 0 .8rem; font-size: .94rem; line-height: 1.55; }
.hotelx__address a { font-weight: 600; }
.hotelx__label {
  display: block;
  font: 700 .68rem var(--font-display);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: .2rem;
}

/* Optional extra photos. Each <img> removes itself if the file is missing, and
   the strip collapses when they all do — so the layout never shows gaps. */
.hotelx__gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: .6rem;
  margin-bottom: 1.3rem;
}
.hotelx__gallery:empty { display: none; }
.hotelx__gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
}

.hotelx__map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  background: var(--cream);
  aspect-ratio: 4 / 3;
}
.hotelx__map iframe { width: 100%; height: 100%; border: 0; display: block; }

.hotelx__link { margin: .7rem 0 0; font-size: .86rem; }

@media (max-width: 860px) {
  .hotelx-grid { grid-template-columns: 1fr; gap: 2.6rem; }
  .hotelx + .hotelx { border-top: 1px solid var(--line); padding-top: 2.4rem; }
}

/* ---------- Dress code cards ------------------------------------------------
   One card per session, each showing what the outfit actually looks like. */

.dc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.dc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.dc:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }

/* The outfit shots are cut-outs on a plain ground, so they are contained
   rather than cropped — heads and shoes both matter here. */
.dc__shot {
  margin: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.dc__shot img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: contain;
  display: block;
}

.dc__body { padding: 1.2rem 1.3rem 1.4rem; }
.dc__when {
  display: block;
  font: 700 .68rem var(--font-display);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: .3rem;
}
.dc__body h3 { font-size: 1.14rem; margin: 0 0 .5rem; }
.dc__code {
  display: inline-block;
  background: var(--gold-200);
  color: var(--gold-600);
  border-radius: 999px;
  padding: .24rem .85rem;
  font: 700 .8rem var(--font-display);
  margin: 0 0 .7rem;
}
.dc__body p:last-child { margin: 0; font-size: .9rem; color: var(--ink-soft); }

@media (max-width: 860px) { .dc-grid { grid-template-columns: 1fr; } }

/* ---------- Balinese accent marks -------------------------------------------
   Outline motifs that run the full height of each section, sitting in the
   gutters either side of the content column and bleeding off the page edge.
   Purely decorative: hidden from assistive tech, click-through, and suppressed
   below 1200px where there is no gutter left to put them in. */

.section { position: relative; overflow: hidden; }

.deco {
  /* Space between the viewport edge and the content column. BLEED lets the
     motif run past the page edge so it reads large rather than boxed-in. */
  --bleed: 96px;
  --gutter: max(0px, calc((100vw - var(--shell)) / 2));

  position: absolute;
  top: 4%;
  bottom: 4%;
  width: calc(var(--gutter) + var(--bleed));

  pointer-events: none;
  user-select: none;
  opacity: .07;
  color: var(--navy-800);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;   /* height-led until the gutter runs out of room */
  z-index: 0;
}

/* Content must sit above the motifs. */
.section > .shell { position: relative; z-index: 1; }

/* The inner edge stops exactly at the content column; the rest hangs off the
   page and is clipped by the section's overflow. */
.deco--l { left:  calc(var(--bleed) * -1); }
.deco--r { right: calc(var(--bleed) * -1); }

.deco--pura       { background-image: url("deco-pura.svg"); }
.deco--gate       { background-image: url("deco-gate.svg"); }
.deco--penjor     { background-image: url("deco-penjor.svg"); }
.deco--frangipani { background-image: url("deco-frangipani.svg"); }
.deco--palm       { background-image: url("deco-palm.svg"); }
.deco--canang     { background-image: url("deco-canang.svg"); }
.deco--terrace    { background-image: url("deco-terrace.svg"); }
.deco--jukung     { background-image: url("deco-jukung.svg"); }

/* Two motifs in one section share the height rather than stacking on top of
   each other. */
.deco--top    { bottom: 52%; }
.deco--bottom { top: 52%; }
.deco--mid    { top: 4%; bottom: 4%; }

.deco--flip { transform: scaleX(-1); }

@media (max-width: 1200px) { .deco { display: none; } }
@media (prefers-reduced-motion: reduce) { .deco { opacity: .06; } }

/* ---------- Extra views per destination -------------------------------------
   A two-up strip beneath the main photo, giving three views per location.
   Each slot removes itself when the file is absent and the strip collapses
   entirely when both are, so a single photo still looks deliberate. */

.dest__thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.dest__thumbs:empty { display: none; }
.dest__thumbs img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}
/* A lone second view spans the full width rather than leaving a gap. */
.dest__thumbs img:only-child { grid-column: 1 / -1; }

/* Six contacts sit better as 3+3 than as the default 4+2. */
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .card-grid--3 { grid-template-columns: 1fr; } }

/* Secondary action beside a phone number, so the number itself is printed once. */
.contact-alt {
  margin-left: .55rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink-soft);
  border-bottom: 1px dotted currentColor;
}
.contact-alt:hover { color: var(--navy-700); }


/* Landing page only: the nav floats over the key visual, so it needs its own
   gradient rather than relying on the artwork being dark. */


/* Blue variant of the notice block, for "coming soon" messages. The default
   gold reads as a warning; this one reads as information. */
.notice--info {
  background: #eaf1fb;
  border-left-color: var(--navy-600);
  color: var(--navy-900);
}
.notice--info strong { color: var(--navy-700); display: block; margin-bottom: .35rem; }

/* ---------- Check-in: tappable result rows ---------------------------------- */

.results__pick {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.results li:has(.results__pick) { padding: 0; }
.results li:has(.results__pick) .results__pick { padding: .95rem 1.1rem; }
.results__pick:hover { background: var(--cream); }
.results__pick:focus-visible { outline: 2px solid var(--navy-600); outline-offset: -2px; }
.results__go { font-size: 1.6rem; color: var(--ink-soft); line-height: 1; }

/* ---------- Confirmation dialog --------------------------------------------- */

.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1.25rem; }
.modal[hidden] { display: none; }
body.is-modal-open { overflow: hidden; }

.modal__backdrop { position: absolute; inset: 0; background: rgba(6, 26, 60, .55); }

.modal__panel {
  position: relative;
  width: min(420px, 100%);
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  border-top: 6px solid var(--gold-500);
  padding: 2rem 1.7rem 1.7rem;
  text-align: center;
  animation: modal-in .22s cubic-bezier(.2, .9, .3, 1.1) both;
}
@keyframes modal-in { from { transform: translateY(14px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }

.modal__kicker {
  font: 700 .72rem var(--font-display);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 .5rem;
}
.modal__panel h2 { font-size: 1.5rem; margin: 0 0 .2rem; line-height: 1.25; }
.modal__unit { color: var(--ink-soft); margin: 0 0 1.1rem; font-size: .92rem; }
.modal__note { font-size: .92rem; color: var(--ink-soft); margin: 0 0 1.4rem; }
.modal__error { color: var(--c-danger-btn); font-size: .88rem; margin: .9rem 0 0; }

.modal__mark {
  width: 68px; height: 68px; border-radius: 50%;
  margin: 0 auto 1.1rem;
  display: grid; place-items: center;
  background: var(--c-rules-yes); color: #fff;
}
.modal__mark--gold { background: var(--gold-500); color: var(--navy-900); }
.modal__mark svg { width: 34px; height: 34px; }

.modal__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.modal__actions .btn { width: 100%; text-align: center; }

@media (prefers-reduced-motion: reduce) { .modal__panel { animation: none; } }

/* ---------- Two-up card grid ------------------------------------------------ */
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .card-grid--2 { grid-template-columns: 1fr; } }

/* ---------- Radio picker (padel / tenis) ------------------------------------ */

.pickset { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.pick { cursor: pointer; }
.pick input { position: absolute; opacity: 0; width: 0; height: 0; }

.pick__box {
  display: block;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: .9rem 1rem;
  transition: border-color .16s ease, background-color .16s ease;
}
.pick__box b {
  display: block;
  font: 700 1rem var(--font-display);
  color: var(--navy-800);
  margin-bottom: .15rem;
}
.pick__box span { display: block; font-size: .8rem; color: var(--ink-soft); }

.pick:hover .pick__box { border-color: var(--gold-400); }
.pick input:checked + .pick__box { border-color: var(--gold-500); background: var(--gold-200); }
.pick input:focus-visible + .pick__box { outline: 2px solid var(--navy-600); outline-offset: 2px; }

@media (max-width: 520px) { .pickset { grid-template-columns: 1fr; } }

/* ---------- Tabs + group list ------------------------------------------------ */

.tabs { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.4rem; }
.tab {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--navy-800);
  border-radius: 999px;
  padding: .45rem 1rem;
  font: 600 .84rem var(--font-display);
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}
.tab:hover { border-color: var(--gold-500); }
.tab[aria-selected="true"] { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }

.grouplist {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1.4rem 1.5rem 1.6rem;
}
.grouplist__head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.grouplist__head h2 { margin: 0; font-size: 1.25rem; }

.grouplist__names {
  margin: 0;
  padding-left: 1.6rem;
  columns: 2;
  column-gap: 2rem;
}
.grouplist__names li { padding: .3rem 0; break-inside: avoid; }
@media (max-width: 620px) { .grouplist__names { columns: 1; } }

/* Room number field inside the rooming table. */
.room-input { width: 6.5rem; padding: .38rem .55rem; font-size: .9rem; }
.room-input.is-saved { border-color: var(--c-rules-yes); }

/* Time line inside an activity card. */
.card__when {
  font: 700 .82rem var(--font-display);
  color: var(--gold-600);
  margin: 0 0 .5rem;
}

/* The gala dress code shot is on a black ground; match the frame to it so the
   letterboxing does not read as a mistake. */
.dc--dark .dc__shot { background: #000; border-bottom-color: #000; }


/* The nav is wider than the 1120px text column, so the bar it sits in is
   allowed to run wider than .shell — otherwise ten items overflow the page. */
.topbar__inner { width: min(1560px, 100% - 2.5rem); }

/* ==========================================================================
   RAFFLE — built to be read from the back of a ballroom
   ========================================================================== */

.shell--wide { width: min(1560px, 100% - 2.5rem); margin-inline: auto; }

.raffle {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 1.4rem;
  align-items: stretch;
}
@media (max-width: 1100px) { .raffle { grid-template-columns: 1fr; } }

.stage { min-height: 460px; }
/* With a prize photo showing, the stage becomes two columns rather than
   floating the image over the text — absolute positioning clipped it. */
.stage:has(.stage__prizeimg:not([hidden]))  { grid-template-columns: minmax(0, 30%) 1fr; gap: 2rem; }
.stage:has(.stage__prizeimg:not([hidden])) > #stage-body { text-align: center; }

.stage__prizeimg {
  display: grid;
  place-items: center;
  padding: .5rem;
}
.stage__prizeimg img {
  max-width: 100%;
  max-height: 42vh;
  border-radius: var(--radius);
  background: #fff;
}
.stage__prizeimg[hidden] { display: none; }

/* ---------- Prize rail ------------------------------------------------------ */

.rail {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.rail__head {
  display: flex; align-items: center; gap: .7rem;
  padding: 1rem 1.1rem .8rem;
  border-bottom: 1px solid var(--line);
}
.rail__head h2 { margin: 0; font-size: 1.02rem; }
.rail__head .pill { margin-left: auto; }

.prizes { list-style: none; margin: 0; padding: .4rem; overflow-y: auto; max-height: 52vh; }
.prize {
  display: flex; align-items: baseline; gap: .7rem;
  padding: .55rem .7rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: .88rem;
  transition: background-color .14s ease;
}
.prize:hover { background: var(--cream); }
/* Must out-rank :hover — the pointer sits on the row you just clicked. */
.prize--on, .prize--on:hover { background: var(--navy-800); color: #fff; }
.prize--on .prize__qty { background: var(--gold-500); color: var(--navy-900); }
.prize--done { opacity: .38; cursor: not-allowed; text-decoration: line-through; }

.prize__qty {
  flex: 0 0 auto;
  font: 700 .72rem var(--font-display);
  background: var(--cream);
  color: var(--navy-800);
  border-radius: 999px;
  padding: .15rem .5rem;
  font-variant-numeric: tabular-nums;
}
.prize__name { line-height: 1.3; }

/* ---------- Stage mode: the LED wall ---------------------------------------
   Everything but the stage is removed and the stage fills the viewport, so
   names are legible from the back of the room. */

body.is-stage .topbar,
body.is-stage .page-banner,
body.is-stage .footer,
body.is-stage .no-stage,
body.is-stage .deco,
body.is-stage #log-section { display: none !important; }

body.is-stage #stage-wrap { padding: 0; }
body.is-stage .shell--wide { width: 100%; }
body.is-stage .raffle { grid-template-columns: 1fr; gap: 0; }
body.is-stage .stage {
  min-height: 100vh;
  border-radius: 0;
  border: 0;
}
body.is-stage .reel { font-size: clamp(2.6rem, 9vw, 8rem); }
body.is-stage .stage__prize { font-size: clamp(1rem, 2.2vw, 2rem); letter-spacing: .24em; }
body.is-stage .winners--solo .winner__name { font-size: clamp(3rem, 11vw, 9rem); }
body.is-stage .winners--multi { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem; }
body.is-stage .winner__name { font-size: clamp(1.3rem, 3.2vw, 2.6rem); }
body.is-stage .winner__unit { font-size: clamp(.8rem, 1.2vw, 1.1rem); }
body.is-stage .stage__idle strong { font-size: clamp(2rem, 5vw, 4rem); }
body.is-stage .stage__prizeimg img { max-height: 62vh; }

/* An escape hatch that is invisible until hovered, so it never shows on screen. */
body.is-stage::after {
  content: "Tekan Esc untuk keluar mode layar";
  position: fixed;
  left: 50%; bottom: 10px;
  transform: translateX(-50%);
  font: 600 .72rem var(--font-display);
  color: rgba(255, 255, 255, .18);
  pointer-events: none;
}

/* A truncated name is useless on an LED wall — let them wrap, and centre the
   grid so a short final row does not sit off to one side. */
body.is-stage .winner__name { white-space: normal; line-height: 1.15; }
body.is-stage .winner__unit { white-space: normal; }
body.is-stage .winners--multi {
  justify-content: center;
  max-width: 1700px;
  margin-inline: auto;
}
body.is-stage .winner { align-items: flex-start; }
body.is-stage .winner__no { margin-top: .35rem; }

/* Past a dozen winners the cards tighten so everything stays on one screen. */
body.is-stage .winners--dense { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
body.is-stage .winners--dense .winner__name { font-size: clamp(1rem, 1.9vw, 1.5rem); }

/* ==========================================================================
   RAFFLE — corrections for the LED wall
   ========================================================================== */

/* The prize photo and its name were far too small to read across a ballroom. */
.stage__prizeimg img { max-height: 56vh; }
.stage:has(.stage__prizeimg:not([hidden])) { grid-template-columns: minmax(0, 42%) 1fr; }

.stage__prize {
  font-size: clamp(1.1rem, 2.4vw, 2.1rem);
  letter-spacing: .12em;
  line-height: 1.2;
  margin-bottom: 1.1rem;
}
.stage__idle strong { font-size: clamp(1.8rem, 4vw, 3.2rem); }

body.is-stage .stage__prizeimg img { max-height: 74vh; }
body.is-stage .stage__prize { font-size: clamp(1.6rem, 3.4vw, 3.4rem); letter-spacing: .14em; }
body.is-stage .stage__idle strong { font-size: clamp(2.4rem, 6vw, 5rem); }

/* The winner grid was being centred as a shrink-wrapped block inside a
   place-items:center stage, so a grid wider than the stage got clipped on both
   sides. Stretch it instead and let padding do the insetting. */
.stage { place-items: center stretch; padding-inline: clamp(1rem, 4vw, 4rem); }
.stage > * { width: 100%; max-width: 100%; }
.winners { width: 100%; margin-inline: auto; }
.winners--multi { justify-content: stretch; }

body.is-stage .winners--multi {
  max-width: none;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
}
body.is-stage .winners--dense {
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
}

/* With the division gone the name can own the whole card. */
.winner__body { flex: 1 1 auto; min-width: 0; }
body.is-stage .winner { padding: 1rem 1.2rem; }
body.is-stage .winner__name { font-size: clamp(1.5rem, 3.6vw, 3rem); }
body.is-stage .winners--dense .winner__name { font-size: clamp(1.1rem, 2.2vw, 1.8rem); }

/* A long single-word surname cannot wrap on spaces alone; let it break rather
   than get an ellipsis, since the whole point is showing the name. */
body.is-stage .winner__name,
.winners--solo .winner__name {
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
}

/* ---------- Group member rows ------------------------------------------------ */

.grouplist__names li { padding: .45rem 0; }
.member { display: block; }
.member b { font-weight: 600; }
.member__unit {
  display: block;
  font-size: .8rem;
  color: var(--ink-soft);
  line-height: 1.35;
}

/* The group leader is called out rather than just listed first. */
.grouplist__names li.is-leader {
  background: var(--gold-200);
  border-radius: var(--radius-sm);
  padding: .5rem .7rem;
  margin-bottom: .4rem;
  margin-left: -.7rem;
  break-inside: avoid;
}
.grouplist__names li.is-leader .member b { font-weight: 800; color: var(--navy-900); }

.lead-tag {
  display: inline-block;
  margin-left: .5rem;
  font: 700 .64rem var(--font-display);
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--gold-500);
  color: var(--navy-900);
  border-radius: 999px;
  padding: .12rem .55rem;
  vertical-align: middle;
}

/* ---------- Public rooming list ---------------------------------------------- */

.rooms {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: .9rem;
  max-height: 62vh;
  overflow-y: auto;
  padding: .2rem;
}
.room {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.room__head {
  display: flex; align-items: center; gap: .6rem;
  padding: .55rem .9rem;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.room__no {
  font: 800 .95rem var(--font-display);
  color: var(--navy-900);
  font-variant-numeric: tabular-nums;
}
.room__hotel {
  margin-left: auto;
  font: 700 .68rem var(--font-display);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.room__people { list-style: none; margin: 0; padding: .7rem .9rem .8rem; display: grid; gap: .5rem; }
.room__people b { display: block; font-weight: 600; font-size: .94rem; color: var(--navy-800); }
.room__people span { display: block; font-size: .78rem; color: var(--ink-soft); }
.room__people li.is-hit { background: var(--gold-200); border-radius: var(--radius-sm); padding: .35rem .5rem; margin: -.35rem -.5rem; }
.room__people mark { background: var(--gold-500); color: var(--navy-900); border-radius: 3px; padding: 0 .12em; }
.room__no--tbc {
  font: 600 .74rem var(--font-display);
  color: var(--ink-soft);
  letter-spacing: .02em;
}

/* With no room number yet the head row holds only the hotel tag; keep its
   height steady so the cards still line up. */
.room__head { min-height: 2.1rem; }
.room__head .room__hotel:only-child { margin-left: 0; }

/* ---------- Background music toggle ------------------------------------------
   Floating, out of the way of the content, above everything except a modal. */

.musicbtn {
  position: fixed;
  right: clamp(.9rem, 2vw, 1.6rem);
  bottom: clamp(.9rem, 2vw, 1.6rem);
  z-index: 150;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18);
  background: var(--navy-800);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(6, 26, 60, .28);
  transition: background-color .18s ease, transform .18s ease;
}
.musicbtn svg { width: 21px; height: 21px; }
.musicbtn:hover { transform: translateY(-2px); background: var(--navy-700); }
.musicbtn:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; }
.musicbtn.is-muted { background: var(--paper); color: var(--ink-soft); border-color: var(--line); }
.musicbtn.is-muted:hover { background: var(--cream); }

/* The raffle stage takes the whole screen; the button would sit on the LED wall. */
body.is-stage .musicbtn { display: none; }

@media print { .musicbtn { display: none; } }

/* Music armed but not yet playing — mobile blocks audio until the first tap,
   so the button invites one instead of pretending sound is coming out. */
.musicbtn.is-idle {
  background: var(--gold-500);
  color: var(--navy-900);
  border-color: var(--gold-500);
}
.musicbtn.is-idle::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--gold-500);
  animation: music-ping 2s ease-out infinite;
}
@keyframes music-ping {
  0%   { transform: scale(.9); opacity: .7; }
  70%  { transform: scale(1.35); opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .musicbtn.is-idle::after { animation: none; opacity: .5; } }

/* ---------- Public padel / tennis sign-up list -------------------------------- */

.signups { margin-top: 2.6rem; }
.signups[hidden] { display: none; }
.signups > h2 { text-align: center; margin-bottom: .3rem; }
.signups .field__hint { text-align: center; }

.signups__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
@media (max-width: 700px) { .signups__cols { grid-template-columns: 1fr; } }

.signups__col {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1.2rem 1.3rem 1.4rem;
}
.signups__head { display: flex; align-items: center; gap: .7rem; margin-bottom: .2rem; }
.signups__head h3 { margin: 0; font-size: 1.08rem; }
.signups__head .pill { margin-left: auto; }
.signups__venue {
  margin: 0 0 .9rem;
  font-size: .8rem;
  color: var(--ink-soft);
  padding-bottom: .7rem;
  border-bottom: 1px solid var(--line);
}
.signups__names { margin: 0; padding-left: 1.4rem; }
.signups__names li { padding: .3rem 0; font-size: .94rem; }
.signups__empty { margin: 0; font-size: .9rem; color: var(--ink-soft); }

/* ---------- Rooming search result -------------------------------------------- */

.roomcard {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1.1rem 1.3rem 1.2rem;
  margin-top: .9rem;
}
.roomcard__head {
  display: flex; align-items: center; gap: .7rem;
  padding-bottom: .7rem; margin-bottom: .9rem;
  border-bottom: 1px solid var(--line);
}
.roomcard__hotel {
  font: 700 .7rem var(--font-display);
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft);
}
.roomcard__no {
  margin-left: auto;
  font: 800 .95rem var(--font-display);
  color: var(--navy-900);
}
.roomcard__you, .roomcard__mate { margin: 0 0 .7rem; }
.roomcard__mate:last-child { margin-bottom: 0; }
.roomcard__you span, .roomcard__mate span {
  display: block;
  font: 700 .66rem var(--font-display);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: .15rem;
}
.roomcard__you b, .roomcard__mate b {
  display: block; font: 700 1.06rem var(--font-display); color: var(--navy-800);
}
.roomcard__you em, .roomcard__mate em {
  display: block; font-style: normal; font-size: .82rem; color: var(--ink-soft);
}
.roomcard__you { background: var(--gold-200); border-radius: var(--radius-sm); padding: .6rem .8rem; margin: -.2rem -.2rem 1rem; }
.roomcard mark { background: var(--gold-500); color: var(--navy-900); border-radius: 3px; padding: 0 .12em; }

/* ---------- Raffle: no-show marking ------------------------------------------ */

.winner { position: relative; }
.winner__x {
  position: absolute;
  top: -8px; right: -8px;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35);
  background: var(--navy-900);
  color: #fff;
  font: 700 15px/1 var(--font-display);
  cursor: pointer;
  display: grid; place-items: center;
  opacity: .55;
  transition: opacity .15s ease, background-color .15s ease;
}
.winner__x:hover { opacity: 1; background: var(--c-danger-btn); }
.winner--out { opacity: .4; }
.winner--out .winner__name { text-decoration: line-through; }
.winner--out .winner__x { opacity: 1; background: var(--c-danger-btn); }

.noshow {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  margin-top: 1.2rem;
}
.noshow[hidden] { display: none; }
.noshow .field__hint { margin: 0; }

/* The display device shows the stage and nothing else — no marks, no cursor. */
body.is-display { cursor: none; }
body.is-display .winner__x,
body.is-display .noshow { display: none !important; }

/* ---------- Live attendance board -------------------------------------------- */

.board__bar {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1.2rem;
}
.board__count { display: flex; align-items: baseline; gap: .6rem; }
.board__n {
  font: 800 2.6rem/1 var(--font-display);
  color: var(--navy-900);
  font-variant-numeric: tabular-nums;
}
.board__of { font-size: .9rem; color: var(--ink-soft); }
.board__of b { color: var(--navy-800); }
.board__search { flex: 0 1 260px; width: auto; }

.board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: .5rem;
}
.board__row {
  display: grid;
  grid-template-columns: 2.4rem 1fr auto;
  grid-template-areas: "no name time" "no unit time";
  align-items: center;
  gap: 0 .7rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .55rem .8rem;
}
.board__no   { grid-area: no; font: 700 .78rem var(--font-display); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.board__name { grid-area: name; font-weight: 600; color: var(--navy-800); }
.board__unit { grid-area: unit; font-size: .76rem; color: var(--ink-soft); }
.board__time { grid-area: time; font-size: .78rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.board mark  { background: var(--gold-200); border-radius: 3px; padding: 0 .12em; }

/* A name that has just appeared glows once, so the board reads as live. */
.board__row.is-new { animation: board-in 2.4s ease-out both; }
@keyframes board-in {
  0%   { background: var(--gold-500); border-color: var(--gold-500); transform: scale(.98); }
  15%  { transform: scale(1); }
  100% { background: var(--paper); border-color: var(--line); }
}
@media (prefers-reduced-motion: reduce) { .board__row.is-new { animation: none; } }

/* Projector mode: the board alone, denser and larger. */
body.is-board .no-board { display: none !important; }
body.is-board .section { padding: 1.4rem 0; }
body.is-board .board { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
body.is-board .board__name { font-size: 1.12rem; }
body.is-board .board__n { font-size: 3.4rem; }

/* ---------- Satisfaction survey ---------------------------------------------- */

.survey__who {
  display: flex; align-items: center; gap: .7rem; flex-wrap: wrap;
  background: var(--gold-200);
  border-radius: var(--radius);
  padding: .7rem 1rem;
  margin-bottom: 1.6rem;
}
.survey__who span { font: 700 .68rem var(--font-display); letter-spacing: .14em;
                    text-transform: uppercase; color: var(--gold-600); }
.survey__who b { font: 700 1.05rem var(--font-display); color: var(--navy-900); }
.survey__who .btn { margin-left: auto; }

.survey { list-style: none; margin: 0 0 1.6rem; padding: 0; counter-reset: q; }
.survey__q {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem 1.2rem;
  margin-bottom: .8rem;
}
.survey__text { margin: 0 0 .8rem; font-size: .96rem; line-height: 1.5; }
.survey__q::before {
  counter-increment: q; content: counter(q) ".";
  font: 800 .8rem var(--font-display); color: var(--gold-600);
  display: block; margin-bottom: .25rem;
}

.stars { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.star {
  border: 0; background: none; padding: .15rem; cursor: pointer; line-height: 0;
  color: var(--line);
  transition: color .14s ease, transform .14s ease;
}
.star svg { width: 34px; height: 34px; fill: currentColor; }
.star:hover { transform: scale(1.12); color: var(--gold-400); }
.star.is-on { color: var(--gold-500); }
.star:focus-visible { outline: 2px solid var(--navy-600); outline-offset: 2px; border-radius: 4px; }
.stars__label {
  margin-left: .6rem; font: 600 .82rem var(--font-display); color: var(--ink-soft);
}

.field__hint.is-over, .field__hint.is-over span { color: var(--c-danger-btn); font-weight: 700; }

@media (max-width: 520px) { .star svg { width: 28px; height: 28px; } }

/* ---------- QR codes in admin ------------------------------------------------ */

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

.qrcard {
  display: flex; align-items: center; gap: 1rem;
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: .9rem 1rem;
  cursor: pointer;
  font: inherit;
  transition: transform .16s ease, box-shadow .16s ease;
}
.qrcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.qrcard:focus-visible { outline: 2px solid var(--navy-600); outline-offset: 2px; }
.qrcard__code { flex: 0 0 78px; line-height: 0; }
.qrcard__code svg { width: 78px; height: 78px; border-radius: 6px; }
.qrcard__body b { display: block; font: 700 1rem var(--font-display); color: var(--navy-800); }
.qrcard__body span { display: block; font-size: .8rem; color: var(--ink-soft); margin-top: .15rem; }

/* Fullscreen QR — sized off the shorter viewport edge so it always fits. */
.qrfull {
  position: fixed; inset: 0; z-index: 300;
  background: var(--navy-900);
  display: grid; place-items: center;
  padding: 2rem;
}
.qrfull[hidden] { display: none; }
.qrfull__inner { text-align: center; }
.qrfull__title {
  font: 800 clamp(1.1rem, 2.4vw, 2rem) var(--font-display);
  color: var(--gold-400);
  letter-spacing: .1em; text-transform: uppercase;
  margin: 0 0 1.2rem;
}
.qrfull__code { line-height: 0; }
.qrfull__code svg {
  width: min(76vh, 88vw); height: min(76vh, 88vw);
  border-radius: 12px;
  background: #fff;
  padding: 14px;
  box-sizing: border-box;
}
.qrfull__url {
  margin: 1.1rem 0 0;
  font: 600 clamp(.8rem, 1.4vw, 1.1rem) var(--font-body);
  color: #a9c0e2;
  word-break: break-all;
}
.qrfull__close {
  position: absolute; top: 1rem; right: 1.2rem;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3);
  background: transparent; color: #fff;
  font: 300 30px/1 var(--font-body);
  cursor: pointer;
}
.qrfull__close:hover { background: rgba(255,255,255,.12); }

/* The grand prize sits at the top of the rail and says so. */
.prize--grand .prize__name::after {
  content: "GRAND PRIZE";
  display: inline-block;
  margin-left: .5rem;
  font: 800 .6rem var(--font-display);
  letter-spacing: .12em;
  background: var(--gold-500);
  color: var(--navy-900);
  border-radius: 999px;
  padding: .1rem .45rem;
  vertical-align: middle;
}
.prize--grand.prize--on .prize__name::after { background: var(--gold-400); }

/* ---------- Redraw: only the replaced slots move ------------------------------ */

/* A slot still rolling — dimmed and outlined so it reads as unresolved. */
.winner--rolling {
  border-color: var(--gold-500);
  opacity: .9;
}
.winner--rolling .winner__name { opacity: .75; }

/* The replacement, once it lands. */
.winner--fresh {
  border-color: var(--gold-500);
  animation: winner-fresh 1.6s ease-out both;
}
@keyframes winner-fresh {
  0%   { transform: scale(.94); box-shadow: 0 0 0 0 rgba(212, 168, 64, .8); }
  40%  { transform: scale(1.03); }
  100% { transform: scale(1); box-shadow: 0 0 0 14px rgba(212, 168, 64, 0); }
}
@media (prefers-reduced-motion: reduce) { .winner--fresh { animation: none; } }

/* × on a name in the winner history. */
.log-names li { position: relative; padding-right: 1.9rem; }
.log-x {
  position: absolute; top: 50%; right: .45rem; transform: translateY(-50%);
  width: 20px; height: 20px; border-radius: 50%;
  border: 0; background: transparent; color: var(--ink-soft);
  font: 700 14px/1 var(--font-display);
  cursor: pointer; display: grid; place-items: center;
  opacity: .45; transition: opacity .14s ease, background-color .14s ease, color .14s ease;
}
.log-x:hover { opacity: 1; background: var(--c-danger-btn); color: #fff; }
.log-names li.is-out { opacity: .5; text-decoration: line-through; }
.log-names li.is-out .log-x { opacity: 1; background: var(--c-danger-btn); color: #fff; text-decoration: none; }

/* ---------- Group roll call ---------------------------------------------------- */

.roll__bar { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.roll__count { font-size: .9rem; color: var(--ink-soft); }
.roll__count b { color: var(--navy-900); font-size: 1.15rem; }

.roll { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.roll__row {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: .5rem;
  transition: background-color .14s ease, border-color .14s ease;
}
.roll__row.is-on { background: var(--gold-200); border-color: var(--gold-400); }
.roll__row .check { display: flex; align-items: center; gap: .8rem; padding: .7rem .9rem; width: 100%; }
.roll__name b { display: block; font-weight: 600; color: var(--navy-800); }
.roll__name span { display: block; font-size: .78rem; color: var(--ink-soft); }
.roll__name .lead-tag { display: inline-block; margin: .1rem 0 0 .4rem; }


/* ---------- Snapshot history -------------------------------------------------- */
.modal__panel--wide { width: min(620px, 100%); text-align: left; }
.modal__panel--wide h2 { text-align: center; }
.snaps { max-height: 52vh; overflow-y: auto; margin: 1rem 0; }
.snap {
  display: flex; align-items: center; gap: 1rem;
  padding: .7rem .2rem;
  border-bottom: 1px solid var(--line);
}
.snap:last-child { border-bottom: 0; }
.snap b { display: block; font: 700 .95rem var(--font-display); color: var(--navy-800); }
.snap span { display: block; font-size: .78rem; color: var(--ink-soft); }
.snap .btn { margin-left: auto; flex: 0 0 auto; }

/* ---------- Survey: categories ------------------------------------------------ */

.survey__cat { margin-bottom: 1.8rem; }
.survey__catname {
  font-size: 1.05rem;
  color: var(--navy-900);
  margin: 0 0 .7rem;
  padding-bottom: .45rem;
  border-bottom: 2px solid var(--gold-400);
}
.survey__cat .survey { counter-reset: q; margin-bottom: 0; }

/* Admin: averages grouped by category. */
.sv-group { margin-bottom: 1.2rem; }
.sv-group__name {
  font: 700 .72rem var(--font-display);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 .5rem;
}
.sv-open { margin: 0 0 .8rem; white-space: pre-wrap; }
.sv-open:last-child { margin-bottom: 0; }
.sv-open span {
  display: block;
  font: 700 .66rem var(--font-display);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: .15rem;
}

/* Live indicator on the survey section. */
.live--pulse::before { animation: live-dot 2.2s ease-in-out infinite; }
@keyframes live-dot { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.live.is-new {
  background: var(--gold-500);
  color: var(--navy-900);
  border-radius: 999px;
  padding: .15rem .6rem;
  font-weight: 700;
}
.live.is-new::before { background: var(--navy-900); }
@media (prefers-reduced-motion: reduce) { .live--pulse::before { animation: none; } }
