@font-face { font-family: 'Roboto Slab'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('/fonts/roboto-slab-latin.woff2') format('woff2'); }
@font-face { font-family: 'Work Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/fonts/work-sans-latin.woff2') format('woff2'); }

:root {
  color-scheme: light;
  --ink: #0d0a3d;
  --text: #16123a;
  --text-2: #2b2750;
  --muted: #5c5876;
  --muted-2: #6b6788;
  --paper: #faf9f6;
  --card: #ffffff;
  --line: #e2deec;
  --line-2: #cfcbe6;
  --wash: #ebe8f2;
  --gold: #ffc23a;
  --gold-2: #ffd25e;
  --gold-wash: #fff8e6;
  --magenta: #c2189a;
  --violet: #5a22d8;
  --blue: #0a5cd8;
  --orange: #a84d06;
  --live: #c2189a;
  --slab: 'Roboto Slab', Georgia, serif;
  --sans: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 12px;
  --tabbar-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
::selection { background: var(--gold); color: var(--ink); }
a { color: var(--blue); }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--slab); color: var(--ink); margin: 0; line-height: 1.15; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--ink); color: #fff;
  padding: calc(var(--safe-t) + 10px) 16px 10px;
  display: flex; align-items: center; gap: 12px;
}
.topbar img { height: 30px; width: auto; display: block; }
.topbar .brand { font: 600 10.5px/1.25 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.topbar .spacer { flex: 1; }
.topbar .live-pill { font: 600 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

/* ---------- layout ---------- */
main { max-width: 720px; margin: 0 auto; padding: 0 0 calc(var(--tabbar-h) + var(--safe-b) + 24px); }
.section { padding: 20px 16px 4px; }
.kicker { font: 600 11.5px/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--magenta); }
.section-title { font: 600 26px/1.15 var(--slab); margin: 6px 0 14px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.fine { font: 500 12px/1.5 var(--sans); color: var(--muted-2); margin: 16px 0 0; }

/* ---------- hero ---------- */
.hero {
  position: relative; color: #fff; background: var(--ink) url('/img/hero.webp') center / cover no-repeat;
  padding: 26px 16px 24px; overflow: hidden;
}
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,10,61,.35) 0%, rgba(13,10,61,.15) 40%, rgba(13,10,61,.88) 100%); }
.hero > * { position: relative; }
.hero .dateline { font: 600 12px var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.hero h1 { color: #fff; font: 700 clamp(44px, 15vw, 88px)/.86 var(--slab); letter-spacing: .01em; margin-top: 12px; }
.hero .tag { font: 300 clamp(22px, 6vw, 32px)/1.1 var(--slab); margin-top: 6px; }
.countdown { display: flex; gap: 8px; margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.35); }
.countdown div { flex: 1; min-width: 0; padding: 10px 4px; border-radius: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); text-align: center; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.countdown div:last-child { background: rgba(255,194,58,.16); border-color: rgba(255,194,58,.5); }
.countdown div:last-child b { color: var(--gold); }
.countdown b { display: block; font: 600 26px/1 var(--slab); }
.countdown span { font: 600 9.5px var(--sans); letter-spacing: .18em; text-transform: uppercase; opacity: .8; }
.countdown-cap { font: 500 13px var(--sans); color: rgba(255,255,255,.8); margin-top: 10px; }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.card + .card { margin-top: 12px; }
.card.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.card.dark h3 { color: #fff; }
.card.gold { background: var(--gold-wash); border-color: #f3dc9c; }
.card h3 { font-size: 19px; font-weight: 600; }
.card .meta { font: 500 13px/1.4 var(--sans); color: var(--muted); margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.card.dark .meta { color: rgba(255,255,255,.75); }
.status-label { display: inline-flex; align-items: center; gap: 8px; font: 600 11px var(--sans); letter-spacing: .2em; text-transform: uppercase; margin-bottom: 8px; }
.status-label.now { color: var(--live); }
.card.dark .status-label.now { color: var(--gold); }
.status-label.next { color: var(--muted); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 60%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.tappable { cursor: pointer; text-align: left; width: 100%; display: block; -webkit-tap-highlight-color: transparent; }
.tappable:active { transform: scale(.99); }

/* ---------- chips & buttons ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font: 600 11.5px/1.5 var(--sans); letter-spacing: .04em; background: var(--wash); color: var(--ink); white-space: nowrap; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.chip.ceu { background: #e6f7ee; color: #0b6b3a; letter-spacing: .12em; }
.chip.gold { background: var(--gold); color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; border: 0; background: var(--gold); color: var(--ink); font: 600 16px var(--sans); cursor: pointer; text-decoration: none; }
.btn:active { background: var(--gold-2); }
.btn.navy { background: var(--ink); color: #fff; }
.btn.ghost { background: transparent; border: 1.5px solid var(--ink); color: var(--ink); }
.btn.ghost-light { background: transparent; border: 1.5px solid rgba(255,255,255,.55); color: #fff; }
.btn.block { width: 100%; }
.btn.small { padding: 9px 16px; font-size: 14px; }
.btn[disabled] { opacity: .55; cursor: default; }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue); font: 600 14px var(--sans); cursor: pointer; }

/* segmented / day tabs */
.seg { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 12px; margin: 0 -16px; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: 1 0 auto; border: 1.5px solid var(--line-2); background: #fff; color: var(--ink); border-radius: 999px; padding: 9px 16px; font: 600 14px var(--sans); cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.daytabs button { display: flex; flex-direction: column; align-items: center; line-height: 1.2; padding: 8px 14px; border-radius: 12px; }
.daytabs button small { font: 500 12px var(--sans); opacity: .8; }

/* ---------- schedule timeline ---------- */
.day-theme { font: 300 22px/1.2 var(--slab); color: var(--ink); margin: 2px 0 14px; }
.tl { list-style: none; margin: 0; padding: 0; }
.tl > li { display: grid; grid-template-columns: 66px 1fr; gap: 10px; padding: 0 0 12px; }
.tl .time { font: 600 14px/1.2 var(--slab); color: var(--ink); padding-top: 14px; }
.tl .time small { display: block; font: 500 11.5px var(--sans); color: var(--muted-2); margin-top: 3px; }
.tl .card { border-left: 4px solid var(--accent, var(--line-2)); }
.tl li.is-now .card { box-shadow: 0 0 0 2px var(--gold); }
.tl li.is-past { opacity: .55; }
.tl li.meal .card { background: transparent; border-style: dashed; border-left-style: solid; padding: 10px 14px; }
.tl li.meal h3 { font: 600 15px/1.3 var(--sans); }
.tl .sub { font: 400 14px/1.4 var(--sans); color: var(--muted); margin-top: 3px; }
.kn-row { display: flex; gap: 12px; align-items: center; }
.avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; background: var(--wash); }
.avatar.lg { width: 84px; height: 84px; }
.avatar.initials { display: inline-flex; align-items: center; justify-content: center; font: 600 16px var(--slab); color: var(--ink); }
.kn-label { font: 600 10.5px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--magenta); }
.sessions { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.session { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); width: 100%; text-align: left; cursor: pointer; }
.session .avatar { width: 40px; height: 40px; }
.session h4 { margin: 0; font: 600 15px/1.3 var(--slab); color: var(--ink); }
.session .who { font: 500 13px/1.35 var(--sans); color: var(--muted); margin: 3px 0 6px; }
.round-title { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }

/* ---------- announcements ---------- */
.ann { position: relative; }
.ann .when { font: 600 11.5px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.ann h3 { margin-top: 4px; font-size: 19px; }
.ann p { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-2); }
.ann.unread { border-color: var(--gold); box-shadow: inset 4px 0 0 var(--gold); }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty .big { font: 300 24px/1.2 var(--slab); color: var(--ink); margin-bottom: 6px; }

/* ---------- info ---------- */
.floor { position: relative; width: 100%; aspect-ratio: 740 / 670; font-family: var(--sans); text-transform: uppercase; }
.floor .rm { position: absolute; border: 3px solid var(--paper); background: var(--wash); color: #8a86a3; display: flex; align-items: center; justify-content: center; text-align: center; font: 500 clamp(7px, 2vw, 11px)/1.15 var(--sans); letter-spacing: .06em; overflow: hidden; padding: 2px; }
.floor button.rm { cursor: pointer; color: #fff; font-weight: 700; font-size: clamp(8px, 2.4vw, 13px); letter-spacing: .06em; opacity: .62; transition: opacity .2s, box-shadow .2s; }
.floor button.rm[aria-pressed="true"] { opacity: 1; z-index: 2; box-shadow: 0 0 0 3px var(--gold), 0 12px 30px rgba(13,10,61,.3); }
.room-info h3 { font-size: 24px; margin: 4px 0 6px; }
.room-events { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.room-events li { display: grid; grid-template-columns: 96px 1fr; gap: 8px; font-size: 14px; }
.room-events b { font: 600 12px/1.6 var(--sans); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.meal-day + .meal-day { margin-top: 16px; }
.meal-day h3 { font-size: 20px; margin-bottom: 10px; display: flex; gap: 10px; align-items: baseline; }
.meal-day h3 small { font: 500 13px var(--sans); color: var(--muted); }
.menu { margin: 8px 0 0; padding-left: 18px; color: var(--text-2); font-size: 14.5px; }
.menu li + li { margin-top: 3px; }
details.faq { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
details.faq + details.faq { margin-top: 8px; }
details.faq summary { list-style: none; cursor: pointer; padding: 14px 16px; display: flex; justify-content: space-between; gap: 12px; font: 600 16px/1.35 var(--slab); color: var(--ink); }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--wash); display: inline-flex; align-items: center; justify-content: center; font: 500 18px/1 var(--sans); }
details.faq[open] summary::after { content: '−'; background: var(--ink); color: #fff; }
details.faq p { margin: 0; padding: 0 16px 16px; color: var(--text-2); }
.hotel img { width: 100%; height: 160px; object-fit: cover; border-radius: 10px; display: block; margin-bottom: 12px; }
.kv { display: grid; gap: 4px; font-size: 15px; }

/* ---------- tab bar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: #fff;
  border-top: 1px solid var(--line);
  display: flex; padding: 6px 4px calc(6px + var(--safe-b));
}
.tabbar button { flex: 1; background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; font: 600 11px var(--sans); letter-spacing: .04em; color: var(--muted-2); cursor: pointer; position: relative; -webkit-tap-highlight-color: transparent; }
.tabbar svg { width: 24px; height: 24px; }
.tabbar button[aria-current="page"] { color: var(--ink); }
.tabbar button[aria-current="page"] svg { color: var(--magenta); }
.badge { position: absolute; top: 0; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--magenta); color: #fff; font: 700 11px/18px var(--sans); text-align: center; }

/* ---------- sheet ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(13,10,61,.55); opacity: 0; transition: opacity .2s; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-height: 88vh; overflow-y: auto; background: var(--paper); border-radius: 18px 18px 0 0; transform: translateY(100%); transition: transform .28s cubic-bezier(.2,.8,.2,1); padding-bottom: calc(24px + var(--safe-b)); max-width: 720px; margin: 0 auto; }
.sheet.open { transform: none; }
.sheet-backdrop.open { opacity: 1; }
.sheet-head { position: relative; padding: 22px 16px 18px; color: #fff; background: var(--accent, var(--ink)); }
.sheet-head .kick { font: 600 11px var(--sans); letter-spacing: .18em; text-transform: uppercase; opacity: .9; }
.sheet-head h2 { color: #fff; font: 600 24px/1.2 var(--slab); margin: 8px 44px 0 0; }
.sheet-close { position: absolute; top: 14px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.2); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.sheet-body { padding: 16px; }
.sheet-body p { margin: 0 0 12px; color: var(--text-2); }
.speaker { display: flex; gap: 14px; align-items: center; margin: 18px 0 10px; }
.speaker b { font: 600 17px/1.3 var(--slab); color: var(--ink); display: block; }
.steps { margin: 12px 0 0; padding-left: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; }
.steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font: 600 14px var(--slab); }
.ios-share { display: inline-block; width: 18px; height: 18px; vertical-align: -3px; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + var(--safe-b) + 14px); transform: translate(-50%, 20px); opacity: 0; z-index: 70; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font: 500 14px var(--sans); max-width: calc(100% - 32px); transition: opacity .2s, transform .2s; pointer-events: none; box-shadow: 0 12px 30px rgba(13,10,61,.3); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.offline-note { background: var(--gold-wash); color: var(--ink); font: 500 13px var(--sans); text-align: center; padding: 6px 12px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- setup banner ---------- */
.setup-banner { display: flex; align-items: center; gap: 10px; width: calc(100% - 32px); margin: 14px 16px 0; padding: 12px 14px; border: 0; border-radius: 12px; background: var(--gold); color: var(--ink); font: 600 14px/1.3 var(--sans); text-align: left; cursor: pointer; box-shadow: 0 8px 20px -10px rgba(13,10,61,.45); }
.setup-banner .sb-ico { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--ink); color: var(--gold); display: inline-flex; align-items: center; justify-content: center; }
.setup-banner .sb-ico svg { width: 17px; height: 17px; }
.setup-banner .sb-go { margin-left: auto; white-space: nowrap; font-weight: 700; }
.setup-banner + .hero { margin-top: 14px; }

/* ---------- onboarding overlay ---------- */
html.ob-open, html.ob-open body { overflow: hidden; }
.onboard { position: fixed; inset: 0; z-index: 60; color: #fff; background: var(--ink) url('/img/hero.webp') center / cover no-repeat; opacity: 0; transition: opacity .25s; overflow-y: auto; }
.onboard::before { content: ''; position: fixed; inset: 0; background: linear-gradient(180deg, rgba(13,10,61,.72), rgba(13,10,61,.92) 45%, rgba(13,10,61,.98)); }
.onboard.open { opacity: 1; }
.ob-inner { position: relative; min-height: 100%; max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; padding: calc(var(--safe-t) + 16px) 22px calc(var(--safe-b) + 20px); }
.ob-top { display: flex; align-items: center; justify-content: space-between; }
.ob-dots { display: flex; gap: 6px; }
.ob-dots span { width: 22px; height: 4px; border-radius: 999px; background: rgba(255,255,255,.25); }
.ob-dots span.on { background: var(--gold); }
.ob-main { flex: 1; padding: 18px 0 8px; }
.ob-badge { width: 52px; height: 52px; border-radius: 15px; background: var(--gold); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.ob-badge svg { width: 28px; height: 28px; }
.ob-badge.done { background: #2bb673; color: #fff; border-radius: 50%; }
.ob-kicker { font: 600 12px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-top: 16px; }
.onboard h2 { color: #fff; font: 600 clamp(25px, 7.2vw, 34px)/1.12 var(--slab); margin: 6px 0 10px; }
.ob-body p { margin: 0 0 10px; font-size: 16px; line-height: 1.5; color: rgba(255,255,255,.9); }
.ob-body b { color: #fff; }
.ob-fine { font-size: 14px !important; color: rgba(255,255,255,.7) !important; }
.ob-list { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 8px; }
.ob-list li { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: 15.5px; line-height: 1.4; }
.ob-ico { width: 38px; height: 38px; border-radius: 10px; background: #fff; color: #0a6cff; display: inline-flex; align-items: center; justify-content: center; font: 700 18px var(--slab); }
.ob-ico svg { width: 22px; height: 22px; }
.ob-inline { display: inline-flex; width: 20px; height: 20px; vertical-align: -4px; color: var(--gold); }
.ob-inline svg { width: 20px; height: 20px; }
.ob-actions { display: grid; gap: 4px; position: sticky; bottom: 0; margin: 0 -22px calc(-1 * (var(--safe-b) + 20px)); padding: 14px 22px calc(var(--safe-b) + 14px); background: linear-gradient(180deg, rgba(13,10,61,0), #0d0a3d 30%); }
.ob-primary { padding: 16px 22px; font-size: 17px; }
.ob-secondary { background: none; border: 0; color: rgba(255,255,255,.75); font: 600 15px var(--sans); padding: 12px; cursor: pointer; }
.onboard:focus { outline: none; }
