/* ============================================================
   HIDANSEY — Paywall CSS (saisie code uniquement)
   ============================================================ */

/* Le paywall n'utilise plus la classe .screen pour ne pas
   interférer avec la gestion des écrans du jeu */
#screen-paywall,
.paywall-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  overflow-y: auto;
}

.paywall-bg {
  position: fixed;
  inset: 0;
  background: #060402;
  background-image:
    radial-gradient(ellipse at 30% 15%, rgba(232,100,10,0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 85%, rgba(26,107,58,0.08) 0%, transparent 45%);
  z-index: 0;
}

/* ── CONTENU ──────────────────────────────────────────────── */
.paywall-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  padding: 36px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
}

/* ── LOGO MINI ────────────────────────────────────────────── */
.paywall-logo-mini {
  display: flex;
  align-items: center;
  justify-content: center;
}

.paywall-logo-img {
  width: 200px;
  max-width: 75vw;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* ── BOÎTE PRINCIPALE ────────────────────────────────────── */
.paywall-box {
  background: rgba(14,11,6,0.95);
  border: 1px solid rgba(245,237,216,0.1);
  border-radius: 12px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.paywall-box-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #f5edd8;
}

.paywall-box-desc {
  font-family: 'Lora', serif;
  font-size: 0.8rem;
  color: rgba(245,237,216,0.5);
  margin-top: -8px;
}

/* ── SAISIE CODE ──────────────────────────────────────────── */
.code-field-wrap { position: relative; }

.code-field {
  width: 100%;
  padding: 18px 16px;
  background: rgba(245,237,216,0.04);
  border: 1.5px solid rgba(245,237,216,0.14);
  border-radius: 8px;
  font-family: 'Special Elite', cursive;
  font-size: 1.4rem;
  letter-spacing: 0.25em;
  color: #f5edd8;
  text-align: center;
  text-transform: uppercase;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.code-field:focus {
  border-color: #c4992a;
  box-shadow: 0 0 0 3px rgba(196,153,42,0.1);
}

.code-field::placeholder {
  color: rgba(245,237,216,0.18);
  letter-spacing: 0.1em;
  font-size: 1rem;
}

/* ── ERREUR ───────────────────────────────────────────────── */
.code-error {
  background: rgba(192,32,16,0.12);
  border: 1px solid rgba(192,32,16,0.35);
  border-radius: 6px;
  padding: 10px 14px;
  font-family: 'Special Elite', cursive;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: #ff8870;
  text-align: center;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%  { transform: translateX(-6px); }
  40%  { transform: translateX(6px); }
  60%  { transform: translateX(-4px); }
  80%  { transform: translateX(4px); }
}
.code-error.shake { animation: shake 0.35s ease; }

/* ── BOUTON DÉVERROUILLER ────────────────────────────────── */
.btn-validate {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #7a5008 0%, #c4992a 50%, #e8c040 100%);
  border: none;
  border-radius: 8px;
  font-family: 'Special Elite', cursive;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  color: #1a1208;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(196,153,42,0.25);
  transition: opacity 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.btn-validate:active { opacity: 0.85; transform: scale(0.98); }

/* ── SÉPARATEUR ───────────────────────────────────────────── */
.paywall-sep {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Special Elite', cursive;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: rgba(245,237,216,0.2);
}
.paywall-sep span:first-child,
.paywall-sep span:last-child {
  flex: 1;
  height: 1px;
  background: rgba(245,237,216,0.08);
}

/* ── INFOS PAIEMENT ──────────────────────────────────────── */
.payment-info {
  background: rgba(245,237,216,0.03);
  border: 1px solid rgba(245,237,216,0.07);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.payment-info-title {
  font-family: 'Special Elite', cursive;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,237,216,0.35);
}

.payment-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pstep {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.pstep-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(196,153,42,0.2);
  border: 1px solid rgba(196,153,42,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Special Elite', cursive;
  font-size: 0.65rem;
  color: #c4992a;
  flex-shrink: 0;
  margin-top: 1px;
}

.pstep div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pstep strong {
  font-family: 'Lora', serif;
  font-size: 0.78rem;
  color: rgba(245,237,216,0.75);
  font-weight: 600;
}

.pstep span {
  font-family: 'Lora', serif;
  font-size: 0.72rem;
  color: rgba(245,237,216,0.35);
  line-height: 1.4;
}

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(37,211,102,0.1);
  border: 1px solid rgba(37,211,102,0.3);
  border-radius: 8px;
  font-family: 'Special Elite', cursive;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: #25d366;
  text-decoration: none;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn-whatsapp:active { background: rgba(37,211,102,0.18); }

/* ── BOUTON DÉMO ─────────────────────────────────────────── */
.btn-demo {
  background: none;
  border: none;
  font-family: 'Special Elite', cursive;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: rgba(245,237,216,0.28);
  cursor: pointer;
  text-align: center;
  padding: 6px;
  text-decoration: underline;
  -webkit-tap-highlight-color: transparent;
}
.btn-demo:active { color: rgba(245,237,216,0.5); }

/* ── FOOTER ──────────────────────────────────────────────── */
.paywall-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 14px 20px 28px;
  font-family: 'Special Elite', cursive;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  color: rgba(245,237,216,0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.paywall-footer-ci { display: flex; gap: 4px; font-size: 0.8rem; }

/* ── LOADING CENTER (QR code URL) ───────────────────────── */
.paywall-loading-center {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

/* ── LOADING OVERLAY ─────────────────────────────────────── */
.paywall-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6,4,2,0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: 12px;
  z-index: 10;
}

.paywall-spinner {
  width: 32px;
  height: 32px;
  border: 2.5px solid rgba(196,153,42,0.2);
  border-top-color: #c4992a;
  border-radius: 50%;
  animation: pw-spin 0.8s linear infinite;
}
@keyframes pw-spin { to { transform: rotate(360deg); } }

.paywall-loading-msg {
  font-family: 'Special Elite', cursive;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(196,153,42,0.6);
}
