/* Live event page (event.html): the door, Keynote Island or Watch, and the crowd panel.
   One dark venue look on desktop and web, independent of the app theme. */
.live-event-window {
  --le-ink: #f6efe4;
  --le-muted: rgba(246, 239, 228, 0.66);
  --le-faint: rgba(246, 239, 228, 0.14);
  --le-accent: #f0c389;
  --le-live: #ff6b5e;
  --le-glass: rgba(7, 22, 30, 0.72);
  --le-glass-strong: rgba(7, 22, 30, 0.9);
  --le-radius: 14px;
  margin: 0;
  height: 100vh;
  /* In-app browsers (Instagram, X, Reddit) and mobile Safari show and hide toolbars: size to what is visible. */
  height: 100dvh;
  overflow: hidden;
  background: #06121a;
  color: var(--le-ink);
  font: 14px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
}
.live-event-titlebar { position: fixed; inset: 0 0 auto 0; height: 28px; z-index: 40; -webkit-app-region: drag; pointer-events: none; }
html[data-window-frame="inset"] .live-event-titlebar { pointer-events: auto; }
.live-event-app { position: relative; height: 100%; }
.live-event-backdrop { position: absolute; inset: 0; overflow: hidden; }
.live-event-backdrop img { width: 100%; height: 100%; object-fit: cover; filter: blur(18px) saturate(1.1) brightness(0.45); transform: scale(1.08); }
.live-event-app[data-phase="venue"] .live-event-backdrop { display: none; }
.live-event-window button { font: inherit; color: inherit; }
.live-event-window input { font: inherit; }

/* ---- Door ---- */
.live-event-door { position: relative; z-index: 1; height: 100%; display: grid; place-items: center; padding: 40px 20px; box-sizing: border-box; overflow-y: auto; }
.live-event-door[hidden] { display: none; }
.live-event-door-card {
  width: min(580px, 100%); box-sizing: border-box; padding: 22px 24px 20px; border-radius: 18px;
  background: var(--le-glass-strong); border: 1px solid var(--le-faint); box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
}
.live-event-door-card.is-loading { text-align: center; color: var(--le-muted); }
.live-event-door-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.live-event-eyebrow { margin: 0 0 4px; color: var(--le-muted); font-size: 12.5px; }
.live-event-door-head h1 { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 650; letter-spacing: -0.01em; }
.live-event-status {
  display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600;
  letter-spacing: 0.02em; background: rgba(240, 195, 137, 0.14); color: var(--le-accent); white-space: nowrap;
}
/* "Live" on a red pill says it; no pulsing dot beside the word. */
.live-event-status[data-status="live"] { background: rgba(255, 107, 94, 0.16); color: #ff8a7f; }
.live-event-status[data-status="ended"] { background: var(--le-faint); color: var(--le-muted); }
.live-event-door-hero { position: relative; margin: 16px 0 14px; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 7; background: #0b2433; }
.live-event-door-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.live-event-door-hero p { position: absolute; inset: auto 0 0 0; margin: 0; padding: 26px 14px 10px; font-size: 13px; background: linear-gradient(transparent, rgba(4, 12, 18, 0.85)); }
.live-event-replay { aspect-ratio: 16 / 9; background: #000; }
.live-event-replay iframe { width: 100%; height: 100%; border: 0; display: block; }
.live-event-sessions { display: flex; gap: 6px; margin: 0 0 12px; }
.live-event-sessions button {
  flex: 1; display: grid; gap: 1px; padding: 7px 10px; text-align: left; border-radius: 10px; border: 1px solid var(--le-faint);
  background: transparent; cursor: pointer;
}
.live-event-sessions button[aria-selected="true"] { border-color: rgba(240, 195, 137, 0.6); background: rgba(240, 195, 137, 0.08); }
.live-event-sessions small { color: var(--le-muted); font-size: 11.5px; }
.live-event-rows { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--le-faint); }
.live-event-row { display: grid; grid-template-columns: 112px 1fr auto; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--le-faint); }
.live-event-row dt { color: var(--le-muted); font-size: 13px; }
.live-event-row dd { margin: 0; }
.live-event-choice { display: flex; flex-wrap: wrap; gap: 14px; }
.live-event-name { display: flex; align-items: center; gap: 10px; }
.live-event-name input { width: min(220px, 100%); height: 32px; box-sizing: border-box; padding: 0 10px; border-radius: 8px; color: var(--le-ink);
  border: 1px solid rgba(246, 239, 228, 0.2); background: rgba(0, 0, 0, 0.28); }
.live-event-name input:focus { outline: none; border-color: rgba(240, 195, 137, 0.7); }
.live-event-name span { color: var(--le-muted); font-size: 13px; }
.live-event-choice label { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.live-event-choice input { accent-color: var(--le-accent); margin: 0; }
.live-event-note { margin: 12px 0 0; color: var(--le-ink); }
.live-event-privacy { margin: 12px 0 0; color: var(--le-muted); font-size: 12.5px; }
.live-event-door-foot { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 16px; }
.live-event-error { margin: 0 auto 0 0; color: #ffb3a8; font-size: 13px; }
.live-event-error[hidden] { display: none; }
/* The way in: the door's one big action, right under the picture. Solid and lit from above; no glow. */
.live-event-door-enter { display: grid; gap: 8px; margin: 0 0 14px; }
.live-event-door-enter .live-event-error { margin: 0; text-align: center; }
.live-event-window .live-event-enter {
  width: 100%; height: 60px; padding: 0 14px 0 24px; gap: 14px; border-radius: 14px; font-size: 18px; font-weight: 700; letter-spacing: -0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -2px 0 rgba(110, 72, 24, 0.28), 0 12px 28px rgba(0, 0, 0, 0.4);
  transition: transform 140ms ease, background-color 140ms ease;
}
.live-event-window .live-event-enter:hover:not(:disabled) { transform: translateY(-1px); background: #f5d1a2; }
.live-event-window .live-event-enter:active:not(:disabled) { transform: translateY(0); background: #e8b773; }
.live-event-enter-arrow {
  display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 999px;
  background: #1b1408; color: var(--le-accent); transition: transform 140ms ease;
}
.live-event-enter-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.live-event-enter:hover:not(:disabled) .live-event-enter-arrow { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) {
  .live-event-window .live-event-enter, .live-event-enter-arrow { transition: none; }
}
.live-event-primary, .live-event-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 10px; cursor: pointer;
  font-weight: 600; white-space: nowrap;
}
.live-event-primary { border: 0; background: var(--le-accent); color: #1b1408 !important; }
.live-event-primary:hover { background: #f5d1a2; }
.live-event-secondary { border: 1px solid rgba(246, 239, 228, 0.22); background: rgba(246, 239, 228, 0.06); height: 32px; padding: 0 12px; font-weight: 550; }
.live-event-secondary:hover { background: rgba(246, 239, 228, 0.12); }
.live-event-secondary.is-danger { border-color: rgba(255, 107, 94, 0.45); color: #ffb3a8; }
.live-event-primary:disabled, .live-event-secondary:disabled { opacity: 0.55; cursor: default; }
.live-event-link { border: 0; background: none; padding: 0; color: var(--le-accent) !important; cursor: pointer; font-size: 12.5px; }
.live-event-link:hover { text-decoration: underline; }
.live-event-window :focus-visible { outline: 2px solid var(--le-accent); outline-offset: 2px; }
.live-event-signin { margin-top: 14px; display: grid; gap: 10px; }
.live-event-signin label { display: block; color: var(--le-muted); font-size: 12.5px; margin-bottom: 6px; }
.live-event-google[hidden], .live-event-or[hidden] { display: none; }
/* Inside Instagram, X or Reddit Google refuses to sign in, so the emailed code leads. */
.live-event-inapp { margin: 0; padding: 9px 12px; border-radius: 10px; border: 1px solid rgba(240, 195, 137, 0.35); background: rgba(240, 195, 137, 0.1); font-size: 13px; line-height: 1.4; }
.live-event-inapp .live-event-link { font-size: inherit; text-decoration: underline; text-underline-offset: 2px; }
.live-event-google { min-height: 40px; display: flex; justify-content: center; }
.live-event-or { margin: 0; display: flex; align-items: center; gap: 10px; color: var(--le-muted); font-size: 12px; }
.live-event-or::before, .live-event-or::after { content: ""; flex: 1; height: 1px; background: var(--le-faint); }
.live-event-inline { display: flex; gap: 8px; align-items: center; }
.live-event-inline input, .live-event-compose input, .live-event-host-form input {
  flex: 1; min-width: 0; height: 34px; box-sizing: border-box; padding: 0 11px; border-radius: 9px; color: var(--le-ink);
  border: 1px solid rgba(246, 239, 228, 0.2); background: rgba(0, 0, 0, 0.28);
}
.live-event-inline input:focus, .live-event-compose input:focus, .live-event-host-form input:focus { outline: none; border-color: rgba(240, 195, 137, 0.7); }

/* ---- Venue ---- */
.live-event-venue { position: absolute; inset: 0; }
.live-event-venue[hidden] { display: none; }
.live-event-island, .live-event-watch { position: absolute; inset: 0; }
.live-event-island[hidden], .live-event-watch[hidden] { display: none; }
.live-event-map-shell { position: absolute; inset: 0; }
.live-event-map-shell .thread-map-3d-shell { position: absolute; inset: 0; display: block; }
/* The renderer's frame-rate readout is a development aid, not part of an event. */
.live-event-map-shell .thread-map-3d-hud { display: none; }
/* The worlds' loading screen, inside the venue: it keeps clear of the bar, the chat and the
   reactions, which all work while the island loads. Its Character/World header is hidden. */
/* Without the header row the layout takes the space and the actions sit below it. */
.live-event-map-shell .map-loading { padding: 76px 346px 84px 28px; grid-template-rows: minmax(0, 1fr) auto; }
html[data-window-frame="inset"] .live-event-map-shell .map-loading { padding-top: 96px; }
.live-event-map-shell .map-loading-actions { border-top: 0; }
.live-event-bar {
  position: absolute; inset: 10px 10px auto 10px; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 44px; padding: 6px 8px 6px 14px; border-radius: var(--le-radius); background: var(--le-glass); border: 1px solid var(--le-faint);
  backdrop-filter: blur(14px);
}
html[data-window-frame="inset"] .live-event-bar { top: 30px; }
.live-event-bar-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; min-width: 0; }
.live-event-bar-title .live-event-status { align-self: center; }
.live-event-bar-session { color: var(--le-muted); }
.live-event-bar-meta { color: var(--le-muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.live-event-bar-meta.is-warning { color: var(--le-accent); }
.live-event-bar-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.live-event-chip-button, .live-event-dock-button {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border-radius: 9px; cursor: pointer;
  border: 1px solid rgba(246, 239, 228, 0.16); background: rgba(246, 239, 228, 0.05);
}
.live-event-chip-button svg, .live-event-dock-button svg, .live-event-icon-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.live-event-chip-button.is-active, .live-event-dock-button.is-active { background: rgba(240, 195, 137, 0.18); border-color: rgba(240, 195, 137, 0.55); }
.live-event-dock-button:disabled { opacity: 0.5; cursor: default; }
.live-event-segmented { display: inline-flex; padding: 2px; border-radius: 10px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--le-faint); }
.live-event-segmented button { height: 28px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; color: var(--le-muted) !important; }
.live-event-segmented button[aria-pressed="true"] { background: rgba(246, 239, 228, 0.12); color: var(--le-ink) !important; }
.live-event-short { display: none; }
/* The web's one ask: Get Asyncly on a computer, the download link by email on a phone. */
.live-event-bar-cta:empty { display: none; }
.live-event-cta-button {
  display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 0 13px; border: 0; border-radius: 9px; cursor: pointer;
  background: var(--le-accent); color: #1b1408 !important; font-weight: 650; text-decoration: none; white-space: nowrap;
}
.live-event-cta-button:hover { background: #f5d1a2; }
.live-event-cta-button:disabled { background: rgba(240, 195, 137, 0.2); color: var(--le-ink) !important; cursor: default; }
/* While the live draw's entry is open (its script sets data-drop-status), its button is the one gold ask; this one waits its turn. */
.live-event-app:is([data-drop-status="open"], [data-drop-status="verifying"]) .live-event-cta-button:not(:disabled) {
  background: rgba(246, 239, 228, 0.06); border: 1px solid rgba(246, 239, 228, 0.22); color: var(--le-ink) !important; font-weight: 600;
}
.live-event-app:is([data-drop-status="open"], [data-drop-status="verifying"]) .live-event-cta-button:not(:disabled):hover { background: rgba(246, 239, 228, 0.12); }
.live-event-announcement {
  position: absolute; z-index: 5; top: 66px; left: 50%; transform: translateX(-50%); max-width: min(620px, calc(100% - 380px));
  padding: 8px 16px; border-radius: 999px; background: rgba(240, 195, 137, 0.92); color: #1b1408; font-weight: 600; text-align: center;
}
html[data-window-frame="inset"] .live-event-announcement { top: 86px; }
.live-event-announcement[hidden] { display: none; }
.live-event-panel {
  position: absolute; z-index: 5; right: 10px; top: 64px; bottom: 74px; width: 320px; display: flex; flex-direction: column;
  border-radius: var(--le-radius); background: var(--le-glass); border: 1px solid var(--le-faint); backdrop-filter: blur(14px); overflow: hidden;
}
html[data-window-frame="inset"] .live-event-panel { top: 84px; }
.live-event-tabs { display: flex; gap: 2px; padding: 6px; border-bottom: 1px solid var(--le-faint); }
.live-event-tabs button { flex: 1; height: 28px; border: 0; border-radius: 8px; background: transparent; color: var(--le-muted) !important; cursor: pointer; }
.live-event-tabs button[aria-selected="true"] { background: rgba(246, 239, 228, 0.1); color: var(--le-ink) !important; }
.live-event-count { display: inline-block; min-width: 16px; margin-left: 4px; padding: 0 5px; border-radius: 999px; background: var(--le-accent); color: #1b1408; font-size: 11px; font-weight: 700; }
.live-event-count[hidden] { display: none; }
.live-event-panel-body { flex: 1; overflow-y: auto; padding: 8px 12px; }
.live-event-panel-body h3 { margin: 14px 0 6px; font-size: 12px; font-weight: 600; color: var(--le-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.live-event-empty { margin: 8px 0; color: var(--le-muted); font-size: 13px; }
.live-event-chat, .live-event-questions, .live-event-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.live-event-chat li { display: grid; gap: 1px; }
.live-event-chat-name { font-size: 12px; font-weight: 600; color: var(--le-accent); }
.live-event-chat-name[data-role="guest"] { color: #9ccfe0; }
.live-event-chat-name[data-role="builder"] { color: #b6e3b0; }
.live-event-chat-text { overflow-wrap: anywhere; }
.live-event-questions li { padding: 8px 10px; border-radius: 10px; background: rgba(0, 0, 0, 0.22); }
.live-event-questions li[data-status="answered"] { opacity: 0.7; }
.live-event-questions p { margin: 0 0 4px; overflow-wrap: anywhere; }
.live-event-question-meta { color: var(--le-muted); font-size: 12px; }
.live-event-row-actions { display: inline-flex; gap: 10px; margin-left: 10px; }
.live-event-people li { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.live-event-tag { font-size: 11.5px; color: var(--le-accent); }
.live-event-host-form { display: grid; gap: 6px; margin: 6px 0 12px; }
.live-event-host-form label { color: var(--le-muted); font-size: 12px; }
.live-event-host-status { display: flex; flex-wrap: wrap; gap: 6px; }
.live-event-compose { display: flex; gap: 6px; padding: 8px; border-top: 1px solid var(--le-faint); }
.live-event-dock {
  position: absolute; z-index: 6; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px;
  padding: 6px; border-radius: 16px; background: var(--le-glass); border: 1px solid var(--le-faint); backdrop-filter: blur(14px);
}
.live-event-reactions { display: flex; gap: 2px; }
.live-event-reactions button { width: 38px; height: 34px; border: 0; border-radius: 10px; background: transparent; font-size: 19px; cursor: pointer; }
.live-event-reactions button:hover { background: rgba(246, 239, 228, 0.1); transform: translateY(-1px); }
.live-event-burst { position: absolute; z-index: 4; inset: 40% 340px 60px auto; width: 240px; pointer-events: none; overflow: hidden; }
.live-event-particle {
  position: absolute; bottom: 0; left: var(--x); font-size: 26px; opacity: 0;
  animation: live-event-rise 2.8s ease-out var(--delay) forwards;
}
.live-event-pip {
  position: absolute; z-index: 5; left: 12px; bottom: 74px; width: min(400px, 34vw); border-radius: var(--le-radius); overflow: hidden;
  background: #000; border: 1px solid var(--le-faint); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.live-event-pip[hidden] { display: none; }
.live-event-pip header { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 4px 12px; background: var(--le-glass-strong); font-size: 12.5px; font-weight: 600; }
.live-event-icon-button { width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.live-event-pip-frame { aspect-ratio: 16 / 9; }
.live-event-pip-frame iframe, .live-event-watch-stage iframe { width: 100%; height: 100%; border: 0; display: block; }
.live-event-watch { display: grid; padding: 64px 342px 74px 12px; box-sizing: border-box; background: #05101a; }
html[data-window-frame="inset"] .live-event-watch { padding-top: 84px; }
.live-event-watch-stage { align-self: center; justify-self: center; width: 100%; max-height: 100%; aspect-ratio: 16 / 9; border-radius: var(--le-radius); overflow: hidden; background: #000; }
.live-event-watch { grid-template-rows: minmax(0, 1fr) auto; }
.live-event-watch-out { justify-self: center; margin-top: 10px; color: var(--le-muted); font-size: 12.5px; text-underline-offset: 3px; }
.live-event-watch-out:hover { color: var(--le-ink); }
.live-event-watch-out[hidden] { display: none; }
.live-event-stage-empty { position: relative; width: 100%; height: 100%; }
.live-event-stage-empty img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.live-event-stage-empty p { position: absolute; inset: auto 0 0 0; margin: 0; padding: 16px; text-align: center; color: var(--le-ink); background: linear-gradient(transparent, rgba(0, 0, 0, 0.75)); }
.live-event-invite {
  position: absolute; z-index: 8; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(420px, calc(100% - 40px)); box-sizing: border-box;
  padding: 20px; border-radius: 16px; background: var(--le-glass-strong); border: 1px solid rgba(240, 195, 137, 0.5); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}
.live-event-invite[hidden] { display: none; }
.live-event-invite h2 { margin: 0 0 6px; font-size: 18px; }
.live-event-invite p { margin: 0 0 14px; color: var(--le-muted); }
.live-event-toast {
  position: absolute; z-index: 9; left: 50%; bottom: 70px; transform: translateX(-50%); padding: 8px 14px; border-radius: 10px;
  background: var(--le-glass-strong); border: 1px solid var(--le-faint); font-size: 13px;
}
.live-event-toast[hidden] { display: none; }
@keyframes live-event-rise { 0% { opacity: 0; transform: translateY(0) scale(0.8); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(-260px) scale(1.1); } }
@media (max-width: 900px) {
  .live-event-panel { width: 280px; }
  .live-event-map-shell .map-loading { padding-right: 300px; }
  .live-event-watch { padding-right: 302px; }
  .live-event-bar-session { display: none; }
}
@media (max-width: 680px) {
  /* A phone, usually inside Instagram, X or Reddit (about 390×664). From the top: the one-line bar;
     a free 36px slot for a one-line banner (top 62px, 10px from each side; the host's announcement
     uses it); the stage; the one button; chat down to the reactions. Nothing needs scrolling. */
  .live-event-venue {
    --le-top: 62px; --le-slot: 44px; --le-stage-top: calc(var(--le-top) + var(--le-slot));
    --le-stage-bottom: calc(var(--le-stage-top) + (100vw - 24px) * 9 / 16); --le-dock-space: 64px;
  }
  .live-event-bar { gap: 8px; padding: 6px 6px 6px 10px; }
  .live-event-bar-title { flex-wrap: nowrap; white-space: nowrap; overflow: hidden; }
  .live-event-long, .live-event-bar-cta, .live-event-watch-out, .live-event-chip-button[data-action="pip-toggle"] { display: none !important; }
  .live-event-short { display: inline; }
  .live-event-chip-button[data-action="leave"] { padding: 0 9px; }
  .live-event-chip-button[data-action="leave"] span { display: none; }
  .live-event-announcement {
    top: var(--le-top); left: 10px; right: 10px; transform: none; max-width: none; padding: 8px 12px; border-radius: 12px; font-size: 13px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .live-event-panel { left: 10px; right: 10px; width: auto; top: auto; height: 40%; bottom: 70px; }
  .live-event-app[data-mode="watch"] .live-event-panel {
    /* Chat takes what's left under the stage, but never less than 150px. */
    top: min(calc(var(--le-stage-bottom) + 10px), calc(100% - var(--le-dock-space) - 150px)); height: auto; bottom: var(--le-dock-space);
  }
  .live-event-watch { padding: var(--le-stage-top) 12px 0; grid-template-rows: auto; align-content: start; }
  .live-event-watch-stage { align-self: start; }
  .live-event-dock { bottom: 10px; max-width: calc(100% - 20px); box-sizing: border-box; gap: 4px; }
  /* Six reactions and Raise hand on one row at 390px. */
  .live-event-reactions button { width: 33px; }
  .live-event-dock-button { padding: 0 9px; white-space: nowrap; }
  .live-event-toast { bottom: calc(var(--le-dock-space) + 60px); max-width: calc(100% - 40px); text-align: center; }
  /* The live draw's line (.live-event-drop) sits under the bar and can take two rows; its script sets
     --le-drop-bottom on the venue. While it is up, the stage starts below it, the button and chat follow
     the stage, and a host announcement becomes a strip across the top of the stage (on the island, it
     sits under the button). */
  .live-event-app .live-event-venue:has(> .live-event-drop:not([hidden])) { --le-stage-top: calc(var(--le-drop-bottom, 150px) + 10px); }
  .live-event-app .live-event-venue:has(> .live-event-drop:not([hidden])) .live-event-watch { padding-top: var(--le-stage-top); }
  .live-event-app[data-mode="watch"] .live-event-venue:has(> .live-event-drop:not([hidden])) .live-event-announcement {
    top: var(--le-stage-top); left: 12px; right: 12px; border-radius: var(--le-radius) var(--le-radius) 0 0;
  }
  .live-event-app[data-mode="island"] .live-event-venue:has(> .live-event-drop:not([hidden])) .live-event-announcement { top: calc(var(--le-stage-top) + 48px); }
  .live-event-pip { display: none; }
  .live-event-burst { inset: auto 20px 50% auto; }
  .live-event-map-shell .map-loading { padding: 70px 12px calc(40vh + 82px); }
  /* On a phone: the name gets the row's width, an account change drops below it, the way in stays
     in reach at the bottom and the bar keeps only what is happening. */
  .live-event-row { grid-template-columns: 92px minmax(0, 1fr); }
  .live-event-row > dd:nth-of-type(2) { grid-column: 2; }
  .live-event-name { min-width: 0; }
  .live-event-name input { flex: 1; width: auto; min-width: 0; }
  .live-event-door { place-items: start center; padding: 16px 12px; }
  .live-event-door-foot { position: sticky; bottom: -1px; margin: 12px -24px -20px; padding: 14px 24px 20px; border-radius: 0 0 18px 18px; background: linear-gradient(transparent, var(--le-glass-strong) 35%); }
  .live-event-bar-title strong { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .live-event-particle { animation-duration: 1.2s; }
}

/* Save the date before doors open; the calendar file needs no account. */
.live-event-calendar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 4px 0 2px; }
.live-event-calendar a.live-event-secondary { color: var(--le-ink); text-decoration: none; }
.live-event-made-with { margin: 6px 0 0; color: var(--le-muted); font-size: 13px; }
.live-event-made-with a { color: var(--le-ink); text-underline-offset: 3px; }

/* The first visit's movement hint, above the reactions. */
.live-event-hint {
  position: absolute; z-index: 6; left: 50%; bottom: 74px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px;
  width: min(560px, calc(100% - 40px)); box-sizing: border-box; padding: 10px 10px 10px 16px; border-radius: 12px;
  background: var(--le-glass-strong); border: 1px solid var(--le-faint); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35); font-size: 13px;
}
.live-event-hint[hidden] { display: none; }
.live-event-hint p { margin: 0; line-height: 1.45; }
.live-event-hint button { flex: none; }

/* The winner reveal: one card for everyone, on the island or the stage. */
.live-event-reveal {
  position: absolute; z-index: 7; left: 50%; top: 40%; transform: translate(-50%, -50%); width: min(560px, calc(100% - 40px)); box-sizing: border-box;
  padding: 22px 26px 24px; border-radius: 18px; text-align: center; background: var(--le-glass-strong);
  border: 1px solid rgba(240, 195, 137, 0.6); box-shadow: 0 0 0 6px rgba(240, 195, 137, 0.12), 0 28px 80px rgba(0, 0, 0, 0.5);
  animation: live-event-reveal-in 520ms cubic-bezier(0.2, 0.9, 0.25, 1.2) both;
}
.live-event-reveal[hidden] { display: none; }
.live-event-burst.is-reveal { inset: 12% 342px 64px 12px; width: auto; }
.live-event-reveal-eyebrow { margin: 0 0 6px; color: var(--le-accent); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.live-event-reveal h2 { margin: 0; font-size: clamp(24px, 4vw, 34px); line-height: 1.15; text-wrap: balance; }
.live-event-reveal p:not(.live-event-reveal-eyebrow) { margin: 10px 0 0; color: var(--le-muted); font-size: 15px; }
@keyframes live-event-reveal-in { from { opacity: 0; transform: translate(-50%, -46%) scale(0.92); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@media (prefers-reduced-motion: reduce) { .live-event-reveal { animation: none; } }
@media (max-width: 680px) { .live-event-burst.is-reveal { inset: 10% 12px 50% 12px; } }

/* The door's one line about the draw, before anyone is inside. */
.live-event-door-drop { margin: 10px 0 0; padding: 10px 14px; border-radius: 10px; background: rgba(240, 195, 137, 0.12); border: 1px solid rgba(240, 195, 137, 0.35); font-size: 13.5px; line-height: 1.45; }
.live-event-door-drop strong { color: var(--le-accent); }

/* The live draw: one line under the bar with the timer and a button, and a card that opens on request. */
.live-event-drop {
  position: absolute; z-index: 6; top: 64px; left: 10px; right: 342px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 40px; padding: 6px 8px 6px 14px; border-radius: var(--le-radius); background: var(--le-glass); border: 1px solid rgba(240, 195, 137, 0.45);
  backdrop-filter: blur(14px); font-size: 13.5px;
}
html[data-window-frame="inset"] .live-event-drop { top: 84px; }
.live-event-drop[hidden] { display: none; }
.live-event-drop p { margin: 0; min-width: 0; }
.live-event-drop [data-drop-countdown] { font-variant-numeric: tabular-nums; color: var(--le-accent); font-weight: 700; }
.live-event-drop-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.live-event-drop-actions:empty { display: none; }
.live-event-drop-count { color: var(--le-muted); font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.live-event-drop .live-event-primary, .live-event-drop .live-event-secondary { height: 30px; padding: 0 12px; text-decoration: none; display: inline-flex; align-items: center; }
/* The announcement pill moves below the draw line while it is up (the page sets --le-drop-bottom). */
.live-event-venue:has(.live-event-drop:not([hidden])) .live-event-announcement { top: calc(var(--le-drop-bottom, 104px) + 8px); }
.live-event-drop-card {
  position: absolute; z-index: 8; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(440px, calc(100% - 24px)); box-sizing: border-box;
  padding: 22px 22px 18px; border-radius: 16px; background: var(--le-glass-strong); border: 1px solid rgba(240, 195, 137, 0.5); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}
.live-event-drop-card[hidden] { display: none; }
.live-event-drop-card h2 { margin: 0 32px 6px 0; font-size: 19px; line-height: 1.2; }
.live-event-drop-card p { margin: 0 0 12px; color: var(--le-muted); }
.live-event-drop-card form { display: grid; gap: 8px; }
/* WebKit (every iPhone in-app browser) gives the number row its input's min-content width; without this the button runs past the card. */
.live-event-drop-card form > * { min-width: 0; }
.live-event-drop-card .live-event-inline input { min-width: 0; }
.live-event-drop-card label { color: var(--le-muted); font-size: 12px; }
/* 16px keeps iPhone Safari from zooming the page when the field is tapped. */
.live-event-drop-card input:not([type="checkbox"]) { font-size: 16px; height: 40px; }
.live-event-drop-card .live-event-inline .live-event-primary { height: 40px; flex: none; }
.live-event-drop-close { position: absolute; top: 12px; right: 12px; }
.live-event-drop-consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 4px; color: var(--le-muted); font-size: 12.5px; line-height: 1.4; }
.live-event-drop-consent input { margin: 3px 0 0; flex: none; width: 16px; height: 16px; }
.live-event-drop-hint, .live-event-drop-fine { margin: 6px 0 0; color: var(--le-muted); font-size: 12px; line-height: 1.45; }
.live-event-drop-fine a, .live-event-drop-hint a { color: var(--le-ink); text-underline-offset: 3px; }
.live-event-drop-next { display: grid; gap: 8px; margin-top: 4px; }
.live-event-drop-next .live-event-primary, .live-event-drop-next .live-event-secondary { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; height: 40px; }
/* Links styled as buttons keep the button's ink, not the browser's visited purple. */
.live-event-drop a.live-event-secondary, .live-event-drop-card a.live-event-secondary { color: var(--le-ink); }
.live-event-drop-card .live-event-error { margin: 8px 0 0; color: #ffb3aa; font-size: 13px; }
/* "Text me when doors open": the number form sits above the other ways back; once on, a quiet confirmation. */
.live-event-drop-card form[data-form^="drop-notify"] { margin: 0 0 12px; }
.live-event-drop-notify { display: grid; gap: 2px; margin: 12px 0 0; }
.live-event-drop-notify .live-event-primary, .live-event-drop-notify .live-event-secondary { display: inline-flex; align-items: center; justify-content: center; height: 40px; }
.live-event-drop-card .live-event-drop-notify-on { margin: 12px 0; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(240, 195, 137, 0.45); color: var(--le-muted); font-size: 13px; line-height: 1.45; }
.live-event-drop-card .live-event-drop-notify-on strong { color: var(--le-ink); font-weight: 600; }
.live-event-drop-host-line { margin: 0 0 8px; color: var(--le-muted); font-size: 12.5px; }
.live-event-drop-winners li { display: block; }
.live-event-chat-system { color: var(--le-muted); font-size: 12.5px; }
.live-event-chat-name[data-role="event"] { color: var(--le-accent); }
@media (max-width: 900px) { .live-event-drop { right: 302px; } }
@media (max-width: 680px) {
  /* On a phone the line spans the width under the bar; the stage already leaves room for it. */
  .live-event-drop { right: 10px; flex-wrap: wrap; gap: 6px 12px; padding: 8px 10px 8px 12px; font-size: 13px; }
  .live-event-drop-actions { width: 100%; justify-content: flex-end; }
  .live-event-drop-actions:empty { display: none; }
  .live-event-drop-card { top: auto; bottom: 12px; transform: translateX(-50%); width: calc(100% - 16px); max-height: calc(100% - 24px); overflow-y: auto; }
  .live-event-venue:has(.live-event-drop:not([hidden])) .live-event-watch { padding-top: calc(var(--le-drop-bottom, 150px) + 10px); }
  .live-event-venue:has(.live-event-drop:not([hidden])) .live-event-map-shell .map-loading { padding-top: calc(var(--le-drop-bottom, 150px) + 10px); }
}

/* ---- Landing splash (event.html, events/live-event-splash.js) ----
   The "A" rises into an aqua bloom, a gold flare lights where its stroke ends, a band of light
   crosses the letter as it flares, the wordmark settles, then it all opens onto the door. Only
   transforms and opacity move, so it stays smooth while the venue's scripts load on a phone. */
.live-event-splash {
  position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 22px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 42%, #071a20 0%, #03090c 55%, #010405 100%);
}
.live-event-splash[hidden] { display: none; }
.live-event-splash::before, .live-event-splash::after { content: ""; position: absolute; left: 50%; top: 45%; border-radius: 50%; pointer-events: none; opacity: 0; }
.live-event-splash::before {
  width: 130vmin; height: 130vmin; margin: -65vmin 0 0 -65vmin; transform: scale(0.6);
  background: radial-gradient(closest-side, rgba(107, 231, 223, 0.24), rgba(8, 126, 120, 0.11) 45%, transparent 72%);
}
.live-event-splash::after {
  width: 44vmin; height: 44vmin; margin: calc(-22vmin + 12vmin) 0 0 calc(-22vmin + 10vmin); transform: scale(0.4); mix-blend-mode: screen;
  background: radial-gradient(closest-side, rgba(246, 181, 41, 0.45), rgba(246, 181, 41, 0.1) 50%, transparent 75%);
}
.live-event-splash-mark { position: relative; width: min(66vmin, 360px); aspect-ratio: 1; opacity: 0; transform: scale(0.7) translateY(18px); }
.live-event-splash-mark img { position: relative; display: block; width: 100%; height: 100%; }
/* The flare behind the letter: a soft aqua and gold halo that swells as the light crosses. */
.live-event-splash-mark::before {
  content: ""; position: absolute; inset: -18%; border-radius: 50%; opacity: 0; transform: scale(0.85); pointer-events: none;
  background: radial-gradient(closest-side at 46% 46%, rgba(107, 231, 223, 0.36), transparent 70%), radial-gradient(closest-side at 70% 72%, rgba(246, 181, 41, 0.42), transparent 62%);
}
/* The band of light is masked by the mark itself, so it crosses the letter and nothing else. */
.live-event-splash-shine, .live-event-get-shine {
  position: absolute; inset: 0; overflow: hidden; opacity: 0; pointer-events: none;
  -webkit-mask: url(../assets/live-event/asyncly-a-glow.png) center / contain no-repeat; mask: url(../assets/live-event/asyncly-a-glow.png) center / contain no-repeat;
}
.live-event-splash-shine::before, .live-event-get-shine::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 100%; transform: translateX(-110%);
  background: linear-gradient(105deg, transparent 22%, rgba(255, 246, 222, 0.95) 50%, transparent 78%);
}
.live-event-splash-word {
  margin: 0; padding-left: 0.55em; font-size: 15px; font-weight: 650; line-height: 1; letter-spacing: 0.55em; text-transform: uppercase;
  color: rgba(246, 239, 228, 0.86); opacity: 0;
}
.live-event-splash.is-playing::before { animation: le-splash-bloom 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.live-event-splash.is-playing::after { animation: le-splash-flare 1.5s 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.live-event-splash.is-playing .live-event-splash-mark { animation: le-splash-mark 1.05s cubic-bezier(0.22, 0.9, 0.26, 1) forwards; }
.live-event-splash.is-playing .live-event-splash-mark::before { animation: le-splash-ignite 1.3s 0.75s ease-in-out forwards; }
.live-event-splash.is-playing .live-event-splash-shine { opacity: 1; }
.live-event-splash.is-playing .live-event-splash-shine::before { animation: le-shine 0.95s 0.85s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.live-event-splash.is-playing .live-event-splash-word { animation: le-splash-word 0.85s 0.95s ease-out forwards; }
.live-event-splash.is-leaving { animation: le-fade-out 0.65s cubic-bezier(0.4, 0, 0.2, 1) forwards; pointer-events: none; }
.live-event-splash.is-leaving .live-event-splash-mark { animation: le-splash-mark-out 0.65s cubic-bezier(0.4, 0, 1, 1) forwards; }
@keyframes le-splash-bloom { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }
@keyframes le-splash-flare { 0% { opacity: 0; transform: scale(0.4); } 45% { opacity: 1; transform: scale(1.08); } 100% { opacity: 0.75; transform: scale(1); } }
@keyframes le-splash-mark { to { opacity: 1; transform: none; } }
@keyframes le-splash-ignite { 0% { opacity: 0; transform: scale(0.85); } 45% { opacity: 1; transform: scale(1.06); } 100% { opacity: 0.55; transform: scale(1); } }
@keyframes le-shine { from { transform: translateX(-110%); } to { transform: translateX(110%); } }
@keyframes le-splash-word { to { opacity: 1; letter-spacing: 0.32em; padding-left: 0.32em; } }
@keyframes le-fade-out { to { opacity: 0; } }
@keyframes le-splash-mark-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: scale(1.14); } }

/* ---- Get Asyncly on a phone or tablet: a branded sheet that rises from the bottom a few seconds in ----
   (live-event-app.js decides when; the draw's entry always comes first). */
.live-event-get {
  position: absolute; z-index: 9; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); width: min(420px, calc(100% - 16px)); box-sizing: border-box;
  display: grid; grid-template-columns: 60px minmax(0, 1fr); grid-template-areas: "mark copy" "button button" "second second"; column-gap: 14px; align-items: center;
  padding: 16px 16px 14px; border-radius: 20px; overflow: hidden; isolation: isolate;
  background: linear-gradient(160deg, rgba(10, 34, 40, 0.97), rgba(4, 12, 16, 0.98) 62%);
  border: 1px solid rgba(107, 231, 223, 0.26);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 44px rgba(8, 126, 120, 0.22);
  transform: translate(-50%, calc(100% + 40px)); opacity: 0;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}
.live-event-get[hidden] { display: none; }
.live-event-get.is-open { transform: translate(-50%, 0); opacity: 1; }
/* An aqua-to-gold line along the top edge and a soft bloom behind the mark. */
.live-event-get::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, transparent, #6be7df 28%, #f6b529 72%, transparent); }
.live-event-get-glow { position: absolute; z-index: -1; width: 240px; height: 240px; left: -86px; top: -92px; border-radius: 50%; background: radial-gradient(closest-side, rgba(107, 231, 223, 0.3), transparent 72%); pointer-events: none; }
.live-event-get-mark { grid-area: mark; position: relative; width: 60px; height: 60px; }
.live-event-get-mark img { display: block; width: 100%; height: 100%; filter: drop-shadow(0 0 12px rgba(246, 181, 41, 0.35)); }
.live-event-get.is-open .live-event-get-shine { opacity: 1; }
.live-event-get.is-open .live-event-get-shine::before { animation: le-shine 1s 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.live-event-get-copy { grid-area: copy; min-width: 0; padding-right: 26px; }
.live-event-get-brand { margin: 0 0 3px; font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: #6be7df; }
.live-event-get h2 { margin: 0; font-size: 17px; line-height: 1.25; }
.live-event-get-copy p:not(.live-event-get-brand) { margin: 3px 0 0; color: var(--le-muted); font-size: 13px; line-height: 1.4; }
.live-event-get-button {
  grid-area: button; margin-top: 14px; height: 46px; border: 0; border-radius: 13px; cursor: pointer; font-weight: 700; font-size: 15px;
  color: #1b1408 !important; background: linear-gradient(180deg, #f9cb63, #f0a92a); box-shadow: 0 8px 24px rgba(246, 181, 41, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.live-event-get-button:disabled { background: rgba(107, 231, 223, 0.14); color: var(--le-ink) !important; box-shadow: none; cursor: default; }
.live-event-get-close { position: absolute; top: 10px; right: 10px; }
/* Leading with the hackathon sign-up: the button is a link, and the download link is a quiet second row. */
a.live-event-get-button { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.live-event-get-second { grid-area: second; display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; color: var(--le-muted); font-size: 13px; }
.live-event-get-link { border: 0; background: none; padding: 4px 2px; color: var(--le-ink) !important; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.live-event-get-link:disabled { text-decoration: none; color: var(--le-muted) !important; cursor: default; }

@media (prefers-reduced-motion: reduce) {
  .live-event-splash::before, .live-event-splash::after, .live-event-splash-mark, .live-event-splash-mark::before { transform: none; }
  .live-event-splash.is-playing::before, .live-event-splash.is-playing .live-event-splash-mark, .live-event-splash.is-playing .live-event-splash-word { animation: le-fade-in 0.4s ease-out forwards; }
  .live-event-splash.is-playing::after, .live-event-splash.is-playing .live-event-splash-mark::before { animation: none; }
  .live-event-splash.is-playing .live-event-splash-shine, .live-event-get.is-open .live-event-get-shine { display: none; }
  .live-event-splash-word { letter-spacing: 0.32em; padding-left: 0.32em; }
  .live-event-splash.is-leaving .live-event-splash-mark { animation: none; opacity: 1; }
  .live-event-get { transition: opacity 0.25s ease; transform: translate(-50%, 0); }
}
@keyframes le-fade-in { to { opacity: 1; } }
