/* The BonusTiime Christmas Tree — section de la page Stream (lot L-022).
   Sapin « Papier découpé » (maquettes validées le 2026-11-17). Habillage aux
   couleurs de Stake depuis le 2026-11-19 (retour du user : « stylise-le avec
   Stake ») : fonds bleu nuit de Stake, cartes #213743, boutons bleu Stake ;
   l'or, le rouge et la neige restent pour Noël. Tout est préfixé .xt. */
.xt {
	--xt-ink: #fff; --xt-mute: #b1bad3; --xt-soft: #d5dcea;
	--xt-red: #d7263d; --xt-red-d: #a3172a; --xt-gold: #e0b25a; --xt-gold-2: #f2c14e;
	--xt-cream: #f6ead2; --xt-hud: #213743; --xt-hud-line: #2f4553;
	--xt-stk-blue: #1475e1; --xt-stk-blue-d: #0f5fb8; --xt-stk-green: #00e701;
	--xt-tint: rgba(255, 255, 255, .06);
	--xt-display: 'Lilita One', 'Trebuchet MS', 'Arial Rounded MT Bold', sans-serif;
	color: var(--xt-ink);
	background:
		radial-gradient(70% 55% at 18% 0%, rgba(20, 117, 225, .2) 0%, rgba(20, 117, 225, 0) 70%),
		radial-gradient(50% 40% at 100% 100%, rgba(0, 231, 1, .06) 0%, rgba(0, 231, 1, 0) 70%),
		linear-gradient(180deg, #1a2c38 0%, #0f212e 100%);
	border-radius: 18px;
	padding: 32px 36px 28px;
	margin: 0;
	line-height: 1.5;
	box-sizing: border-box;
}
.xt *, .xt *::before, .xt *::after { box-sizing: border-box; }
.xt a { color: var(--xt-gold-2); }

/* Disposition « Tickets en bandeau » (choix du user du 2026-11-27, maquette C, lot L-033) : deux colonnes.
   À droite le titre, les tickets en bandeau et la mission, à leur hauteur naturelle ; à gauche le sapin, dont le
   cadre prend exactement la hauteur de la colonne de droite (canvas en absolu : aucun vide, ni sous les cartes,
   ni dans la carte de la mission). tree-render.js pose le sapin en bas du cadre, l'espace en trop va au ciel. */
.xt-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; align-items: stretch; }
.xt-left { display: flex; flex-direction: column; min-width: 0; min-height: 420px; }
/* Au-delà de 760 px (mission longue : quiz), le cadre s'arrête et reste collé à l'écran pendant qu'on fait défiler la mission. */
.xt-tree { position: sticky; top: 90px; flex: 1 1 auto; max-height: 760px; min-width: 0; min-height: 0; border-radius: 16px; box-shadow: 0 0 0 1px var(--xt-hud-line), 0 18px 40px rgba(0, 0, 0, .35); overflow: hidden; }
.xt-tree canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.xt .xt-stake { position: absolute; top: 14px; left: 16px; display: flex; align-items: center; gap: 8px; margin: 0; padding: 6px 10px; border-radius: 8px; background: rgba(15, 33, 46, .72); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--xt-mute); pointer-events: none; }
.xt .xt-stake img { display: block; height: 15px; width: auto; }
.xt-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.xt-titles { display: grid; gap: 6px; }
.xt-eyebrow { margin: 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--xt-gold); }
.xt-title { font-family: var(--xt-display); font-weight: 400; font-size: 40px; line-height: 1.02; margin: 0; color: var(--xt-ink); text-wrap: balance; }
.xt-sub { margin: 0; color: var(--xt-mute); font-size: 14.5px; line-height: 1.45; }
/* Les cartes gardent leur hauteur naturelle : c'est le cadre du sapin qui s'ajuste. */
.xt-side .xt-mission { flex: 0 0 auto; }

.xt-hud { position: relative; background: var(--xt-hud); border: 1px solid var(--xt-hud-line); border-radius: 14px; padding: 20px 20px 18px; box-shadow: 0 10px 28px rgba(0, 0, 0, .22); }
/* Neige posée sur la carte, sans dépasser de ses bords (retour du user du 2026-11-19 en mobile). */
.xt-hud::before {
	content: ""; position: absolute; left: 8px; right: 8px; top: -8px; height: 16px; pointer-events: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='16' viewBox='0 0 60 16'%3E%3Cpath d='M0 8 Q8 0 16 6 Q24 -1 32 6 Q40 0 48 6 Q54 2 60 7 L60 11 Q55 15 50 11 Q44 16 38 11 Q30 15 24 11 Q17 16 10 11 Q5 14 0 11 Z' fill='%23fbf4ea'/%3E%3C/svg%3E") repeat-x;
	background-size: 60px 16px;
}
.xt-loading { margin: 0; color: var(--xt-mute); font-size: 14px; }

/* ---------- carte de la mission ---------- */
.xt-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--xt-mute); font-weight: 700; }
.xt-pill { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 11.5px; letter-spacing: .1em; padding: 3px 9px; border-radius: 999px; }
.xt-pill.xt-live { background: var(--xt-red); color: #fff; }
.xt-pill.xt-live i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: xt-blink 1.2s ease-in-out infinite; }
.xt-pill.xt-gold { background: var(--xt-gold-2); color: #2a1700; }
.xt-pill.xt-missed { background: rgba(215, 38, 61, .2); color: #ff8a80; border: 1px solid rgba(215, 38, 61, .5); }
@keyframes xt-blink { 50% { opacity: .25; } }
.xt-mission h3 { font-family: var(--xt-display); font-weight: 400; font-size: 30px; line-height: 1.05; margin: 10px 0 6px; color: var(--xt-ink); }
.xt-mission > p { margin: 0; color: var(--xt-soft); font-size: 14.5px; }
.xt-mission > .xt-note { margin-top: 12px; font-size: 13.5px; color: var(--xt-mute); }
.xt-bar { height: 16px; border-radius: 999px; background: rgba(255, 255, 255, .1); margin: 14px 0 8px; overflow: hidden; }
.xt-bar i {
	display: block; height: 100%; border-radius: inherit; transition: width .5s;
	background: repeating-linear-gradient(135deg, #e33a47 0 10px, #fbf4ea 10px 20px); background-size: 28.28px 28.28px; animation: xt-cane 1.4s linear infinite;
}
@keyframes xt-cane { to { background-position: 28.28px 0; } }
.xt-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-size: 14px; color: var(--xt-mute); }
.xt-row b { font-family: var(--xt-display); font-weight: 400; font-size: 28px; line-height: 1; color: var(--xt-ink); }
.xt-elves { margin-left: auto; font-weight: 800; color: var(--xt-gold); }
.xt-goldline { margin: 8px 0 0; font-size: 13.5px; font-weight: 700; color: var(--xt-gold-2); }
.xt-note { margin: 12px 0 0; font-size: 13px; color: var(--xt-mute); }
.xt-ok { margin: 0; font-weight: 700; color: var(--xt-stk-green); }
.xt-warn { margin: 12px 0 0; font-size: 13px; color: #ffb3a8; }
.xt-box { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--xt-tint); display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); }
.xt-box p { margin: 0; font-size: 14px; color: var(--xt-soft); }
.xt-lab { font-size: 11.5px; font-weight: 800; color: var(--xt-mute); text-transform: uppercase; letter-spacing: .1em; }
.xt-link { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.xt-link span, .xt-link input {
	flex: 1 1 200px; min-width: 0; font: inherit; font-size: 13.5px; color: var(--xt-soft);
	background: #0f212e; border: 1px solid var(--xt-hud-line); border-radius: 8px; padding: 9px 11px;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.xt-link input::placeholder { color: #7f8fa8; }
.xt-link input:focus { outline: 2px solid var(--xt-gold-2); outline-offset: 1px; }
.xt-steps { margin-top: 14px; display: grid; gap: 12px; }
.xt-step { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; }
.xt-step > b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--xt-gold-2); color: #2a1700; font-family: var(--xt-display); font-weight: 400; font-size: 16px; }
.xt-step p, .xt-step label { display: block; margin: 3px 0 8px; font-size: 14px; color: var(--xt-soft); font-weight: 600; }
.xt-msg { margin: 6px 0 0; font-size: 13.5px; min-height: 1em; color: var(--xt-mute); }
.xt-msg:empty { display: none; }
.xt-msg.xt-good { color: var(--xt-stk-green); }
.xt-msg.xt-bad { color: #ffb3a8; }

.xt-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.xt-box .xt-cta, .xt-step .xt-cta { margin-top: 2px; }
.xt-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 800; font-size: 14px;
	padding: 10px 16px; border-radius: 10px; border: 0; cursor: pointer; text-decoration: none; white-space: nowrap; color: #fff;
}
.xt a.xt-btn { color: #fff; }
/* Bouton principal au bleu de Stake (classe xt-red gardée : posée par xmas-tree.js). */
.xt-btn.xt-red { background: linear-gradient(180deg, #1f86f0, var(--xt-stk-blue) 55%, var(--xt-stk-blue-d)); box-shadow: 0 4px 14px rgba(20, 117, 225, .35); }
.xt-btn.xt-ghost, .xt a.xt-btn.xt-ghost { background: rgba(255, 255, 255, .08); color: var(--xt-ink); box-shadow: inset 0 0 0 1px var(--xt-hud-line); }
.xt-btn:hover { filter: brightness(1.08); }
.xt-btn:focus-visible { outline: 2px solid var(--xt-gold-2); outline-offset: 2px; }
.xt-btn:disabled { opacity: .5; cursor: wait; }

/* vote */
.xt-vote { margin-top: 14px; display: grid; gap: 8px; }
.xt-vopt { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 10px 8px 8px; border-radius: 10px; background: var(--xt-tint); border: 1px solid transparent; }
.xt-vopt.xt-vsel { border-color: var(--xt-gold-2); }
.xt-vopt img, .xt-vimg { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; display: block; background: rgba(0, 0, 0, .3); }
.xt-vinfo { min-width: 0; display: grid; gap: 4px; }
.xt-vinfo a { color: var(--xt-ink); font-weight: 800; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xt-vinfo a:hover { text-decoration: underline; }
.xt-vbar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.xt-vbar i { display: block; height: 100%; background: var(--xt-gold-2); border-radius: inherit; }
.xt-vpct { font-size: 12.5px; color: var(--xt-mute); font-weight: 700; }
.xt-vmine { font-size: 12px; font-weight: 800; color: var(--xt-gold-2); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- tickets ---------- */
/* Bandeau : l'étiquette à gauche, le titre et sa ligne à droite, les chiffres en dessous sur une rangée pleine largeur. */
.xt-tickets { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; align-items: center; align-content: start; padding: 14px 16px 12px; }
.xt-tickets.xt-out { display: block; }
.xt-tag {
	position: relative; align-self: center; width: 78px; height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-left: 10px;
	background: var(--xt-cream); color: #b3132a; clip-path: polygon(22% 0, 100% 0, 100% 100%, 22% 100%, 0 70%, 0 30%);
}
.xt-tag::before { content: ""; position: absolute; left: 11px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: #213743; }
.xt-tag b { font-family: var(--xt-display); font-weight: 400; font-size: 30px; line-height: .95; }
.xt-tag span { font-size: 9.5px; font-weight: 800; color: #3a1a10; text-transform: uppercase; letter-spacing: .08em; }
.xt-t-info { min-width: 0; }
.xt-t-info h4 { font-family: var(--xt-display); font-weight: 400; font-size: 19px; margin: 0 0 1px; line-height: 1.1; color: var(--xt-ink); }
.xt-t-info p { margin: 0; font-size: 12.5px; line-height: 1.35; color: var(--xt-soft); }
.xt-t-rows { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.xt-t-rows div { background: var(--xt-tint); border-radius: 9px; padding: 6px 9px; font-size: 11px; color: var(--xt-mute); min-width: 0; line-height: 1.25; }
.xt-t-rows b { display: block; font-size: 14px; color: var(--xt-ink); }
.xt-tickets .xt-warn { grid-column: 1 / -1; margin: 0; font-size: 12px; }
.xt-t-rows.xt-t-rows--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.xt-tickets .xt-note, .xt-tickets .xt-ok { grid-column: 1 / -1; margin: 0; font-size: 12px; }

/* ---------- calendrier : sous les deux colonnes, 14 cases sur une ligne ---------- */
.xt-cal-wrap { margin-top: 16px; }
.xt-h2 { font-family: var(--xt-display); font-weight: 400; font-size: 26px; margin: 0 0 12px; color: var(--xt-ink); }
.xt-cal { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 6px; }
.xt-cd {
	border-radius: 10px; padding: 8px 4px 9px; background: #1a2c38; border: 1px solid var(--xt-hud-line);
	font-size: 11px; text-align: center; color: var(--xt-mute); display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 88px; line-height: 1.2;
}
.xt-d { font-weight: 800; color: var(--xt-ink); font-size: 11.5px; }
.xt-k { font-family: var(--xt-display); font-size: 21px; line-height: 1; color: var(--xt-gold); }
.xt-cd.xt-done { background: rgba(0, 231, 1, .1); border-color: rgba(0, 231, 1, .45); }
.xt-cd.xt-done .xt-k { color: var(--xt-stk-green); }
.xt-cd.xt-cgold { background: rgba(242, 193, 78, .18); border-color: var(--xt-gold-2); }
.xt-cd.xt-cgold .xt-k { color: var(--xt-gold-2); }
.xt-cd.xt-missed { background: rgba(215, 38, 61, .13); border-color: rgba(215, 38, 61, .5); }
.xt-cd.xt-missed .xt-k, .xt-cd.xt-missed .xt-nm { color: #ff8a80; }
.xt-cd.xt-live { border-color: var(--xt-gold-2); box-shadow: inset 0 0 0 1px var(--xt-gold-2), 0 0 18px rgba(242, 193, 78, .25); }
.xt-cd.xt-live .xt-k { font-size: 14px; letter-spacing: .08em; color: var(--xt-gold-2); padding-block: 4px 3px; }
.xt-cd.xt-star { background: linear-gradient(#2c3a2e, #1a2c38); border-color: rgba(224, 178, 90, .7); }
.xt-cd.xt-star.xt-lit { box-shadow: 0 0 22px rgba(242, 193, 78, .45); border-color: var(--xt-gold-2); }
.xt-cd.xt-star .xt-k { color: var(--xt-gold-2); }

/* ---------- explications hors du cadre (2026-11-27) : texte simple sous le panneau, sans cartes ---------- */
/* Hors de .xt, sur le fond de la page (clair, ou sombre en dark mode) : les textes héritent des couleurs de la
   coquille Stream ; sélecteurs assez précis pour passer devant ses règles (h2 en couleur d'accent, par exemple). */
.xt-sec .xt-how-wrap { margin: 22px 8px 0; display: grid; gap: 12px; color: inherit; }
.xt-sec .xt-how-wrap .xt-how-h { font-family: 'Lilita One', 'Trebuchet MS', 'Arial Rounded MT Bold', sans-serif; font-weight: 400; font-size: 22px; line-height: 1.2; margin: 0; color: inherit; }
.xt-sec .xt-how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; font-size: 13.5px; line-height: 1.5; }
.xt-sec .xt-how p { margin: 0; color: inherit; opacity: .82; }
.xt-sec .xt-how p b { color: inherit; font-weight: 800; }
.xt-sec .xt-rules { margin: 0; font-size: 12px; color: inherit; opacity: .62; }

/* ---------- réussite : bandeau sur le sapin ---------- */
.xt-burst {
	position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: min(92%, 520px); text-align: center;
	padding: 14px 18px 16px; border-radius: 14px; background: rgba(15, 33, 46, .95); border: 1.5px solid var(--xt-gold-2); pointer-events: none;
}
.xt-burst b { display: block; font-family: var(--xt-display); font-weight: 400; font-size: 34px; line-height: 1.05; color: var(--xt-gold-2); text-shadow: 0 3px 0 #7a1b24; }
.xt-burst span { display: block; margin-top: 4px; font-size: 14.5px; font-weight: 700; color: var(--xt-ink); }
.xt-burst.xt-show { animation: xt-pop 6s ease both; }
@keyframes xt-pop { 0% { opacity: 0; transform: translate(-50%, 16px) scale(.92); } 8% { opacity: 1; transform: translate(-50%, 0) scale(1.04); } 12%, 88% { opacity: 1; transform: translate(-50%, 0) scale(1); } 100% { opacity: 0; transform: translate(-50%, 8px); } }

/* ---------- tablette et mobile ---------- */
@media (max-width: 1100px) {
	.xt { padding: 26px 22px 24px; }
	/* Une colonne : titre, sapin, mission, tickets, calendrier. */
	.xt-hero { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.xt-left, .xt-side { display: contents; }
	.xt-titles { grid-row: 1; }
	.xt-tree { grid-row: 2; }
	/* Cadre aux proportions du dessin (1,24 × 1,12). */
	.xt-tree { position: relative; top: auto; max-height: none; }
	.xt-tree canvas { position: static; height: auto; aspect-ratio: 1.24 / 1.12; max-height: 560px; }
	.xt-mission { grid-row: 3; }
	.xt-tickets { grid-row: 4; }
	.xt-cal { grid-template-columns: repeat(7, minmax(0, 1fr)); }
	.xt-sec .xt-how { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}
@media (max-width: 768px) {
	.xt { border-radius: 14px; padding: 22px 14px 20px; }
	.xt-title { font-size: 34px; }
	.xt-mission h3 { font-size: 26px; }
	.xt-cal { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
	.xt-t-rows, .xt-t-rows.xt-t-rows--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.xt-burst b { font-size: 26px; }
	.xt-sec .xt-how-wrap { margin: 18px 4px 0; }
}
@media (prefers-reduced-motion: reduce) {
	.xt-bar i, .xt-pill.xt-live i { animation: none; }
	.xt-burst.xt-show { animation: none; }
}

/* ---------- onglet « Christmas Tree » de la barre du stream (coquille Stream) ---------- */
.sh-tabs a.sh-tabs__a.sh-tabs__a--xmas,
body.dark_mode .sh-tabs a.sh-tabs__a.sh-tabs__a--xmas {
	position: relative;
	overflow: hidden;
	color: #fff;
	font-weight: 800;
	background: linear-gradient(135deg, #d7263d 0%, #b01b30 55%, #8e0f22 100%);
	box-shadow: inset 0 0 0 1.5px rgba(242, 193, 78, .8);
	text-shadow: 0 1px 0 rgba(90, 8, 20, .45);
}
.sh-tabs a.sh-tabs__a.sh-tabs__a--xmas::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 3px;
	background: repeating-linear-gradient(135deg, #fbf4ea 0 5px, #d7263d 5px 10px);
	opacity: .9;
}
.sh-tabs a.sh-tabs__a.sh-tabs__a--xmas:hover,
body.dark_mode .sh-tabs a.sh-tabs__a.sh-tabs__a--xmas:hover {
	color: #fff;
	background: linear-gradient(135deg, #e33a47 0%, #c41f33 55%, #9e1024 100%);
}
.sh-tabs a.sh-tabs__a.sh-tabs__a--xmas.is-active,
body.dark_mode .sh-tabs a.sh-tabs__a.sh-tabs__a--xmas.is-active {
	color: #fff;
	background: linear-gradient(135deg, #23955a 0%, #17673f 100%);
	box-shadow: inset 0 0 0 2px #f2c14e;
}
.sh-tabs a.sh-tabs__a.sh-tabs__a--xmas:focus-visible { outline: 2px solid #f2c14e; outline-offset: 1px; }
.sh-tabs__xmas-ico { display: block; flex: none; width: 15px; height: 17px; }
.sh-tabs__xmas-star { animation: xt-twinkle 2.4s ease-in-out infinite; }
@keyframes xt-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

/* ---------- panneau dans la coquille Stream ---------- */
.xt-sec { padding-top: 28px; }
@media (prefers-reduced-motion: reduce) {
	.sh-tabs__xmas-star { animation: none; }
}

/* ---------- ouverture du 18 : vue publique, la même pour tout le monde (2026-11-19) ---------- */
.xt-op-gold { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 2px 9px; border-radius: 999px; background: var(--xt-gold-2); color: #2a1700; font-family: inherit; font-size: 13px; letter-spacing: .08em; }
.xt-mission .xt-op-prize { margin: 6px 0 12px; font-family: var(--xt-display); font-size: 26px; line-height: 1.1; color: var(--xt-ink); }
.xt-mission .xt-op-prize.is-gold { color: var(--xt-gold-2); }
.xt-op-win { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.xt-op-win li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 10px; background: var(--xt-tint); border: 1px solid var(--xt-gold-2); font-size: 15px; animation: xt-op-in .5s ease both; }
.xt-op-win li b { color: var(--xt-ink); }
.xt-op-win li span { color: var(--xt-gold-2); font-weight: 800; }
.xt-op-code { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 10px; padding: 12px 16px; border-radius: 12px; border: 2px dashed var(--xt-gold-2); background: var(--xt-tint); }
.xt-op-code b { font-family: var(--xt-display); font-weight: 400; font-size: 34px; letter-spacing: .06em; color: var(--xt-ink); user-select: all; }
.xt-op-code span { color: var(--xt-gold-2); font-weight: 800; }
.xt-op-all { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--xt-hud-line); }
.xt-op-all h4 { margin: 0 0 6px; font-family: var(--xt-display); font-weight: 400; font-size: 20px; color: var(--xt-ink); }
.xt-op-all p { margin: 0 0 4px; font-size: 13.5px; color: var(--xt-soft); }
.xt-op-all p b { color: var(--xt-gold-2); margin-right: 4px; }
@keyframes xt-op-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .xt-op-win li { animation: none; } }

/* ---------- missions du lot B (5 à 9), 2026-11-23 ---------- */
.xt-slots { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.xt-slot { width: 30px; height: 30px; border-radius: 8px; background: var(--xt-tint); border: 1px solid var(--xt-hud-line); }
.xt-slot.is-on { background: var(--xt-stk-green); border-color: var(--xt-stk-green); box-shadow: 0 0 10px rgba(0, 231, 1, .35); }
.xt-slot.is-now { outline: 2px solid var(--xt-gold-2); outline-offset: 2px; }
.xt-clues { list-style: none; margin: 10px 0 6px; padding: 0; display: grid; gap: 6px; }
.xt-clues li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 8px; align-items: start; padding: 8px 10px; border-radius: 10px; background: var(--xt-tint); font-size: 14px; color: var(--xt-soft); }
.xt-clues li b { font-family: var(--xt-display); font-weight: 400; font-size: 18px; color: var(--xt-gold-2); text-align: center; }
.xt-clues li.is-found { border: 1px solid var(--xt-stk-green); }
.xt-clues li.is-found b { color: var(--xt-stk-green); }
.xt-live-word { margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; background: rgba(242, 193, 78, .16); border: 1px solid var(--xt-gold-2); color: var(--xt-ink); font-weight: 800; animation: xt-op-in .5s ease both; }
@media (prefers-reduced-motion: reduce) { .xt-live-word { animation: none; } }

/* ---------- missions du lot C (10 à 14) et lettre lue le 18, 2026-11-23 ---------- */
.xt-bar.xt-bar--thin { height: 12px; margin: 10px 0 6px; }
.xt-textarea { display: block; width: 100%; margin: 8px 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--xt-hud-line); background: var(--xt-tint); color: var(--xt-ink); font: inherit; font-size: 14.5px; resize: vertical; min-height: 110px; }
.xt-textarea:focus { outline: 2px solid var(--xt-gold-2); outline-offset: 1px; }
.xt-row2 { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.xt-quiz { display: grid; gap: 10px; }
.xt-quiz fieldset { display: block; min-width: 0; margin: 0; padding: 10px 12px 12px; border: 1px solid var(--xt-hud-line); border-radius: 10px; background: var(--xt-tint); }
.xt-quiz legend { float: left; width: 100%; padding: 0; margin: 0 0 8px; font-weight: 800; color: var(--xt-ink); font-size: 14.5px; line-height: 1.35; }
.xt-qas { clear: both; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.xt-qas.is-long { grid-template-columns: minmax(0, 1fr); }
.xt-qa { display: flex; gap: 8px; align-items: center; min-width: 0; padding: 8px 10px; border-radius: 9px; background: rgba(15, 33, 46, .55); border: 1px solid var(--xt-hud-line); font-size: 14px; line-height: 1.3; color: var(--xt-soft); cursor: pointer; }
.xt-qa:hover { border-color: var(--xt-gold); }
.xt-qa:has(input:checked) { border-color: var(--xt-gold-2); background: rgba(242, 193, 78, .12); color: var(--xt-ink); }
.xt-qa:has(input:focus-visible) { outline: 2px solid var(--xt-gold-2); outline-offset: 1px; }
.xt-qa input { accent-color: var(--xt-gold-2); width: 16px; height: 16px; margin: 0; flex: none; }
.xt-qa b { font-family: var(--xt-display); font-weight: 400; font-size: 15px; color: var(--xt-gold-2); }
.xt-qa span { min-width: 0; overflow-wrap: anywhere; }
.xt-qlink { display: inline-block; margin-top: 6px; font-size: 12.5px; }
.xt-op-letter { margin: 10px 0; padding: 12px 14px; border-radius: 12px; background: rgba(246, 234, 210, .08); border: 1px solid var(--xt-gold-2); animation: xt-op-in .5s ease both; }
.xt-op-letter span { font-size: 13px; color: var(--xt-gold-2); font-weight: 800; }
.xt-op-letter p { margin: 6px 0 0; color: var(--xt-ink); font-size: 15px; white-space: pre-line; }
@media (prefers-reduced-motion: reduce) { .xt-op-letter { animation: none; } }

/* ---------- retours du 2026-11-24 : boules de neige, média des lettres, jour de l'ouverture ---------- */
.xt-cta.xt-cta--wide { display: grid; }
.xt-btn.xt-big { padding: 14px 18px; font-size: 16px; }
.xt-btn.xt-big:disabled { cursor: default; opacity: .7; }
.xt-balls { display: flex; flex-wrap: wrap; gap: 7px; margin: 4px 0 0; }
.xt-ball { width: 20px; height: 20px; border-radius: 50%; background: var(--xt-tint); border: 1px dashed rgba(213, 220, 234, .45); }
.xt-ball.is-on { border: 0; background: radial-gradient(circle at 34% 30%, #fff 0 30%, #dfeaf3 62%, #b7cadb 100%); box-shadow: 0 2px 5px rgba(3, 10, 16, .4); }
.xt-media { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.xt-media .xt-note { margin: 0; overflow-wrap: anywhere; }
.xt-media .xt-note.xt-bad { color: #ffb3a8; }
.xt-media-in { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.xt-media-in:focus-visible + label { outline: 2px solid var(--xt-gold-2); outline-offset: 2px; }
.xt-media-view { flex: 1 0 100%; display: flex; align-items: flex-end; gap: 10px; }
.xt-media-view[hidden] { display: none; }
.xt-media-view img, .xt-media-view video { display: block; max-width: min(100%, 260px); max-height: 180px; border-radius: 10px; border: 1px solid var(--xt-hud-line); background: #0f212e; }
.xt-op-media { display: block; max-width: 100%; max-height: 340px; margin: 10px 0 0; border-radius: 10px; background: #0f212e; }
.xt-ready-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 7px; }
.xt-ready-list li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; padding: 9px 12px; border-radius: 10px; background: var(--xt-tint); font-size: 14px; color: var(--xt-soft); }
.xt-ready-list li b { font-family: var(--xt-display); font-weight: 400; font-size: 18px; line-height: 1.2; color: var(--xt-gold-2); text-align: center; }
.xt-ready-list li.is-ok { box-shadow: inset 0 0 0 1px var(--xt-stk-green); }
.xt-ready-list li.is-ok b { color: var(--xt-stk-green); }
.xt-ready-list strong { color: var(--xt-ink); }
@media (max-width: 480px) { .xt-qas:not(.is-short) { grid-template-columns: minmax(0, 1fr); } }
