/* theme-noel-jeu.css — le style propre de ce jeu dans le thème « Nuit de Noël » : La roue : vert et or, rayons de fête.
   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(217,165,42,.28) 0%, transparent 70%), radial-gradient(130% 55% at 50% -8%, #14684e 0%, #08382a 38%, #02140e 100%);
  --noel-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%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%3Cg stroke='%23f2c45a' stroke-opacity='.13' stroke-linecap='round'%3E%3Cpath d='M30 20v20M20 30h20M23 23l14 14M37 23 23 37'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  --noel-motif-taille: 60px 60px;
  --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%3Ccircle cx='150' cy='150' r='110'/%3E%3Ccircle cx='150' cy='150' r='20'/%3E%3Cpath d='M150 40v220M40 150h220M72 72l156 156M228 72 72 228'/%3E%3Cpath d='M140 20h20l-10 22z'/%3E%3C/g%3E%3Cg fill='none' stroke='url%28%23o%29' stroke-width='8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='150' cy='150' r='110'/%3E%3Ccircle cx='150' cy='150' r='20'/%3E%3Cpath d='M150 40v220M40 150h220M72 72l156 156M228 72 72 228'/%3E%3Cpath d='M140 20h20l-10 22z'/%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%3Ccircle cx='150' cy='150' r='110'/%3E%3Ccircle cx='150' cy='150' r='20'/%3E%3Cpath d='M150 40v220M40 150h220M72 72l156 156M228 72 72 228'/%3E%3Cpath d='M140 20h20l-10 22z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- La roue habillée d'après le modèle « Christmas wheel » (07/11) ---------- */
.roue { gap: 22px; padding-top: calc(66px + env(safe-area-inset-top)); }
.roue::before { /* pancarte en bois au-dessus de la roue */
  content: "Tourne la roue de Noël !"; position: relative; z-index: 2; padding: 12px 26px 13px; border-radius: 18px;
  font-family: var(--police-titre); font-weight: 800; font-size: clamp(20px, 6.2vw, 26px); color: #fff4d0;
  text-shadow: 0 2px 0 #3a1c08, 0 3px 0 #2a1406, 0 6px 10px rgba(0, 0, 0, .5);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'%3E%3Cpath d='M30 22 C18 10 6 14 2 6 C10 8 14 2 20 6 C22 12 28 14 30 22z' fill='%231f7a3a'/%3E%3Cpath d='M30 22 C42 10 54 14 58 6 C50 8 46 2 40 6 C38 12 32 14 30 22z' fill='%2316602d'/%3E%3Ccircle cx='26' cy='24' r='5' fill='%23d0142c'/%3E%3Ccircle cx='34' cy='24' r='5' fill='%23b80f25'/%3E%3Ccircle cx='30' cy='30' r='5' fill='%23e01b2e'/%3E%3Ccircle cx='28.5' cy='28.5' r='1.4' fill='%23fff' opacity='.7'/%3E%3C/svg%3E") no-repeat -10px -14px / 64px 43px, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'%3E%3Cpath d='M30 22 C18 10 6 14 2 6 C10 8 14 2 20 6 C22 12 28 14 30 22z' fill='%231f7a3a'/%3E%3Cpath d='M30 22 C42 10 54 14 58 6 C50 8 46 2 40 6 C38 12 32 14 30 22z' fill='%2316602d'/%3E%3Ccircle cx='26' cy='24' r='5' fill='%23d0142c'/%3E%3Ccircle cx='34' cy='24' r='5' fill='%23b80f25'/%3E%3Ccircle cx='30' cy='30' r='5' fill='%23e01b2e'/%3E%3Ccircle cx='28.5' cy='28.5' r='1.4' fill='%23fff' opacity='.7'/%3E%3C/svg%3E") no-repeat calc(100% + 10px) -14px / 64px 43px,
              repeating-linear-gradient(0deg, rgba(0, 0, 0, .0) 0 9px, rgba(0, 0, 0, .12) 9px 10px),
              linear-gradient(180deg, #9a5a2a 0%, #6e3a16 55%, #4a240c 100%);
  border: 3px solid #3a1c08; box-shadow: inset 0 2px 0 rgba(255, 220, 170, .45), inset 0 -4px 0 rgba(0, 0, 0, .3), 0 -5px 0 -1px #f5f1ea, 0 10px 22px rgba(0, 0, 0, .5);
}
.roue__scene { width: min(76vw, 360px, 50vh); margin-bottom: 30px; isolation: isolate; }
.roue__svg {
  box-shadow: 0 0 0 4px #f2c45a, 0 0 0 16px #c8102e, 0 0 0 19px #f2c45a, 0 0 0 21px #7a0a1c,
              inset 0 0 30px rgba(0, 0, 0, .35), 0 0 60px rgba(242, 196, 90, .35), 0 26px 40px rgba(0, 0, 0, .6);
}
.roue__scene::after { /* le socle */
  content: ""; position: absolute; left: 22%; right: 22%; bottom: -44px; height: 40px; z-index: -1;
  background: linear-gradient(180deg, #ff4a5e 0%, #c8102e 40%, #7a0a1c 100%);
  clip-path: polygon(14% 0, 86% 0, 100% 78%, 100% 100%, 0 100%, 0 78%);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .35); border-bottom: 5px solid #f2c45a;
}
.roue__pointeur { z-index: 3; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .5)); }
.roue__pointeur path { fill: #e01b2e; stroke: #f2c45a; stroke-width: 2.5; }
.roue__pointeur circle { fill: #ffe08a; }
.roue__centre { width: 24%; height: 24%; background: radial-gradient(circle at 35% 30%, #fff6c8 0%, #f2c45a 45%, #a8701a 100%); box-shadow: 0 0 0 3px #7a4a08, inset 0 2px 0 #fff6c8, 0 6px 14px rgba(0, 0, 0, .45); z-index: 2; }
.roue__centre img { width: 72%; height: 72%; background: #fff; border-radius: 50%; padding: 6%; box-shadow: inset 0 2px 4px rgba(0, 0, 0, .25); }
.roue__btn.mc-btn, .roue .mc-btn {
  background: radial-gradient(120% 75% at 50% -10%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 55%), linear-gradient(180deg, #ff5a6c 0%, #d8142c 52%, #8a0a1c 100%);
  color: #fff; text-shadow: 0 2px 0 rgba(90, 0, 10, .6);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .6), inset 0 -4px 0 rgba(0, 0, 0, .25), 0 7px 0 #6a0614, 0 16px 26px rgba(0, 0, 0, .55);
}
.roue__aide { margin-top: -6px; }

/* décor du modèle au pied de la roue : cadeaux et branche de sapin à gauche, bonhomme de neige et boule à droite */
.roue::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 132px; z-index: 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 120'%3E%3Cdefs%3E%3ClinearGradient id='r' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23ff4a5e'/%3E%3Cstop offset='1' stop-color='%238a0a1c'/%3E%3C/linearGradient%3E%3ClinearGradient id='v' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%232fae6a'/%3E%3Cstop offset='1' stop-color='%230b4a2c'/%3E%3C/linearGradient%3E%3ClinearGradient id='o' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23a8701a'/%3E%3Cstop offset='.5' stop-color='%23ffe9a0'/%3E%3Cstop offset='1' stop-color='%23a8701a'/%3E%3C/linearGradient%3E%3CradialGradient id='p' cx='.4' cy='.35' r='.8'%3E%3Cstop offset='0' stop-color='%23a0703e'/%3E%3Cstop offset='1' stop-color='%234a2a10'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cellipse cx='60' cy='114' rx='60' ry='6' fill='%23000' opacity='.35'/%3E%3Cpolygon points='6,58 76,58 90,48 20,48' fill='%23ff6b7c'/%3E%3Cpolygon points='76,58 90,48 90,104 76,114' fill='%236a0817'/%3E%3Crect x='6' y='58' width='70' height='56' fill='url(%23r)'/%3E%3Crect x='36' y='58' width='10' height='56' fill='url(%23o)'/%3E%3Cpolygon points='36,58 46,58 60,48 50,48' fill='%23ffe9a0'/%3E%3Crect x='6' y='80' width='70' height='8' fill='url(%23o)'/%3E%3Cpolygon points='20,30 62,30 72,23 30,23' fill='%235fd08f'/%3E%3Cpolygon points='62,30 72,23 72,52 62,58' fill='%23063a20'/%3E%3Crect x='20' y='30' width='42' height='28' fill='url(%23v)'/%3E%3Crect x='37' y='30' width='8' height='28' fill='%23e01b2e'/%3E%3Cpath d='M41 24C33 10 22 14 28 22ZM41 24C49 10 60 14 54 22Z' fill='%23e01b2e' stroke='%238a0a1c' stroke-width='1'/%3E%3Cg stroke='%230f5a34' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M0 108 L60 92'/%3E%3Cpath d='M12 105l-6-9M22 102l-5-10M32 100l-4-10M42 97l-3-10M52 95l-2-10M14 106l2 9M26 103l3 9M38 100l3 9M50 97l3 9'/%3E%3C/g%3E%3Cellipse cx='70' cy='104' rx='11' ry='15' transform='rotate(-30 70 104)' fill='url(%23p)'/%3E%3Cg stroke='%232a1606' stroke-width='1.2' fill='none'%3E%3Cpath d='M62 96q8 4 16 0M60 103q9 4 18 0M62 110q8 3 15 0'/%3E%3C/g%3E%3Ccircle cx='92' cy='108' r='5' fill='%23e01b2e'/%3E%3Ccircle cx='99' cy='104' r='5' fill='%23c8102e'/%3E%3Ccircle cx='90.5' cy='106.5' r='1.4' fill='%23fff' opacity='.7'/%3E%3C/svg%3E") no-repeat 0 100% / 132px auto, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 130'%3E%3Cdefs%3E%3CradialGradient id='n' cx='.38' cy='.3' r='.8'%3E%3Cstop offset='0' stop-color='%23ffffff'/%3E%3Cstop offset='.7' stop-color='%23e6eef8'/%3E%3Cstop offset='1' stop-color='%23a8b8cc'/%3E%3C/radialGradient%3E%3CradialGradient id='b' cx='.35' cy='.3' r='.8'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='.9'/%3E%3Cstop offset='.2' stop-color='%23ff4a5e'/%3E%3Cstop offset='1' stop-color='%237a0a1c'/%3E%3C/radialGradient%3E%3ClinearGradient id='o' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23a8701a'/%3E%3Cstop offset='.5' stop-color='%23ffe9a0'/%3E%3Cstop offset='1' stop-color='%23a8701a'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cellipse cx='80' cy='124' rx='58' ry='6' fill='%23000' opacity='.35'/%3E%3Ccircle cx='86' cy='96' r='28' fill='url(%23n)'/%3E%3Ccircle cx='86' cy='54' r='20' fill='url(%23n)'/%3E%3Cpath d='M66 66q20 10 40 0v8q-20 10-40 0z' fill='%23c8102e'/%3E%3Crect x='92' y='68' width='8' height='22' rx='2' fill='%231f9a4c'/%3E%3Cpath d='M66 70q20 10 40 0' stroke='%231f9a4c' stroke-width='3' fill='none' stroke-dasharray='4 4'/%3E%3Ccircle cx='79' cy='50' r='2.6' fill='%231a1a22'/%3E%3Ccircle cx='93' cy='50' r='2.6' fill='%231a1a22'/%3E%3Cpath d='M86 56l14 4-14 2z' fill='%23f28c28'/%3E%3Cpath d='M79 62q7 5 14 0' stroke='%231a1a22' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3Ccircle cx='86' cy='90' r='2.6' fill='%231a1a22'/%3E%3Ccircle cx='86' cy='102' r='2.6' fill='%231a1a22'/%3E%3Cpath d='M66 40C68 22 80 14 98 18c-3 6-2 14 2 20' fill='%23c8102e'/%3E%3Crect x='64' y='36' width='42' height='9' rx='4.5' fill='%23fff'/%3E%3Ccircle cx='100' cy='38' r='5' fill='%23fff'/%3E%3Cpath d='M60 84 42 70M112 84l16-16' stroke='%236a4422' stroke-width='3' stroke-linecap='round'/%3E%3Cg stroke='%230f5a34' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M140 122 L96 116'/%3E%3Cpath d='M130 121l4-9M120 120l3-9M110 118l2-9M128 122l-2 8M116 120l-2 8'/%3E%3C/g%3E%3Cpath d='M40 98v8' stroke='url(%23o)' stroke-width='2'/%3E%3Crect x='36' y='104' width='8' height='5' rx='1.5' fill='url(%23o)'/%3E%3Ccircle cx='40' cy='118' r='11' fill='url(%23b)'/%3E%3C/svg%3E") no-repeat 100% 100% / 132px auto,
              radial-gradient(60% 70% at 50% 100%, rgba(255, 214, 140, .22), transparent 70%);
}
.roue > * { position: relative; z-index: 1; }
.roue__svg text { font-weight: 800; letter-spacing: -.01em; }


/* 08/11 (v7, Claude Code) : la roue de fête du pack ChatGPT de Leeroy (habillage: "fete") : socle, pointeur, médaillon vert au centre,
   panneau de bois « Tourne la roue de Noël ! », bouton « Tourner ! » rouge bordé de crème. Dessin seulement. */
.roue--fete { gap: 12px; padding-top: calc(72px + env(safe-area-inset-top)); }
.roue--fete .roue__scene { width: min(96vw, 430px, 50vh); aspect-ratio: 1 / 1.2; }   /* 08/11 (Leeroy) : la roue plus grande, presque toute la largeur du téléphone */
.roue--fete .roue__svg { width: 100%; height: auto; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 0 transparent, 0 18px 40px rgba(0,0,0,.6), 0 0 36px rgba(255,214,103,.35); }
.roue--fete .roue__socle { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 22%; z-index: 0; }
.roue--fete .roue__pointeur { top: -14px; width: 44px; height: 52px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.5)); }
.roue--fete .roue__centre { top: 41.7%; width: 24%; height: 20%; background: radial-gradient(circle at 40% 35%, #0C7855 0%, #033C30 100%); border: 4px solid #F6C443;
  box-shadow: 0 0 0 3px #8B0824, 0 6px 14px rgba(0,0,0,.5), inset 0 2px 6px rgba(255,255,255,.25); }
.roue--fete .roue__centre img { width: 72%; height: 72%; filter: drop-shadow(0 2px 2px rgba(0,0,0,.4)); }
.roue--fete.roue--tourne .roue__pointeur { transform-origin: 50% 15%; }
.roue__panneau { position: relative; z-index: 1; padding: 10px 26px 12px; border-radius: 10px; color: #FFE08B; font-family: var(--police-titre); font-weight: 800; font-size: 19px; text-align: center;
  background: linear-gradient(180deg, #8a5a2b 0%, #6a3f18 50%, #4a2a0e 100%); border: 3px solid #d9a85a; box-shadow: inset 0 2px 0 rgba(255,255,255,.2), 0 8px 18px rgba(0,0,0,.5); text-shadow: 0 2px 0 rgba(0,0,0,.5); }
.roue__panneau::before, .roue__panneau::after { content: ""; position: absolute; top: -8px; width: 26px; height: 22px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 22'%3E%3Cpath d='M3 12c4-6 9-8 10-10 1 2 6 4 10 10-4-1-7 0-10 4-3-4-6-5-10-4z' fill='%231f8a3a' stroke='%230d5a22' stroke-width='1.2'/%3E%3Ccircle cx='9' cy='15' r='2.6' fill='%23d9142e'/%3E%3Ccircle cx='15' cy='16' r='2.6' fill='%23d9142e'/%3E%3Ccircle cx='12' cy='11' r='2.2' fill='%23ff4a5e'/%3E%3C/svg%3E") center / contain no-repeat; }
.roue__panneau::before { left: -10px; } .roue__panneau::after { right: -10px; transform: scaleX(-1); }
.roue--fete .roue__btn { color: #fff; border: 3px solid #FFEAAA; text-shadow: 0 2px 0 rgba(0,0,0,.4);
  background: radial-gradient(120% 75% at 50% -10%, rgba(255,255,255,.45), rgba(255,255,255,0) 55%), linear-gradient(180deg, #F32D52 0%, #C4062F 50%, #9C012F 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.45), inset 0 -4px 0 rgba(0,0,0,.25), 0 0 0 2px #7a0a1c, 0 7px 0 #5a0012, 0 16px 26px rgba(0,0,0,.55); }
.roue--fete .roue__aide { color: #fff; opacity: 1; font-weight: 700; text-shadow: 0 2px 4px rgba(0,0,0,.7); }
/* en mode fête, les décors v6 s'effacent : pancarte en CSS (le texte vient de la config), socle v6, bonhomme de neige (pas de neige) */
.roue--fete::before, .roue--fete .roue__scene::after { display: none; }
.roue--fete::after { background: url("theme-noel/cadeaux-rouges.webp") left 6px bottom 8px / 104px auto no-repeat; height: 120px; }
.roue--fete .roue__scene { margin-bottom: 6px; }

/* 09/11 (Leeroy : « mets le fond des Palmistes ») : la place des Palmistes la nuit, image ChatGPT de Leeroy, derrière le jeu */
.mc-ecran--jeu { background: url("theme-noel/palmistes-nuit.webp") 50% 100% / cover no-repeat #041232; }
