/* Billets de concert : pass sur le podium + scène d'ouverture plein écran */
:root {
  --tko-teal: #14b8a6;
  --tko-night: #07091a;
}

/* ── Pass sur le podium ─────────────────────────────────────── */
.tko-podium-pass {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 420px;
  margin: 12px auto 0;
  padding: 10px 14px;
  border-radius: 14px;
  background: #13203f;
  border: 1.5px solid var(--tko-teal);
  box-shadow: 0 0 24px rgba(20, 184, 166, 0.25);
  animation: tkoPassIn 0.5s cubic-bezier(0.2, 1.3, 0.3, 1) both, tkoPassGlow 2s ease-in-out 0.5s infinite;
  font-family: Inter, system-ui, sans-serif;
  color: #eef1ff;
}
.tko-podium-pass:focus-visible { outline: 2px solid var(--tko-teal); outline-offset: 3px; }
/* La page de jeu a une règle « button » globale (lueur blanche, fond bleu au survol) */
.tko-podium-pass:hover { background: #13203f; transform: translateY(-1px); }
.tko-podium-pass .tko-mini {
  position: relative;
  flex: 0 0 auto;
  width: 38px;
  height: 50px;
  border-radius: 7px;
  background: #1d2a52;
  border: 1.5px solid var(--tko-teal);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #99f6e4;
}
.tko-podium-pass .tko-mini i {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f43f5e;
  color: #fff;
  font-style: normal;
  font-size: 11px;
  display: grid;
  place-items: center;
}
.tko-podium-pass b { display: block; font-size: 15px; font-weight: 700; }
.tko-podium-pass small { display: block; font-size: 12px; color: #99f6e4; }
@keyframes tkoPassIn { from { opacity: 0; transform: translateY(10px) scale(0.95); } to { opacity: 1; transform: none; } }
@keyframes tkoPassGlow { 0%, 100% { box-shadow: 0 0 18px rgba(20, 184, 166, 0.2); } 50% { box-shadow: 0 0 34px rgba(20, 184, 166, 0.5); } }

/* ── Pastille 🎟️ en jeu (à droite d'Auto Focus) ─────────────── */
.tko-drop {
  display: inline-flex;
  align-items: center;
  height: 26px;
  margin-left: 8px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--tko-teal);
  background: rgba(20, 184, 166, 0.12);
  color: #99f6e4;
  font: 700 12px Inter, system-ui, sans-serif;
  letter-spacing: 0.02em;
  cursor: default;
  user-select: none;
}
.tko-drop.is-pop {
  animation: tkoDropPop 0.6s cubic-bezier(0.2, 1.4, 0.3, 1);
}
@keyframes tkoDropPop {
  0% { transform: scale(0.6); opacity: 0; }
  50% { transform: scale(1.18); opacity: 1; }
  100% { transform: scale(1); }
}

/* ── Scène plein écran ─────────────────────────────────────── */
#tko {
  --night: #07091a;
  --stage: #10142c;
  --ink: #eef1ff;
  --mute: #8d94b3;
  --teal: #14b8a6;
  --display: 'Anton', 'Impact', 'Arial Narrow', sans-serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;
  --ui: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  position: fixed;
  inset: 0;
  z-index: 200000;
  background: var(--night);
  color: var(--ink);
  font-family: var(--body);
  overflow: hidden;
  animation: tkoFadeIn 0.35s ease both;
}
#tko * { box-sizing: border-box; }
/* Annule la règle « button » globale de la page de jeu (game.css) : lueur blanche
   autour du texte, marge de 30 px, taille 140×57, police et fond bleu au survol */
#tko button {
  text-shadow: none;
  margin: 0;
  width: auto;
  height: auto;
  font-family: var(--body);
  font-size: 14px;
  font-weight: normal;
  line-height: normal;
  box-shadow: none;
}
#tko button:hover { background-color: transparent; }
#tko .btn:hover { background-color: var(--teal); }
#tko .btn.ghost:hover { background-color: rgba(7, 9, 26, 0.88); }
#tko .scene {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}
#tko .scene::before {
  content: '';
  position: absolute;
  inset: -20% -40% 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 40% 55% at 50% 38%, rgba(20, 184, 166, 0.16), transparent 70%),
    radial-gradient(ellipse 30% 60% at 18% 0%, rgba(167, 139, 250, 0.13), transparent 70%),
    radial-gradient(ellipse 30% 60% at 82% 0%, rgba(244, 114, 182, 0.12), transparent 70%),
    linear-gradient(180deg, var(--night), var(--stage) 70%, var(--night));
}
#tko .floor {
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: 0;
  height: 32%;
  z-index: -1;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 60px),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.55));
  transform: perspective(400px) rotateX(55deg);
  transform-origin: bottom;
}
#tko .scene.dim::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 5;
  background: radial-gradient(circle at 50% 50%, transparent 20%, rgba(0, 0, 0, 0.55));
  pointer-events: none;
  animation: tkoFadeIn 0.6s ease both;
}
#tko canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 30; pointer-events: none; }
#tko .top {
  position: absolute;
  top: max(14px, env(safe-area-inset-top, 0px));
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--ui);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  z-index: 40;
}
#tko .hint {
  position: absolute;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  left: 16px;
  right: 16px;
  margin: 0;
  text-align: center;
  font-family: var(--ui);
  font-size: 14px;
  color: var(--mute);
  z-index: 40;
  transition: opacity 0.3s;
}
#tko .controls {
  position: absolute;
  bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 40;
}
#tko .controls[hidden] { display: none; }
#tko .btn {
  font-family: var(--ui);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: #04120f;
  background: var(--teal);
  border: 0;
  border-radius: 12px;
  padding: 12px 22px;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 10px 30px rgba(20, 184, 166, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}
#tko .btn:hover { transform: translateY(-1px); }
#tko .btn.ghost { background: rgba(7, 9, 26, 0.88); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
#tko .btn[hidden] { display: none; }
#tko .btn:focus-visible, #tko .ticket:focus-visible, #tko .pack:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }

/* Le pass */
#tko .pack {
  position: relative;
  width: 220px;
  height: 300px;
  cursor: pointer;
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  transform-style: preserve-3d;
  animation: tkoFloat 3.2s ease-in-out infinite;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.6));
}
#tko .pack[hidden] { display: none; }
#tko .pack .face {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.18), transparent 45%),
    linear-gradient(155deg, #1d2a52 0%, #131a38 45%, #0b1026 100%);
  box-shadow: inset 0 0 0 2px rgba(20, 184, 166, 0.7), inset 0 0 40px rgba(20, 184, 166, 0.25);
}
#tko .pack .face::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 6px, transparent 6px 14px);
}
#tko .pack .shine {
  position: absolute;
  inset: -50%;
  background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%);
  animation: tkoSweep 2.6s ease-in-out infinite;
}
#tko .pack .seal {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 112px;
  height: 112px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #5eead4, #0f766e 60%, #064e47);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12), 0 0 40px rgba(45, 212, 191, 0.6);
  display: grid;
  place-items: center;
  text-align: center;
}
#tko .pack .seal b { font-family: var(--display); font-size: 30px; letter-spacing: 0.04em; line-height: 0.9; color: #f0fdfa; font-weight: 400; }
#tko .pack .seal small { display: block; font-family: var(--ui); font-size: 10px; letter-spacing: 0.2em; color: #ccfbf1; margin-top: 4px; }
#tko .pack .label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  text-align: center;
  font-family: var(--ui);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: #99f6e4;
  text-transform: uppercase;
}
#tko .pack .label.t { top: 20px; bottom: auto; font-family: var(--display); font-size: 22px; letter-spacing: 0.12em; color: #fff; }
#tko .pack .count {
  position: absolute;
  right: -10px;
  top: -10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f43f5e;
  color: #fff;
  font-family: var(--ui);
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 3px var(--night), 0 6px 18px rgba(244, 63, 94, 0.5);
}
#tko .pack.charging { animation: tkoShake 0.09s linear infinite; }
#tko .pack.charging .face { box-shadow: inset 0 0 0 2px #5eead4, inset 0 0 80px rgba(94, 234, 212, 0.7), 0 0 80px rgba(94, 234, 212, 0.7); }
#tko .pack.burst { animation: tkoBurst 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }

/* Les billets */
#tko .fan { position: absolute; inset: 0; pointer-events: none; z-index: 10; }
#tko .ticket {
  --c: #9aa6bd;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 300px;
  height: 128px;
  margin: -64px 0 0 -150px;
  perspective: 1200px;
  cursor: pointer;
  pointer-events: auto;
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  text-align: left;
  transition: transform 0.9s cubic-bezier(0.2, 1.1, 0.3, 1), opacity 0.4s;
  transform: translate(0, 0) scale(0.3) rotate(0deg);
  opacity: 0;
}
#tko .ticket .inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 0.75s cubic-bezier(0.3, 1.35, 0.5, 1); }
#tko .ticket.flipped .inner { transform: rotateY(180deg); }
#tko .ticket .side { position: absolute; inset: 0; border-radius: 14px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
#tko .ticket .back {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.035) 0 8px, transparent 8px 16px),
    linear-gradient(135deg, #1a2147, #0e1330);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
}
#tko .ticket .back span { font-family: var(--display); font-size: 26px; letter-spacing: 0.2em; color: rgba(255, 255, 255, 0.22); }
#tko .ticket .aura { position: absolute; inset: -14px; border-radius: 24px; z-index: -1; opacity: 0; background: var(--c); filter: blur(18px); transition: opacity 0.3s; }
#tko .ticket.ready:hover .aura, #tko .ticket.ready:focus-visible .aura { opacity: 0.55; }
/* Loge et Backstage : rien avant le survol (pas de spoil), puis lueur qui pulse au survol */
#tko .ticket.ready[data-tier='4']:hover .aura, #tko .ticket.ready[data-tier='3']:hover .aura, #tko .ticket.ready[data-tier='4']:focus-visible .aura, #tko .ticket.ready[data-tier='3']:focus-visible .aura { animation: tkoPulse 1.4s ease-in-out infinite; }
#tko .ticket.ready:hover { transform: var(--pos) translateY(-8px) scale(1.04) !important; }
#tko .ticket .front {
  transform: rotateY(180deg);
  display: flex;
  background: linear-gradient(105deg, color-mix(in srgb, var(--c) 22%, #121733), #121733 55%);
  box-shadow: inset 0 0 0 2px var(--c), 0 0 30px color-mix(in srgb, var(--c) 45%, transparent);
}
#tko .ticket .main { flex: 1; min-width: 0; padding: 12px 14px; position: relative; border-right: 2px dashed rgba(255, 255, 255, 0.22); display: flex; flex-direction: column; }
#tko .ticket .ev { font-family: var(--ui); font-size: 9px; letter-spacing: 0.18em; color: var(--c); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#tko .ticket .ti { font-family: var(--display); font-size: 24px; line-height: 1.05; letter-spacing: 0.01em; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#tko .ticket .ar { font-size: 12px; color: #c9cee6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#tko .ticket .meta { display: flex; gap: 14px; margin-top: auto; font-family: var(--ui); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
#tko .ticket .meta > span { white-space: nowrap; }
#tko .ticket .meta i { display: block; font-style: normal; font-size: 12px; letter-spacing: 0; color: var(--ink); font-variant-numeric: tabular-nums; }
#tko .ticket .vip {
  position: absolute; right: 10px; top: 10px; transform: rotate(-12deg);
  border: 2px solid #facc15; border-radius: 5px; padding: 0 6px;
  color: #facc15; font-family: var(--display); font-size: 14px; letter-spacing: 0.12em;
}
#tko .ticket .main:has(.vip) .ev { padding-right: 52px; }
#tko .ticket .main:has(.vip) .ti { padding-right: 48px; }
#tko .ticket .stub { width: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-align: center; }
#tko .ticket .stub b { font-family: var(--display); font-size: 14px; letter-spacing: 0.08em; line-height: 1.05; color: var(--c); font-weight: 400; }
#tko .ticket .stub small { font-family: var(--ui); font-size: 9px; letter-spacing: 0.1em; color: var(--mute); text-transform: uppercase; }
#tko .ticket .holo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.55) 45%, rgba(244, 114, 182, 0.5) 52%, rgba(56, 189, 248, 0.45) 58%, transparent 75%);
  background-size: 250% 100%;
}
#tko .ticket.flipped[data-tier='4'] .holo, #tko .ticket.flipped[data-tier='3'] .holo { opacity: 1; animation: tkoHolo 2.4s linear infinite; }
#tko .ticket.flipped[data-tier='2'] .holo { opacity: 0.5; animation: tkoHolo 3.2s linear infinite; }
#tko .ticket .punch { position: absolute; right: 70px; width: 14px; height: 14px; border-radius: 50%; background: var(--night); }
#tko .ticket .punch.a { top: -7px; }
#tko .ticket .punch.b { bottom: -7px; }
#tko .ticket.reveal-big { z-index: 25; }
#tko .ticket.reveal-big .inner { animation: tkoPop 0.9s cubic-bezier(0.2, 1.3, 0.3, 1); }

#tko .callout {
  position: absolute;
  left: 50%;
  top: 16%;
  transform: translateX(-50%) scale(0.6);
  opacity: 0;
  z-index: 35;
  font-family: var(--display);
  font-size: clamp(36px, 9vw, 84px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c, #fff);
  text-shadow: 0 0 30px var(--c, #fff), 0 4px 0 rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  pointer-events: none;
}
#tko .callout.show { animation: tkoCallout 1.6s cubic-bezier(0.2, 1.2, 0.3, 1) forwards; }
#tko .callout small { display: block; text-align: center; font-family: var(--ui); font-size: 14px; letter-spacing: 0.3em; color: var(--ink); text-shadow: none; margin-top: 6px; }
#tko .rays {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1400px;
  height: 1400px;
  margin: -700px 0 0 -700px;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--c, #fff) 40%, transparent) 0 6deg, transparent 6deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 0, transparent 60%);
  mask: radial-gradient(circle, #000 0, transparent 60%);
}
#tko .rays.on { animation: tkoRays 2.4s ease-out forwards; }
#tko .shake { animation: tkoScreenShake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97); }

@keyframes tkoFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes tkoFloat { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-12px) rotate(1.5deg); } }
@keyframes tkoSweep { 0% { transform: translateX(-60%); } 60%, 100% { transform: translateX(60%); } }
@keyframes tkoShake { 0% { transform: translate(1px, -1px) rotate(-1deg) scale(1.03); } 50% { transform: translate(-2px, 1px) rotate(1.2deg) scale(1.05); } 100% { transform: translate(1px, 1px) rotate(-0.6deg) scale(1.04); } }
@keyframes tkoBurst { 0% { transform: scale(1.06); opacity: 1; filter: brightness(2.2) drop-shadow(0 0 60px #5eead4); } 100% { transform: scale(1.8); opacity: 0; filter: brightness(3); } }
@keyframes tkoPulse { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.7; } }
@keyframes tkoHolo { from { background-position: 150% 0; } to { background-position: -150% 0; } }
@keyframes tkoPop { 0% { transform: rotateY(180deg) scale(1); } 35% { transform: rotateY(180deg) scale(1.22); } 100% { transform: rotateY(180deg) scale(1); } }
@keyframes tkoCallout { 0% { opacity: 0; transform: translateX(-50%) scale(0.6); } 18% { opacity: 1; transform: translateX(-50%) scale(1.08); } 30% { transform: translateX(-50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateX(-50%) scale(1.02) translateY(-10px); } }
@keyframes tkoRays { 0% { opacity: 0; transform: rotate(0deg) scale(0.6); } 20% { opacity: 0.9; } 100% { opacity: 0; transform: rotate(40deg) scale(1.1); } }
@keyframes tkoScreenShake { 10%, 90% { transform: translate(-2px, 1px); } 20%, 80% { transform: translate(4px, -2px); } 30%, 50%, 70% { transform: translate(-6px, 3px); } 40%, 60% { transform: translate(6px, -2px); } }

@media (max-width: 640px) {
  #tko .ticket { width: 250px; height: 110px; margin: -55px 0 0 -125px; }
  #tko .ticket .ti { font-size: 20px; }
  #tko .ticket .main { padding: 10px 12px; }
  #tko .ticket .meta { gap: 9px; letter-spacing: 0.04em; }
  #tko .ticket .stub { width: 64px; }
  #tko .ticket .stub b { font-size: 12px; letter-spacing: 0.03em; }
  #tko .ticket .punch { right: 57px; }
  #tko .pack { width: 180px; height: 246px; }
}
@media (prefers-reduced-motion: reduce) {
  #tko .pack, #tko .pack .shine, .tko-podium-pass { animation: none; }
  #tko .ticket, #tko .ticket .inner { transition-duration: 0.01s; }
  #tko .rays.on, #tko .callout.show, #tko .shake, #tko .ticket.reveal-big .inner { animation-duration: 0.01s; }
}

/* ── Ambiance de la scène (tickets-fx.js, page Billets) ─────────────── */
#tko .beams { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
#tko .beam { position: absolute; top: -12%; width: 46vmax; height: 140vh; transform-origin: 50% 0; opacity: .32;
  background: linear-gradient(180deg, color-mix(in srgb, var(--beam, #5eead4) 55%, transparent), transparent 75%);
  clip-path: polygon(47% 0, 53% 0, 100% 100%, 0 100%); filter: blur(4px); transition: opacity .4s; }
#tko .beam.l { left: -8%; --beam: #a78bfa; animation: tkoSweepL 6.5s ease-in-out infinite; }
#tko .beam.r { right: -8%; --beam: #f472b6; animation: tkoSweepR 7.5s ease-in-out infinite; }
#tko .beam.c { left: calc(50% - 23vmax); --beam: #5eead4; opacity: .2; animation: tkoSweepC 5s ease-in-out infinite; }
#tko.hype .beam { opacity: .6; animation-duration: 1.1s; }
#tko.rare .beam { opacity: .7; --beam: var(--rare, #fbbf24); }
#tko.rare .beam.l { animation: tkoAimL .5s ease-out forwards; }
#tko.rare .beam.r { animation: tkoAimR .5s ease-out forwards; }
@keyframes tkoSweepL { 0%,100% { transform: rotate(-28deg); } 50% { transform: rotate(6deg); } }
@keyframes tkoSweepR { 0%,100% { transform: rotate(28deg); } 50% { transform: rotate(-6deg); } }
@keyframes tkoSweepC { 0%,100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
@keyframes tkoAimL { to { transform: rotate(-14deg); } }
@keyframes tkoAimR { to { transform: rotate(14deg); } }
#tko .dust { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: 0; z-index: -1; pointer-events: none; animation: tkoDust linear infinite; }
@keyframes tkoDust { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .5; } 100% { transform: translateY(-110vh); opacity: 0; } }
#tko .halo { position: absolute; left: 50%; top: 50%; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; z-index: -1; pointer-events: none;
  background: radial-gradient(circle, rgba(94,234,212,.32), transparent 62%); animation: tkoHalo 2.4s ease-in-out infinite; transition: opacity .4s; }
#tko.hype .halo { animation-duration: .35s; background: radial-gradient(circle, rgba(94,234,212,.6), transparent 62%); }
#tko.dealt .halo { opacity: 0; }
@keyframes tkoHalo { 0%,100% { transform: scale(.9); opacity: .7; } 50% { transform: scale(1.08); opacity: 1; } }
#tko .flash { position: absolute; inset: 0; z-index: 29; pointer-events: none; opacity: 0; background: radial-gradient(circle, #fff, var(--rare, #fff) 60%, transparent); }
#tko .flash.on { animation: tkoFlash .7s ease-out; }
@keyframes tkoFlash { 0% { opacity: .85; } 100% { opacity: 0; } }
#tko .confetti { position: absolute; top: -20px; width: 8px; height: 14px; z-index: 31; pointer-events: none; border-radius: 2px; animation: tkoFall linear forwards; }
@keyframes tkoFall { to { transform: translateY(115vh) rotate(720deg); } }
#tko .ticket.out { animation: tkoLand .55s cubic-bezier(.2,1.6,.4,1); }
@keyframes tkoLand { 0% { filter: brightness(2.2); } 100% { filter: none; } }
/* Charge du pass : il grossit, brille de plus en plus, des fissures de lumière apparaissent */
#tko .pack { transition: scale .25s cubic-bezier(.3,1.6,.5,1), filter .25s; }
#tko .pack.c1 { scale: 1.06; } #tko .pack.c2 { scale: 1.12; filter: brightness(1.15) drop-shadow(0 30px 40px rgba(0,0,0,.6)); } #tko .pack.c3 { scale: 1.2; filter: brightness(1.35) drop-shadow(0 0 40px rgba(94,234,212,.8)); }
#tko .pack .cracks { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; overflow: visible; }
#tko .pack .ck { fill: none; stroke: #e6fffb; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1;
  filter: drop-shadow(0 0 2px #5eead4) drop-shadow(0 0 7px #5eead4); transition: stroke-dashoffset .2s ease-out; }
#tko .pack.c1 .ck.s1, #tko .pack.c2 .ck.s2, #tko .pack.c3 .ck.s3 { stroke-dashoffset: 0; }
#tko.hype .scene::after { content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none; background: radial-gradient(circle at 50% 50%, transparent 22%, rgba(0,0,0,.65)); animation: tkoFadeIn .5s ease both; }
/* Explosion : éclats du pass + onde de choc */
#tko .shard { position: absolute; z-index: 32; pointer-events: none; background: linear-gradient(155deg, #3a5296, #18214a 55%, #0b1026); }
#tko .shard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 40%, rgba(204,251,241,.7) 50%, transparent 60%); }
#tko .shock { position: absolute; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; border: 3px solid rgba(204,251,241,.95); opacity: 0; z-index: 31; pointer-events: none;
  box-shadow: 0 0 30px #5eead4, inset 0 0 30px #5eead4; }
#tko .shock.on { animation: tkoShock .75s cubic-bezier(.1,.6,.3,1) forwards; }
@keyframes tkoShock { 0% { transform: scale(.3); opacity: 1; } 100% { transform: scale(24); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { #tko .beam, #tko .dust, #tko .halo, #tko .shock.on { animation: none !important; } #tko .shard { display: none; } }

/* ✦ Moment chromatique dans la scène d'ouverture */
#tko .ticket .chroma-tag { font-style: normal; font-family: var(--ui); font-size: 8px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; color: var(--mute); opacity: 0; transition: opacity 0.4s 0.5s; }
#tko .ticket.chroma-on .chroma-tag { opacity: 1; background: linear-gradient(90deg, #ff5fd2, #ffc93d, #52ff9a, #4fd2ff, #a77bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* titre et artiste : la couleur coule de gauche à droite, puis défile */
#tko .ticket.chroma-on .ti,
#tko .ticket.chroma-on .ar {
  width: fit-content; max-width: 100%;
  background: linear-gradient(90deg, #ff5fd2, #ffc93d, #52ff9a, #4fd2ff, #a77bff, #ff5fd2) 0 0 / 0% 100% no-repeat, linear-gradient(#fff, #fff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: tkoChromaWipe 0.8s ease-out forwards;
}
#tko .ticket.chroma-on .ar { background: linear-gradient(90deg, #ff5fd2, #ffc93d, #52ff9a, #4fd2ff, #a77bff, #ff5fd2) 0 0 / 0% 100% no-repeat, linear-gradient(#c9cee6, #c9cee6); -webkit-background-clip: text; background-clip: text; animation-delay: 0.12s; }
@keyframes tkoChromaWipe { to { background-size: 160% 100%, 100% 100%; } }
#tko .ticket.chroma-loop .ti,
#tko .ticket.chroma-loop .ar {
  background: linear-gradient(90deg, #ff5fd2, #ffc93d, #52ff9a, #4fd2ff, #a77bff, #ff5fd2) 0 0 / 160% 100%;
  -webkit-background-clip: text; background-clip: text;
  animation: tkoChromaLoop 6s linear infinite;
}
@keyframes tkoChromaLoop { to { background-position: 266% 0; } }
/* reflet arc-en-ciel qui balaie le billet */
#tko .ticket .front::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 95, 210, 0.25) 42%, rgba(255, 255, 255, 0.45) 50%, rgba(79, 210, 255, 0.25) 58%, transparent 70%) -120% 0 / 250% 100% no-repeat; }
#tko .ticket.chroma-on .front::after { animation: tkoChromaSweep 0.9s ease-out; }
@keyframes tkoChromaSweep { 0% { opacity: 1; background-position: -120% 0; } 100% { opacity: 1; background-position: 220% 0; } }
/* tampon « ✦ CHROMATIQUE ! » */
#tko .ticket .chroma-stamp { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%) rotate(-6deg) scale(2.2); opacity: 0; pointer-events: none; z-index: 3;
  padding: 2px 10px; border-radius: 6px; border: 2px solid rgba(255, 255, 255, 0.85);
  font-family: var(--display); font-size: 15px; letter-spacing: 0.1em; white-space: nowrap;
  color: #fff; background: linear-gradient(90deg, #ff5fd2, #ffc93d, #52ff9a, #4fd2ff, #a77bff); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.35); }
#tko .ticket.chroma-on .chroma-stamp { animation: tkoChromaStamp 2.4s ease-out 0.25s forwards; }
@keyframes tkoChromaStamp {
  0% { opacity: 0; transform: translateX(-50%) rotate(-6deg) scale(2.2); }
  14% { opacity: 1; transform: translateX(-50%) rotate(-6deg) scale(0.92); }
  22% { transform: translateX(-50%) rotate(-6deg) scale(1); }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translateX(-50%) rotate(-6deg) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  #tko .ticket.chroma-on .ti, #tko .ticket.chroma-on .ar, #tko .ticket.chroma-loop .ti, #tko .ticket.chroma-loop .ar { animation: none; background-size: 160% 100%, 100% 100%; }
}

/* ── Vortex du billet Backstage (tickets-vortex.js) ─────────────────────── */
#tkv { position: fixed; inset: 0; z-index: 200100; overflow: hidden; color: #fff; font-family: Inter, system-ui, sans-serif;
  background: radial-gradient(circle at 50% 50%, #3a1d52 0%, #150b24 45%, #05040b 80%); animation: tkvIn 0.35s ease both; }
#tkv .tun { position: absolute; inset: 0; }
#tkv .f { position: absolute; left: 50%; top: 50%; width: 130vmin; height: 78vmin; border-radius: 10px; opacity: 0;
  border: 2px solid rgba(244, 114, 182, 0.75); box-shadow: 0 0 12px rgba(244, 114, 182, 0.45), inset 0 0 12px rgba(244, 114, 182, 0.25);
  transform: translate(-50%, -50%) scale(0.04); animation: tkvZoom 3.2s cubic-bezier(0.6, 0, 1, 0.6) infinite; animation-delay: calc(var(--i) * -0.2s); }
#tkv .f:nth-child(even) { border-color: rgba(167, 139, 250, 0.75); box-shadow: 0 0 12px rgba(167, 139, 250, 0.45), inset 0 0 12px rgba(167, 139, 250, 0.25); }
@keyframes tkvZoom { 0% { transform: translate(-50%, -50%) scale(0.04); opacity: 0; } 12% { opacity: 1; } 100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0.15; } }
#tkv.warp .f { animation-duration: 0.8s; border-color: #fff; box-shadow: 0 0 18px #f9a8d4, inset 0 0 18px #c4b5fd; }
#tkv.warp { background: radial-gradient(circle at 50% 50%, #fdf4ff 0%, #a78bfa 18%, #3a1d52 50%, #05040b 85%); transition: background 0.8s; }
#tkv canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#tkv .clue { position: absolute; left: 50%; top: 50%; z-index: 2; width: 86vw; text-align: center; opacity: 0; transform: translate(-50%, -50%); }
#tkv .clue small { display: block; font-size: 12px; font-weight: 800; letter-spacing: 0.45em; color: #e9d5ff; }
#tkv .clue .ico { display: block; margin: 8px 0 2px; font-size: 44px; filter: drop-shadow(0 0 14px rgba(244, 114, 182, 0.8)); }
#tkv .clue b { display: block; font: 400 clamp(34px, 8vw, 84px)/1 'Bebas Neue', Impact, 'Arial Black', sans-serif; letter-spacing: 0.03em; overflow-wrap: anywhere;
  text-shadow: 0 0 18px rgba(244, 114, 182, 0.7), 0 0 40px rgba(167, 139, 250, 0.5); }
#tkv .clue.in { animation: tkvClueIn 0.55s cubic-bezier(0.2, 0.8, 0.3, 1) forwards; }
#tkv .clue.out { animation: tkvClueOut 0.45s ease-in forwards; }
@keyframes tkvClueIn { from { opacity: 0; transform: translate(-50%, -50%) scale(0.25); filter: blur(8px); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: none; } }
@keyframes tkvClueOut { from { opacity: 1; transform: translate(-50%, -50%) scale(1); } to { opacity: 0; transform: translate(-50%, -50%) scale(3.4); filter: blur(10px); } }
#tkv .chips { position: absolute; left: 0; right: 0; bottom: 26px; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0 16px; }
#tkv .chips span { padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: rgba(10, 6, 20, 0.7); border: 1px solid rgba(244, 114, 182, 0.6);
  box-shadow: 0 0 12px rgba(244, 114, 182, 0.3); animation: tkvChip 0.35s ease-out both; max-width: 80vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes tkvChip { from { opacity: 0; transform: translateY(12px) scale(0.8); } }
#tkv .skip { position: absolute; top: 14px; right: 14px; z-index: 3; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(10, 6, 20, 0.6); color: #fff; font: 700 12.5px Inter, system-ui, sans-serif; cursor: pointer; }
#tkv .flash { position: absolute; inset: 0; z-index: 4; background: #fff; opacity: 0; pointer-events: none; }
#tkv .flash.on { animation: tkvFlash 0.4s ease-out forwards; }
@keyframes tkvFlash { to { opacity: 1; } }
#tkv.end { animation: tkvOut 0.6s ease forwards; }
@keyframes tkvIn { from { opacity: 0; } }
@keyframes tkvOut { to { opacity: 0; } }
/* « Tout retourner » : le dos du Backstage s'illumine un moment avant le retournement (comme au survol) */
#tko .ticket.ready.tease { transform: var(--pos) translateY(-8px) scale(1.04) !important; }
#tko .ticket.ready.tease .aura { opacity: 0.55; animation: tkoPulse 1.4s ease-in-out infinite; }
/* Backstage : le billet tremble avant le vortex (sur .inner : le transform du billet est pris par la position et le survol) */
#tko .ticket.shake .inner { animation: tkvShake 0.12s linear infinite; }
#tko .ticket.shake2 .inner { animation: tkvShake2 0.07s linear infinite; }
#tko .ticket.shake .aura { opacity: 0.8; animation: tkoPulse 0.45s ease-in-out infinite; }
@keyframes tkvShake { 0%, 100% { transform: translate(0, 0) rotate(0); } 25% { transform: translate(-2px, 1px) rotate(-1deg); } 50% { transform: translate(2px, -1px) rotate(1deg); } 75% { transform: translate(-1px, -2px) rotate(-0.5deg); } }
@keyframes tkvShake2 { 0%, 100% { transform: translate(0, 0) rotate(0) scale(1.03); } 25% { transform: translate(-5px, 3px) rotate(-2.5deg) scale(1.05); } 50% { transform: translate(5px, -3px) rotate(2.5deg) scale(1.03); } 75% { transform: translate(-3px, -4px) rotate(-1.5deg) scale(1.06); } }
#tkv.warp .tun { animation: tkvRumble 0.09s linear infinite; }
#tkv.warp2 .tun { animation-duration: 0.05s; }
#tkv.warp2 .f { animation-duration: 0.45s; }
@keyframes tkvRumble { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(-4px, 3px); } 66% { transform: translate(4px, -2px); } }

/* ── 🗿 Culte dans la scène d'ouverture ─────────────────────────────────── */
/* Gros ▶ rouge au centre du flash du vortex */
#tkv .tkv-play {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 50%;
  width: 150px;
  height: 104px;
  margin: -52px 0 0 -75px;
  border-radius: 28px;
  background: #ff1f1f;
  box-shadow: 0 0 0 10px rgba(255, 31, 31, 0.18), 0 18px 50px rgba(255, 31, 31, 0.55);
  animation: tkvPlay 0.45s cubic-bezier(0.2, 1.5, 0.4, 1) both;
}
#tkv .tkv-play::before {
  content: '';
  position: absolute;
  left: 58px;
  top: 28px;
  border-left: 44px solid #fff;
  border-top: 24px solid transparent;
  border-bottom: 24px solid transparent;
}
@keyframes tkvPlay { from { transform: scale(0.2); opacity: 0; } }
/* Face Culte (visible une fois retourné) : écran vidéo, légende de mème, barre de lecture.
   Le contour garde la couleur de la place (--c). */
#tko .ticket[data-culte] .front {
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.25) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse 80% 70% at 40% 45%, color-mix(in srgb, var(--c) 30%, #1b1b28), #0a0a12 80%);
}
#tko .ticket[data-culte] .ev { color: #ff4d4d; }
#tko .ticket[data-culte] .ev::before { content: '🗿 CULTE · '; }
#tko .ticket[data-culte] .ti {
  font-family: Impact, 'Anton', var(--display), sans-serif;
  color: #fff;
  -webkit-text-stroke: 1.5px #000;
  paint-order: stroke fill;
  text-shadow: 0 2px 0 #000;
}
#tko .ticket[data-culte] .main::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff1f1f 62%, rgba(255, 255, 255, 0.25) 62%);
}
@keyframes tkDropIn { from { transform: scale(.4); opacity: 0 } 60% { transform: scale(1.15) } }

/* ── 💎 Éternel (place 5) dans la scène d'ouverture ─────────────────────── */
/* Dos : rien avant le survol (pas de spoil). Au survol : halo holographique qui tourne,
   reflet irisé et éclats de diamant sur le dos, contour bleu diamant (bien plus fort que la Fosse). */
#tko .ticket[data-tier='5'] .aura { background: conic-gradient(from var(--tkoA, 0deg), #8fd3ff, #c4b5fd, #f9a8d4, #a5f3fc, #ffffff, #93c5fd, #8fd3ff); filter: blur(16px); }
#tko .ticket.ready[data-tier='5']:hover .aura, #tko .ticket.ready[data-tier='5']:focus-visible .aura, #tko .ticket.ready.tease[data-tier='5'] .aura, #tko .ticket.shake[data-tier='5'] .aura {
  opacity: 0.95; animation: tkoEtAura 2.2s linear infinite, tkoPulse 1.4s ease-in-out infinite; }
@keyframes tkoEtAura { to { transform: rotate(360deg); } }
#tko .ticket[data-tier='5'] .back::before,
#tko .ticket[data-tier='5'] .back::after { content: ''; position: absolute; inset: 0; border-radius: inherit; opacity: 0; transition: opacity 0.3s; pointer-events: none; }
#tko .ticket[data-tier='5'] .back::before {
  mix-blend-mode: screen;
  background:
    linear-gradient(105deg, transparent 25%, rgba(255, 255, 255, 0.55) 42%, transparent 55%) 0 0 / 250% 100%,
    linear-gradient(115deg, rgba(59, 130, 246, 0.55), rgba(139, 92, 246, 0.5) 25%, rgba(236, 72, 153, 0.45) 45%, rgba(34, 211, 238, 0.5) 65%, rgba(96, 165, 250, 0.55)) 0 0 / 300% 100%;
}
#tko .ticket[data-tier='5'] .back::after {
  background:
    radial-gradient(circle at 14% 26%, #fff 0 1.3px, transparent 2.2px), radial-gradient(circle at 38% 72%, #fff 0 1px, transparent 1.8px),
    radial-gradient(circle at 62% 20%, #fff 0 1.5px, transparent 2.4px), radial-gradient(circle at 80% 64%, #fff 0 1px, transparent 1.8px),
    radial-gradient(circle at 92% 30%, #fff 0 1.2px, transparent 2px), radial-gradient(circle at 50% 50%, #fff 0 0.9px, transparent 1.7px);
}
#tko .ticket.ready[data-tier='5']:hover .back::before, #tko .ticket.ready[data-tier='5']:focus-visible .back::before,
#tko .ticket.ready.tease[data-tier='5'] .back::before, #tko .ticket.shake[data-tier='5'] .back::before { opacity: 1; animation: tkoEtBack 2.4s linear infinite; }
#tko .ticket.ready[data-tier='5']:hover .back::after, #tko .ticket.ready[data-tier='5']:focus-visible .back::after,
#tko .ticket.ready.tease[data-tier='5'] .back::after, #tko .ticket.shake[data-tier='5'] .back::after { opacity: 1; animation: tkoEtTwinkle 0.9s ease-in-out infinite alternate; }
#tko .ticket.ready[data-tier='5']:hover .back, #tko .ticket.ready.tease[data-tier='5'] .back, #tko .ticket.shake[data-tier='5'] .back { box-shadow: inset 0 0 0 2px #e0f2ff, inset 0 0 26px rgba(143, 211, 255, 0.6); }
#tko .ticket.ready[data-tier='5']:hover .back span, #tko .ticket.ready.tease[data-tier='5'] .back span { color: rgba(255, 255, 255, 0.85); text-shadow: 0 0 12px #8fd3ff; }
@keyframes tkoEtBack { from { background-position: 150% 0, 0 0; } to { background-position: -150% 0, 100% 0; } }
@keyframes tkoEtTwinkle { from { opacity: 0.3; } to { opacity: 1; } }
/* Face : film holographique, écriture blanche gravée, talon argent bleuté */
#tko .ticket[data-tier='5'] .front {
  background:
    repeating-linear-gradient(98deg, rgba(255, 255, 255, 0) 0 12px, rgba(255, 255, 255, 0.22) 17px, rgba(255, 255, 255, 0) 23px, rgba(20, 30, 90, 0.18) 29px, rgba(255, 255, 255, 0) 34px),
    radial-gradient(ellipse 60% 80% at 70% 0%, rgba(255, 255, 255, 0.4), transparent 60%),
    linear-gradient(115deg, #1d3fa8, #3b82f6 14%, #8b5cf6 28%, #ec4899 40%, #60a5fa 52%, #22d3ee 64%, #a78bfa 78%, #2563eb 90%, #1d3fa8) 0 0 / 300% 100%;
  box-shadow: inset 0 0 0 2px #e0f2ff, 0 0 40px rgba(110, 195, 255, 0.75);
  animation: tkoEtHolo 10s ease-in-out infinite alternate;
}
@keyframes tkoEtHolo { to { background-position: 60px 0, 0 0, 100% 0; } }
#tko .ticket[data-tier='5'] .ev { color: #fff; text-shadow: 0 1px 2px rgba(10, 20, 70, 0.8); }
#tko .ticket[data-tier='5'] .ti { color: #fff; text-shadow: 0 1px 0 rgba(15, 25, 90, 0.85), 0 0 12px rgba(20, 40, 140, 0.55); }
#tko .ticket[data-tier='5'] .ar { color: #eef4ff; text-shadow: 0 1px 2px rgba(10, 20, 70, 0.9); }
#tko .ticket[data-tier='5'] .meta { color: rgba(235, 242, 255, 0.85); text-shadow: 0 1px 2px rgba(10, 20, 70, 0.8); }
#tko .ticket[data-tier='5'] .meta i { color: #fff; }
#tko .ticket[data-tier='5'] .main { border-right-color: rgba(11, 29, 74, 0.4); }
#tko .ticket[data-tier='5'] .stub { background: linear-gradient(160deg, #f5fbff, #cfe6ff 25%, #e6d9ff 45%, #c8f1ff 62%, #a9cdfb 80%, #8fb8f5); }
#tko .ticket[data-tier='5'] .stub b { color: #0b1d4a; }
#tko .ticket[data-tier='5'] .stub b::before { content: '💎'; display: block; font-size: 15px; margin-bottom: 2px; }
#tko .ticket[data-tier='5'] .stub small { color: rgba(11, 29, 74, 0.7); }
#tko .ticket[data-tier='5'] .chroma-tag { color: rgba(11, 29, 74, 0.6); }
#tko .ticket.flipped[data-tier='5'] .holo { opacity: 0.8; animation: tkoHolo 2.4s linear infinite; }
/* Éternel chromatique : « holo de nuit » (onyx irisé), l'arc-en-ciel de l'écriture ressort */
#tko .ticket[data-tier='5'][data-chroma] .front {
  background:
    repeating-linear-gradient(98deg, rgba(255, 255, 255, 0) 0 12px, rgba(160, 200, 255, 0.12) 17px, rgba(255, 255, 255, 0) 23px, rgba(255, 255, 255, 0) 34px),
    radial-gradient(ellipse 60% 80% at 70% 0%, rgba(143, 211, 255, 0.28), transparent 60%),
    linear-gradient(115deg, #050a1f, #0d1d55 16%, #2a0f55 32%, #4a0d3c 44%, #0b2a5c 58%, #063a4a 70%, #1c1250 84%, #050a1f) 0 0 / 300% 100%;
}
#tko .ticket[data-tier='5'][data-chroma] .ti, #tko .ticket[data-tier='5'][data-chroma] .ar { text-shadow: none; }
/* Bandeau : « ÉTERNEL » en lettres holographiques */
#tko .callout.et {
  background: linear-gradient(90deg, #8fd3ff, #c4b5fd, #f9a8d4, #a5f3fc, #ffffff, #8fd3ff) 0 0 / 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none; filter: drop-shadow(0 0 18px rgba(143, 211, 255, 0.9));
}
/* Vortex de l'Éternel : tunnel bleu diamant et irisé, diamant au flash */
#tkv.et { background: radial-gradient(circle at 50% 50%, #12306e 0%, #0a1638 45%, #02040b 80%); }
#tkv.et .f { border-color: rgba(143, 211, 255, 0.85); box-shadow: 0 0 12px rgba(143, 211, 255, 0.5), inset 0 0 12px rgba(143, 211, 255, 0.3); }
#tkv.et .f:nth-child(3n) { border-color: rgba(196, 181, 253, 0.8); box-shadow: 0 0 12px rgba(196, 181, 253, 0.45), inset 0 0 12px rgba(196, 181, 253, 0.25); }
#tkv.et .f:nth-child(3n + 1) { border-color: rgba(249, 168, 212, 0.7); box-shadow: 0 0 12px rgba(249, 168, 212, 0.4), inset 0 0 12px rgba(249, 168, 212, 0.2); }
#tkv.et.warp { background: radial-gradient(circle at 50% 50%, #ffffff 0%, #8fd3ff 18%, #12306e 50%, #02040b 85%); }
#tkv.et.warp .f { border-color: #fff; box-shadow: 0 0 18px #8fd3ff, inset 0 0 18px #c4b5fd; }
#tkv.et .clue small { color: #cfe6ff; }
#tkv.et .clue .ico { filter: drop-shadow(0 0 14px rgba(143, 211, 255, 0.9)); }
#tkv.et .clue b { text-shadow: 0 0 18px rgba(143, 211, 255, 0.8), 0 0 40px rgba(196, 181, 253, 0.5); }
#tkv.et .chips span { border-color: rgba(143, 211, 255, 0.7); box-shadow: 0 0 12px rgba(143, 211, 255, 0.35); }
#tkv .tkv-gem { position: absolute; z-index: 5; left: 50%; top: 50%; font-size: 120px; line-height: 1; font-style: normal; transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 30px #8fd3ff) drop-shadow(0 0 60px rgba(196, 181, 253, 0.8)); animation: tkvGem 0.7s cubic-bezier(0.2, 1.5, 0.4, 1) both; }
@keyframes tkvGem { from { transform: translate(-50%, -50%) scale(0.1) rotate(-30deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  #tko .ticket[data-tier='5'] .front, #tko .ticket[data-tier='5'] .aura, #tko .ticket[data-tier='5'] .back::before, #tko .ticket[data-tier='5'] .back::after { animation: none !important; }
}
/* 💎 Éternel : diamant à facettes qui tourne, se fissure, puis éclate (tickets-vortex.js) */
#tkv.crys .f { animation-duration: 6s; opacity: 0.35; }
#tkv .tkv-crys { position: absolute; z-index: 5; left: 50%; top: 50%; width: min(300px, 64vw); aspect-ratio: 200 / 180; transform: translate(-50%, -50%);
  animation: tkvCrysIn 0.9s cubic-bezier(0.2, 1.3, 0.3, 1) both; filter: drop-shadow(0 0 26px rgba(143, 211, 255, 0.9)) drop-shadow(0 0 60px rgba(196, 181, 253, 0.6)); }
#tkv .tkv-crys svg { width: 100%; height: 100%; overflow: visible; animation: tkvCrysFloat 2.6s ease-in-out infinite alternate; }
#tkv .tkv-crys polyline { fill: none; stroke-linejoin: round; stroke-linecap: round; }
/* facettes : chacune scintille à son rythme (la lumière semble tourner dans la pierre) */
#tkv .tkv-crys .fc { stroke: rgba(255, 255, 255, 0.55); stroke-width: 0.8; stroke-linejoin: round; animation: tkvFacet 1.8s ease-in-out infinite alternate; animation-delay: var(--d); }
#tkv .tkv-crys .fire { mix-blend-mode: screen; opacity: 0; animation: tkvFire 2.2s ease-in-out infinite; animation-delay: var(--d); }
#tkv .tkv-crys .sw { animation: tkvSweep 2.2s ease-in-out infinite; }
#tkv .tkv-crys .edge { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linejoin: round; }
#tkv .tkv-crys .edge.in { stroke-width: 1.4; stroke: rgba(255, 255, 255, 0.85); }
#tkv .tkv-crys .gl { fill: #fff; transform-box: fill-box; transform-origin: center; opacity: 0; filter: drop-shadow(0 0 4px #fff); animation: tkvGlint 1.9s ease-in-out infinite; animation-delay: var(--d); }
#tkv .tkv-crys .ck polyline { stroke: #fff; stroke-width: 3; stroke-dasharray: 200; stroke-dashoffset: 200; filter: drop-shadow(0 0 4px #fff); }
#tkv .tkv-crys.c1 .ck1 polyline, #tkv .tkv-crys.c2 .ck2 polyline { animation: tkvCrack 0.18s ease-out forwards; }
#tkv .tkv-crys.c1 { animation: tkvCrysHit 0.2s ease-out; }
#tkv .tkv-crys.c2 { animation: tkvCrysShake 0.06s linear infinite; }
#tkv .tkv-crys.boom { animation: tkvCrysBoom 0.25s ease-out forwards; }
#tkv .tkv-shard { position: absolute; z-index: 6; pointer-events: none; box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.9); }
@keyframes tkvCrysIn { from { transform: translate(-50%, -50%) scale(0.05) rotate(-40deg); opacity: 0; } }
@keyframes tkvCrysFloat { from { transform: translateY(-5px) rotate(-2deg); } to { transform: translateY(5px) rotate(2deg); } }
@keyframes tkvFacet { from { opacity: 0.55; } to { opacity: 1; } }
@keyframes tkvFire { 0%, 100% { opacity: 0; } 45% { opacity: 0.7; } }
@keyframes tkvSweep { from { transform: skewX(-18deg) translateX(0); } to { transform: skewX(-18deg) translateX(330px); } }
@keyframes tkvGlint { 0%, 100% { opacity: 0; transform: scale(0.2) rotate(0deg); } 40% { opacity: 1; transform: scale(1.1) rotate(45deg); } 60% { opacity: 0.6; transform: scale(0.7) rotate(70deg); } }
@keyframes tkvCrack { to { stroke-dashoffset: 0; } }
@keyframes tkvCrysHit { 50% { transform: translate(-50%, -50%) scale(1.06); } }
@keyframes tkvCrysShake { 0%, 100% { transform: translate(-50%, -50%); } 25% { transform: translate(calc(-50% - 4px), calc(-50% + 2px)); } 75% { transform: translate(calc(-50% + 4px), calc(-50% - 2px)); } }
@keyframes tkvCrysBoom { to { transform: translate(-50%, -50%) scale(1.5); opacity: 0; filter: brightness(3) blur(6px); } }

/* ═══ 🗿 Culte noir et or dans l'ouverture ═══ */
/* Dos au survol : halo or métal qui tourne, cadre doré, reflet qui passe, « SONGCLASH » doré */
#tko .ticket[data-culte] .aura { background: conic-gradient(from var(--tkoA, 0deg), #fff0b8, #f5b52e, #7a4a05, #f5b52e, #fff0b8, #a8650a, #fff0b8); filter: blur(14px); }
#tko .ticket.ready[data-culte]:hover .aura, #tko .ticket.ready.tease[data-culte] .aura, #tko .ticket.shake[data-culte] .aura { opacity: 0.9; animation: tkoEtAura 3s linear infinite, tkoPulse 1.4s ease-in-out infinite; }
#tko .ticket[data-culte] .back::before { content: ''; position: absolute; inset: 0; border-radius: inherit; opacity: 0; transition: opacity .3s; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 228, 150, .55) 45%, transparent 58%) 0 0 / 250% 100%; mix-blend-mode: screen; }
#tko .ticket.ready[data-culte]:hover .back, #tko .ticket.ready.tease[data-culte] .back, #tko .ticket.shake[data-culte] .back {
  background: radial-gradient(circle at 50% 50%, rgba(245, 181, 46, .18), transparent 60%), repeating-linear-gradient(45deg, rgba(245, 181, 46, .06) 0 8px, transparent 8px 16px), linear-gradient(135deg, #1a1408, #050403);
  box-shadow: inset 0 0 0 2px #000, inset 0 0 0 3px #f5c451, inset 0 0 26px rgba(245, 160, 30, .45); }
#tko .ticket.ready[data-culte]:hover .back::before, #tko .ticket.ready.tease[data-culte] .back::before, #tko .ticket.shake[data-culte] .back::before { opacity: 1; animation: tkoEtBack 2.2s linear infinite; }
#tko .ticket.ready[data-culte]:hover .back span, #tko .ticket.ready.tease[data-culte] .back span, #tko .ticket.shake[data-culte] .back span {
  background: linear-gradient(180deg, #fff0b8, #f5b52e 55%, #b8740c); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 8px rgba(245, 160, 30, .6)); }
/* Face : cadre doré, écran vidéo sombre, talon noir écriture dorée */
#tko .ticket[data-culte] .front { background: repeating-linear-gradient(0deg, rgba(0,0,0,.25) 0 1px, transparent 1px 3px), radial-gradient(ellipse 80% 70% at 40% 45%, #2a2010, #07060a 80%);
  box-shadow: inset 0 0 0 2px #f5c451, 0 0 34px rgba(245, 160, 30, .55); }
#tko .ticket[data-culte] .ev { color: #f5c451; }
#tko .ticket[data-culte] .main::after { background: linear-gradient(90deg, #f5b52e 62%, rgba(255,255,255,.25) 62%); }
#tko .ticket[data-culte] .stub { background: linear-gradient(160deg, #1a1408, #0a0805); border-left: 1px dashed rgba(245, 181, 46, .5); }
#tko .ticket[data-culte] .stub b { background: linear-gradient(180deg, #fff0b8, #f5b52e 55%, #b8740c); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 17px; }
#tko .ticket[data-culte] .stub b::before { content: '🗿'; display: block; font-size: 15px; margin-bottom: 2px; color: #fff; -webkit-text-fill-color: initial; }
#tko .ticket[data-culte] .stub small { color: #b8892e; }
/* Annonce « CULTE » en lettres dorées */
#tko .callout.cu { background: linear-gradient(180deg, #fff0b8, #f5b52e 55%, #b8740c); -webkit-background-clip: text; background-clip: text; color: transparent; }
#tko .callout.cu small { -webkit-text-fill-color: #f5c451; }

/* ═══ 🗿 Tunnel Culte noir et or ═══ */
#tkv.cu { background: radial-gradient(circle at 50% 50%, #3a2a08 0%, #160f03 45%, #030201 80%); }
#tkv.cu .f { border-color: rgba(245, 181, 46, 0.85); box-shadow: 0 0 12px rgba(245, 181, 46, 0.5), inset 0 0 12px rgba(245, 181, 46, 0.25); }
#tkv.cu .f:nth-child(even) { border-color: rgba(255, 240, 184, 0.7); box-shadow: 0 0 12px rgba(255, 240, 184, 0.35), inset 0 0 12px rgba(255, 240, 184, 0.2); }
#tkv.cu.warp { background: radial-gradient(circle at 50% 50%, #fff8e0 0%, #f5b52e 18%, #3a2a08 50%, #030201 85%); }
#tkv.cu.warp .f { border-color: #fff; box-shadow: 0 0 18px #f5b52e, inset 0 0 18px #fff0b8; }
#tkv.cu .clue small { color: #ffe39a; }
#tkv.cu .clue .ico { filter: drop-shadow(0 0 14px rgba(245, 181, 46, 0.9)); }
#tkv.cu .clue b { text-shadow: 0 0 18px rgba(245, 181, 46, 0.8), 0 0 40px rgba(168, 101, 10, 0.6); }
#tkv.cu .chips span { border-color: rgba(245, 181, 46, 0.6); box-shadow: 0 0 12px rgba(245, 181, 46, 0.3); }
#tkv.cu.tvm .tun { opacity: .35; transition: opacity .6s; }

/* ═══ 📺 TV cathodique ═══ */
#tkv .tkv-tv { position: absolute; z-index: 5; left: 50%; top: 52%; width: min(340px, 74vw); transform: translate(-50%, -50%);
  animation: tkvTvIn .6s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes tkvTvIn { from { transform: translate(-50%, 40%) scale(.3) rotate(-8deg); opacity: 0; } }
#tkv .tkv-tv .body { position: relative; display: flex; gap: 4%; padding: 6%; border-radius: 22px;
  background: linear-gradient(160deg, #2a2116, #120d07 60%, #070503); box-shadow: inset 0 0 0 2px #f5b52e, inset 0 0 0 5px #120d07, inset 0 0 0 6px rgba(245,181,46,.45), 0 20px 50px rgba(0,0,0,.6), 0 0 50px rgba(245,160,30,.25); }
#tkv .tkv-tv .scr { position: relative; flex: 1; aspect-ratio: 4 / 3; border-radius: 18% / 22%; overflow: hidden; background: #050505;
  box-shadow: inset 0 0 0 3px #000, inset 0 0 24px rgba(0,0,0,.9), 0 0 0 3px #3a2c14; }
#tkv .tkv-tv canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; image-rendering: pixelated; }
#tkv .tkv-tv .line { position: absolute; left: 50%; top: 50%; width: 0; height: 2px; background: #fff; box-shadow: 0 0 12px #fff, 0 0 30px #fff; transform: translate(-50%, -50%); opacity: 0; }
#tkv .tkv-tv.on .line { animation: tkvTvLine .3s ease-out forwards; }
@keyframes tkvTvLine { 0% { opacity: 1; width: 0; height: 2px; } 50% { opacity: 1; width: 100%; height: 2px; } 100% { opacity: 1; width: 100%; height: 100%; } }
#tkv .tkv-tv.snow .line { animation: none; opacity: 0; }
#tkv .tkv-tv.snow canvas { opacity: .9; }
#tkv .tkv-tv.play canvas { opacity: 0; transition: opacity .15s; }
#tkv .tkv-tv .play { position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1.4; border-radius: 18%; background: #ff1f1f; transform: translate(-50%, -50%) scale(0); box-shadow: 0 0 24px rgba(255,31,31,.7); }
#tkv .tkv-tv .play::before { content: ''; position: absolute; left: 39%; top: 24%; width: 28%; height: 52%; background: #fff; clip-path: polygon(0 0, 100% 50%, 0 100%); }
#tkv .tkv-tv.play .scr { background: radial-gradient(circle, #2a2010, #050403 75%); }
#tkv .tkv-tv.play .play { animation: tkvTvPlay .4s cubic-bezier(.2, 1.6, .4, 1) forwards; }
@keyframes tkvTvPlay { to { transform: translate(-50%, -50%) scale(1); } }
#tkv .tkv-tv .glass { position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(ellipse 70% 50% at 30% 20%, rgba(255,255,255,.22), transparent 60%), repeating-linear-gradient(0deg, rgba(0,0,0,.25) 0 1px, transparent 1px 3px); }
#tkv .tkv-tv .pan { width: 18%; display: flex; flex-direction: column; align-items: center; gap: 10%; padding-top: 4%; }
#tkv .tkv-tv .knob { width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff0b8, #f5b52e 40%, #7a4a05); box-shadow: 0 2px 4px rgba(0,0,0,.6); }
#tkv .tkv-tv .knob:nth-child(2) { transform: rotate(40deg); }
#tkv .tkv-tv.on .knob:first-child { animation: tkvKnob .3s ease-out forwards; }
@keyframes tkvKnob { to { transform: rotate(120deg); } }
#tkv .tkv-tv .grill { width: 80%; flex: 1; border-radius: 4px; background: repeating-linear-gradient(0deg, rgba(245,181,46,.5) 0 2px, transparent 2px 5px); }
#tkv .tkv-tv .pan b { font-size: 18px; filter: grayscale(.2); }
#tkv .tkv-tv .ant { position: absolute; bottom: 100%; left: 50%; width: 3px; height: 70px; background: linear-gradient(#fff0b8, #a8650a); transform-origin: bottom center; border-radius: 2px; }
#tkv .tkv-tv .ant::after { content: ''; position: absolute; top: -5px; left: -3px; width: 9px; height: 9px; border-radius: 50%; background: #f5c451; }
#tkv .tkv-tv .ant.l { transform: rotate(-28deg); } #tkv .tkv-tv .ant.r { transform: rotate(32deg); height: 60px; }
#tkv .tkv-tv .feet { position: absolute; left: 14%; right: 14%; top: 100%; height: 12px; background: linear-gradient(90deg, #a8650a 0 8%, transparent 8% 92%, #a8650a 92%); clip-path: polygon(0 0, 8% 0, 4% 100%, 0 100%, 100% 0, 92% 0, 96% 100%, 100% 100%); }
#tkv .tkv-tv.on .scr { box-shadow: inset 0 0 0 3px #000, inset 0 0 24px rgba(0,0,0,.6), 0 0 0 3px #3a2c14, 0 0 30px rgba(255,255,255,.25); }
/* Plongée dans l'écran : la TV grossit jusqu'à ce que l'écran remplisse tout */
#tkv .tkv-tv.dive { animation: tkvTvDive .55s cubic-bezier(.6, 0, 1, .5) forwards; }
@keyframes tkvTvDive { to { transform: translate(-58%, -50%) scale(9); } }
@media (prefers-reduced-motion: reduce) { #tkv .tkv-tv, #tkv .tkv-tv * { animation: none !important; } }

/* Fin du Culte : salle noire chaude, panneau LED doré */
#tko .stg.cu .stg-black { background: radial-gradient(ellipse at 50% 60%, rgba(30, 20, 4, 0.85), rgba(0, 0, 0, 0.96)); }
/* ✦ Culte chromatique à l'ouverture : halo prismatique (or + arc-en-ciel) autour du billet, talon irisé */
#tko .ticket.chroma-on[data-culte] .front { box-shadow: inset 0 0 0 2px #f5c451, 0 0 0 2px #fff0b8, 0 0 16px 3px rgba(255, 95, 210, .55), 0 0 30px 6px rgba(79, 210, 255, .45), 0 0 50px 10px rgba(245, 181, 46, .35); animation: tkoCuPrism 3s linear infinite; }
@keyframes tkoCuPrism { 50% { box-shadow: inset 0 0 0 2px #f5c451, 0 0 0 2px #fff0b8, 0 0 16px 3px rgba(82, 255, 154, .55), 0 0 30px 6px rgba(167, 123, 255, .45), 0 0 50px 10px rgba(255, 95, 210, .35); } }
#tko .ticket.chroma-on[data-culte] .stub b { background: linear-gradient(90deg, #fff0b8, #ff8fe0, #ffc93d, #7dffb5, #7ddcff, #c4a5ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-reduced-motion: reduce) { #tko .ticket.chroma-on[data-culte] .front { animation: none; } }
