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

body {
  width: 100vw;
  min-height: 100vh;
  overflow-x: hidden;
  background: none;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background: radial-gradient(ellipse at center,
    white 0%, white 25%,
    rgba(255, 200, 0, 0.5) 50%,
    rgba(255, 80, 0, 0.7) 75%,
    rgba(200, 20, 0, 0.8) 100%
  );
}
@media (min-width: 900px) and (max-width: 1199px) {
  body::before {
    background: radial-gradient(ellipse at center,
      white 0%, white 28%,
      rgba(255, 200, 50, 0.45) 50%,
      rgba(255, 90, 100, 0.65) 75%,
      rgba(150, 50, 200, 0.7) 100%
    );
  }
}
@media (min-width: 1200px) {
  body::before {
    background: radial-gradient(ellipse at center,
      white 0%, white 30%,
      rgba(255, 200, 100, 0.4) 50%,
      rgba(255, 100, 180, 0.5) 70%,
      rgba(100, 180, 255, 0.6) 100%
    );
  }
}

.titre {
  position: fixed;
  top: 47%;
  left: 47%;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;
  line-height: 0.9;
  font-family: "p22-allyson-pro", cursive;
  font-weight: 400;
  font-size: clamp(7rem, 15vw, 16rem);
  color: rgb(156, 254, 254);
  animation: neonFlicker 6s infinite;
  will-change: filter, opacity;
  pointer-events: none;
  transition: font-size 0.6s ease, top 0.6s ease, opacity 0.5s ease;
}
.titre.petit {
  top: 5%;
  transform: translate(-50%, 0);
  font-size: clamp(3rem, 6vw, 4rem);
}

@keyframes neonFlicker {
  0%, 92%, 100% {
    filter: drop-shadow(0 0 8px #60b8ff) drop-shadow(0 0 20px #1e90ff);
    opacity: 1;
  }
  93% { opacity: 0.6; filter: none; }
  95% { opacity: 1; }
  97% { opacity: 0.8; }
}
.tickets {
  position: relative;
  width: 100%;
  z-index: 5;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.25s ease;
}
.tickets.cache {
  opacity: 0;
  pointer-events: none;
}

.ticket {
  position: absolute;
  width: 360px;
  display: flex;
  flex-direction: row;
  cursor: pointer;
  pointer-events: all;
  z-index: 5;
  transition: all 0.5s ease;
  font-family: 'Courier New', monospace;
  border-radius: 6px 10px 10px 6px;
  border: 2px solid;
  filter: drop-shadow(2px 4px 8px rgba(0,0,0,0.15));
}
.ticket:hover {
  filter: drop-shadow(2px 8px 16px rgba(0,0,0,0.25)) brightness(1.04);
}
.ticket::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 0;
  bottom: 0;
  width: 8px;
  background:
    radial-gradient(circle at 0% 50%, transparent 5px, currentColor 5px) top / 8px 17px repeat-y;
}
.ticket::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 0;
  bottom: 0;
  width: 8px;
  background:
    radial-gradient(circle at 100% 50%, transparent 5px, currentColor 5px) top / 8px 17px repeat-y;
}

.ticket.vert   { background: #f0faf5; border-color: #8cf1b8; color: #8cf1b8; }
.ticket.rose   { background: #fdf0f5; border-color: #ff4a9bc8; color: #ff4a9b; }
.ticket.saumon { background: #fdf4f0; border-color: #ff9456; color: #ff9456; }
.ticket.jaune  { background: #fdfaf0; border-color: #fcde49; color: #fcde49; }
.ticket.bleu   { background: #f0f8fd; border-color: #98ddff; color: #98ddff; }

.ticket.vert   .ticket-titre { color: #8cf1b8; }
.ticket.rose   .ticket-titre { color: #ff4a9b; }
.ticket.saumon .ticket-titre { color: #ff9456; }
.ticket.jaune  .ticket-titre { color: #fcde49; }
.ticket.bleu   .ticket-titre { color: #98ddff; }

.ticket.vert   .ticket-barcode { background: repeating-linear-gradient(to right, #8cf1b8 0, #8cf1b8 2px, transparent 2px, transparent 5px, #8cf1b8 5px, #8cf1b8 8px, transparent 8px, transparent 11px); }
.ticket.rose   .ticket-barcode { background: repeating-linear-gradient(to right, #ff4a9b 0, #ff4a9b 2px, transparent 2px, transparent 5px, #ff4a9b 5px, #ff4a9b 8px, transparent 8px, transparent 11px); }
.ticket.saumon .ticket-barcode { background: repeating-linear-gradient(to right, #ff9456 0, #ff9456 2px, transparent 2px, transparent 5px, #ff9456 5px, #ff9456 8px, transparent 8px, transparent 11px); }
.ticket.jaune  .ticket-barcode { background: repeating-linear-gradient(to right, #fcde49 0, #fcde49 2px, transparent 2px, transparent 5px, #fcde49 5px, #fcde49 8px, transparent 8px, transparent 11px); }
.ticket.bleu   .ticket-barcode { background: repeating-linear-gradient(to right, #98ddff 0, #98ddff 2px, transparent 2px, transparent 5px, #98ddff 5px, #98ddff 8px, transparent 8px, transparent 11px); }

.ticket-main {
  flex: 1;
  padding: 14px 12px 14px 24px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.ticket-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  opacity: 0.6;
  text-transform: uppercase;
}
.ticket-titre {
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.15;
}
.ticket-meta {
  font-size: 9px;
  opacity: 0.65;
  margin-top: 2px;
}
.ticket-stars {
  font-size: 10px;
  opacity: 0.35;
  letter-spacing: 2px;
}
.ticket-barcode {
  height: 28px;
  opacity: 0.4;
  margin-top: 4px;
}
.ticket-num {
  font-size: 9px;
  opacity: 0.45;
  letter-spacing: 1px;
}
.ticket-stub {
  width: 62px;
  flex-shrink: 0;
  border-left: 2px dashed currentColor;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 4px;
}
.ticket-stub span:first-child {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.ticket-stub-num {
  font-size: 10px;
  font-weight: 700;
  opacity: 0.5;
}

.parole-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  overflow-y: scroll;
}
.parole-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

.parole-ticket {
  width: min(80vw, 580px);
  min-height: fit-content;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  border-radius: 14px 14px 0 0;
  border: 3px solid;
  border-bottom: none;
  font-family: 'Courier New', monospace;
  cursor: pointer;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(.22,1,.36,1), rotate 0.4s ease, left 0.4s ease;
  scrollbar-width: none;
  position: relative;
  left: var(--left, 0px);
  rotate: var(--rot, -2deg);
  flex-shrink: 0;
  margin-top: auto;
}
.parole-ticket::-webkit-scrollbar { display: none; }
.parole-overlay.visible .parole-ticket {
  transform: translateY(20%);
}

.parole-ticket::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
  background:
    radial-gradient(circle at 50% 0%, transparent 5px, currentColor 5px) left / 17px 8px repeat-x;
}
.parole-ticket::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 8px;
  background:
    radial-gradient(circle at 50% 100%, transparent 5px, currentColor 5px) left / 17px 8px repeat-x;
}

.parole-ticket.vert   { background: #f0faf5; border-color: #28d473; color: #28d473; }
.parole-ticket.rose   { background: #fdf0f5; border-color: #ff4a9b; color: #ff4a9b; }
.parole-ticket.saumon { background: #fdf4f0; border-color: #ff9456; color: #ff9456; }
.parole-ticket.jaune  { background: #fdfaf0; border-color: #fcde49; color: #ffdd30; }
.parole-ticket.bleu   { background: #f0f8fd; border-color: #65cbfd; color: #65cbfd; }

.parole-ticket.vert   .parole-titre { color: #8cf1b8; }
.parole-ticket.rose   .parole-titre { color: #ff4a9b; }
.parole-ticket.saumon .parole-titre { color: #ff9456; }
.parole-ticket.jaune  .parole-titre { color: #fcde49; }
.parole-ticket.bleu   .parole-titre { color: #98ddff; }

.parole-ticket.vert   .parole-barcode { background: repeating-linear-gradient(to right, #28d473 0, #28d473 2px, transparent 2px, transparent 5px, #28d473 5px, #28d473 8px, transparent 8px, transparent 11px); }
.parole-ticket.rose   .parole-barcode { background: repeating-linear-gradient(to right, #ff4a9b 0, #ff4a9b 2px, transparent 2px, transparent 5px, #ff4a9b 5px, #ff4a9b 8px, transparent 8px, transparent 11px); }
.parole-ticket.saumon .parole-barcode { background: repeating-linear-gradient(to right, #ff9456 0, #ff9456 2px, transparent 2px, transparent 5px, #ff9456 5px, #ff9456 8px, transparent 8px, transparent 11px); }
.parole-ticket.jaune  .parole-barcode { background: repeating-linear-gradient(to right, #fcde49 0, #fcde49 2px, transparent 2px, transparent 5px, #fcde49 5px, #fcde49 8px, transparent 8px, transparent 11px); }
.parole-ticket.bleu   .parole-barcode { background: repeating-linear-gradient(to right, #65cbfd 0, #65cbfd 2px, transparent 2px, transparent 5px, #65cbfd 5px, #65cbfd 8px, transparent 8px, transparent 11px); }

.parole-ticket-main {
  flex: none;
  padding: 40px 30px 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.parole-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  opacity: 0.55;
  text-transform: uppercase;
}
.parole-titre {
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  line-height: 1.3;
  margin-bottom: 20px;
}
.parole-sep {
  height: 1px;
  background: currentColor;
  opacity: 0.2;
  margin: 8px 0;
}
.parole-texte {
  font-size: 20px;
  line-height: 1.3;
  white-space: pre-line;
  opacity: 0.85;
  text-align: center;
  color: currentColor;
  font-weight: 500;
  padding: 20px 0;
}
.parole-barcode {
  height: 24px;
  opacity: 0.3;
  margin-top: 40px;
}
.parole-num {
  font-size: 9px;
  opacity: 0.4;
  letter-spacing: 1px;
  margin-top: 8px;
}
.parole-stub {
  width: 100%;
  flex-shrink: 0;
  border-top: 2px dashed currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: inherit;
}
.parole-stub span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.bg-photo {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  z-index: -1;
  pointer-events: none;
  transition: opacity 1.2s ease;
  mix-blend-mode: multiply;
}
.bg-photo.visible {
  opacity: 0.7;
}
@media (max-width: 768px) and (hover: none) {
  .titre {
    font-size: clamp(4rem, 20vw, 8rem);
    font-weight: 700;
  }
  .parole-overlay.visible .parole-ticket {
    transform: translateY(2%);
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  html, body {
    width: 100%;
    overflow-x: hidden;
  }
  body::before {
    background: radial-gradient(ellipse at center,
      white 0%, white 30%,
      rgba(255, 200, 100, 0.4) 50%,
      rgba(255, 100, 180, 0.5) 70%,
      rgba(100, 180, 255, 0.6) 100%
    );
  }
  .parole-ticket {
    width: min(60vw, 400px);
  }
}
@media (max-width: 900px) {
  .titre.petit {
    font-size: clamp(3rem, 6vw, 4rem);
  }
}