*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --pink: #e91e8c;
  --pink2: #ff5f6d;
  --gold: #f5c518;
  --purple: #7c4dff;
  --cyan: #00bcd4;
  --bg: #0a0a12;
  --card: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.09);

  /* safe areas — overridden by JS */
  --sat: 0px;
  --sab: 0px;
}

html, body {
  width: 100%; height: 100%;
  background: var(--bg);
  color: #fff;
  font-family: 'Inter', -apple-system, sans-serif;
  overflow: hidden;
}

/* ── BG Canvas & confetti ───────────────────────────────── */
#bgCanvas, #confettiCanvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
#bgCanvas       { z-index: 0; }
#confettiCanvas { z-index: 50; }

.bg-orbs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); animation: floatOrb ease-in-out infinite alternate; }
.orb-1 { width: 380px; height: 380px; background: rgba(233,30,140,0.13); top: -120px; left: -100px; animation-duration: 9s; }
.orb-2 { width: 300px; height: 300px; background: rgba(124,77,255,0.10); bottom: 60px; right: -80px; animation-duration: 11s; }
.orb-3 { width: 200px; height: 200px; background: rgba(245,197,24,0.06); top: 40%; left: 46%; transform: translate(-50%,-50%); animation-duration: 7s; }
@keyframes floatOrb {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(16px,24px) scale(1.1); }
}

/* ── Page principale — remplit tout l'écran ─────────────── */
.container {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  justify-content: space-between;
  height: 100dvh;
  padding: calc(var(--sat) + 14px) 16px calc(var(--sab) + 18px);
  overflow: hidden;
}

/* ── Header ─────────────────────────────────────────────── */
.header { text-align: center; width: 100%; max-width: 420px; }

.header-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(245,197,24,0.1); border: 1px solid rgba(245,197,24,0.28);
  color: var(--gold); font-size: 11px; font-weight: 700;
  padding: 4px 12px; border-radius: 20px;
  margin-bottom: 6px; letter-spacing: 1px; text-transform: uppercase;
  animation: fadeDown .5s ease both;
}
.header-badge svg { animation: spinStar 5s linear infinite; flex-shrink: 0; display: block; }
@keyframes spinStar { to { transform: rotate(360deg); } }

.header h1 {
  font-size: 20px; font-weight: 900; line-height: 1.25;
  letter-spacing: -.5px; margin-bottom: 4px;
  animation: fadeDown .55s ease both .05s;
}
.h1-row2 {
  display: inline-flex; align-items: center; gap: 6px;
}
.gradient-text {
  background: linear-gradient(135deg, #e91e8c, #ff9a5c);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.title-icon { display: block; flex-shrink: 0; }

.header > p {
  font-size: 12px; color: rgba(255,255,255,.4);
  margin-bottom: 6px; animation: fadeDown .6s ease both .08s;
}
.chances-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  padding: 5px 13px; border-radius: 24px; font-size: 12px; font-weight: 700;
  animation: fadeDown .6s ease both .1s;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  background: #4cff91; box-shadow: 0 0 8px #4cff91;
  animation: pulseDot 1.6s ease-in-out infinite;
}
@keyframes pulseDot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .4; transform: scale(.7); }
}

/* ── Wheel ──────────────────────────────────────────────── */
.wheel-section {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  animation: fadeDown .65s ease both .12s;
  flex-shrink: 0;
}
.wheel-ring-glow {
  position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(233,30,140,.16) 0%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  animation: glowPulse 3s ease-in-out infinite; pointer-events: none;
}
@keyframes glowPulse {
  0%,100% { transform: translate(-50%,-50%) scale(1);    opacity: 1; }
  50%      { transform: translate(-50%,-50%) scale(1.07); opacity: .7; }
}
.pointer-wrap {
  margin-bottom: -2px; z-index: 10;
  animation: pointerBounce 2s ease-in-out infinite;
}
@keyframes pointerBounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
#wheelCanvas {
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255,255,255,.05), 0 0 50px rgba(233,30,140,.2), 0 16px 50px rgba(0,0,0,.6);
  animation: wheelAppear .7s ease both .15s;
  max-width: min(280px, 72vw);
  max-height: min(280px, 72vw);
}
@keyframes wheelAppear {
  from { transform: scale(.82) rotate(-10deg); opacity: 0; }
  to   { transform: scale(1) rotate(0);        opacity: 1; }
}

/* ── Prizes grid ────────────────────────────────────────── */
.prizes-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; width: 100%; max-width: 420px;
  animation: fadeUp .65s ease both .18s;
}
.prize-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 14px;
  font-size: 13px; font-weight: 700;
  border: 1px solid transparent; backdrop-filter: blur(8px);
  transition: transform .15s;
}
.prize-item:active { transform: scale(.96); }
.prize-icon {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
  background: rgba(255,255,255,.07);
}
.prize-icon svg { display: block; }
.rencontre { background: rgba(233,30,140,.09);  border-color: rgba(233,30,140,.28);  color: #ff6eb4; }
.videos    { background: rgba(200,168,0,.09);   border-color: rgba(200,168,0,.28);   color: #f5c518; }
.snap      { background: rgba(0,188,212,.09);   border-color: rgba(0,188,212,.28);   color: #4dd0e1; }
.numero    { background: rgba(124,77,255,.09);  border-color: rgba(124,77,255,.28);  color: #b39ddb; }

/* ── Spin button ────────────────────────────────────────── */
.spin-button {
  position: relative; overflow: hidden;
  width: 100%; max-width: 420px;
  padding: 16px 24px; border: none; border-radius: 16px;
  background: linear-gradient(135deg, #e91e8c 0%, #ff5f6d 100%);
  color: #fff; font-family: 'Inter', sans-serif;
  font-size: 15px; font-weight: 800; cursor: pointer; letter-spacing: .3px;
  box-shadow: 0 8px 28px rgba(233,30,140,.45), inset 0 1px 0 rgba(255,255,255,.2);
  transition: transform .15s, box-shadow .15s;
  animation: fadeUp .65s ease both .22s;
}
.spin-button:active   { transform: scale(.97) translateY(1px); box-shadow: 0 4px 14px rgba(233,30,140,.4); }
.spin-button:disabled { background: rgba(255,255,255,.07); color: rgba(255,255,255,.2); box-shadow: none; cursor: not-allowed; }
.btn-shimmer {
  position: absolute; top: 0; left: -100%; width: 55%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  transform: skewX(-20deg); animation: shimmer 2.8s ease-in-out infinite;
}
.spin-button:disabled .btn-shimmer { display: none; }
@keyframes shimmer { 0% { left: -100%; } 60%,100% { left: 160%; } }
.btn-content { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn-icon { flex-shrink: 0; }

/* ── Lots info ──────────────────────────────────────────── */
.lots-info {
  width: 100%; max-width: 360px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 10px 14px;
  backdrop-filter: blur(10px); animation: fadeUp .65s ease both .26s;
}
.lots-title {
  display: flex; align-items: center; gap: 7px;
  font-size: 10px; font-weight: 700;
  color: rgba(255,255,255,.3); text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 10px;
}
.lots-list { display: flex; flex-direction: column; gap: 7px; }
.lot-row { display: flex; align-items: center; gap: 10px; font-size: 12px; color: rgba(255,255,255,.65); font-weight: 500; }
.lot-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.rencontre-dot { background: #e91e8c; box-shadow: 0 0 5px #e91e8c; }
.videos-dot    { background: #f5c518; box-shadow: 0 0 5px #f5c518; }
.snap-dot      { background: #00bcd4; box-shadow: 0 0 5px #00bcd4; }
.numero-dot    { background: #7c4dff; box-shadow: 0 0 5px #7c4dff; }

/* ── Result Modal ───────────────────────────────────────── */
.modal { position: fixed; inset: 0; display: flex; align-items: flex-end; justify-content: center; z-index: 80; }
.modal.hidden { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.75); backdrop-filter: blur(8px); }
.modal-sheet {
  position: relative; z-index: 1;
  background: #13131f;
  border: 1px solid rgba(233,30,140,.15);
  border-radius: 28px 28px 0 0;
  padding: 10px 24px calc(var(--sab) + 32px);
  width: 100%; max-width: 480px; text-align: center;
  animation: slideUp .4s cubic-bezier(.175,.885,.32,1.1);
}
.modal-sheet::before {
  content: ''; display: block; position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(233,30,140,.5), transparent);
}
.modal-handle { width: 40px; height: 4px; background: rgba(255,255,255,.12); border-radius: 2px; margin: 0 auto 20px; }
.modal-icon { display: flex; align-items: center; justify-content: center; margin-bottom: 14px; animation: bounceIn .5s .15s both; }
@keyframes bounceIn {
  from { transform: scale(.3); opacity: 0; }
  60%  { transform: scale(1.18); }
  to   { transform: scale(1); opacity: 1; }
}
.modal-sheet h2 { font-size: 22px; font-weight: 900; margin-bottom: 8px; letter-spacing: -.3px; }
.modal-sheet p  { font-size: 14px; color: rgba(255,255,255,.48); margin-bottom: 24px; line-height: 1.6; }
.modal-button {
  width: 100%; padding: 15px; border: none; border-radius: 14px;
  background: linear-gradient(135deg, #e91e8c, #ff5f6d);
  color: #fff; font-family: 'Inter', sans-serif;
  font-size: 15px; font-weight: 800; cursor: pointer;
  box-shadow: 0 8px 24px rgba(233,30,140,.4); transition: transform .15s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.modal-button:active { transform: scale(.97); }

/* ── Register Modal (même thème pink) ───────────────────── */
.reg-modal { position: fixed; inset: 0; display: flex; align-items: flex-end; justify-content: center; z-index: 90; }
.reg-modal.hidden { display: none; }
.reg-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.88); backdrop-filter: blur(12px); }

.reg-sheet {
  position: relative; z-index: 1;
  background: #13131f;
  border: 1px solid rgba(233,30,140,.18);
  border-radius: 28px 28px 0 0;
  padding: 10px 20px calc(var(--sab) + 28px);
  width: 100%; max-width: 480px;
  animation: slideUp .4s cubic-bezier(.175,.885,.32,1.1);
  max-height: 92vh; overflow-y: auto;
  scrollbar-width: none;
}
.reg-sheet::-webkit-scrollbar { display: none; }
.reg-sheet::before {
  content: ''; display: block; position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(233,30,140,.6), rgba(255,95,109,.5), rgba(233,30,140,.6), transparent);
}
.reg-handle { width: 40px; height: 4px; background: rgba(255,255,255,.12); border-radius: 2px; margin: 0 auto 18px; }

/* ── Bannière lot ──────────────────────────────────────── */
.reg-prize-banner {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(135deg, rgba(233,30,140,.13) 0%, rgba(124,77,255,.08) 100%);
  border: 1px solid rgba(233,30,140,.3);
  border-radius: 18px; padding: 14px 16px;
  margin-bottom: 18px; position: relative; overflow: hidden;
}
.reg-prize-banner::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(233,30,140,.6), rgba(255,150,100,.4), transparent);
}
.reg-prize-banner::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 15% 50%, rgba(233,30,140,.07), transparent);
  pointer-events: none;
}
.reg-prize-icon-wrap {
  position: relative; flex-shrink: 0;
  width: 56px; height: 56px;
  background: rgba(233,30,140,.12); border: 1px solid rgba(233,30,140,.25);
  border-radius: 16px; display: flex; align-items: center; justify-content: center;
}
.reg-prize-icon { font-size: 28px; }
.reg-prize-lock-badge {
  position: absolute; bottom: -4px; right: -4px;
  background: #13131f; border-radius: 50%;
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(233,30,140,.3);
  color: rgba(255,255,255,.6);
}
.reg-prize-info { flex: 1; min-width: 0; }
.reg-prize-label {
  display: flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .8px; color: #ff6eb4; margin-bottom: 3px;
}
.reg-prize-name  { font-size: 17px; font-weight: 900; color: #fff; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reg-prize-hint  { font-size: 11px; color: rgba(255,255,255,.35); }

/* ── Titre + prix ──────────────────────────────────────── */
.reg-headline { margin-bottom: 16px; }

.reg-title {
  font-size: 26px; font-weight: 900; letter-spacing: -.5px;
  background: linear-gradient(135deg, #fff 30%, #ff6eb4 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 10px; line-height: 1.1;
}

.reg-price-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.reg-price-tag {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, rgba(233,30,140,.15), rgba(255,95,109,.1));
  border: 1px solid rgba(233,30,140,.35);
  border-radius: 12px; padding: 8px 16px;
  flex-shrink: 0;
}
.reg-price-amount {
  font-size: 28px; font-weight: 900;
  background: linear-gradient(135deg, #fff, #ff6eb4);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.reg-price-then {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: rgba(255,255,255,.4); line-height: 1.4; flex: 1;
}

/* ── Perks ─────────────────────────────────────────────── */
.reg-perks {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 18px; padding: 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
}
.reg-perk {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: rgba(255,255,255,.7); line-height: 1.4;
}
.reg-perk strong { color: #fff; }
.reg-check {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; margin-top: 1px;
  background: linear-gradient(135deg, rgba(233,30,140,.25), rgba(255,95,109,.15));
  border: 1px solid rgba(233,30,140,.45);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: #ff6eb4; font-weight: 900;
}

/* Offer box */
#offer-box { width: 100%; }

/* ── ptprelinker — thème pink ───────────────────────────── */
.ptprelinker--box { display: flex !important; align-items: center !important; justify-content: center !important; margin: 0 auto !important; width: 100% !important; max-width: 100% !important; background: transparent !important; }
.ptprelinker-content, .ptprelinker-content-inner, .ptprelinker-content-content { width: 100% !important; max-width: 100% !important; display: flex !important; flex-direction: column !important; align-items: center !important; background: transparent !important; }
.ptprelinker-register-form, .ptprelinker-register-form form { width: 100% !important; max-width: 100% !important; margin: 0 auto !important; background-color: transparent !important; }

/* Inputs */
.ptprelinker-input,
input.ptprelinker-input,
input[type="email"].ptprelinker-input,
input[type="text"].ptprelinker-input {
  width: 100% !important;
  background: rgba(255,255,255,.06) !important;
  border: 1.5px solid rgba(255,255,255,.12) !important;
  border-radius: 14px !important;
  padding: 15px 18px !important;
  color: #fff !important;
  font-size: 15px !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 500 !important;
  transition: all .2s !important;
  margin-bottom: 10px !important;
  outline: none !important;
  box-sizing: border-box !important;
  -webkit-appearance: none !important;
}
.ptprelinker-input:focus {
  border-color: #e91e8c !important;
  box-shadow: 0 0 0 3px rgba(233,30,140,.18) !important;
  background: rgba(233,30,140,.07) !important;
}
.ptprelinker-input::placeholder { color: rgba(255,255,255,.28) !important; opacity: 1 !important; }
.ptprelinker-input-group { width: 100% !important; margin-bottom: 0 !important; }

/* Bouton submit */
.ptprelinker-button,
.ptprelinker-button-success,
#offer-box button,
#offer-box input[type="submit"] {
  width: 100% !important;
  background: linear-gradient(135deg, #e91e8c 0%, #ff5f6d 100%) !important;
  border: none !important;
  border-radius: 14px !important;
  padding: 16px 24px !important;
  color: #fff !important;
  font-weight: 800 !important;
  font-size: 16px !important;
  font-family: 'Inter', sans-serif !important;
  cursor: pointer !important;
  transition: transform .15s, box-shadow .15s !important;
  margin-top: 12px !important;
  box-shadow: 0 8px 28px rgba(233,30,140,.45), inset 0 1px 0 rgba(255,255,255,.2) !important;
  letter-spacing: .02em !important;
  -webkit-appearance: none !important;
}
#offer-box button:active, #offer-box input[type="submit"]:active {
  transform: scale(.97) translateY(1px) !important;
  box-shadow: 0 4px 14px rgba(233,30,140,.4) !important;
}

/* Checkbox — custom style visible */
.ptprelinker-checkbox {
  display: flex !important; align-items: flex-start !important;
  gap: 10px !important;
  margin-top: 12px !important; margin-bottom: 0 !important;
  width: 100% !important;
  padding: 10px 12px !important;
  background: rgba(255,255,255,.03) !important;
  border: 1px solid rgba(255,255,255,.07) !important;
  border-radius: 10px !important;
  cursor: pointer !important;
}
.ptprelinker-checkbox::before, .ptprelinker-checkbox::after,
.ptprelinker-checkbox label::before, .ptprelinker-checkbox label::after,
.ptprelinker-label-checkbox::before, .ptprelinker-label-checkbox::after { display: none !important; content: none !important; }

.ptprelinker-input-checkbox, input[type="checkbox"].ptprelinker-input-checkbox, input#cgu {
  -webkit-appearance: checkbox !important; appearance: checkbox !important;
  width: 20px !important; height: 20px !important;
  min-width: 20px !important; min-height: 20px !important;
  max-width: 20px !important; max-height: 20px !important;
  margin: 0 !important; flex-shrink: 0 !important;
  cursor: pointer !important;
  accent-color: #e91e8c !important;
  border: none !important;
  box-shadow: none !important; outline: none !important;
  opacity: 1 !important; visibility: visible !important;
}

.ptprelinker-label-checkbox {
  color: rgba(255,255,255,.45) !important; font-size: 11px !important;
  line-height: 1.5 !important; cursor: pointer !important; flex: 1 !important;
}
.ptprelinker-cgu-link, #offer-box a.ptprelinker-cgu-link {
  color: #ff6eb4 !important; text-decoration: underline !important;
  text-underline-offset: 2px !important; font-weight: 600 !important;
}
.ptprelinker-buttons { width: 100% !important; margin-top: 0 !important; }
.ptprelinker-label:empty { display: none !important; }
.cgu-couple, .ptprelinker-checkbox.cgu-couple { display: none !important; }
.error-register { color: #ff6eb4 !important; font-size: 13px !important; margin: 8px 0 !important; text-align: center !important; background: rgba(233,30,140,.08) !important; border-radius: 8px !important; padding: 8px !important; }
.ptprelinker-forgotten-link, a.ptprelinker-forgotten-link { color: rgba(255,255,255,.25) !important; font-size: 11px !important; text-decoration: none !important; display: block !important; text-align: center !important; margin-top: 10px !important; }

.reg-legal { margin-top: 16px; font-size: 10px; color: rgba(255,255,255,.18); text-align: center; line-height: 1.7; }

/* ── Animations ─────────────────────────────────────────── */
@keyframes fadeDown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeUp   { from { opacity: 0; transform: translateY(14px); }  to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp  { from { transform: translateY(100%); opacity: 0; }  to { transform: translateY(0); opacity: 1; } }
