/* theme-noel-jeu.css — le style propre de ce jeu dans le thème « Nuit de Noël » : Runner : la rue de Cayenne, bleu nuit et lignes de route.
   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(255,120,80,.22) 0%, transparent 70%), radial-gradient(130% 55% at 50% -8%, #1f3d7a 0%, #0f1f45 38%, #050a1c 100%);
  --noel-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%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%3Cpath d='M20 4v10M20 26v10' stroke='%23f2c45a' stroke-opacity='.13' stroke-width='3' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E");
  --noel-motif-taille: 40px 40px;
  --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%3Cpath d='M130 40 60 280M170 40l70 240M150 70v30M150 140v40M150 220v50'/%3E%3Ccircle cx='150' cy='40' r='10'/%3E%3C/g%3E%3Cg fill='none' stroke='url%28%23o%29' stroke-width='8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M130 40 60 280M170 40l70 240M150 70v30M150 140v40M150 220v50'/%3E%3Ccircle cx='150' cy='40' r='10'/%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%3Cpath d='M130 40 60 280M170 40l70 240M150 70v30M150 140v40M150 220v50'/%3E%3Ccircle cx='150' cy='40' r='10'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Runner (08/11, d'après les planches de Leeroy) : bandeau de niveau en ruban rouge, message de fin en cadre doré enneigé ---------- */
.runner__niveau {
  top: 26%; padding: 14px 44px; border-radius: 10px; font-size: clamp(28px, 8.5vw, 40px); color: #fff; letter-spacing: .01em;
  background: linear-gradient(180deg, #ff5a6c 0%, #e01b2e 45%, #a80d22 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45), inset 0 -4px 0 rgba(0, 0, 0, .25), 0 10px 24px rgba(0, 0, 0, .5);
  text-shadow: 0 2px 0 #6a0614, 0 4px 8px rgba(0, 0, 0, .4);
}
.runner__niveau::before, .runner__niveau::after {   /* les pans du ruban */
  content: ""; position: absolute; top: 12px; width: 46px; height: 100%; z-index: -1;
  background: linear-gradient(180deg, #c8102e, #8a0a1c);
}
.runner__niveau::before { left: -30px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 36% 50%); }
.runner__niveau::after { right: -30px; clip-path: polygon(0 0, 100% 0, 64% 50%, 100% 100%, 0 100%); }

.runner__fin {
  top: 34%; padding: 44px 26px 26px; border-radius: 22px; font-size: clamp(22px, 6.6vw, 30px); color: #fff8e6; line-height: 1.2;
  background: linear-gradient(180deg, #e8313f 0%, #c8102e 60%, #9a0a22 100%);
  border: 5px solid #f2c45a;
  box-shadow: 0 0 0 3px #8a5a10, inset 0 2px 0 rgba(255, 255, 255, .35), inset 0 -6px 0 rgba(0, 0, 0, .25), 0 22px 44px rgba(0, 0, 0, .6);
  text-shadow: 0 2px 0 #6a0614, 0 4px 10px rgba(0, 0, 0, .45);
}
.runner__fin::before {   /* la neige sur le haut du cadre */
  content: ""; position: absolute; left: -5px; right: -5px; top: -6px; height: 26px;
  background: radial-gradient(circle at 10% 100%, #fff 0 10px, transparent 11px), radial-gradient(circle at 30% 100%, #fff 0 14px, transparent 15px), radial-gradient(circle at 50% 100%, #fff 0 9px, transparent 10px),
              radial-gradient(circle at 70% 100%, #fff 0 13px, transparent 14px), radial-gradient(circle at 90% 100%, #fff 0 10px, transparent 11px), linear-gradient(#fff, #fff) 0 0 / 100% 12px no-repeat;
  border-radius: 20px 20px 0 0;
}
.runner__fin::after {   /* les trois étoiles dorées */
  content: ""; position: absolute; left: 50%; top: -34px; width: 150px; height: 48px; margin-left: -75px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 48'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fff2a8'/%3E%3Cstop offset='1' stop-color='%23e8a21e'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='url(%23g)' stroke='%238a5a10' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M30 14l5 10 11 1.5-8 7.5 2 11-10-5.5-10 5.5 2-11-8-7.5 11-1.5z'/%3E%3Cpath d='M75 2l6.5 13 14.5 2-10.5 10 2.5 14.5L75 35l-13 6.5L64.5 27 54 17l14.5-2z'/%3E%3Cpath d='M120 14l5 10 11 1.5-8 7.5 2 11-10-5.5-10 5.5 2-11-8-7.5 11-1.5z'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .5));
}

/* 08/11 (Claude Design v6) : plus de guirlande en haut des écrans (choix de Leeroy). Pour le runner seulement pour l'instant ;
   à passer dans themes/noel/theme.css quand les autres jeux seront revus. */
.mc-intro::before, .mc-resultat::before, .mc-form::before, .mc-flyer::before { display: none; }
.mc-intro, .mc-resultat { padding-top: max(28px, calc(16px + env(safe-area-inset-top))); }
.mc-form, .mc-flyer { padding-top: calc(60px + env(safe-area-inset-top)); }
