/* Pitch reel (reel.js): the Play card on the Tour page, and the overlay that plays over the real app:
   curtain, fight-poster caption bar, Stop button, end card. body.reeling while it plays. */

/* ---------- Tour page: the Play card ---------- */
.reel-launch {
  --bg: var(--night); --surface: var(--night-2); --surface-2: var(--night-3);
  --text: #FFFFFF; --muted: #ABABAB; --dim: #8F8F8F;
  --line: var(--night-line); --line-ctl: #7A7A7A; --line-strong: #FFFFFF;
  --accent-text: var(--brand-on-night); --error: var(--brand-on-night); --ok: #5BC88A; --focus: #FFFFFF;
  display: grid; gap: 18px; align-items: center;
  margin: 0 0 28px; padding: 22px 20px 24px;
  background: var(--night); color: var(--text); border-top: 4px solid var(--brand);
}
.reel-launch h2 { margin: 0 0 8px; font: 800 30px/1 var(--display); text-transform: uppercase; color: #fff; }
.reel-launch p { margin: 0; font-size: 16px; line-height: 1.45; color: #E0E0E0; max-width: 60ch; }
.reel-launch .reel-launch-note { margin-top: 6px; font-size: 14px; color: var(--muted); }
.reel-launch .reel-play { width: 100%; justify-content: center; }
@media (min-width: 760px) {
  .reel-launch { grid-template-columns: minmax(0, 1fr) auto; gap: 28px; padding: 26px 28px; }
  .reel-launch .reel-play { width: auto; }
}

/* ---------- While it plays ---------- */
body.reeling #toast, body.reeling .toast, body.reeling #tour, body.reeling .tour,
body.reeling .dock, body.reeling .demo-banner { display: none !important; }
html.reel-on { scrollbar-width: none; }
html.reel-on::-webkit-scrollbar { display: none; }

/* What the reel points at: a red frame, like the guided tours. */
.reel-glow { outline: 4px solid var(--brand) !important; outline-offset: 4px; animation: reel-glow 1.4s var(--ease-out) 1; }
.modal .reel-glow, .list-card .reel-glow, .row.reel-glow { outline-offset: -4px; }
.stats > .stat.reel-glow { position: relative; z-index: 1; outline-offset: -3px; }
.reel-tap { outline: 4px solid var(--brand) !important; outline-offset: 2px; transform: scale(.96); transition: transform .15s var(--ease-out); }
@keyframes reel-glow { 0% { outline-color: transparent; } 30% { outline-color: var(--brand); } 100% { outline-color: var(--brand); } }

/* ---------- The overlay (a popover, so it sits above pop-ups too) ---------- */
.reel {
  position: fixed; inset: 0; z-index: 2147483000;
  width: auto; height: auto; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; color: #fff;
  overflow: hidden; cursor: none;
}
.reel[hidden] { display: none; }
.reel::backdrop { background: transparent; }
.reel.is-poked { cursor: default; }

.reel-curtain {
  position: absolute; inset: 0; background: var(--night);
  opacity: 0; transition: opacity .28s var(--ease-ui); pointer-events: none;
}
.reel-curtain.is-down { opacity: 1; }

/* Caption: big white condensed type on black, red edge on top, scene number in red. */
.reel-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px var(--gutter) calc(20px + env(safe-area-inset-bottom));
  padding-left: max(var(--gutter), calc((100vw - 1120px) / 2));
  background: var(--night); border-top: 6px solid var(--brand);
  box-shadow: 0 -18px 40px rgba(0, 0, 0, .28);
  transform: translateY(115%); transition: transform .42s var(--ease-out);
  pointer-events: none;
}
.reel-cap.is-in { transform: none; }
.reel-n {
  flex: none; padding-top: .18em;
  font: 900 clamp(18px, 4.6vw, 30px)/1 var(--display); color: var(--brand-on-night); letter-spacing: .02em;
}
.reel-t {
  min-width: 0; max-width: 18ch;
  font: 900 clamp(38px, 10.6vw, 84px)/.9 var(--display); text-transform: uppercase; letter-spacing: .005em; color: #fff;
  overflow-wrap: break-word; text-wrap: balance;
}
@media (min-width: 960px) { .reel-t { max-width: none; font-size: clamp(40px, 6.6vw, 80px); } }
@media (min-width: 960px) and (max-height: 760px) { .reel-t { font-size: clamp(40px, min(6.6vw, 9vh), 72px); } }

/* Stop: small, top corner, shows on a tap or a mouse move. */
.reel-stop {
  position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 10px; z-index: 4;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  background: rgba(14, 14, 14, .78); color: #fff; border: 1px solid rgba(255, 255, 255, .4); border-radius: 0;
  font: 700 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
  opacity: 0; transition: opacity .25s var(--ease-ui);
}
.reel-stop::before { content: ""; width: 9px; height: 9px; background: var(--brand-on-night); }
.reel.is-poked .reel-stop, .reel-stop:focus-visible { opacity: 1; }
.reel-stop:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* End card: full-screen black, the club name big, no prices. */
.reel-end {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(24px + env(safe-area-inset-top)) var(--gutter) calc(56px + env(safe-area-inset-bottom));
  padding-left: max(var(--gutter), calc((100vw - 1120px) / 2));
  background: var(--night); color: #fff;
  opacity: 0; transition: opacity .45s var(--ease-ui);
}
.reel-end[hidden] { display: none; }
.reel-end.is-in { opacity: 1; }
.reel-end-in > * { margin: 0; }
.reel-end-bar { display: block; width: 14px; height: 56px; margin-bottom: 22px; background: var(--brand); transform: skewX(-12deg); }
.reel-end-name {
  max-width: 9ch;
  font: 900 clamp(64px, 17vw, 168px)/.86 var(--display); text-transform: uppercase; letter-spacing: .005em; color: #fff;
}
.reel-end-line { margin-top: 22px !important; font: 800 clamp(24px, 6vw, 44px)/1 var(--display); text-transform: uppercase; color: #fff; }
.reel-end-made { margin-top: 14px !important; font: 700 clamp(13px, 3.4vw, 16px)/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brand-on-night); }
.reel-end-note {
  position: absolute; left: max(var(--gutter), calc((100vw - 1120px) / 2)); bottom: calc(20px + env(safe-area-inset-bottom)); margin: 0;
  font: 500 13px/1.3 var(--sans); color: #8F8F8F;
}
@media (min-width: 960px) and (max-height: 760px) { .reel-end-name { font-size: clamp(64px, 19vh, 150px); } }
