/* theme-noel-jeu.css — le style propre de ce jeu dans le thème « Nuit de Noël » : Ticket à gratter : bordeaux et pièces d'or.
   Se charge après theme-noel.css. Ne change que le ciel, le motif de fond et l'emblème de l'accueil. */
:root {
  --noel-ciel: radial-gradient(70% 40% at 50% 100%, rgba(242,183,5,.25) 0%, transparent 70%), radial-gradient(130% 55% at 50% -8%, #6a1430 0%, #360816 38%, #140208 100%);
  --noel-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cdefs%3E%3Cfilter id='e' x='-20%25' y='-20%25' width='140%25' height='140%25'%3E%3CfeDropShadow dx='0' dy='1.6' stdDeviation='.7' flood-color='%23000' flood-opacity='.75'/%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url%28%23e%29'%3E%3Ccircle cx='18' cy='18' r='8' fill='%23f2c45a' fill-opacity='.11'/%3E%3Cpath d='M42 36l2 6 6 2-6 2-2 6-2-6-6-2 6-2z' fill='%23f2c45a' fill-opacity='.18'/%3E%3C/g%3E%3C/svg%3E");
  --noel-motif-taille: 56px 56px;
  --noel-embleme: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300' viewBox='0 0 300 300'%3E%3Cdefs%3E%3ClinearGradient id='o' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23fff3c0'/%3E%3Cstop offset='.45' stop-color='%23e7b52f'/%3E%3Cstop offset='1' stop-color='%237a4a08'/%3E%3C/linearGradient%3E%3Cfilter id='r' x='-10%25' y='-10%25' width='120%25' height='130%25'%3E%3CfeDropShadow dx='0' dy='5' stdDeviation='4' flood-color='%23000' flood-opacity='.7'/%3E%3C/filter%3E%3C/defs%3E%3Cg opacity='0.3' filter='url%28%23r%29'%3E%3Cg fill='none' stroke='%235a3406' stroke-width='11' stroke-linecap='round' stroke-linejoin='round' transform='translate%280 3%29'%3E%3Crect x='50' y='70' width='200' height='150' rx='16'/%3E%3Cpath d='M50 120h200' stroke-dasharray='10 12'/%3E%3Ccircle cx='110' cy='175' r='22'/%3E%3Ccircle cx='190' cy='175' r='22'/%3E%3C/g%3E%3Cg fill='none' stroke='url%28%23o%29' stroke-width='8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='50' y='70' width='200' height='150' rx='16'/%3E%3Cpath d='M50 120h200' stroke-dasharray='10 12'/%3E%3Ccircle cx='110' cy='175' r='22'/%3E%3Ccircle cx='190' cy='175' r='22'/%3E%3C/g%3E%3Cg fill='none' stroke='%23fff8dc' stroke-opacity='.6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' transform='translate%28-1.5 -2%29'%3E%3Crect x='50' y='70' width='200' height='150' rx='16'/%3E%3Cpath d='M50 120h200' stroke-dasharray='10 12'/%3E%3Ccircle cx='110' cy='175' r='22'/%3E%3Ccircle cx='190' cy='175' r='22'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* 08/11 : le ticket de Noël en relief (Claude Design) */
.grattage__ticket { position: relative; background:
    radial-gradient(120% 60% at 50% 0%, rgba(255,255,255,.18), transparent 60%),
    linear-gradient(165deg, color-mix(in srgb, var(--primaire) 88%, #fff) 0%, var(--primaire) 40%, color-mix(in srgb, var(--primaire) 55%, #000) 100%);
  border: 3px solid #f2c45a; box-shadow: 0 0 0 3px #7a4a08, 0 10px 0 #3a0610, 0 22px 36px rgba(0,0,0,.55), inset 0 2px 0 rgba(255,255,255,.35); }
.grattage__ticket::before { border: 2px dashed rgba(255,230,160,.55); }
/* encoches de ticket sur les côtés */
.grattage__ticket::after { content: ""; position: absolute; top: 46%; left: -14px; right: -14px; height: 26px; pointer-events: none;
  background: radial-gradient(circle at 13px 13px, #1a040b 11px, #f2c45a 11.5px, #f2c45a 13px, transparent 13.5px) left / 26px 26px no-repeat,
              radial-gradient(circle at 13px 13px, #1a040b 11px, #f2c45a 11.5px, #f2c45a 13px, transparent 13.5px) right / 26px 26px no-repeat; }
.grattage__entete { text-shadow: 0 2px 0 rgba(0,0,0,.45); }
.grattage__case { border-radius: 16px; background: radial-gradient(circle at 50% 38%, #fffdf6 0%, #fbeed2 70%, #e9d2a0 100%);
  box-shadow: inset 0 3px 6px rgba(120,70,10,.25), inset 0 -2px 0 rgba(255,255,255,.8), 0 3px 0 #5a0e24, 0 0 0 2px #f2c45a; }
.grattage__case .grattage__canvas { border-radius: 16px; }
.grattage__sym img { width: 78%; height: 78%; filter: drop-shadow(0 3px 2px rgba(60,20,0,.3)); }
.grattage__sym--joker { background: radial-gradient(circle, rgba(255,226,140,.9), rgba(255,226,140,0) 70%); }
.grattage__sym--joker img { width: 62%; height: 62%; }
.grattage__case--paire { box-shadow: 0 0 0 3px #ffd84a, 0 0 18px #ffd84a, 0 3px 0 #5a0e24; }
.grattage__case--gagnante { box-shadow: 0 0 0 4px #ffd84a, 0 0 28px #ffd84a, 0 4px 0 #5a0e24; }
.grattage__tout { background: linear-gradient(#ffe48a, #e0a21a); color: #4a1020; border: 2px solid #7a4a08; box-shadow: 0 4px 0 #7a4a08, 0 8px 14px rgba(0,0,0,.4); font-weight: 800; }

/* 08/11 (v7, Claude Code) : le style de la maquette ChatGPT de Leeroy, dessiné en net (ses PNG font 60 à 80 px) : plus de cadre bordeaux,
   un bandeau rouge au nom du partenaire en or, une pastille jaune pour la règle, des cases d'or à cadeau (visuels/case-or.svg, dessiné par
   le canvas via imageMasque), l'aide avec la main, des cadeaux en bas. Pas de neige (Leeroy). */
.grattage--grille { padding-top: calc(76px + env(safe-area-inset-top)); gap: 14px; }
.grattage__ticket { background: none; border: 0; box-shadow: none; padding: 0 6px; width: min(94vw, 400px); }
.grattage__ticket::before, .grattage__ticket::after { display: none; }
.grattage__entete { gap: 10px; margin-bottom: 14px; justify-items: center; }
.grattage__entete b { display: block; padding: 12px 22px 13px; border-radius: 18px; max-width: 100%;
  background: radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,.35), transparent 55%), linear-gradient(180deg, #e8283e 0%, #b60c22 55%, #7a0a1c 100%);
  border: 3px solid #f6c443; box-shadow: 0 0 0 3px #7a4a08, inset 0 1px 0 rgba(255,255,255,.4), 0 10px 22px rgba(0,0,0,.55);
  color: #fff; font-size: 19px; line-height: 1.15; text-shadow: 0 2px 0 rgba(0,0,0,.45); text-wrap: balance; }
.grattage__entete b em { font-style: normal; color: #ffd84a; display: block; font-size: 1.3em; line-height: 1.1; }
.grattage__entete small { display: inline-block; padding: 6px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 800; color: #3a1a00;
  background: linear-gradient(180deg, #ffe48a, #f6c443 55%, #d99a12); border: 2px solid #fff3c0; box-shadow: 0 3px 0 #a86a08, 0 6px 14px rgba(0,0,0,.4); }
.grattage__grille { gap: 10px; }
.grattage__case { border-radius: 16px; background: radial-gradient(circle at 50% 36%, #fffaf0 0%, #fff4e4 60%, #f0ddb8 100%);
  box-shadow: inset 0 3px 6px rgba(120,70,10,.22), inset 0 -2px 0 rgba(255,255,255,.9), 0 4px 0 #a86a08, 0 0 0 2px #ffe08a, 0 8px 16px rgba(0,0,0,.45); }
.grattage__case .grattage__canvas { border-radius: 16px; }
.grattage__case--paire { box-shadow: 0 0 0 3px #ffd84a, 0 0 18px #ffd84a, 0 4px 0 #a86a08; }
.grattage__case--gagnante { box-shadow: 0 0 0 4px #ffd84a, 0 0 28px #ffd84a, 0 4px 0 #a86a08; }
.grattage__aide { color: #fff; font-weight: 700; font-size: 15px; opacity: 1; text-shadow: 0 2px 4px rgba(0,0,0,.7); display: flex; align items: center; gap: 8px; position: relative; z-index: 1; }
.grattage__aide::before { content: ""; width: 24px; height: 24px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' stroke='%23b8860b' stroke-width='.6' d='M9 2a1.5 1.5 0 0 1 1.5 1.5V11h1V8.5a1.5 1.5 0 0 1 3 0V11h1V9.5a1.5 1.5 0 0 1 3 0V11h.5a1.5 1.5 0 0 1 1.5 1.5V16a6 6 0 0 1-6 6h-2.2a6 6 0 0 1-5-2.7L4.6 15.6a1.6 1.6 0 0 1 2.7-1.7l.2.3V3.5A1.5 1.5 0 0 1 9 2z'/%3E%3C/svg%3E") center / contain no-repeat; filter: drop-shadow(0 2px 2px rgba(0,0,0,.5)); }
.grattage--grille::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 150px; pointer-events: none; z-index: 0;
  background: url("theme-noel/cadeaux-rouges.webp") left 6px bottom 8px / 112px auto no-repeat, url("visuels/cadeaux-verts.webp") right -36px bottom 8px / 136px auto no-repeat; }   /* le bord coupé du paquet vert sort de l'écran */
.grattage__ticket, .grattage__tout { position: relative; z-index: 1; }

/* 08/11 (v7) : le même en-tête que le memory : la place de Cayenne la nuit en bandeau, Monsieur Clic à gauche, le logo Monsieur Clic à droite */
.grattage--grille { padding-top: calc(158px + env(safe-area-inset-top)); }
.grattage--grille::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: calc(196px + env(safe-area-inset-top)); z-index: 0; pointer-events: none;
  background: url("theme-noel/scene-cayenne.webp") center top / cover no-repeat;
  -webkit-mask: linear-gradient(180deg, #000 55%, transparent 100%); mask: linear-gradient(180deg, #000 55%, transparent 100%); }
.grattage--grille .grattage__ticket::before { content: ""; display: block; position: absolute; inset: auto; left: -4%; top: -104px; width: 34%; height: 112px; border: 0;
  background: url("theme-noel/pere-noel-buste.webp") left bottom / auto 100% no-repeat; filter: drop-shadow(0 6px 8px rgba(0,0,0,.5)); pointer-events: none; }
.grattage--grille .grattage__ticket::after { content: ""; display: block; position: absolute; right: -2%; left: auto; top: -92px; width: 34%; height: 68px;
  background: url("theme-noel/logo-monsieur-clic.webp") right center / contain no-repeat; filter: drop-shadow(0 4px 6px rgba(0,0,0,.5)); pointer-events: none; }
@media (max-height: 700px) { .grattage--grille { padding-top: calc(126px + env(safe-area-inset-top)); } .grattage--grille .grattage__ticket::before { height: 86px; top: -80px; } .grattage--grille .grattage__ticket::after { height: 56px; top: -72px; } }
