/* DBJ @Hole60 — tropical clubhouse carnival */

:root {
  --navy: #0a2342;
  --navy-2: #133a6b;
  --navy-deep: #061528;
  --sky: #4ab3f0;
  --sky-deep: #1f86d4;
  --sky-soft: #dff2fd;
  --green: #218a3d;
  --green-deep: #0f5227;
  --lime: #9bd33e;
  --gold: #ffbb1f;
  --gold-deep: #e48c05;
  --gold-soft: #fff1c9;
  --red: #e4382a;
  --cream: #fbf5e6;
  --paper: #fffaf0;
  --ink: #0a2342;
  --muted: #52607a;
  --line: rgba(10, 35, 66, 0.12);

  --display: 'Bowlby One', 'Arial Black', Impact, sans-serif;
  --script: 'Fraunces', Georgia, serif;
  --body: 'Figtree', 'Segoe UI', system-ui, sans-serif;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 0 rgba(10, 35, 66, 0.06), 0 12px 32px -12px rgba(10, 35, 66, 0.28);
  --shadow-lg: 0 30px 60px -24px rgba(6, 21, 40, 0.45);
  --wrap: 1180px;
  --tabbar: 0px;
  --flag: var(--red);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(rgba(10, 35, 66, 0.035) 1px, transparent 1px),
    radial-gradient(rgba(33, 138, 61, 0.03) 1px, transparent 1px);
  background-size: 22px 22px, 36px 36px;
  background-position: 0 0, 11px 17px;
  padding-bottom: var(--tabbar);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
p { margin: 0; }
abbr { text-decoration: none; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.section { margin-block: clamp(56px, 8vw, 104px); }
.section--tight { margin-block: clamp(28px, 4vw, 48px); }
.center { text-align: center; margin-top: 28px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 8px; }

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

.icon { flex: none; }

.art { user-select: none; -webkit-user-drag: none; opacity: 0; transition: opacity 0.45s ease; }
.art.is-in { opacity: 1; }
.art-missing { visibility: hidden; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 800; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}
.eyebrow--light { color: #fff; text-shadow: 0 1px 2px rgba(6, 21, 40, 0.35); }
.hero .eyebrow--light { padding: 6px 12px; border-radius: 999px; background: var(--red); text-shadow: none; }

.section-head { margin-bottom: 28px; }
.section-title { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 4.4vw, 48px); letter-spacing: -0.01em; }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; max-width: 38ch; }

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

.btn {
  --b-bg: #fff; --b-ink: var(--navy); --b-edge: rgba(10, 35, 66, 0.18);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px 13px;
  font: 800 16px/1 var(--body);
  color: var(--b-ink); background: var(--b-bg);
  border: 0; border-radius: 999px;
  box-shadow: inset 0 -3px 0 var(--b-edge), 0 6px 16px -8px rgba(6, 21, 40, 0.45);
  text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); filter: saturate(1.08); }
.btn:active { transform: translateY(1px); box-shadow: inset 0 -1px 0 var(--b-edge); }
.btn-lg { padding: 16px 26px 17px; font-size: 17px; }
.btn-sm { padding: 9px 14px 10px; font-size: 14px; }
.btn-gold { --b-bg: linear-gradient(180deg, #ffd35a, var(--gold) 55%, #f7a50c); --b-ink: var(--navy); --b-edge: var(--gold-deep); }
.btn-navy { --b-bg: linear-gradient(180deg, var(--navy-2), var(--navy)); --b-ink: #fff; --b-edge: #020b16; }
.btn-cream { --b-bg: var(--paper); --b-ink: var(--green-deep); --b-edge: rgba(15, 82, 39, 0.3); }
.btn-glass { --b-bg: rgba(255, 255, 255, 0.88); --b-ink: var(--navy); backdrop-filter: blur(8px); }
.btn-ghost { --b-bg: var(--sky-soft); --b-ink: var(--navy); --b-edge: rgba(31, 134, 212, 0.25); box-shadow: inset 0 -2px 0 var(--b-edge); }

/* ------------------------------------------------------------------ Top bar & nav */

.topbar {
  position: sticky; top: 10px; z-index: 50;
  width: min(var(--wrap), 100% - 20px);
  margin: 10px auto 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 6px 8px 6px 10px;
  background: rgba(255, 250, 240, 0.86);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  box-shadow: 0 10px 30px -14px rgba(6, 21, 40, 0.45);
}
/* Every public page opens with a full-bleed header, so the floating bar overlaps it. */
.topbar { margin-bottom: -60px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(6, 21, 40, 0.25)); }
.brand-text { display: flex; align-items: baseline; gap: 3px; font-family: var(--display); font-size: 17px; color: var(--navy); }
.brand-text i { font-family: var(--script); font-weight: 800; font-size: 17px; color: var(--green); }

.topnav { display: flex; gap: 4px; }
.topnav a {
  padding: 8px 15px; border-radius: 999px;
  font-weight: 700; font-size: 15px; text-decoration: none; color: var(--navy);
  transition: background 0.15s ease;
}
.topnav a:hover { background: rgba(10, 35, 66, 0.07); }
.topnav a.is-active { background: var(--navy); color: #fff; }

.tabbar { display: none; }

@media (max-width: 759px) {
  :root { --tabbar: calc(72px + env(safe-area-inset-bottom)); }
  .topnav { display: none; }
  .topbar { justify-content: center; padding: 5px 16px 5px 8px; width: auto; max-width: calc(100% - 20px); display: flex; margin-inline: auto; }
  .topbar { position: sticky; left: 0; right: 0; width: fit-content; }
  .brand-logo { width: 30px; height: 30px; }
  .brand-text, .brand-text i { font-size: 16px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; z-index: 60; left: 0; right: 0; bottom: 0;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    background: rgba(6, 21, 40, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .tabbar a {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 7px 4px; border-radius: 14px;
    color: rgba(255, 255, 255, 0.66); text-decoration: none;
    font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em;
  }
  .tabbar a.is-active { color: var(--navy); background: var(--gold); }
}

/* ------------------------------------------------------------------ Sky, clouds & hills */

.sky { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.sun {
  position: absolute; top: -140px; left: 8%;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 250, 210, 0.95) 0 18%, rgba(255, 236, 150, 0.45) 34%, transparent 66%);
  animation: sun 9s ease-in-out infinite alternate;
}
@keyframes sun { to { transform: scale(1.08); opacity: 0.85; } }

.cloud {
  position: absolute; height: 46px; border-radius: 999px; background: #fff; opacity: 0.9;
  filter: blur(0.3px);
  animation: drift linear infinite;
}
.cloud::before, .cloud::after { content: ''; position: absolute; background: #fff; border-radius: 50%; }
.cloud::before { width: 58%; height: 150%; left: 14%; bottom: 20%; }
.cloud::after { width: 38%; height: 120%; right: 12%; bottom: 25%; }
.cloud-1 { width: 190px; top: 17%; left: -10%; animation-duration: 80s; }
.cloud-2 { width: 130px; top: 34%; left: 40%; opacity: 0.7; animation-duration: 110s; animation-delay: -50s; transform: scale(0.8); }
.cloud-3 { width: 230px; top: 9%; left: 70%; opacity: 0.8; animation-duration: 95s; animation-delay: -20s; }
@keyframes drift { from { translate: -20vw 0; } to { translate: 120vw 0; } }

.hills { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(90px, 16vw, 230px); pointer-events: none; }

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

.hero {
  position: relative; overflow: hidden;
  min-height: min(900px, 100svh);
  padding: 120px 0 clamp(150px, 18vw, 250px);
  background: linear-gradient(180deg, #2a95e0 0%, #58bdf3 45%, #aee0fa 78%, #d8f1fd 100%);
  isolation: isolate;
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 24px;
}
.hero-title { display: flex; flex-direction: column; margin: 4px 0 22px; }
.hero-title-top {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(56px, 9vw, 118px); line-height: 0.92; letter-spacing: -0.01em;
  color: #fff;
  -webkit-text-stroke: 2px var(--navy);
  paint-order: stroke fill;
  text-shadow: 0 5px 0 var(--navy), 0 10px 0 rgba(6, 21, 40, 0.18);
  animation: rise 0.8s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}
.hero-title-script {
  font-family: var(--script); font-style: italic; font-weight: 800;
  font-size: clamp(42px, 6.4vw, 84px); line-height: 1.05;
  background: linear-gradient(180deg, #fff3b0 0%, #ffd23f 45%, #f29a00 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 1.5px var(--navy);
  filter: drop-shadow(0 4px 0 var(--navy)) drop-shadow(0 8px 10px rgba(6, 21, 40, 0.25));
  margin-top: 6px; padding-right: 0.2em;
  animation: rise 0.8s 0.12s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(28px) scale(0.96); } }

.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; animation: rise 0.8s 0.22s both; }
.hero-meta span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(10, 35, 66, 0.78); color: #fff; font-weight: 700; font-size: 15px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; animation: rise 0.8s 0.3s both; }

.hero-art { position: relative; display: grid; place-items: center; min-height: 420px; }
.hero-logo-wrap { position: relative; z-index: 2; width: min(520px, 100%); animation: bob 6s ease-in-out infinite; }
.hero-logo { width: 100%; filter: drop-shadow(0 30px 30px rgba(6, 21, 40, 0.28)); animation: pop 0.9s 0.15s cubic-bezier(0.2, 0.9, 0.3, 1.3) both; }
.hero-balloons { position: absolute; z-index: 1; width: 38%; top: -8%; right: -6%; animation: sway 7s ease-in-out infinite; transform-origin: bottom center; }
.hero-ball { position: absolute; z-index: 3; width: 23%; bottom: -6%; left: -2%; animation: bob 5s 1s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-14px); } }
@keyframes sway { 50% { transform: rotate(4deg) translateY(-10px); } }
@keyframes pop { from { opacity: 0; transform: scale(0.6) rotate(-6deg); } }

.confetti { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.confetti i {
  --x: calc(var(--i) * 5.6%);
  position: absolute; top: -20px; left: var(--x);
  width: 10px; height: 16px; border-radius: 2px;
  background: var(--gold);
  opacity: 0.9;
  animation: fall calc(9s + var(--i) * 0.45s) calc(var(--i) * -0.9s) linear infinite;
}
.confetti i:nth-child(4n + 1) { background: #fff; }
.confetti i:nth-child(4n + 2) { background: var(--lime); width: 8px; }
.confetti i:nth-child(4n + 3) { background: var(--red); height: 10px; }
.confetti i:nth-child(5n) { background: var(--navy-2); }
@keyframes fall {
  from { transform: translateY(-5vh) rotate(0deg); }
  to { transform: translateY(105vh) rotate(720deg) translateX(40px); }
}

@media (max-width: 899px) {
  .hero { padding-top: 96px; min-height: 0; text-align: center; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; min-height: 0; width: min(270px, 68%); margin: 0 auto -4px; }
  .hero-meta, .hero-actions { justify-content: center; }
  .hero-title { align-items: center; }
}
@media (max-width: 480px) {
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-meta span { font-size: 14px; }
}

/* ------------------------------------------------------------------ Themes */

.theme-sky { --t1: #56bff5; --t2: #1f86d4; --t-ink: #fff; --t-soft: #e3f4fd; --flag: var(--gold); }
.theme-gold { --t1: #ffd34d; --t2: #f29c05; --t-ink: var(--navy); --t-soft: #fff3cf; --flag: var(--red); }
.theme-white { --t1: #ffffff; --t2: #e7e0d0; --t-ink: var(--navy); --t-soft: #f6f2e9; --flag: var(--gold); }
.theme-green { --t1: #37a653; --t2: #11602c; --t-ink: #fff; --t-soft: #e3f4e2; --flag: var(--gold); }
.theme-ocean { --t1: #2bc4d4; --t2: #0b76a3; --t-ink: #fff; --t-soft: #dff5f7; --flag: var(--gold); }
.theme-night { --t1: #1d3766; --t2: #050f22; --t-ink: #fff; --t-soft: #e4e8f1; --flag: var(--gold); }

/* ------------------------------------------------------------------ Status chips & badges */

.status {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px 5px 9px; border-radius: 999px;
  font-size: 12.5px; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; line-height: 1.2;
  white-space: nowrap;
}
.status i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status--live { background: var(--red); color: #fff; }
.status--live i { animation: pulse 1.2s ease-out infinite; }
.status--next { background: var(--gold); color: var(--navy); }
.status--next i { animation: pulse 1.8s ease-out infinite; }
.status--upcoming { background: var(--sky-soft); color: var(--navy-2); }
.status--done { background: rgba(10, 35, 66, 0.08); color: var(--muted); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 currentColor; } 100% { box-shadow: 0 0 0 8px transparent; } }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 800; white-space: nowrap;
}
.badge--provided { background: #dcf3d6; color: #135b25; }
.badge--own { background: #eef1f6; color: #3c4a62; }
.badge--tbc { background: var(--gold-soft); color: #8a5300; }

.tbc {
  display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 6px;
  background: var(--gold-soft); color: #8a5300;
  font-size: 11px; font-weight: 800; letter-spacing: 0.06em; vertical-align: 2px; cursor: help;
}

.hole-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--display); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--green-deep);
}
.hole-tag::before {
  content: ''; width: 10px; height: 13px;
  background: var(--flag);
  clip-path: polygon(0 0, 100% 30%, 0 62%, 0 100%, 12% 100%, 12% 0);
}
.hole-tag--lg { font-size: 15px; }

/* ------------------------------------------------------------------ Up next scoreboard */

.upnext { position: relative; z-index: 5; margin-top: clamp(-120px, -9vw, -60px); }
.scoreboard {
  position: relative;
  display: grid; grid-template-columns: minmax(180px, 0.8fr) 2fr; gap: clamp(16px, 3vw, 40px); align-items: center;
  padding: clamp(22px, 3.2vw, 40px);
  border-radius: 28px;
  color: #fff;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 22px),
    radial-gradient(120% 140% at 0% 0%, #1b4379 0%, var(--navy) 45%, var(--navy-deep) 100%);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.scoreboard::after {
  content: ''; position: absolute; inset: 10px; border-radius: 20px;
  border: 1.5px dashed rgba(255, 187, 31, 0.35); pointer-events: none;
}
.scoreboard-art {
  position: relative; align-self: stretch; display: grid; place-items: center;
  border-radius: 20px;
  background: radial-gradient(circle at 50% 60%, var(--t1) 0%, var(--t2) 75%);
  min-height: 220px;
}
.scoreboard-img { width: 86%; max-height: 260px; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.3)); animation: bob 5s ease-in-out infinite; }
.scoreboard-label { font-weight: 800; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.scoreboard h2 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 4.2vw, 50px); margin-bottom: 14px; }
.scoreboard-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 22px; color: rgba(255, 255, 255, 0.85); font-weight: 600; font-size: 15.5px; }
.scoreboard-meta > span { display: inline-flex; align-items: center; gap: 7px; }
.scoreboard-meta .icon { color: var(--gold); }
.scoreboard .btn { margin-top: 22px; }
.scoreboard--wrap { display: none; text-align: center; grid-template-columns: 1fr; padding-block: 56px; }
[data-all-done] [data-upnext-card] { display: none; }
[data-all-done] .scoreboard--wrap { display: grid; }

@media (max-width: 719px) {
  .scoreboard { grid-template-columns: 1fr; }
  .scoreboard-art { min-height: 170px; }
  .scoreboard-img { max-height: 180px; width: auto; }
}

/* Countdown tiles */
.countdown-tiles { display: flex; gap: clamp(6px, 1.4vw, 12px); }
.tile {
  position: relative; flex: 1; max-width: 104px;
  display: flex; flex-direction: column; align-items: center;
  padding: 12px 6px 8px; border-radius: 14px;
  background: linear-gradient(180deg, #0c2a4f 0 50%, #08203f 50% 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 6px 14px -6px rgba(0, 0, 0, 0.6);
}
.tile::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, 0.45); }
.tile b { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 4.6vw, 48px); line-height: 1.05; color: var(--gold); font-variant-numeric: tabular-nums; }
.tile span { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }

.countdown-live, .countdown-done { display: none; align-items: center; gap: 10px; font-family: var(--display); font-size: 22px; }
.countdown-live i { width: 14px; height: 14px; border-radius: 50%; background: var(--red); color: var(--red); animation: pulse 1.2s ease-out infinite; }
.countdown.is-live .countdown-tiles, .countdown.is-done .countdown-tiles { display: none; }
.countdown.is-live .countdown-live { display: inline-flex; }
.countdown.is-done .countdown-done { display: inline-flex; }

.countdown--compact { margin-top: 22px; }
.countdown--compact .tile { max-width: 84px; background: rgba(6, 21, 40, 0.55); padding: 9px 4px 6px; }
.countdown--compact .tile b { font-size: clamp(24px, 3.4vw, 34px); color: #fff; }
.countdown--compact .countdown-live, .countdown--compact .countdown-done {
  padding: 10px 16px; border-radius: 999px; background: rgba(6, 21, 40, 0.55); color: #fff; font-size: 18px;
}

/* ------------------------------------------------------------------ Fairway track */

.track { --p: 0%; position: relative; padding: 26px clamp(10px, 3vw, 28px) 18px; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); }
.track-rail {
  position: absolute; left: calc(clamp(10px, 3vw, 28px) + 100% / 12 - clamp(10px, 3vw, 28px) / 6); right: calc(clamp(10px, 3vw, 28px) + 100% / 12 - clamp(10px, 3vw, 28px) / 6);
  top: 76px; height: 18px; border-radius: 999px;
  background: repeating-linear-gradient(115deg, #2c8e43 0 18px, #28833d 18px 36px);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}
.track-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: var(--p); border-radius: inherit;
  background: repeating-linear-gradient(115deg, #a9dc4f 0 18px, #9bd33e 18px 36px);
  transition: width 1s ease;
}
.track-ball {
  position: absolute; top: 50%; left: var(--p);
  width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 35%, #e5e9ef 70%, #c4ccd6 100%);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35);
  transition: left 1s ease;
  z-index: 2;
}
.track-ball::after {
  content: ''; position: absolute; inset: 6px; border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 35, 66, 0.18) 1px, transparent 1.6px) 0 0 / 5px 5px;
}
.track-holes { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); }
.track-hole a { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; text-decoration: none; padding: 0 4px 6px; border-radius: 12px; }
.track-hole a:hover .track-name { color: var(--green); }
.track-flag { position: relative; width: 40px; height: 52px; color: var(--navy); margin-bottom: 30px; transform-origin: bottom left; }
.track-flag svg { width: 100%; height: 100%; }
.track-flag b { position: absolute; left: 13px; top: 3px; font-family: var(--display); font-weight: 400; font-size: 13px; line-height: 1; color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); }
.track-name { font-weight: 800; font-size: 14.5px; line-height: 1.2; }
.track-day { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.track-hole.is-done { --flag: #9aa5b5; }
.track-hole.is-done .track-name { color: var(--muted); }
.track-hole.is-next { --flag: var(--gold); }
.track-hole.is-next .track-flag { animation: wave 2.4s ease-in-out infinite; }
.track-hole.is-live { --flag: var(--red); }
.track-hole.is-live .track-flag { animation: wave 1.2s ease-in-out infinite; }
.track-hole.is-upcoming { --flag: var(--red); }
@keyframes wave { 50% { transform: rotate(-8deg); } }

@media (max-width: 639px) {
  .track { padding: 18px 16px; }
  .track-holes { grid-template-columns: 1fr; gap: 4px; }
  .track-rail { left: 50px; right: auto; top: 44px; bottom: 44px; width: 14px; height: auto; background: repeating-linear-gradient(25deg, #2c8e43 0 14px, #28833d 14px 28px); }
  .track-fill { width: 100%; height: var(--p); background: repeating-linear-gradient(25deg, #a9dc4f 0 14px, #9bd33e 14px 28px); transition: height 1s ease; }
  .track-ball { left: 50%; top: var(--p); width: 24px; height: 24px; margin: -12px 0 0 -12px; transition: top 1s ease; }
  .track-hole a { flex-direction: row; text-align: left; gap: 14px; padding: 4px 0 4px 66px; min-height: 52px; position: relative; }
  .track-flag { position: absolute; left: 4px; top: 50%; margin: -16px 0 0; width: 24px; height: 32px; }
  .track-flag b { left: 8px; top: 2px; font-size: 10px; }
  .track-name { flex: 1; }
}

/* ------------------------------------------------------------------ Note from DBJ */

.note-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; }
.note {
  position: relative; margin: 0;
  padding: clamp(28px, 4vw, 48px);
  background: var(--paper);
  border-left: 6px solid var(--gold);
  border-radius: 6px 26px 6px 26px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.2deg);
}
.note-pin {
  position: absolute; top: -14px; left: 50%; width: 120px; height: 30px; margin-left: -60px;
  background: rgba(255, 187, 31, 0.8); transform: rotate(3deg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.note blockquote { margin: 0 0 18px; font-family: var(--script); font-style: italic; font-weight: 600; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.36; }
.note blockquote p + p { margin-top: 12px; }
.note blockquote em { color: var(--green); font-weight: 800; }
.note figcaption { font-family: var(--display); font-size: 26px; color: var(--navy); }
.note figcaption::before { content: '— '; color: var(--gold-deep); }

.facts-stack { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat { padding: 20px 22px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.stat b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(46px, 6vw, 72px); line-height: 1; color: var(--green); }
.stat span { font-weight: 700; color: var(--muted); }
.stat--wide { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; padding-right: 38%; background: var(--navy); }
.stat--wide b { color: var(--gold); }
.stat--wide span { color: #fff; font-size: 18px; line-height: 1.3; }
.facts-cake { position: absolute; right: -14px; bottom: -30px; width: 30%; filter: drop-shadow(0 14px 16px rgba(0, 0, 0, 0.25)); }

@media (max-width: 819px) {
  .note-grid { grid-template-columns: 1fr; }
  .note { transform: none; }
}

/* ------------------------------------------------------------------ Scorecard */

.scorecard { border-radius: 26px; overflow: hidden; background: var(--paper); box-shadow: var(--shadow-lg); }
.scorecard-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: clamp(22px, 3.4vw, 36px);
  color: #fff;
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.05) 0 40px, transparent 40px 80px),
    linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);
}
.scorecard-head h2 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 3.6vw, 42px); }
.scorecard-table { display: flex; flex-direction: column; }
.sc-row {
  display: grid; grid-template-columns: 72px 1.6fr 1.1fr 1.3fr 150px; align-items: center; gap: 12px;
  padding: 14px clamp(16px, 3vw, 36px);
  text-decoration: none;
  border-top: 1px solid var(--line);
  transition: background 0.15s ease;
}
.sc-row:nth-child(odd):not(.sc-row--head) { background: rgba(33, 138, 61, 0.035); }
.sc-row:not(.sc-row--head):hover { background: var(--gold-soft); }
.sc-row--head { border-top: 0; padding-block: 10px; background: var(--navy); color: rgba(255, 255, 255, 0.75); font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.sc-hole {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  font-family: var(--display); font-size: 20px; color: var(--navy);
  background: #fff; box-shadow: inset 0 0 0 2.5px var(--navy);
}
.sc-event b, .sc-when b { display: block; font-weight: 800; font-size: 16.5px; line-height: 1.25; }
.sc-event small, .sc-when small { color: var(--muted); font-size: 14px; font-weight: 600; }
.sc-dress { font-weight: 700; font-size: 15px; }
.sc-status { justify-self: end; }

@media (max-width: 859px) {
  .sc-row--head { display: none; }
  .sc-row { grid-template-columns: 52px 1fr auto; grid-template-areas: 'hole event status' 'hole when when' 'hole dress dress'; row-gap: 2px; }
  .sc-hole { grid-area: hole; align-self: start; width: 40px; height: 40px; font-size: 18px; }
  .sc-event { grid-area: event; }
  .sc-when { grid-area: when; }
  .sc-when b { display: inline; font-size: 14px; }
  .sc-when small { margin-left: 6px; }
  .sc-dress { grid-area: dress; font-size: 14px; color: var(--green-deep); }
  .sc-status { grid-area: status; align-self: start; }
}

/* ------------------------------------------------------------------ Shirt pack */

.shirtpack {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(20px, 4vw, 56px); align-items: center;
  padding: clamp(24px, 4vw, 52px);
  border-radius: 30px;
  background:
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.9) 0 30%, transparent 60%),
    linear-gradient(135deg, #fff3cf 0%, #ffe39a 100%);
  box-shadow: var(--shadow);
}
.shirtpack-art img { width: min(420px, 100%); margin-inline: auto; filter: drop-shadow(0 22px 22px rgba(120, 70, 0, 0.25)); animation: bob 6s ease-in-out infinite; }
.shirtpack-copy > p { margin: 14px 0 18px; color: #3b4760; max-width: 52ch; }
.shirtpack-list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.shirtpack-list li { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.75); }
.shirtpack-list .icon { color: #fff; background: var(--green); border-radius: 50%; padding: 3px; width: 24px; height: 24px; margin-top: 1px; }

@media (max-width: 759px) {
  .shirtpack { grid-template-columns: 1fr; text-align: left; }
  .shirtpack-art img { width: 70%; }
}

/* ------------------------------------------------------------------ Page heads */

.page-head {
  position: relative; overflow: hidden;
  padding: 110px 0 clamp(110px, 14vw, 190px);
  color: var(--t-ink);
  background: linear-gradient(160deg, var(--t1) 0%, var(--t2) 100%);
}
.page-head::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.35), transparent 45%);
  pointer-events: none;
}
.page-head-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.page-head h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(46px, 7.4vw, 92px); letter-spacing: -0.01em; margin-bottom: 14px;
  text-shadow: 0 4px 0 rgba(6, 21, 40, 0.22);
}
.page-head .lead { opacity: 0.95; font-weight: 500; }
.page-head-art { width: clamp(150px, 24vw, 290px); filter: drop-shadow(0 20px 24px rgba(6, 21, 40, 0.3)); animation: bob 6s ease-in-out infinite; }
.page-head.theme-gold h1 { color: #fff; -webkit-text-stroke: 1.5px var(--navy); paint-order: stroke fill; text-shadow: 0 4px 0 var(--navy); }
.page-head.theme-gold .lead { color: var(--navy); }
.page-head--center { text-align: center; }
.page-head--center .lead { margin: 0 auto 26px; }

@media (max-width: 639px) {
  .page-head { padding-top: 96px; }
  .page-head-inner { flex-direction: column-reverse; align-items: flex-start; }
  .page-head-art { width: 130px; position: absolute; right: -6px; top: -26px; opacity: 0.95; }
  .page-head h1 { max-width: 7ch; }
}

/* ------------------------------------------------------------------ Plan: days & event cards */

.days { margin-top: -8px; margin-bottom: 80px; }
.day { display: grid; grid-template-columns: 210px 1fr; gap: 24px; padding-block: 24px; }
.day + .day { border-top: 2px dashed rgba(10, 35, 66, 0.14); }
.day-head { position: sticky; top: 90px; align-self: start; display: flex; align-items: center; gap: 12px; }
.day-num {
  display: grid; place-items: center; flex: none; min-width: 76px; height: 76px; padding: 0 8px; border-radius: 22px;
  font-family: var(--display); font-size: 32px; letter-spacing: -0.02em; color: #fff;
  background: linear-gradient(160deg, var(--green), var(--green-deep));
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.2), var(--shadow);
}
.day-name b { display: block; font-family: var(--display); font-weight: 400; font-size: 20px; }
.day-name span { font-size: 14px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.day-events { display: grid; gap: 16px; }

.event-card {
  position: relative;
  display: grid; grid-template-columns: 170px 1fr auto; align-items: stretch;
  border-radius: var(--radius); overflow: hidden;
  background: #fff; text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.event-card-art { display: grid; place-items: center; padding: 12px; background: radial-gradient(circle at 50% 55%, var(--t1), var(--t2)); }
.event-card-art img { width: 100%; max-height: 150px; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.25)); transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.3); }
.event-card:hover .event-card-art img { transform: scale(1.07) rotate(-3deg); }
.event-card-body { padding: 18px 8px 18px 22px; }
.event-card-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.event-card h3 { font-family: var(--display); font-weight: 400; font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 10px; }
.event-card-line { display: flex; align-items: center; gap: 8px; color: #3b4760; font-weight: 600; font-size: 15px; margin-top: 4px; }
.event-card-line .icon { color: var(--green); }
.event-card-dress b { color: var(--navy); }
.event-card-go { display: grid; place-items: center; width: 56px; color: var(--navy); transition: transform 0.2s ease; }
.event-card:hover .event-card-go { transform: translateX(4px); }
.event-card.is-next { box-shadow: 0 0 0 3px var(--gold), var(--shadow-lg); }
.event-card.is-live { box-shadow: 0 0 0 3px var(--red), var(--shadow-lg); }
.event-card.is-done { opacity: 0.72; }
.event-card.is-done .event-card-art { filter: grayscale(0.6); }

.plan-footnote { display: flex; align-items: center; gap: 8px; justify-content: center; color: var(--muted); font-weight: 600; font-size: 14.5px; margin-top: 24px; text-align: center; }

@media (max-width: 759px) {
  .day { grid-template-columns: 1fr; gap: 14px; }
  .day-head { position: static; }
  .day-num { min-width: 58px; height: 58px; font-size: 25px; border-radius: 16px; }
  .event-card { grid-template-columns: 112px 1fr; }
  .event-card-art { padding: 8px; }
  .event-card-body { padding: 14px 14px 16px; }
  .event-card-go { display: none; }
  .event-card-line { font-size: 14px; align-items: flex-start; }
  .event-card-line .icon { margin-top: 2px; }
}

/* ------------------------------------------------------------------ Event detail */

.event-hero {
  position: relative; overflow: hidden;
  padding: 96px 0 56px;
  color: var(--t-ink);
  background: radial-gradient(120% 120% at 80% 30%, var(--t1) 0%, var(--t2) 80%);
}
.event-hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 40px;
  background: var(--cream);
  clip-path: ellipse(70% 100% at 50% 100%);
}
.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; text-decoration: none; padding: 8px 14px 8px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.22); margin-bottom: 18px; }
.theme-white .back-link, .theme-gold .back-link { background: rgba(10, 35, 66, 0.08); }
.event-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 24px; align-items: center; }
.event-hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(42px, 6.6vw, 80px); margin: 6px 0 14px; text-shadow: 0 4px 0 rgba(6, 21, 40, 0.2); }
.event-hero .hole-tag { color: inherit; }
.event-hero .status--upcoming { background: rgba(255, 255, 255, 0.9); }
.event-hero-art { display: grid; place-items: center; }
.event-hero-img { width: min(420px, 100%); filter: drop-shadow(0 26px 28px rgba(6, 21, 40, 0.35)); animation: pop 0.8s cubic-bezier(0.2, 0.9, 0.3, 1.3) both, bob 6s 0.8s ease-in-out infinite; }
.theme-white .countdown--compact .tile, .theme-gold .countdown--compact .tile { background: var(--navy); }

@media (max-width: 759px) {
  .event-hero { padding-top: 88px; }
  .event-hero-grid { grid-template-columns: 1fr; }
  .event-hero-art { order: -1; }
  .event-hero-img { width: 58%; }
}

.facts { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 4px; }
.fact { display: grid; grid-template-columns: auto 1fr; gap: 14px 16px; align-items: center; padding: 20px 22px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.fact .btn { grid-column: 1 / -1; justify-self: start; }
.fact-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--sky-soft); color: var(--navy-2); }
.fact-label { display: block; font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); }
.fact b { display: block; font-size: 20px; line-height: 1.25; }
.fact-sub { color: var(--muted); font-weight: 600; }
@media (max-width: 679px) { .facts { grid-template-columns: 1fr; } }

.dress-card { display: grid; grid-template-columns: 0.9fr 1.1fr; border-radius: 28px; overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); }
.dress-card-art {
  display: grid; place-items: center; padding: 28px;
  background:
    radial-gradient(circle at 50% 45%, #fff 0 25%, transparent 70%),
    repeating-linear-gradient(135deg, var(--t-soft) 0 16px, #fff 16px 32px);
}
.dress-card-art img { width: min(400px, 100%); filter: drop-shadow(0 18px 18px rgba(6, 21, 40, 0.18)); }
.dress-card-body { padding: clamp(24px, 4vw, 48px); align-self: center; }
.dress-card h2 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 4vw, 46px); margin-bottom: 10px; }
.dress-summary { font-size: 18px; color: #3b4760; margin-bottom: 20px; }
.dress-items { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.dress-items li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--cream); font-weight: 700; }
.dress-note { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: #dcf3d6; color: #135b25; font-weight: 600; font-size: 15.5px; }
.dress-note .icon { margin-top: 2px; }
@media (max-width: 759px) {
  .dress-card { grid-template-columns: 1fr; }
  .dress-card-art img { width: 78%; }
}

.hole-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-block: 24px 80px; }
.hole-nav-link { display: flex; flex-direction: column; gap: 4px; padding: 18px 22px; border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); text-decoration: none; transition: transform 0.2s ease; }
.hole-nav-link:hover { transform: translateY(-3px); }
.hole-nav-link span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); }
.hole-nav-link b { font-family: var(--display); font-weight: 400; font-size: 20px; }
.hole-nav-link--next { text-align: right; align-items: flex-end; }

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

.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 24px; font-size: 14.5px; font-weight: 600; color: var(--muted); }
.legend span:not(.badge) { margin-right: 12px; }

.looks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.look { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.look:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.look-art {
  position: relative; aspect-ratio: 5 / 4;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.95) 0 28%, transparent 72%),
    linear-gradient(160deg, var(--t1), var(--t2));
}
.look-art img { position: absolute; inset: 18px; width: calc(100% - 36px); height: calc(100% - 36px); object-fit: contain; filter: drop-shadow(0 12px 14px rgba(6, 21, 40, 0.25)); transition: transform 0.3s ease; }
.look:hover .look-art img { transform: scale(1.05); }
.look-body { padding: 18px 20px 22px; }
.look-event { font-weight: 800; color: var(--muted); font-size: 14px; }
.look h3 { font-family: var(--display); font-weight: 400; font-size: 23px; margin: 4px 0 14px; }
.look-items { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.look-items li { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 600; font-size: 14.5px; }
.look.is-next { box-shadow: 0 0 0 3px var(--gold), var(--shadow-lg); }
.look.is-live { box-shadow: 0 0 0 3px var(--red), var(--shadow-lg); }
.look.is-done { opacity: 0.7; }
@media (max-width: 979px) { .looks { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 599px) { .looks { grid-template-columns: 1fr; } }

.packing { padding: clamp(22px, 4vw, 44px); border-radius: 28px; background: var(--navy); color: #fff; box-shadow: var(--shadow-lg); }
.packing .eyebrow { color: var(--gold); }
.packing-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.packing-head p { color: rgba(255, 255, 255, 0.7); margin-top: 8px; }
.packing-count { font-family: var(--display); font-size: 30px; color: var(--gold); white-space: nowrap; }
.packing-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.packing-list label { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.07); cursor: pointer; transition: background 0.15s ease; }
.packing-list label:hover { background: rgba(255, 255, 255, 0.12); }
.packing-list input { position: absolute; opacity: 0; pointer-events: none; }
.packing-box { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 9px; border: 2px solid rgba(255, 255, 255, 0.4); color: transparent; transition: all 0.15s ease; }
.packing-text b { display: block; font-size: 16px; }
.packing-text small { color: rgba(255, 255, 255, 0.6); font-weight: 600; font-size: 13.5px; }
.packing-list input:checked + .packing-box { background: var(--lime); border-color: var(--lime); color: var(--navy); transform: scale(1.08); }
.packing-list input:checked ~ .packing-text b { text-decoration: line-through; text-decoration-color: var(--lime); opacity: 0.7; }
.packing-list input:focus-visible + .packing-box { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (max-width: 679px) {
  .packing-list { grid-template-columns: 1fr; }
  .packing-head { flex-direction: column; align-items: flex-start; }
}

/* ------------------------------------------------------------------ Guest pass (bag tag) */

.pass-page {
  position: relative; overflow: hidden;
  padding: 110px 0 80px;
  background: linear-gradient(180deg, #2a95e0 0%, #58bdf3 55%, #bfe7fb 100%);
}
.pass-sky { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.pass-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 420px; gap: 40px; align-items: center; }
.pass-hello { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 6vw, 72px); color: #fff; -webkit-text-stroke: 1.5px var(--navy); paint-order: stroke fill; text-shadow: 0 4px 0 var(--navy); margin-bottom: 16px; }
.pass-hello span { display: block; color: var(--gold); }
.pass-intro .lead { color: var(--navy); font-weight: 600; margin-bottom: 24px; }
.pass-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.bagtag {
  position: relative;
  padding: 58px 26px 24px;
  border-radius: 34px 34px 26px 26px;
  background: linear-gradient(180deg, #fffdf6, #fff6e0);
  box-shadow: 0 40px 70px -30px rgba(6, 21, 40, 0.6), inset 0 0 0 1px rgba(10, 35, 66, 0.06);
  transform-origin: 50% -40px;
  animation: swing 3.2s cubic-bezier(0.3, 0, 0.3, 1) both;
}
.bagtag::before {
  content: ''; position: absolute; inset: 10px; border-radius: 26px 26px 18px 18px;
  border: 2px dashed rgba(10, 35, 66, 0.14); pointer-events: none;
}
@keyframes swing { 0% { transform: rotate(9deg); } 25% { transform: rotate(-6deg); } 50% { transform: rotate(3deg); } 75% { transform: rotate(-1deg); } 100% { transform: rotate(0); } }
.bagtag-hole { position: absolute; top: 18px; left: 50%; width: 46px; height: 20px; margin-left: -23px; border-radius: 999px; background: #58bdf3; box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 0 5px #d9c9a2; }
.bagtag-strap { position: absolute; left: 50%; top: -120px; width: 16px; height: 150px; margin-left: -8px; border-radius: 8px; background: linear-gradient(90deg, #0a2342, #1a4a86 50%, #0a2342); box-shadow: 0 0 0 2px rgba(255, 187, 31, 0.6); }
.bagtag-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 2px solid var(--line); }
.bagtag-logo { width: 56px; height: 56px; object-fit: contain; }
.bagtag-head b { display: block; font-family: var(--display); font-weight: 400; font-size: 20px; line-height: 1.1; }
.bagtag-head span { font-size: 13px; font-weight: 700; color: var(--muted); }
.bagtag-name { padding: 16px 0 12px; }
.bagtag-name span, .bagtag-stats span { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--green); }
.bagtag-name h2 { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 6vw, 34px); line-height: 1.08; overflow-wrap: anywhere; }
.bagtag-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.bagtag-stats div { padding: 10px 14px; border-radius: 16px; background: var(--navy); color: #fff; }
.bagtag-stats span { color: var(--gold); }
.bagtag-stats b { display: block; font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1.1; }
.bagtag-qr { padding: 14px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 2px var(--line); }
.bagtag-qr svg { display: block; width: 100%; height: auto; }
.bagtag-status { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; padding: 11px; border-radius: 14px; background: var(--gold-soft); color: #7a4a00; font-weight: 800; font-size: 15px; text-align: center; }
.bagtag-status--done { background: #dcf3d6; color: #135b25; }

@media (max-width: 859px) {
  .pass-page { padding-top: 96px; }
  .pass-grid { grid-template-columns: 1fr; gap: 84px; }
  .bagtag-strap { top: -78px; height: 104px; }
  .pass-intro { text-align: center; }
  .pass-intro .lead { margin-inline: auto; }
  .pass-actions { justify-content: center; }
  .bagtag { width: min(420px, 100%); margin-inline: auto; }
}

/* Find pass */
.findpass { max-width: 820px; margin-inline: auto; margin-top: -40px; position: relative; z-index: 2; padding: clamp(22px, 4vw, 40px); border-radius: 28px; background: #fff; box-shadow: var(--shadow-lg); }
.findpass-steps { display: grid; gap: 14px; }
.findpass-steps--row { grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 28px; }
.findpass-steps--row .step { flex-direction: column; gap: 10px; padding: 14px; }
.findpass-steps--row .step-num { width: 36px; height: 36px; font-size: 16px; }
.findpass-steps--row .step b { font-size: 16px; }
.findpass-steps--row .step p { font-size: 14.5px; }
@media (max-width: 639px) {
  .findpass-steps--row { grid-template-columns: 1fr; }
  .findpass-steps--row .step { flex-direction: row; align-items: center; }
}

.finder { position: relative; }
.finder-label { display: block; font-family: var(--display); font-size: clamp(22px, 3vw, 30px); margin-bottom: 12px; }
.finder-box {
  position: relative; display: flex; align-items: center;
  border-radius: 20px; background: var(--cream);
  box-shadow: inset 0 0 0 2.5px rgba(10, 35, 66, 0.14);
  transition: box-shadow 0.15s ease, background 0.15s ease;
}
.finder-box:focus-within { background: #fff; box-shadow: inset 0 0 0 3px var(--gold), 0 10px 30px -12px rgba(228, 140, 5, 0.45); }
.finder-icon { display: grid; place-items: center; width: 58px; flex: none; color: var(--muted); }
.finder-box:focus-within .finder-icon { color: var(--gold-deep); }
.finder.is-loading .finder-icon { animation: pulse-ink 0.9s ease-in-out infinite; }
@keyframes pulse-ink { 50% { opacity: 0.35; } }
.finder-input {
  flex: 1; min-width: 0; height: 64px; padding: 0 8px 0 0;
  border: 0; outline: none; background: transparent;
  font: 700 clamp(19px, 2.4vw, 22px) var(--body); color: var(--navy);
}
.finder-input::placeholder { color: #8b96a8; font-weight: 600; }
.finder-input::-webkit-search-cancel-button { display: none; }
.finder-input:focus-visible { outline: none; }
.finder-clear { display: grid; place-items: center; width: 40px; height: 40px; margin-right: 10px; border: 0; border-radius: 12px; background: rgba(10, 35, 66, 0.07); color: var(--navy); cursor: pointer; }

.finder-results {
  list-style: none; margin: 10px 0 0; padding: 6px;
  border-radius: 20px; background: #fff;
  box-shadow: 0 0 0 1px var(--line), 0 24px 50px -20px rgba(6, 21, 40, 0.4);
  max-height: 380px; overflow-y: auto;
  animation: drop 0.18s ease both;
}
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
.finder-option {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 12px; border-radius: 14px;
  text-decoration: none; color: var(--navy);
  transition: background 0.12s ease;
}
.finder-option:hover, .finder-option.is-active { background: var(--gold-soft); }
.finder-option:hover .finder-go, .finder-option.is-active .finder-go { transform: translateX(3px); color: var(--gold-deep); }
.finder-avatar {
  display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%;
  font-family: var(--display); font-size: 16px; color: #fff;
  background: linear-gradient(160deg, var(--green), var(--green-deep));
}
.finder-avatar--gold { background: linear-gradient(160deg, #ffd35a, var(--gold-deep)); color: var(--navy); width: 54px; height: 54px; font-size: 19px; }
.finder-name { flex: 1; min-width: 0; font-weight: 700; font-size: 18px; line-height: 1.25; overflow-wrap: anywhere; }
.finder-name mark { background: none; color: var(--green); font-weight: 900; text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: rgba(155, 211, 62, 0.8); text-underline-offset: 3px; }
.finder-go { display: grid; place-items: center; color: var(--muted); transition: transform 0.15s ease; }
.finder-status { margin-top: 12px; color: var(--muted); font-weight: 600; font-size: 15px; }

.finder-remembered {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 16px; margin-bottom: 22px; border-radius: 20px;
  background: linear-gradient(135deg, #fff6d9, #ffe8a6);
}
.finder-remembered-text { flex: 1; min-width: 140px; }
.finder-remembered-text span { display: block; font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #8a5300; }
.finder-remembered-text b { font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1.15; }
@media (max-width: 479px) { .finder-remembered .btn { width: 100%; } }

.pass-notyou { margin-top: 16px; font-weight: 700; color: var(--navy); }
.pass-notyou a { color: var(--navy); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.demo-flag {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--navy); color: var(--gold); font-weight: 800; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
}

.demo-names { margin-top: 26px; padding-top: 22px; border-top: 2px dashed var(--line); }
.demo-names-title { font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.demo-names-title b { color: var(--navy); }
.demo-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.demo-chip {
  padding: 8px 14px; border: 0; border-radius: 999px; cursor: pointer;
  font: 700 14.5px var(--body); color: var(--navy); background: var(--sky-soft);
  transition: transform 0.12s ease, background 0.12s ease;
}
.demo-chip:hover { background: #c9e9fb; transform: translateY(-1px); }
.demo-scan { max-width: 820px; margin-inline: auto; display: flex; gap: 18px; align-items: flex-start; padding: 22px 24px; border-radius: 24px; background: var(--navy); color: #fff; }
.demo-scan h2 { font-family: var(--display); font-weight: 400; font-size: 22px; margin-bottom: 6px; }
.demo-scan p { color: rgba(255, 255, 255, 0.78); }
.demo-scan b { color: var(--gold); }
.demo-scan-icon { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 18px; background: rgba(255, 187, 31, 0.15); color: var(--gold); }
.step { display: flex; gap: 16px; align-items: flex-start; padding: 16px; border-radius: 18px; background: var(--cream); }
.step-num { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; font-family: var(--display); font-size: 20px; color: var(--navy); background: var(--gold); box-shadow: inset 0 -3px 0 var(--gold-deep); }
.step b { font-size: 18px; }
.step p { color: #3b4760; }
.findpass-help { margin-top: 18px; text-align: center; font-weight: 700; color: var(--muted); }
.findpass-remembered { text-align: center; padding: 20px; }
.findpass-remembered .btn { margin-top: 16px; }

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

.footer {
  position: relative; margin-top: 40px;
  padding: 56px 0 44px;
  color: rgba(255, 255, 255, 0.78);
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.025) 0 40px, transparent 40px 80px),
    var(--navy-deep);
  text-align: center;
}
.footer-inner { width: min(var(--wrap), 100% - 32px); margin-inline: auto; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.footer-logo { width: 110px; margin-bottom: 10px; }
.footer-title { font-family: var(--display); font-size: 22px; color: #fff; }
.footer-meta { font-weight: 600; }
.footer-small { font-size: 13.5px; opacity: 0.7; }

/* ------------------------------------------------------------------ Gold loading screen */

.loader {
  position: fixed; inset: 0; z-index: 1000;
  display: none; place-items: center;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 187, 31, 0.2), transparent 52%),
    radial-gradient(circle at 50% 50%, #12305a 0%, #061528 72%);
}
.loader::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 214, 102, 0.95) 1.3px, transparent 2px),
    radial-gradient(circle, rgba(255, 244, 205, 0.7) 1px, transparent 1.7px);
  background-size: 96px 96px, 150px 150px;
  background-position: 0 0, 48px 75px;
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 0 30%, transparent 68%);
  mask-image: radial-gradient(circle at 50% 45%, #000 0 30%, transparent 68%);
  animation: loader-twinkle 2.4s ease-in-out infinite alternate;
}
.is-loading .loader { display: grid; animation: loader-in 0.4s 0.3s both; }
.is-leaving .loader { display: grid; animation: loader-in 0.28s both; }
@keyframes loader-in { from { opacity: 0; } }
@keyframes loader-twinkle { from { opacity: 0.25; } to { opacity: 0.7; } }

.loader-inner { position: relative; display: grid; justify-items: center; gap: 22px; animation: loader-pop 0.5s 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.3) both; }
.is-leaving .loader-inner { animation-delay: 0s; }
@keyframes loader-pop { from { transform: scale(0.9); } }

.loader-ring { position: relative; width: 176px; height: 176px; display: grid; place-items: center; }
.loader-ring::before, .loader-ring::after { content: ''; position: absolute; inset: 0; border-radius: 50%; }
.loader-ring::after { box-shadow: inset 0 0 0 7px rgba(255, 187, 31, 0.12); }
.loader-ring::before {
  background: conic-gradient(from 0deg, transparent 0 18%, rgba(160, 98, 0, 0.4) 34%, #e48c05 58%, #ffbb1f 78%, #fff3b0 96%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px));
  filter: drop-shadow(0 0 10px rgba(255, 187, 31, 0.6));
  animation: loader-spin 1.15s linear infinite;
}
.loader-orbit { position: absolute; inset: 0; z-index: 2; animation: loader-spin 1.15s linear infinite; }
.loader-ball {
  position: absolute; top: -7px; left: 50%;
  width: 22px; height: 22px; margin-left: -11px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff 0 38%, #e3e8ee 70%, #b9c2cd 100%);
  box-shadow: 0 0 14px 2px rgba(255, 226, 140, 0.85), 0 2px 4px rgba(0, 0, 0, 0.4);
}
.loader-logo { width: 116px; height: auto; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.45)); animation: loader-breathe 1.8s ease-in-out infinite; }
@keyframes loader-spin { to { transform: rotate(360deg); } }
@keyframes loader-breathe { 50% { transform: scale(1.06); } }

.loader-text {
  font-family: var(--display); font-size: 21px; letter-spacing: 0.1em; text-transform: uppercase;
  background: linear-gradient(90deg, #b07a09 0%, #ffd766 25%, #fff7dc 50%, #ffbb1f 75%, #b07a09 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: loader-shimmer 1.8s linear infinite;
}
.loader-text span { animation: loader-dot 1.2s ease-in-out infinite; }
.loader-text span:nth-child(2) { animation-delay: 0.15s; }
.loader-text span:nth-child(3) { animation-delay: 0.3s; }
@keyframes loader-shimmer { to { background-position: -200% 0; } }
@keyframes loader-dot { 0%, 100% { opacity: 0.2; } 40% { opacity: 1; } }

.loader-bar { width: 170px; height: 4px; border-radius: 4px; overflow: hidden; background: rgba(255, 187, 31, 0.16); }
.loader-bar i { display: block; width: 42%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, transparent, #ffbb1f, #fff3b0); animation: loader-sweep 1.2s ease-in-out infinite; }
@keyframes loader-sweep { from { transform: translateX(-110%); } to { transform: translateX(260%); } }

/* ------------------------------------------------------------------ Page transitions */

/* Cross-document View Transitions: pages fade into each other while the top bar and tab bar stay put.
   Browsers without support simply load the next page normally. */
@view-transition { navigation: auto; }
.topbar { view-transition-name: topbar; }
.tabbar { view-transition-name: tabbar; }
::view-transition-old(root) { animation: vt-out 140ms ease-in both; }
::view-transition-new(root) { animation: vt-in 340ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
::view-transition-group(topbar), ::view-transition-group(tabbar) { animation-duration: 260ms; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }

/* ------------------------------------------------------------------ Motion preferences */

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .art { transition: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .confetti, .cloud { display: none; }
}
