/* ============================================================
   KINGS OF THE ROLLERS + INJA
   3 hour extended set. Ministry of Sound, London. Fri 5 Feb 2027, 22:30-05:00.
   Sign-up. Client: Louder Entertainment (named party KOTR Music Limited).

   DIRECTION - the poster, unboxed, on a tape that just locked on.
   The art is a chrome crown built from roller skates, shot through VHS
   tracking error: RGB-split edges, horizontal streaks, scanlines. The client
   sent flat composites (blend-heavy PSD layers), so the poster is shown
   whole, but its streaks are extended sideways into the page ground offline
   (tools/build_images.py), so it has no frame and the swirl runs on behind
   the panel. .bill is the poster's exact 4:5 box; the wider image overhangs
   it on both sides by 50.93% of the poster width.
   - The one bold move: the panel's edge is MIS-REGISTERED like the poster's
     type: an ice hairline with a cyan ghost pulled left and a magenta ghost
     pulled right. On load the ghosts swing in and settle once, like a
     tracking head locking. The title carries the same split, statically.
     Everything else stays quiet.

   COLOUR - literal pixels of KOTR_Ministry_4x5:
     #00050A  ground  median of the poster's border rows (the bake fades to it)
     #050C14  slab    the crown's shadow, lifted a touch (panel)
     #C9E6FE  ice     median of the lit chrome (lum > 215) - CTA, accents
     #8FB0E6  peri    the mid-blue chrome (#5880BF) lifted to read as text
     #42AABA  cyan    the green-cyan fringe - ornament only
     #A94887  magenta the magenta fringe - ornament only
   Ink on ice 16.9:1. Ice on slab 16.0:1. Mist on slab 10.4:1. Peri on slab
   8.6:1. Mist-dim on slab 6.0:1.

   TYPE - Anybody (OFL), one family: width 135-140 / weight 900 for titles and
   the CTA (the nearest free cut to the lockup), italic for the step spine
   after the poster's corner furniture. Reading copy in the house Helvetica.
   ============================================================ */

@font-face {
  font-family: "Anybody";
  src: url("/assets/fonts/Anybody.woff2?v=20261117-4") format("woff2");
  font-weight: 100 900;
  font-stretch: 50% 150%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Anybody";
  src: url("/assets/fonts/Anybody-Italic.woff2?v=20261117-4") format("woff2");
  font-weight: 100 900;
  font-stretch: 50% 150%;
  font-style: italic;
  font-display: swap;
}

:root {
  --ground:   #00050A;
  --slab:     #050C14;   /* panel */
  --panel:    #07101A;   /* country dropdown */
  --field:    #01070D;   /* form field - OPAQUE on purpose, see autofill note */
  --ice:      #C9E6FE;
  --ice-hi:   #E6F3FF;
  --peri:     #8FB0E6;
  --cyan:     #42AABA;
  --magenta:  #A94887;
  --paper:    #EEF5FF;
  --mist:     #B4C3D6;
  --mist-dim: #8293A9;
  --danger:   #FFA8A0;
  --whatsapp: #25D366;
  --line:     rgba(180,195,214,.20);

  --display: "Anybody", "Arial Black", Arial, sans-serif;
  --font:    "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --panel-w: 420px;
  --gap: clamp(40px, 5vw, 96px);
  --pad: clamp(20px, 4vw, 64px);
}

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

/* The `hidden` attribute is only display:none in the UA stylesheet, the weakest
   layer of the cascade, so ANY author rule that sets display beats it. Keep this
   rule ABOVE everything that sets display, and never remove it. */
[hidden] { display: none !important; }

/* Ground colour lives on html, NOT body (gotcha 16). */
html {
  -webkit-text-size-adjust: 100%;
  background: var(--ground);
}
body {
  position: relative;              /* .bg is absolute against the whole document */
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  font-family: var(--font);
  color: var(--paper);
  background: transparent;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Page-wide scanlines, the poster's own texture at a whisper, so the ground
   past the baked streaks is not dead flat on ultrawide screens. absolute,
   never fixed: it must reach behind Safari's floating toolbar (gotcha 39). */
.bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, rgba(201,230,254,.022) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse 70% 60% at 35% 45%, rgba(88,128,191,.07), transparent 70%);
}

/* clip, not hidden: hidden on one axis forces the other to auto and would
   clip the country dropdown. This is also what trims the art's overhang. */
.page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

/* ============================================================
   STAGE - base = phones / portrait / square: the poster, then the sign-up.
   The poster is height-capped so the panel always peeks on the first screen.
   ============================================================ */
.stage {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0 var(--gutter);
}

/* .bill = the poster's 4:5 box. --ph is the one number every layout sets. */
.bill {
  --ph: min(64vh, calc(100vw * 1.25));
  position: relative;
  z-index: 0;
  flex: 0 0 auto;
  height: var(--ph);
  width: calc(var(--ph) * .8);
  margin: 0;
}
@supports (height: 100svh) { .bill { --ph: min(64svh, calc(100vw * 1.25)); } }
/* the image is 2.0185x the poster's width: centred on the box, it overhangs
   both sides by exactly the baked extension. Deliberately NOT max-width:100%
   (gotcha 38 is about accidental overflow; this one is the design, and
   .page's overflow-x: clip trims it at the viewport). */
.bill picture { display: contents; }
.bill__art {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  width: auto;
  max-width: none;
  transform: translateX(-50%);
  display: block;
}

/* ============================================================
   SIGN-UP PANEL - slab, ice hairline, and two mis-registered ghosts.
   The ghosts are pseudo-element FRAMES, which gotcha 5 warns can cover the
   country dropdown - so the panel isolates, the frames sit at z-index -1
   (painted over the slab, under every child), and they never take clicks.
   ============================================================ */
.signup {
  width: calc(100% - 2 * var(--gutter));
  max-width: var(--panel-w);
  position: relative;
  z-index: 2;
  margin-top: 6px;
}
.panel {
  width: 100%;
  position: relative;
  isolation: isolate;
  color: var(--mist);
  background: var(--slab);
  border: 1px solid rgba(201,230,254,.55);
  box-shadow: 0 34px 80px -30px rgba(0,0,0,.95);
}
.panel::before,
.panel::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  pointer-events: none;
  border: 1px solid;
  opacity: .75;
}
.panel::before { border-color: var(--cyan);    transform: translateX(-3px); animation: lock-c 1.1s cubic-bezier(.2,.7,.2,1) .25s both; }
.panel::after  { border-color: var(--magenta); transform: translateX(3px);  animation: lock-m 1.1s cubic-bezier(.2,.7,.2,1) .25s both; }
/* The one load moment: the ghosts swing in, overshoot once, and lock. */
@keyframes lock-c {
  0%   { transform: translateX(-22px); opacity: 0; }
  35%  { transform: translateX(-8px);  opacity: .9; }
  62%  { transform: translateX(1px); }
  82%  { transform: translateX(-4px); }
  100% { transform: translateX(-3px);  opacity: .75; }
}
@keyframes lock-m {
  0%   { transform: translateX(22px);  opacity: 0; }
  35%  { transform: translateX(8px);   opacity: .9; }
  62%  { transform: translateX(-1px); }
  82%  { transform: translateX(4px); }
  100% { transform: translateX(3px);   opacity: .75; }
}
@media (prefers-reduced-motion: reduce) {
  .panel::before, .panel::after { animation: none; }
}
.panel__inner {
  position: relative;
  padding: 24px clamp(22px, 3vw, 32px) 28px;
}

/* --- state machine (app.js flips data-form-state on .panel) --- */
.panel__state { display: none; }
.panel[data-form-state="idle"]    .panel__idle    { display: block; }
.panel[data-form-state="otp"]     .panel__otp     { display: block; }
.panel[data-form-state="success"] .panel__success { display: block; }

/* ============================================================
   STEP SPINE - numbered because it IS a sequence:
   form -> SMS code -> email confirm. Set in Anybody italic, like the
   poster's corner furniture (>> 22:30 / FRI 05 FEBRUARY).
   ============================================================ */
.spine {
  display: flex;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  border: 1px solid var(--line);
  overflow: hidden;
}
.spine__step {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 6px 7px;
  font-family: var(--display);
  font-style: italic;
  font-stretch: 105%;
  font-weight: 600;
  font-size: 12.5px;
  color: var(--mist-dim);
  transition: color .25s ease, background-color .25s ease;
}
.spine__step + .spine__step { border-left: 1px solid var(--line); }
.spine__n {
  flex: 0 0 auto;
  width: 17px; height: 17px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-style: normal;
  font-size: 10px;
  line-height: 1;
}
.spine__t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.panel[data-form-state="idle"]    .spine__step:nth-child(1),
.panel[data-form-state="otp"]     .spine__step:nth-child(2),
.panel[data-form-state="success"] .spine__step:nth-child(3) {
  color: var(--paper);
  background: rgba(201,230,254,.10);
}
.panel[data-form-state="idle"]    .spine__step:nth-child(1) .spine__n,
.panel[data-form-state="otp"]     .spine__step:nth-child(2) .spine__n,
.panel[data-form-state="success"] .spine__step:nth-child(3) .spine__n {
  background: var(--ice);
  border-color: var(--ice);
  color: var(--ground);
}
.panel[data-form-state="otp"]     .spine__step:nth-child(1),
.panel[data-form-state="success"] .spine__step:nth-child(1),
.panel[data-form-state="success"] .spine__step:nth-child(2) {
  color: var(--peri);
}
.panel[data-form-state="otp"]     .spine__step:nth-child(1) .spine__n,
.panel[data-form-state="success"] .spine__step:nth-child(1) .spine__n,
.panel[data-form-state="success"] .spine__step:nth-child(2) .spine__n {
  font-size: 0;                    /* hide the digit, keep the ring */
  border-color: var(--peri);
}
.panel[data-form-state="otp"]     .spine__step:nth-child(1) .spine__n::after,
.panel[data-form-state="success"] .spine__step:nth-child(1) .spine__n::after,
.panel[data-form-state="success"] .spine__step:nth-child(2) .spine__n::after {
  content: "";
  width: 7px; height: 4px;
  border: 1.5px solid var(--peri);
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg) translate(1px, -1px);
}
@media (max-width: 400px) {
  .spine__step { font-size: 11.5px; gap: 5px; padding: 7px 3px 6px; }
  .spine__n { width: 15px; height: 15px; }
}

/* ============================================================
   PANEL COPY
   ============================================================ */
/* House title pattern, set like the lockup: wide black caps, second line
   ice, with the poster's RGB split as a static ghost. */
.panel__title {
  margin: 0 0 12px;
  font-family: var(--display);
  font-stretch: 135%;
  font-weight: 900;
  font-size: clamp(1.45rem, 6.4vw, 1.85rem);
  line-height: 1.02;
  letter-spacing: -.005em;
  text-transform: uppercase;
  color: var(--paper);
  text-wrap: balance;
  text-shadow: -1.5px 0 rgba(66,170,186,.85), 1.5px 0 rgba(169,72,135,.85);
}
.panel__title em { font-style: normal; color: var(--ice); }

.panel__lede {
  margin: 0 0 18px;
  font-size: 15px;
  color: var(--mist);
  max-width: 46ch;
}
.panel__lede--last { margin-bottom: 20px; }
.panel__lede strong { color: var(--paper); font-weight: 700; }
.panel__success-note { margin: 0 0 12px; color: var(--peri); font-size: 14.5px; }

/* ============================================================
   FORM
   ============================================================ */
.form__row { margin: 0 0 12px; }
/* labels stay for screen readers; placeholders carry the meaning visually */
.form__label {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.form__input {
  width: 100%;
  padding: 13px 14px;
  font-family: var(--font);
  font-size: 16px;                 /* 16px minimum or iOS zooms on focus */
  color: var(--paper);
  background: var(--field);        /* OPAQUE - see the autofill rule below */
  border: 1px solid rgba(201,230,254,.28);
  border-radius: 0;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.form__input::placeholder { color: var(--mist-dim); opacity: 1; }
.form__input:focus {
  outline: none;
  border-color: var(--ice);
  box-shadow: 0 0 0 3px rgba(201,230,254,.20);
}
.form__input--otp {
  font-family: var(--display);
  font-stretch: 120%;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: .42em;
  text-align: center;
  text-indent: .42em;              /* re-centres text that tracking pushes left */
}

/* Chrome paints autofilled inputs pale lavender and IGNORES background on
   :-webkit-autofill - a huge inset box-shadow is the only reliable override.
   It must be the flattened OPAQUE colour of the field, which is simply --field
   because the field is opaque on purpose. Keep it opaque. */
.form__input:-webkit-autofill,
.form__input:-webkit-autofill:hover,
.form__input:-webkit-autofill:focus,
.form__input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px var(--field) inset !important;
          box-shadow: 0 0 0 1000px var(--field) inset !important;
  -webkit-text-fill-color: var(--paper) !important;
  caret-color: var(--paper);
  transition: background-color 9999s ease-in-out 0s;   /* stops the lavender flashing in */
}

.form__error { margin: 7px 0 0; font-size: 13px; color: var(--danger); }
.form__error--global { margin-top: 14px; }

/* Honeypot. display:none ONLY - off-screen positioning stays an autofill
   target in Chrome/Edge, which fills it and silently blocks real signups. */
.hp-row { display: none !important; }

.form__row--check { margin: 16px 0 18px; }
.form__check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--mist);
  cursor: pointer;
}
.form__check input {
  flex: 0 0 auto;
  width: 18px; height: 18px;
  margin: 1px 0 0;
  accent-color: var(--ice);
  cursor: pointer;
}
/* Privacy line under the marketing tick box (kept out of the consent box itself). */
.form__note { margin: 10px 0 0 29px; font-size: 12px; line-height: 1.5; color: var(--mist); }
.form__note a { color: var(--paper); text-decoration: underline; text-underline-offset: 2px; }
.form__note a:hover { color: var(--ice); }

.form__resend {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--mist-dim);
  text-align: center;
}
.form__resend-btn {
  font: inherit;
  color: var(--peri);
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.form__resend-btn:disabled { color: var(--mist-dim); cursor: default; text-decoration: none; }

/* ---------- buttons ---------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 18px 15px;
  font-family: var(--display);
  font-stretch: 130%;
  font-weight: 850;
  font-size: clamp(.9rem, 3.6vw, 1rem);
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;             /* shrink the type before it can ever wrap */
  text-align: center;
  text-decoration: none;           /* <a class="btn"> needs this */
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: transform .12s ease, background-color .18s ease, box-shadow .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; }
/* the CTA is a lit face of the chrome; on hover it picks up the same
   mis-registration as the panel edge */
.btn--primary { color: var(--ground); background: var(--ice); }
.btn--primary:hover:not(:disabled) {
  background: var(--ice-hi);
  box-shadow: -3px 0 0 var(--cyan), 3px 0 0 var(--magenta);
}
.btn:focus { outline: none; }
.btn:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
.form__input:focus-visible { outline: none; }
.form__resend-btn:focus-visible,
.form__note a:focus-visible,
.foot a:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }
.btn__icon { flex: 0 0 auto; width: 19px; height: 19px; }

/* WhatsApp: dark slab, green hairline, a solid green chip carrying the glyph. */
.wa-hook { margin: 18px 0 12px; font-size: 13.5px; color: var(--mist); }
.wa-hook strong { color: var(--paper); font-weight: 700; }
.btn--whatsapp {
  position: relative;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 6px;
  padding: 0 14px 0 0;
  min-height: 52px;
  color: var(--paper);
  background: #04150E;
  border: 1px solid var(--whatsapp);
  font-family: var(--font);
  font-stretch: normal;
  font-weight: 700;
  font-size: clamp(.84rem, 3.5vw, .95rem);
  letter-spacing: .02em;
  text-transform: none;
}
.btn--whatsapp .btn__icon {
  align-self: stretch;
  width: 46px;
  height: auto;
  padding: 0 13px;
  color: #06301A;                  /* 7.33:1 on the WhatsApp green */
  background: var(--whatsapp);
  box-sizing: border-box;
}
.btn--whatsapp .btn__text { flex: 1 1 auto; text-align: center; padding-right: 4px; }
.btn--whatsapp:hover { background: #082519; }
.btn--whatsapp:focus-visible { outline: 2px solid var(--paper); outline-offset: 4px; }
/* narrow phones: let the label wrap to two lines rather than touch the edge */
@media (max-width: 359px) {
  .btn--whatsapp { white-space: normal; line-height: 1.2; padding-top: 8px; padding-bottom: 8px; }
}

/* ============================================================
   intl-tel-input v25
   ============================================================ */
.iti { width: 100%; display: block; }
/* app.js re-measures and sets padding-left inline; this is the sane default
   before it runs. Anything >= 80px breaks 320-390px viewports. */
.iti input.form__input { padding-left: calc(52px + 0.7rem); }
.iti__country-container { z-index: 3; }
.iti--inline-dropdown .iti__dropdown-content { z-index: 50; }
/* Until the vendor stylesheet loads, the hidden state does not exist and the
   whole list plus search box flashes open on first paint. */
.iti__dropdown-content.iti__hide { display: none !important; }
.iti__dropdown-content {
  background: var(--panel);
  border: 1px solid rgba(201,230,254,.45);
  box-shadow: 0 26px 56px -18px rgba(0,0,0,.94);
  overflow: hidden;
}
.iti__search-input {
  /* Keep the vendor's horizontal padding reservation (30px left for the search
     icon, 28px right for the clear button). A padding SHORTHAND that drops them
     puts the magnifier on top of the placeholder. */
  padding: 10px 30px 10px 32px;
  width: 100%;
  font-family: var(--font);
  font-size: 14px;
  color: var(--paper);
  background: var(--field);
  border: 0;
  border-bottom: 1px solid rgba(201,230,254,.30);
}
.iti__search-input::placeholder { color: var(--mist-dim); }
.iti__search-input:focus { outline: none; background: #0A1421; }
.iti__country-list { background: var(--panel); max-height: 240px; }
.iti__country {
  padding: 9px 12px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--paper);
}
.iti__country:hover,
.iti__country.iti__highlight { background: rgba(201,230,254,.14); }
.iti__dial-code { color: var(--mist-dim); }
.iti__country-name { color: var(--paper); }
.iti__selected-country:hover,
.iti__selected-country-primary:hover { background: rgba(201,230,254,.12); }
.iti__selected-dial-code { color: var(--paper); font-family: var(--font); font-size: 15px; }
.iti__arrow { border-top-color: var(--mist-dim); }
.iti__arrow--up { border-bottom-color: var(--mist-dim); }

/* ============================================================
   FOOTER - fleet pattern, credit pill LEFT beside the copyright
   (Adam, 17 Nov 2026), legal links right.
   ============================================================ */
.foot {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0;
  padding: 14px var(--gutter) 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
}
.foot__left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.foot__legal { margin: 0; font-size: 12.5px; color: var(--mist); }
.foot__legal a { color: var(--mist); text-decoration: none; }
.foot__legal a:hover { color: var(--ice); }
/* Ticket terms | Privacy | (louder-consent.js adds "Cookie settings" after
   the privacy link with only a text space between them) */
.foot__links a + a,
.foot__legal [data-louder-consent-open] {
  margin-left: .75em;
  padding-left: .85em;
  border-left: 1px solid rgba(180,195,214,.4);
}
.site-built { margin: 0; }
.site-built a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid rgba(180,195,214,.32);
  border-radius: 999px;
  font-size: 12px;
  color: var(--mist);
  text-decoration: none;
  transition: border-color .18s ease, color .18s ease;
}
.site-built a:hover { border-color: var(--ice); }
.site-built img { display: block; opacity: .9; }

@media (max-width: 899px) {
  .foot, .foot__left { justify-content: center; text-align: center; }
}
@media (max-width: 480px) {
  .foot { flex-direction: column; align-items: center; gap: 10px; padding-bottom: 22px; }
  .foot__left { flex-direction: column; align-items: center; gap: 10px; }
}

/* Short phones (SE class): smaller poster + tighter panel so the sign-up
   still shows on the first screen. */
@media (max-width: 559px) and (max-height: 700px) {
  .bill { --ph: min(58vh, calc(100vw * 1.25)); }
  @supports (height: 100svh) { .bill { --ph: min(58svh, calc(100vw * 1.25)); } }
  .spine { margin-bottom: 14px; }
  .panel__inner { padding-top: 18px; }
  .panel__lede { font-size: 14px; margin-bottom: 14px; }
}

/* ============================================================
   TWO-UP - genuinely landscape screens only (Adam's 13 Nov rule: the 7/10
   gate is far too eager for an art + form split): poster left, sign-up
   right, one screen, the group centred. The panel track is DEFINITE, never
   auto (gotcha 35). The poster is sized from the window height, capped by
   the width left over beside the panel.
   ============================================================ */
@media (min-width: 900px) and (min-aspect-ratio: 5/4) and (min-height: 521px) {
  :root { --panel-w: 410px; }
  .stage {
    display: grid;
    grid-template-columns: auto var(--panel-w);
    justify-content: center;
    align-items: center;
    column-gap: var(--gap);
    padding: 20px var(--pad) 0;
  }
  .bill { --ph: min(calc(100vh - 96px), calc((100vw - var(--panel-w) - var(--gap) - 2 * var(--pad)) * 1.25)); }
  @supports (height: 100svh) {
    .bill { --ph: min(calc(100svh - 96px), calc((100vw - var(--panel-w) - var(--gap) - 2 * var(--pad)) * 1.25)); }
  }
  .signup { width: var(--panel-w); max-width: none; margin: 0; }
}

/* --- landscape phones are a first-class layout (gotcha 27) ---
   844x390, 932x430, 667x375: the poster at screen height on the left, the
   panel compact and top-aligned, the page scrolls. Placed LAST so it wins at
   equal specificity. */
@media (min-width: 560px) and (min-aspect-ratio: 5/4) and (max-height: 520px) {
  :root { --panel-w: 360px; --gap: 20px; --pad: 16px; }
  .stage {
    display: grid;
    grid-template-columns: auto var(--panel-w);
    justify-content: center;
    align-items: start;
    column-gap: var(--gap);
    padding: 10px var(--pad) 12px;
  }
  .bill { --ph: min(calc(100vh - 20px), calc((100vw - var(--panel-w) - var(--gap) - 2 * var(--pad)) * 1.25)); }
  @supports (height: 100svh) {
    .bill { --ph: min(calc(100svh - 20px), calc((100vw - var(--panel-w) - var(--gap) - 2 * var(--pad)) * 1.25)); }
  }
  .signup { width: var(--panel-w); max-width: none; margin: 0; }
  .panel__inner { padding: 16px 20px 18px; }
  .spine { margin-bottom: 12px; }
  .spine__step { padding: 5px 4px 4px; font-size: 11px; }
  .panel__title { font-size: 1.25rem; margin-bottom: 8px; }
  .panel__lede { font-size: 13.5px; margin-bottom: 12px; }
  .form__row { margin-bottom: 9px; }
  .form__input { padding: 10px 12px; }
  .form__row--check { margin: 10px 0 12px; }
  .btn:not(.btn--whatsapp) { padding: 12px 16px 12px; }
  .btn--whatsapp { min-height: 46px; }
}

/* ============================================================
   MOTION (Adam 17 Nov): chrome glint + tape glitch on the poster.
   One 9s cycle drives both so they can never collide:
     0-17%   glint sweeps the crown (1.5s)
     55-59%  tape glitch: three crown bands slip in steps, channel ghosts
             flash (~0.36s)
   Both live inside .bill (its own stacking context), are confined to the
   crown band (title, date and corner labels never move), and only start
   once app.js has handed over the loaded poster (.fx.is-ready).
   ============================================================ */
.fx-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.fx {
  position: absolute;
  inset: 0;                         /* exactly the 4:5 poster box */
  pointer-events: none;
}
/* tears + ghosts: copies of the wide art, same geometry as .bill__art */
.fx__tear,
.fx__ghost {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  aspect-ratio: 4360 / 2700;
  transform: translateX(-50%);
  background: var(--art, none) 0 0 / 100% 100% no-repeat;
  visibility: hidden;
}
/* bands, as % of the poster height, all inside the crown (rows 160-1790) */
.fx__tear--1 { clip-path: inset(17% 0 79.5% 0); }
.fx__tear--2 { clip-path: inset(36% 0 58% 0); }
.fx__tear--3 { clip-path: inset(52.5% 0 44% 0); }
.fx__ghost   { clip-path: inset(7% 0 34% 0); mix-blend-mode: screen; opacity: .42; }
.fx__ghost--c { filter: url(#fx-cyan); }
.fx__ghost--m { filter: url(#fx-magenta); }

.fx.is-ready .fx__tear--1 { animation: fx-tear1 9s steps(1, end) 1.6s infinite; }
.fx.is-ready .fx__tear--2 { animation: fx-tear2 9s steps(1, end) 1.6s infinite; }
.fx.is-ready .fx__tear--3 { animation: fx-tear3 9s steps(1, end) 1.6s infinite; }
.fx.is-ready .fx__ghost--c { animation: fx-ghost-c 9s steps(1, end) 1.6s infinite; }
.fx.is-ready .fx__ghost--m { animation: fx-ghost-m 9s steps(1, end) 1.6s infinite; }

@keyframes fx-tear1 {
  0%, 55%  { visibility: hidden;  transform: translateX(-50%); }
  55.01%   { visibility: visible; transform: translateX(calc(-50% + 2.6%)); }
  56.4%    { transform: translateX(calc(-50% - 1.4%)); }
  57.6%    { transform: translateX(calc(-50% + .8%)); }
  59%, 100% { visibility: hidden; transform: translateX(-50%); }
}
@keyframes fx-tear2 {
  0%, 55.4% { visibility: hidden;  transform: translateX(-50%); }
  55.41%    { visibility: visible; transform: translateX(calc(-50% - 3.2%)); }
  56.8%     { transform: translateX(calc(-50% + 1.6%)); }
  58.2%     { transform: translateX(calc(-50% - .6%)); }
  59%, 100% { visibility: hidden; transform: translateX(-50%); }
}
@keyframes fx-tear3 {
  0%, 56%   { visibility: hidden;  transform: translateX(-50%); }
  56.01%    { visibility: visible; transform: translateX(calc(-50% + 1.8%)); }
  57.4%     { transform: translateX(calc(-50% - 2.4%)); }
  59%, 100% { visibility: hidden; transform: translateX(-50%); }
}
@keyframes fx-ghost-c {
  0%, 55.6% { visibility: hidden;  transform: translateX(-50%); }
  55.61%    { visibility: visible; transform: translateX(calc(-50% - .7%)); }
  57.6%, 100% { visibility: hidden; transform: translateX(-50%); }
}
@keyframes fx-ghost-m {
  0%, 55.6% { visibility: hidden;  transform: translateX(-50%); }
  55.61%    { visibility: visible; transform: translateX(calc(-50% + .7%)); }
  57.6%, 100% { visibility: hidden; transform: translateX(-50%); }
}
/* (translate % on these copies is of their OWN width, 2.0185x the poster:
   2.6% = ~5% of the poster width, the biggest slip) */

/* glint: a soft diagonal light band, masked to the bright chrome only */
.fx__glint {
  position: absolute;
  inset: 0;
  overflow: hidden;
  mix-blend-mode: screen;
  -webkit-mask: url("/assets/images/glint-mask.webp?v=20261117-4") 0 0 / 100% 100% no-repeat;
          mask: url("/assets/images/glint-mask.webp?v=20261117-4") 0 0 / 100% 100% no-repeat;
}
.fx__glint::before {
  content: "";
  position: absolute;
  top: -10%;
  bottom: -10%;
  left: 0;
  width: 38%;
  background: linear-gradient(105deg,
    rgba(225,242,255,0) 0%,
    rgba(225,242,255,.18) 30%,
    rgba(240,248,255,.85) 50%,
    rgba(225,242,255,.18) 70%,
    rgba(225,242,255,0) 100%);
  transform: translateX(-110%) skewX(-12deg);
  visibility: hidden;
}
.fx.is-ready .fx__glint::before { animation: fx-glint 9s cubic-bezier(.45,.05,.35,1) 1.6s infinite; }
@keyframes fx-glint {
  0%        { transform: translateX(-110%) skewX(-12deg); visibility: visible; }
  17%       { transform: translateX(290%)  skewX(-12deg); visibility: visible; }
  17.01%, 100% { transform: translateX(290%) skewX(-12deg); visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .fx { display: none; }
}

/* Multi-vendor ticket buttons (gensale, 20 Nov 2026): equal stacked buttons. */
.tickets { display: grid; gap: 10px; }
.tickets .btn { width: 100%; }
