/* L'Affaire Conan (conan-event.js) : bleu nuit, rouge du nœud papillon, or de la loupe. */
.ce-dialog { --ce-night:#0b1630; --ce-blue:#1f4fb0; --ce-sky:#7fb0ff; --ce-red:#d7263d; --ce-gold:#f2c14e; background:radial-gradient(900px 480px at 90% -10%,#1f4fb040,transparent 70%),radial-gradient(700px 420px at 0% 110%,#d7263d24,transparent 70%),#08101f; color:#e9eefc }
.ce-main { display:flex; flex-direction:column; gap:16px; max-width:1280px; margin:0 auto; padding:18px 18px 28px; box-sizing:border-box }
.ce-brand { text-shadow:0 0 12px #1f4fb0a6 }
.ce-hero { display:grid; grid-template-columns:minmax(0,1fr) 200px; gap:22px; align-items:center; padding:22px; border-radius:18px; background:linear-gradient(135deg,#0f2147,#0b1630 60%,#2a0d18); border:1px solid #2b4c8f }
.ce-hero small { color:var(--ce-gold); font-weight:700; letter-spacing:.02em }
.ce-hero h1 { display:flex; align-items:center; gap:10px; margin:6px 0 8px; font-size:clamp(26px,4vw,38px); line-height:1.1 }
.ce-loupe { width:1em; height:1em; color:var(--ce-gold); flex:none }
.ce-hero p { margin:0 0 14px; color:#c8d3f0; max-width:60ch }
.ce-hero-text > span { display:block; margin-top:8px; color:#9fb0d8; font-size:13px }
.ce-actions { display:flex; flex-wrap:wrap; gap:10px }
.ce-cta { padding:12px 18px; border:0; border-radius:12px; background:var(--ce-red); color:#fff; font-weight:800; cursor:pointer; box-shadow:0 0 18px #d7263d66 }
.ce-cta-alt { background:var(--ce-blue); box-shadow:0 0 18px #1f4fb066 }
.ce-cta:disabled { opacity:.45; cursor:default; box-shadow:none }
.ce-cta:not(:disabled):hover { filter:brightness(1.1) }
.ce-booster { width:100%; max-width:200px; justify-self:center; border-radius:14px; filter:drop-shadow(0 10px 28px #000c) }
.ce-status:empty { display:none }
.ce-status { margin:0; padding:10px 14px; border-radius:10px; background:#12244a; color:var(--ce-gold); font-weight:700 }
.ce-cols h2 { margin-top:0 }
.ce-done { color:#7ee0a8 !important }
/* Paliers : piste commune (reward-track.css), aux couleurs de l'Affaire Conan. */
.ce-dialog .rt { --rt-card:#121b35; --rt-card-2:#0b1328; --rt-line:#25355e; --rt-accent:#d7263d; --rt-gold:#e8b84a; --rt-fill:#4f86ff }
.ce-road-note { margin:-6px 0 0; color:#7f90b8; font-size:12.5px }
.ce-mini { padding:6px 12px; border:0; border-radius:999px; background:var(--ce-gold); color:#1a1405; font-weight:800; cursor:pointer }
.ce-mini:disabled { opacity:.5 }
.ce-cols { display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:16px }
.ce-quest { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 0; border-top:1px solid #1d2e57 }
.ce-quest > div { display:grid; gap:4px; flex:1; min-width:0 }
.ce-quest progress { width:100%; height:6px; accent-color:var(--ce-sky) }
.ce-quest small { color:#9fb0d8 }
.ce-quest > b { white-space:nowrap; color:#9fb0d8; padding-right:4px }
.ce-foot { margin:0; color:#9fb0d8; font-size:13px }
/* Bandeau de l'accueil : illustration Conan à droite, texte sur dégradé bleu nuit à gauche, booster incliné, reflet lent. */
.ce-banner { position:relative; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:16px; min-height:200px; margin:0 0 18px; padding:24px 28px; box-sizing:border-box;
  border-radius:20px; overflow:hidden; cursor:pointer; color:#fff; isolation:isolate; border:1px solid #2b4c8f;
  background:#0b1630; isolation:isolate;
  box-shadow:0 10px 26px #0009; transition:border-color .2s }
.ce-banner:hover { border-color:#4a6bb0 }
.ce-banner:focus-visible { outline:2px solid #f2c14e; outline-offset:3px }
.ce-banner-text { display:flex; flex-direction:column; align-items:flex-start; gap:8px; max-width:520px }
.ce-banner-text small { display:inline-flex; align-items:center; gap:6px; color:#f2c14e; font-weight:800; font-size:12px; letter-spacing:.08em; text-transform:uppercase }
.ce-banner-text small .ce-loupe { width:16px; height:16px }
.ce-banner h2 { margin:0; font-size:clamp(28px,4.2vw,46px); line-height:1.02; text-shadow:0 2px 10px #000c }
.ce-banner p { margin:0; color:#d6e0fa; max-width:46ch; font-size:15px; text-shadow:0 1px 2px #000c }
.ce-banner-cta { margin-top:6px; padding:10px 18px; border-radius:9px; background:#d7263d; color:#fff; font-weight:800 }
.ce-banner:hover .ce-banner-cta { filter:brightness(1.1) }
.ce-banner-pack { height:178px; width:auto; transform:rotate(6deg); filter:drop-shadow(0 12px 20px #000d); transition:transform .3s }
.ce-banner:hover .ce-banner-pack { transform:rotate(3deg) }
@media (prefers-reduced-motion:reduce) { .ce-banner, .ce-banner-pack { transition:none } }
@media (max-width:640px) {
  .ce-banner { min-height:170px; padding:18px; grid-template-columns:minmax(0,1fr) 84px;
    background:#0b1630 }
  .ce-banner p { font-size:13.5px }
  .ce-banner-pack { height:120px }
}
/* Palier au choix : trois boosters d'univers. */
.ce-choose { margin:10px 0 0; padding:14px; border-radius:14px; background:#12244a; border:1px solid #f2c14e66 }
.ce-choose p { margin:0 0 10px; color:#c8d3f0 }
.ce-choose > div { display:flex; flex-wrap:wrap; gap:10px }
.ce-choose button { display:flex; flex-direction:column; align-items:center; gap:6px; padding:10px 12px; border-radius:12px; border:1px solid #2b4c8f; background:#0b1630; color:#fff; font-weight:800; cursor:pointer }
.ce-choose button:hover { border-color:#f2c14e; box-shadow:0 0 14px #f2c14e40 }
.ce-choose img { height:96px; width:auto }
.ce-test { border:1px dashed #f2c14e88 }
.ce-test h2 { margin-top:0; color:#f2c14e }
.ce-test small { color:#9fb0d8 }
@media (max-width:640px) {
  .ce-hero { grid-template-columns:1fr; text-align:left }
  .ce-booster { max-width:150px; grid-row:1 }
  .ce-main { padding:12px 12px 24px }
}
/* Une seule barre de défilement : la page derrière l'événement ne défile pas tant qu'il est ouvert. */
html:has(dialog.ce-dialog[open]), html:has(dialog.ce-dialog[open]) body { overflow:hidden }
/* En-tête de la page : illustration et booster à gauche, fiche d'achat à droite. */
.ce-hero2 { display:grid; grid-template-columns:minmax(280px, 44%) minmax(0, 1fr); min-height:300px; border-radius:16px; overflow:hidden; border:1px solid #25355e; background:#0b1328 }
.ce-hero2-art { position:relative; background:var(--ce-art) 28% center/cover no-repeat, #0b1328 }
.ce-hero2-art::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg, #0b132800 50%, #0b1328 100%) }
.ce-hero2-art img { position:absolute; z-index:1; right:18px; bottom:16px; height:250px; width:auto; transform:rotate(4deg); filter:drop-shadow(0 14px 22px #000d) }
.ce-hero2-body { display:flex; flex-direction:column; justify-content:center; gap:10px; padding:28px 34px }
.ce-hero2-when { color:#e8b84a; font-weight:700; font-size:13px }
.ce-hero2-body h1 { margin:0; font-size:clamp(30px, 3.6vw, 44px); line-height:1.05 }
.ce-hero2-body > p { margin:0; color:#b9c4de; max-width:46ch }
.ce-buy { display:flex; flex-wrap:wrap; align-items:center; gap:14px 28px; margin:6px 0 4px; padding:14px 0; border-top:1px solid #25355e; border-bottom:1px solid #25355e }
.ce-price { display:flex; align-items:center; gap:8px }
.ce-coin { width:30px; height:30px }
.ce-price strong { font-size:26px; line-height:1; font-variant-numeric:tabular-nums }
.ce-price span { color:#8b97b5; font-size:13px }
.ce-today { display:flex; flex-direction:column; gap:6px; color:#8b97b5; font-size:13px }
.ce-today b { color:#e8edf8 }
.ce-ticks { display:flex; gap:3px }
.ce-ticks i { width:14px; height:6px; border-radius:2px; background:#25355e }
.ce-ticks i.is-used { background:#e8b84a }
.ce-hero2-actions { display:flex; flex-wrap:wrap; gap:10px }
.ce-btn { padding:11px 18px; border:0; border-radius:9px; background:#d7263d; color:#fff; font-weight:800; font-size:14px; cursor:pointer }
.ce-btn:not(:disabled):hover { filter:brightness(1.08) }
.ce-btn:disabled { opacity:.45; cursor:default }
.ce-btn-ghost { background:transparent; border:1px solid #33467a; color:#dbe3f7 }
.ce-btn-ghost b { margin-left:6px; padding:0 7px; border-radius:5px; background:#25355e }
.ce-hero2-note { color:#8b97b5 }
.ce-dialog .ce-cols { display:grid; grid-template-columns:repeat(auto-fit, minmax(320px, 1fr)); gap:16px }
@media (max-width:760px) {
  .ce-hero2 { grid-template-columns:1fr }
  .ce-hero2-art { height:210px }
  .ce-hero2-art::after { background:linear-gradient(180deg, #0b132800 55%, #0b1328 100%) }
  .ce-hero2-art img { height:180px; right:14px; bottom:-10px }
  .ce-hero2-body { padding:20px }
}
/* Image de la bannière dans son propre calque : cadrage réglable (reward-track.js, FMRewardTrack.banner). */
.ce-banner-bg { position:absolute; inset:0; z-index:-1; overflow:hidden; border-radius:inherit; pointer-events:none }
.ce-banner-bg::before { content:""; position:absolute; inset:0; background:var(--ce-banner) var(--rb-bx, 100%) var(--rb-by, 50%) / cover no-repeat; transform:scale(var(--rb-bz, 1)); transform-origin:var(--rb-bx, 100%) var(--rb-by, 50%) }
.ce-banner-bg::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,#070e1c 0%,#0b1630f0 32%,#0b163099 56%,#0b163010 82%) }
@media (max-width:640px) {
  .ce-banner-bg::before { background-position:var(--rb-mx, 70%) var(--rb-my, 50%); transform:scale(var(--rb-mz, 1)); transform-origin:var(--rb-mx, 70%) var(--rb-my, 50%) }
  .ce-banner-bg::after { background:linear-gradient(90deg,#070e1c 0%,#0b1630e6 50%,#0b163066 100%) }
}
