@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400..800;1,9..40,400&family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600&display=swap');

:root {
  --pine-dark: #0d1f17;
  --pine: #163226;
  --pine-light: #1e4232;
  --parchment: #fbf4e4;
  --parchment-2: #f3e6cb;
  --parchment-deep: #ead7b3;
  --ink: #2b1b12;
  --ink-muted: #6c5542;
  --crimson: #9e2226;
  --crimson-dark: #7a171b;
  --gold: #c89632;
  --gold-bright: #e5be67;
  --gold-dark: #946919;
  --emerald: #1f6f4a;
  --emerald-dark: #165136;
  --border-gold: rgba(186, 138, 48, 0.45);
  --radius: 18px;
  --shadow-card: 0 14px 32px rgba(5, 14, 10, 0.34), 0 2px 6px rgba(5, 14, 10, 0.18);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: var(--pine-dark);
  background-image:
    radial-gradient(circle at 50% -10%, rgba(229, 190, 103, 0.14) 0%, transparent 52%),
    radial-gradient(circle at 18% 12%, #1d4232 0%, transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(158, 34, 38, 0.18) 0%, transparent 42%),
    linear-gradient(180deg, #153024 0%, #0d1f17 55%, #091610 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Neige douce */
.snow-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0.42;
}
.snow-layer span {
  position: absolute;
  top: -12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fdf6e3;
  box-shadow: 0 0 6px rgba(253, 246, 227, 0.7);
  animation: snowfall linear infinite;
}
.snow-layer span:nth-child(1) { left: 6%;  width: 4px; height: 4px; animation-duration: 13s; animation-delay: 0s; }
.snow-layer span:nth-child(2) { left: 16%; width: 6px; height: 6px; animation-duration: 18s; animation-delay: -4s; opacity: 0.7; }
.snow-layer span:nth-child(3) { left: 28%; width: 3px; height: 3px; animation-duration: 14s; animation-delay: -9s; }
.snow-layer span:nth-child(4) { left: 41%; width: 5px; height: 5px; animation-duration: 16s; animation-delay: -2s; opacity: 0.8; }
.snow-layer span:nth-child(5) { left: 54%; width: 4px; height: 4px; animation-duration: 12s; animation-delay: -7s; }
.snow-layer span:nth-child(6) { left: 67%; width: 6px; height: 6px; animation-duration: 19s; animation-delay: -11s; opacity: 0.65; }
.snow-layer span:nth-child(7) { left: 78%; width: 3px; height: 3px; animation-duration: 15s; animation-delay: -5s; }
.snow-layer span:nth-child(8) { left: 89%; width: 5px; height: 5px; animation-duration: 17s; animation-delay: -3s; opacity: 0.75; }

@keyframes snowfall {
  0%   { transform: translate3d(0, -10px, 0); opacity: 0; }
  10%  { opacity: 0.85; }
  90%  { opacity: 0.75; }
  100% { transform: translate3d(24px, 102vh, 0); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .snow-layer { display: none; }
  .advent-door.is-today { animation: none !important; }
}

a { color: var(--crimson); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 14px 14px 48px;
}

/* En-tête */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding: 2px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-crest {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #c63136, var(--crimson-dark));
  border: 2px solid var(--gold-bright);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), inset 0 0 0 2px rgba(251, 244, 228, 0.2);
  color: #fdf6e3;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800;
  font-size: 15px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.brand h1 {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 800;
  color: #fdf6e3;
  line-height: 1.15;
}

.brand small {
  display: block;
  color: #d6c8a8;
  font-size: 11.5px;
  margin-top: 1px;
}

.topbar-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pill-btn {
  background: rgba(251, 244, 228, 0.12);
  border: 1px solid rgba(229, 190, 103, 0.45);
  color: #fdf6e3;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.18s, border-color 0.18s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.pill-btn:hover {
  background: rgba(229, 190, 103, 0.22);
  border-color: var(--gold-bright);
  text-decoration: none;
}

.pill-btn-parchment {
  background: var(--parchment-2);
  border: 1px solid var(--border-gold);
  color: var(--ink);
}
.pill-btn-parchment:hover {
  background: var(--parchment-deep);
  border-color: var(--gold-dark);
}

/* Ruban gagnant */
.winners-strip {
  background: rgba(251, 244, 228, 0.1);
  border: 1px solid rgba(229, 190, 103, 0.3);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 12px;
  font-size: 12px;
  color: #f4e4bc;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  white-space: nowrap;
}
.winners-strip span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
}
.badge-crimson {
  background: var(--crimson);
  color: #fdf6e3;
}
.badge-gold {
  background: linear-gradient(135deg, #f3d792, #d8a641);
  color: #2b1b12;
  border: 1px solid rgba(148, 105, 25, 0.35);
}
.badge-sky {
  background: rgba(200, 150, 50, 0.16);
  color: #6b470c;
  border: 1px solid rgba(180, 132, 43, 0.38);
}

/* ============================================================================
   HERO DIRECT : LE GRAND CALENDRIER DE L'AVENT VINTAGE (24 CASES)
   ============================================================================ */
.advent-board {
  position: relative;
  background: linear-gradient(170deg, #1b3b2c 0%, #10241b 100%);
  border: 2px solid var(--gold);
  border-radius: 22px;
  padding: 18px 15px 16px;
  margin-bottom: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.44), inset 0 0 0 4px rgba(229, 190, 103, 0.12);
  color: #fdf6e3;
}

.advent-board-head {
  text-align: center;
  margin-bottom: 14px;
}

.advent-board-kicker {
  display: inline-block;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--gold-bright);
  font-weight: 700;
  margin-bottom: 3px;
}

.advent-board-title {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 25px;
  font-weight: 800;
  color: #fdf6e3;
  line-height: 1.18;
}

.advent-board-sub {
  margin: 5px auto 0;
  max-width: 500px;
  font-size: 12.5px;
  color: #dfd3b8;
  line-height: 1.4;
}

/* Barre d'état rapide intégrée au calendrier (créneau + chrono + tickets) */
.calendar-status-bar {
  margin: 12px 0 14px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(11, 25, 19, 0.58);
  border: 1px solid rgba(229, 190, 103, 0.36);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.calendar-status-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #f4e7c8;
}

.calendar-chrono {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 16px;
  font-weight: 800;
  color: #f7df9c;
  font-variant-numeric: tabular-nums;
}

.calendar-status-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(229, 190, 103, 0.16);
  border: 1px solid rgba(229, 190, 103, 0.45);
  color: #f8e2a6;
}

.open-today-mini {
  background: linear-gradient(135deg, #c12b30, var(--crimson-dark));
  color: #fdf6e3;
  border: 1px solid #f7df9c;
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.12s, filter 0.15s;
}
.open-today-mini:hover { filter: brightness(1.08); }
.open-today-mini:active { transform: scale(0.97); }

/* Bannière alerte parrainage / carte à gratter sur le calendrier */
.board-banner {
  margin-bottom: 12px;
  padding: 10px 13px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(229, 190, 103, 0.24), rgba(200, 150, 50, 0.14));
  border: 1px solid rgba(247, 223, 156, 0.58);
  color: #fdf6e3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
}

.advent-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}

@media (min-width: 540px) {
  .advent-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
  }
}

.advent-door {
  position: relative;
  aspect-ratio: 1 / 1.05;
  border-radius: 13px;
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  overflow: hidden;
  border: 1.5px solid rgba(229, 190, 103, 0.35);
  background: linear-gradient(155deg, #214736 0%, #163125 100%);
  color: #f3e4bf;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.26);
}

.advent-door::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px dashed rgba(229, 190, 103, 0.25);
  border-radius: 9px;
  pointer-events: none;
}

.advent-door:hover {
  transform: translateY(-2px);
  border-color: var(--gold-bright);
}

.door-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.door-icon {
  font-size: 14px;
  line-height: 1;
}

.door-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  opacity: 0.9;
}

/* Porte passée */
.advent-door.is-past {
  background: linear-gradient(160deg, #efe1c2 0%, #dfcca3 100%);
  color: #5b4331;
  border-color: rgba(180, 132, 43, 0.45);
}
.advent-door.is-past::before { border-color: rgba(91, 67, 49, 0.18); }
.advent-door.is-past .door-num { font-size: 17px; opacity: 0.78; }

/* Porte illuminée Or */
.advent-door.is-gold {
  background: linear-gradient(145deg, #f8e19d 0%, #d49f35 100%);
  color: #2b1b12;
  border: 2px solid #fff0c2;
  box-shadow: 0 6px 16px rgba(212, 159, 53, 0.4);
}
.advent-door.is-gold::before { border-color: rgba(43, 27, 18, 0.22); }

/* Porte DU JOUR (rouge velours cliquable) */
.advent-door.is-today {
  background: linear-gradient(145deg, #c52c31 0%, #86181c 100%);
  color: #fdf6e3;
  border: 2px solid #f7df9c;
  box-shadow: 0 0 0 3px rgba(247, 223, 156, 0.26), 0 8px 20px rgba(0, 0, 0, 0.4);
  animation: candleGlow 2.8s ease-in-out infinite;
}
.advent-door.is-today::before { border: 1px solid rgba(247, 223, 156, 0.48); }
.advent-door.is-today .door-tag {
  background: #f7df9c;
  color: #6b1216;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 8.5px;
  margin-top: 2px;
}

/* Si la case du jour est déjà en Or, on garde l'éclat doré + le halo d'ouverture */
.advent-door.is-today.is-gold {
  background: linear-gradient(145deg, #f8e19d 0%, #c88b26 100%);
  color: #2b1b12;
  border: 2px solid #fff3cc;
}
.advent-door.is-today.is-gold .door-tag {
  background: #7a171b;
  color: #fdf6e3;
}

@keyframes candleGlow {
  0%, 100% { box-shadow: 0 0 0 2px rgba(247, 223, 156, 0.24), 0 8px 18px rgba(0, 0, 0, 0.36); }
  50%      { box-shadow: 0 0 0 5px rgba(247, 223, 156, 0.45), 0 10px 24px rgba(200, 150, 50, 0.38); }
}

/* Case 24 décembre */
.advent-door.is-24:not(.is-today):not(.is-gold) {
  background: linear-gradient(145deg, #5e171b 0%, #3a0e11 100%);
  border: 2px solid var(--gold-bright);
  color: #f8e2a6;
}
.advent-door.is-future { opacity: 0.92; }
.advent-door.is-future .door-icon { font-size: 11px; opacity: 0.65; }

.advent-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 13px;
  font-size: 11.5px;
  color: #d6c8a8;
}
.legend-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
}

/* Cartes secondaires parchemin */
.card {
  position: relative;
  background: linear-gradient(180deg, var(--parchment) 0%, var(--parchment-2) 100%);
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
  color: var(--ink);
}
.card::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px dashed rgba(180, 132, 43, 0.24);
  border-radius: calc(var(--radius) - 5px);
  pointer-events: none;
}
.card-title {
  margin: 0 0 8px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

/* Formulaires & Boutons */
.input {
  width: 100%;
  padding: 11px 13px;
  border-radius: 11px;
  border: 1.5px solid rgba(148, 105, 25, 0.35);
  background: #fffdf7;
  color: var(--ink);
  font-size: 14.5px;
  font-family: inherit;
  outline: none;
}
.input:focus {
  border-color: var(--crimson);
  box-shadow: 0 0 0 3px rgba(158, 34, 38, 0.12);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-muted);
  margin: 9px 0;
  line-height: 1.4;
}
.checkbox-row input { margin-top: 3px; accent-color: var(--crimson); }

.btn {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: none;
  font-size: 14.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.1s ease, filter 0.15s ease, opacity 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn:hover:not(:disabled) { filter: brightness(1.06); }
.btn:active:not(:disabled) { transform: scale(0.985); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, #b52a2e 0%, var(--crimson-dark) 100%);
  color: #fdf6e3;
  border: 1.5px solid rgba(229, 190, 103, 0.65);
  box-shadow: 0 6px 16px rgba(122, 23, 27, 0.28);
}
.btn-gold {
  background: linear-gradient(135deg, #e7c06a, #c28e29);
  color: #2b1b12;
  border: 1px solid #9e711d;
}
.btn-emerald {
  background: linear-gradient(135deg, #258357, var(--emerald-dark));
  color: #fdf6e3;
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  border: 1.5px solid var(--border-gold);
}

/* Parrainage & Bons plans */
.ref-box {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.ref-box input { flex: 1; min-width: 170px; font-size: 13px; padding: 9px 12px; }
.ref-box button { width: auto; padding: 9px 14px; font-size: 13px; }

.deal-list { display: grid; gap: 8px; }
.deal-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--border-gold);
  color: var(--ink);
}
.deal-item:hover { border-color: var(--crimson); background: #fffdf7; text-decoration: none; }
.deal-price { font-weight: 800; color: var(--crimson); white-space: nowrap; font-size: 13px; }

/* Pied de page */
.footer {
  text-align: center;
  font-size: 12px;
  color: #d6c8a8;
  line-height: 1.6;
  margin-top: 18px;
  padding: 14px 8px 0;
  border-top: 1px solid rgba(229, 190, 103, 0.22);
}
.footer strong { color: #fdf6e3; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-top: 8px;
}
.footer-links a { color: #f3dfaa; font-size: 12px; font-weight: 500; }
.footer-links a:hover { color: #ffffff; }

/* ============================================================================
   MODALES (CASE DU JOUR + BARRE DE PROGRESSION + SONDAGE DIRECT)
   ============================================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 18, 13, 0.84);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px;
  z-index: 100;
}
.modal-backdrop.open { display: flex; }

#scratchModal { z-index: 150; }
#rulesModal   { z-index: 160; }

.modal {
  width: 100%;
  max-width: 460px;
  background: linear-gradient(180deg, var(--parchment) 0%, var(--parchment-2) 100%);
  border: 2px solid var(--gold);
  border-radius: 20px;
  padding: 18px;
  max-height: 92vh;
  overflow-y: auto;
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

/* Modale Case du Jour (grande et fluide pour afficher barre + sondage) */
.door-modal {
  max-width: 780px;
  width: 96vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  padding: 16px;
  overflow: hidden;
}
.door-modal.is-survey-active {
  height: 92vh;
}

.door-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.door-modal-title {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Bloc Barre de progression collective dans la modale */
.door-progress-card {
  background: linear-gradient(160deg, #183729 0%, #10251c 100%);
  border: 1.5px solid var(--gold);
  border-radius: 14px;
  padding: 11px 13px;
  color: #fdf6e3;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.door-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12.5px;
  margin-bottom: 7px;
}

.door-progress-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.door-chrono-pill {
  background: rgba(247, 223, 156, 0.16);
  border: 1px solid rgba(247, 223, 156, 0.45);
  color: #f7df9c;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.progress-track {
  height: 11px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(229, 190, 103, 0.35);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #d1383c, #e27d2e, #f4d27a);
  border-radius: 999px;
  transition: width 0.5s ease;
  width: 0%;
}

.door-progress-note {
  margin-top: 6px;
  font-size: 11.5px;
  color: #ddd0b3;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

/* Sponsor dans la modale */
.sponsor-banner {
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 11px;
  background: rgba(200, 150, 50, 0.14);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  flex-shrink: 0;
}

/* Corps scrollable ou flex de la modale */
.door-modal-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* Barre stats joueur au-dessus du sondage */
.player-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 11px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--border-gold);
  margin-bottom: 10px;
  font-size: 12.5px;
  flex-shrink: 0;
}
.player-strip-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-weight: 600;
}
.player-strip-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* Espace Sondage (iframe directe) */
.cpx-iframe-wrap {
  flex: 1;
  min-height: 360px;
  border-radius: 13px;
  overflow: hidden;
  border: 1.5px solid var(--border-gold);
  background: #ffffff;
  display: flex;
  flex-direction: column;
}
.cpx-iframe {
  width: 100%;
  height: 100%;
  flex: 1;
  border: none;
  display: block;
}

.cpx-waiting-box {
  padding: 26px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.65);
  border: 1.5px dashed var(--gold-dark);
  text-align: center;
  color: var(--ink);
}

/* Bannière carte à gratter */
.scratch-banner {
  background: linear-gradient(135deg, rgba(229, 190, 103, 0.35), rgba(200, 150, 50, 0.16));
  border: 1.5px solid var(--gold);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
}

/* Carte à gratter Canvas */
.scratch-wrap {
  position: relative;
  width: 280px;
  height: 140px;
  margin: 16px auto;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--gold-dark);
  user-select: none;
  touch-action: none;
  box-shadow: 0 8px 22px rgba(43, 27, 18, 0.25);
}
.scratch-underneath {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, #1f4534, #0f241b);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800;
  color: #f8e2a6;
}
.scratch-canvas {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: #1a372a;
  color: #fdf6e3;
  border: 1.5px solid var(--gold-bright);
  padding: 11px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  z-index: 220;
  max-width: 92vw;
  text-align: center;
  display: none;
}
.toast.show { display: block; }

.hidden { display: none !important; }

@media (max-width: 480px) {
  .brand h1 { font-size: 18px; }
  .advent-board { padding: 15px 11px 14px; }
  .advent-board-title { font-size: 21px; }
  .door-modal { padding: 12px; width: 98vw; max-height: 94vh; }
  .door-modal.is-survey-active { height: 94vh; }
}
