/* fans.css: the fan list components on the public site (deploy65, 2026-11-27). includes/fan-signup.php.
   Tour dates band, show page band, homepage VIP block, footer form, pop-up. Brand: dark #0B0B0D, gold #F5B800,
   red #E8391C, Exo 2 display, DM Sans body, Permanent Marker for Wes's handwriting.
   Success = the form card flips into a playing card with your city written on it. Reduced motion: a plain fade. */

.fan-band, .fan-foot, .fan-pop {
  --fan-ink: #0B0B0D; --fan-s1: #14161B; --fan-s2: #1B1E25; --fan-line: #2A2C31; --fan-line2: #3A3E47;
  --fan-paper: #F2F0EB; --fan-warm: #F5F5F2; --fan-mid: #B9BDC7; --fan-gold: #F5B800; --fan-gold-dk: #C99400;
  --fan-red: #E8391C; --fan-err: #FF8A7A;
  color: var(--fan-warm); font-family: "DM Sans", sans-serif;
}
.fan-band *, .fan-foot *, .fan-pop * { box-sizing: border-box; }

/* ---------- Band (tour dates, show page, homepage) ---------- */
.fan-band { position: relative; background: var(--fan-ink); padding: clamp(56px, 8vw, 104px) 0; overflow: clip; isolation: isolate; }
.fan-band::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 70% at 85% 40%, rgba(245,184,0,.13), transparent 70%),
              radial-gradient(40% 60% at 8% 90%, rgba(232,57,28,.10), transparent 70%); }
.fan-band::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(245,184,0,.35), transparent); }
.fan-wrap { width: min(1180px, 100% - 2 * max(16px, env(safe-area-inset-left))); margin: 0 auto; }
.fan-band-in { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .fan-band-in { grid-template-columns: minmax(0, 1fr) minmax(0, 540px); gap: 64px; } }

.fan-eyebrow { font-family: "Permanent Marker", cursive; font-weight: 400; color: var(--fan-gold); font-size: 21px; line-height: 1.2;
  margin: 0 0 10px; transform: rotate(-2deg); transform-origin: left center; display: inline-block; }
.fan-h { font-family: "Exo 2", sans-serif; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; line-height: .98;
  font-size: clamp(32px, 4.6vw, 56px); color: var(--fan-paper); margin: 0 0 18px; text-wrap: balance; }
.fan-p { font-size: 18px; line-height: 1.55; color: var(--fan-mid); margin: 0; max-width: 34em; text-wrap: pretty; }
/* "No velvet rope": two brass posts, the rope unhooked and dropped on the floor (inline SVG in fan-signup.php). */
.fan-rope { display: block; width: 176px; height: auto; margin-top: 28px; }
@media (max-width: 899px) { .fan-rope { width: 132px; margin-top: 20px; } }

/* ---------- The flip card ---------- */
.fan-flip { display: grid; perspective: 1800px; position: relative; align-items: start; }
/* Only the face that is showing sizes the card: before the flip the back face sits on top of the form, out of the
   flow (no empty space under a short form); after it fans.js takes the form out of the flow and eases the height
   down to the back face (no 400 px of dark space under the reveal on phones). */
.fan-flip:not(.is-flipped) .fan-face--back { position: absolute; inset: 0; overflow: hidden; }
.fan-flip.is-solo .fan-face--front { position: absolute; inset: 0 0 auto; }
.fan-flip.is-sizing { transition: height .45s cubic-bezier(.3, .7, .2, 1) .3s; }
.fan-flip.is-settled .fan-face--front { display: none; }
.fan-face { grid-area: 1 / 1; min-width: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transition: transform .85s cubic-bezier(.2, .75, .2, 1), opacity .3s, visibility 0s linear .42s; }
/* The face turned away is also hidden half-way through the turn (belt and braces with backface-visibility). */
.fan-face--back, .fan-flip.is-flipped .fan-face--front { visibility: hidden; }
.fan-flip.is-flipped .fan-face--back { visibility: visible; }
.fan-face--front { position: relative; background: var(--fan-s1); border: 1px solid var(--fan-line); border-radius: 24px;
  padding: 40px 24px 34px; box-shadow: 0 24px 80px rgba(0,0,0,.35); container-type: inline-size; }
.fan-face--front::before, .fan-face--front::after { content: "\2660"; position: absolute; color: var(--fan-gold); opacity: .55;
  font: 400 18px/1 "DM Sans", sans-serif; pointer-events: none; }
.fan-face--front::before { top: 14px; left: 16px; }
.fan-face--front::after { bottom: 14px; right: 16px; transform: rotate(180deg); }
.fan-face--front::before, .fan-face--front::after { content: none; }   /* Dec 4, 2026 (Matthieu): no spade corners on any fan form */
.fan-pip { display: none !important; }   /* Dec 4, 2026: no ace of hearts corners on the "thanks" card either */
.fan-face--back { transform: rotateY(180deg); display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; text-align: center; padding: 20px 8px; position: relative; }
.fan-flip.is-flipped .fan-face--front { transform: rotateY(-180deg); }
.fan-flip.is-flipped .fan-face--back { transform: rotateY(0deg); }
/* Once the card has turned, no 3D transform stays on the page (fans.js adds is-settled). */
.fan-flip.is-settled .fan-face { transform: none; transition: none; }

.fan-card { position: relative; width: min(230px, 62vw); aspect-ratio: 5 / 7; background: var(--fan-paper); color: var(--fan-ink);
  border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.45), inset 0 0 0 6px var(--fan-paper), inset 0 0 0 7px rgba(232,57,28,.35);
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 26px 18px; transform: rotate(-3deg); }
.fan-pip { position: absolute; font: 800 20px/1 "Exo 2", sans-serif; color: var(--fan-red); display: flex; flex-direction: column; align-items: center; }
.fan-pip i { font-style: normal; font-size: 18px; }
.fan-pip--tl { top: 14px; left: 14px; }
.fan-pip--br { bottom: 14px; right: 14px; transform: rotate(180deg); }
.fan-card-city { font-family: "Permanent Marker", cursive; font-size: clamp(24px, 7cqi, 34px); line-height: 1.1; color: #1a1a1f;
  text-align: center; overflow-wrap: anywhere; transform: rotate(-4deg); }
.fan-card-sub { margin-top: 12px; font: 600 12px/1.3 "DM Sans", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #5b5f69; }
.fan-done { max-width: 30em; }
.fan-done-h { font: 900 clamp(26px, 3.4vw, 34px)/1 "Exo 2", sans-serif; text-transform: uppercase; color: var(--fan-paper); margin: 0 0 10px; }
.fan-done-h:focus { outline: none; }
.fan-done-h:focus-visible { outline: 3px solid var(--fan-gold); outline-offset: 4px; border-radius: 4px; }
.fan-done-p { font-size: 18px; line-height: 1.5; color: var(--fan-warm); margin: 0; }
.fan-done-note { font-size: 15px; color: var(--fan-mid); margin: 8px 0 0; }
.fan-done .fan-btn { margin-top: 18px; }

/* Sparkle burst behind the card on the reveal */
.fan-spark { position: absolute; left: 50%; top: 38%; width: 0; height: 0; pointer-events: none; }
.fan-spark i { position: absolute; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--fan-gold); opacity: 0; }
.fan-spark i:nth-child(3n) { background: var(--fan-red); width: 6px; height: 6px; }
.fan-spark i:nth-child(4n) { background: #fff; width: 5px; height: 5px; }
.fan-flip.is-flipped .fan-spark i { animation: fan-spark 1s .55s cubic-bezier(.15, .7, .3, 1) both; }
.fan-spark i:nth-child(1) { --x: -150px; --y: -90px; } .fan-spark i:nth-child(2) { --x: 140px; --y: -110px; }
.fan-spark i:nth-child(3) { --x: -170px; --y: 40px; }  .fan-spark i:nth-child(4) { --x: 165px; --y: 30px; }
.fan-spark i:nth-child(5) { --x: -70px; --y: -160px; } .fan-spark i:nth-child(6) { --x: 80px; --y: -170px; }
.fan-spark i:nth-child(7) { --x: -120px; --y: 120px; } .fan-spark i:nth-child(8) { --x: 120px; --y: 125px; }
@keyframes fan-spark { 0% { opacity: 0; transform: translate(0, 0) scale(.4); } 25% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(1.1); } }

/* ---------- Form ---------- */
.fan-form { margin: 0; }
.fan-fields { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@container (min-width: 440px) {
  .fan-form:not(.fan-form--compact) .fan-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .fan-form:not(.fan-form--compact) .fan-field--place { grid-column: 1 / -1; }
}
.fan-field { display: flex; flex-direction: column; min-width: 0; }
.fan-field label { font: 600 14px/1.3 "DM Sans", sans-serif; color: var(--fan-warm); margin: 0 0 6px; }
.fan-field input { width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--fan-line2);
  background: var(--fan-ink); color: #fff; font: 400 17px/1.3 "DM Sans", sans-serif; transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none; }
.fan-field input::placeholder { color: #8A90A0; opacity: 1; }
.fan-field input:hover { border-color: #545a66; }
.fan-field input:focus { outline: none; border-color: var(--fan-gold); box-shadow: 0 0 0 3px rgba(245,184,0,.28); }
.fan-field input[aria-invalid="true"] { border-color: var(--fan-err); }
.fan-help { font-size: 14px; color: var(--fan-mid); margin-top: 6px; }
.fan-err { font-size: 14px; line-height: 1.35; color: var(--fan-err); font-weight: 600; }
.fan-err:not(:empty) { margin-top: 6px; }
.fan-mobile { margin-top: 14px; }
.fan-sms { margin-top: 12px; padding: 14px 14px 12px; border-radius: 14px; background: var(--fan-s2); border: 1px dashed var(--fan-line2); }
.fan-sms-joke { font-family: "Permanent Marker", cursive; color: var(--fan-gold); font-size: 16px; line-height: 1.3; margin: 0 0 10px; }
.fan-check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 14px; line-height: 1.45; color: var(--fan-warm); min-height: 44px; }
.fan-check input { flex: 0 0 auto; width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--fan-gold); cursor: pointer; }
.fan-sms-legal { font-size: 13px; line-height: 1.4; color: var(--fan-mid); margin: 4px 0 0 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; }
.fan-sms-legal a, .fan-consent a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.fan-sms-legal a { display: inline-flex; align-items: center; min-height: 44px; }
.fan-sms-legal a:focus-visible, .fan-consent a:focus-visible { outline: 3px solid #fff; outline-offset: 2px; border-radius: 2px; }
.fan-sms-note { font-size: 14px; color: var(--fan-mid); margin: 8px 0 0 36px; }
.fan-submit-row { margin-top: 18px; display: grid; gap: 12px; }
.fan-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px; width: 100%;
  border-radius: 18px; border: 1px solid var(--fan-gold); background: var(--fan-gold); color: var(--fan-ink); cursor: pointer;
  font: 700 13px/1.2 "DM Sans", sans-serif; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap;
  transition: transform .2s, background .2s, border-color .2s; }
.fan-btn:hover { background: var(--fan-gold-dk); border-color: var(--fan-gold-dk); transform: translateY(-1px); }
.fan-btn:focus-visible, .fan-more:focus-visible, .fan-later:focus-visible, .fan-x:focus-visible, .fan-check input:focus-visible {
  outline: 3px solid #fff; outline-offset: 3px; }
.fan-btn[aria-busy="true"] { opacity: .8; cursor: progress; transform: none; }
.fan-btn--dark { width: auto; background: transparent; color: var(--fan-warm); border-color: rgba(245,245,242,.3); }
.fan-btn--dark:hover { background: rgba(255,255,255,.06); border-color: var(--fan-gold); color: var(--fan-gold); }
.fan-consent { font-size: 13px; line-height: 1.5; color: var(--fan-mid); margin: 0; }
.fan-status { margin: 12px 0 0; font-size: 15px; font-weight: 600; color: var(--fan-err); }
.fan-status:empty { display: none; }
.fan-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
[data-fan] [hidden] { display: none !important; }

/* ---------- Footer compact ---------- */
.fan-foot { border-bottom: 1px solid var(--fan-line); margin: -8px 0 32px; padding: 8px 0 32px; }
.fan-foot-in { width: min(1200px, 100% - 2 * max(16px, env(safe-area-inset-left))); margin: 0 auto; display: grid; gap: 20px; align-items: center; text-align: left; }
@media (min-width: 980px) { .fan-foot-in { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; } }
.fan-foot .fan-eyebrow { font-size: 18px; margin-bottom: 6px; }
.fan-h--foot { font-size: clamp(22px, 2.6vw, 30px); margin: 0 0 8px; }
.fan-foot .fan-p { font-size: 16px; }
.fan-foot .fan-face--front { background: transparent; border: 0; box-shadow: none; padding: 0; }
.fan-foot .fan-face--front::before, .fan-foot .fan-face--front::after { content: none; }
.fan-form--compact .fan-fields { grid-template-columns: minmax(0, 1fr); }
@container (min-width: 560px) {
  .fan-form--compact .fan-fields { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: start; }
  .fan-form--compact .fan-fields .fan-submit-row--compact { margin-top: calc(14px * 1.3 + 6px); }   /* level with the inputs, under the labels */
}
.fan-submit-row--compact { margin: 0; }
.fan-form--compact .fan-btn { min-height: 52px; }
.fan-form--compact .fan-submit-row { margin-top: 10px; }
.fan-more { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--fan-gold); font: 600 15px/1.3 "DM Sans", sans-serif; text-decoration: underline; text-underline-offset: 3px; }
.fan-foot .fan-face--back { flex-direction: row; justify-content: flex-start; text-align: left; padding: 4px 0; gap: 20px; align-self: start; }
/* The footer reveal is a fade + the card dealt in (2D), not the 3D turn: phone browsers widened the page under it. */
.fan-foot .fan-face, .fan-foot .fan-flip.is-flipped .fan-face--front, .fan-foot .fan-flip.is-flipped .fan-face--back {
  transform: none; transition: opacity .35s ease, visibility 0s linear .2s; }
.fan-foot .fan-face--back, .fan-foot .fan-flip.is-flipped .fan-face--front { opacity: 0; }
.fan-foot .fan-flip.is-flipped .fan-face--back { opacity: 1; }
.fan-foot .fan-card { width: 74px; padding: 8px; border-radius: 9px; transform: rotate(-6deg); flex: 0 0 auto; }
.fan-foot .fan-flip.is-flipped .fan-card { animation: fan-deal .6s .15s cubic-bezier(.2, .8, .2, 1.2) both; }
@keyframes fan-deal { from { opacity: 0; transform: translateY(-14px) rotate(-30deg) scale(.6); } to { opacity: 1; transform: rotate(-6deg); } }
.fan-foot .fan-card-city { font-size: 13px; }
.fan-foot .fan-card-sub, .fan-foot .fan-pip { display: none; }
.fan-foot .fan-done-h { font-size: 22px; }
.fan-foot .fan-done-p { font-size: 16px; }
.fan-foot .fan-spark { left: 37px; top: 50%; }

/* ---------- Pop-up ---------- */
.fan-pop { padding: 0; border: 0; margin: auto; background: transparent; width: min(560px, 100vw - 24px); max-width: none;
  max-height: calc(100dvh - 24px); overflow: visible; color: var(--fan-warm); }
.fan-pop::backdrop { background: rgba(5,5,7,.74); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.fan-pop[open] { animation: fan-pop-in .38s cubic-bezier(.2, .8, .2, 1); }
.fan-pop[open]::backdrop { animation: fan-fade .3s ease-out; }
@keyframes fan-pop-in { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes fan-fade { from { opacity: 0; } to { opacity: 1; } }
.fan-pop-box { position: relative; max-height: calc(100dvh - 24px); overflow: auto; overscroll-behavior: contain; background: var(--fan-s1);
  border: 1px solid rgba(245,184,0,.35); border-radius: 26px; padding: 30px 24px 14px; box-shadow: 0 30px 100px rgba(0,0,0,.6); }
.fan-pop-box::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(70% 50% at 100% 0%, rgba(245,184,0,.14), transparent 70%); }
.fan-x { position: absolute; top: 10px; right: 10px; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; border: 0; background: rgba(255,255,255,.06); color: var(--fan-warm); cursor: pointer; }
.fan-x:hover { background: rgba(255,255,255,.12); color: #fff; }
.fan-copy--pop { padding-right: 36px; margin-bottom: 18px; position: relative; }
.fan-h--pop { font-size: clamp(26px, 6.4vw, 36px); margin-bottom: 10px; }
.fan-h--pop:focus { outline: none; }   /* focus lands on the title when the pop-up opens (tabindex -1, not a control) */
.fan-pop .fan-p { font-size: 16px; }
.fan-pop .fan-face--front { background: transparent; border: 0; box-shadow: none; padding: 0; }
.fan-pop .fan-face--front::before, .fan-pop .fan-face--front::after { content: none; }
.fan-pop .fan-card { width: min(190px, 52vw); }
.fan-later { display: flex; margin: 6px auto 0; min-height: 44px; align-items: center; padding: 0 12px; border: 0; background: none; cursor: pointer;
  color: var(--fan-mid); font: 600 15px/1.3 "DM Sans", sans-serif; text-decoration: underline; text-underline-offset: 3px; }
.fan-later:hover { color: var(--fan-warm); }
.fan-pop.is-done .fan-later, .fan-pop.is-done .fan-copy--pop { display: none; }
html.fan-pop-open { overflow: hidden; }

/* ---------- Phones ---------- */
@media (max-width: 640px) {
  .fan-face--front { padding: 40px 16px 34px; border-radius: 20px; }
  .fan-face--front::before { top: 13px; left: 14px; }
  .fan-face--front::after { bottom: 11px; right: 14px; }
  .fan-p { font-size: 17px; }
  .fan-pop-box { padding: 26px 16px 10px; border-radius: 22px; }
}

/* ---------- Reduced motion: no flip, no burst, no slide ---------- */
@media (prefers-reduced-motion: reduce) {
  .fan-face { transition: opacity .2s; transform: none !important; }
  .fan-face--back { opacity: 0; visibility: hidden; }
  .fan-flip.is-flipped .fan-face--front { opacity: 0; visibility: hidden; }
  .fan-flip.is-flipped .fan-face--back { opacity: 1; visibility: visible; }
  .fan-spark { display: none; }
  .fan-foot .fan-flip.is-flipped .fan-card { animation: none; }
  .fan-pop[open], .fan-pop[open]::backdrop { animation: none; }
  .fan-btn, .fan-btn:hover { transition: none; transform: none; }
}
