:root {
  --bg: #0B1020;
  --panel: #151C31;
  --panel-2: #1D2642;
  --line: #2A3558;
  --text: #EEF1F8;
  --muted: #8E98B5;
  --land: #3A3E4A;
  --land-line: #0B1020;
  --accent: #F2C14E;
  --danger: #E5484D;
  --ok: #3DD68C;
  --player: #F08C21;
  --radius: 14px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); }
body {
  font: 15px/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  overscroll-behavior: none; -webkit-user-select: none; user-select: none;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
#app { min-height: 100%; max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; }

/* ---------- Accueil ---------- */
.home { flex: 1; display: flex; flex-direction: column; padding: calc(24px + var(--safe-top)) 20px calc(24px + var(--safe-bottom)); gap: 18px; }
.logo { font-size: 40px; font-weight: 800; letter-spacing: -1px; margin: 20px 0 0; }
.logo span { color: var(--accent); }
.tag { color: var(--muted); margin: -10px 0 0; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.field input { font: inherit; font-size: 18px; font-weight: 700; color: var(--text); background: var(--panel); border: 2px solid var(--line); border-radius: var(--radius); padding: 12px 14px; outline: none; }
.field input:focus { border-color: var(--player); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 40px; height: 40px; border-radius: 50%; border: 3px solid transparent; box-shadow: inset 0 0 0 2px rgba(0,0,0,.25); }
.swatch[aria-pressed="true"] { border-color: var(--text); transform: scale(1.08); }
.rivals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rival { background: var(--panel); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; text-align: center; color: var(--muted); }
.rival b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; }
.cta { background: var(--player); color: #111; font-weight: 800; font-size: 18px; border-radius: 999px; padding: 16px 20px; text-align: center; box-shadow: 0 6px 24px color-mix(in srgb, var(--player) 40%, transparent); }
.cta:disabled { opacity: .35; box-shadow: none; }
.ghost { border: 2px solid var(--line); border-radius: 999px; padding: 12px 18px; font-weight: 700; text-align: center; }
.spacer { flex: 1; }
.hint { color: var(--muted); font-size: 13px; text-align: center; margin: 0; }

/* ---------- Flash info ---------- */
.ticker { position: relative; display: flex; align-items: stretch; height: 34px; margin-top: var(--safe-top); background: #05070F; border-bottom: 1px solid var(--line); overflow: hidden; }
.ticker .flash { flex: none; background: var(--danger); color: #fff; font-weight: 900; font-size: 11px; letter-spacing: .08em; padding: 0 10px; display: grid; place-items: center; z-index: 1; }
.ticker .lane { position: relative; flex: 1; overflow: hidden; }
.ticker .strip { position: absolute; top: 0; left: 0; height: 100%; display: flex; align-items: center; white-space: nowrap; will-change: transform; }
.ticker .item { padding: 0 22px 0 0; font-size: 13px; font-weight: 600; }
.ticker .item::after { content: "•"; color: var(--muted); padding-left: 22px; }
.ticker .item.event { color: var(--accent); }
.ticker .item.bad { color: #FF8A8E; }
.ticker .item.player { color: var(--player); }

/* ---------- Tableau de bord ---------- */
.hud { display: flex; align-items: center; gap: 8px; padding: 8px 12px; }
.day { font-weight: 800; font-variant-numeric: tabular-nums; min-width: 72px; }
.day small { color: var(--muted); font-weight: 600; }
.phase { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.speeds { display: flex; background: var(--panel); border-radius: 999px; padding: 3px; margin-left: auto; }
.speeds button { width: 36px; height: 30px; border-radius: 999px; font-size: 14px; }
.speeds button[aria-pressed="true"] { background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }
.momentum { display: flex; align-items: center; gap: 4px; font-weight: 800; font-variant-numeric: tabular-nums; background: var(--panel); padding: 6px 12px; border-radius: 999px; color: var(--accent); min-width: 64px; justify-content: center; }
.momentum.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.18); } }

/* ---------- Carte ---------- */
.stage { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.map { width: 100%; height: auto; display: block; touch-action: manipulation; }
.map path { fill: var(--land); stroke: var(--land-line); stroke-width: 1.2; stroke-linejoin: round; transition: fill .6s ease, fill-opacity .6s ease; }
.map .me path { stroke: none; pointer-events: none; fill-opacity: 0; }
.map path.hit { stroke: var(--accent); stroke-width: 2.5; animation: pulse 1.4s ease-in-out infinite; }
.map path.home { stroke: #fff; stroke-width: 2.5; }
.map path.sel { stroke: #fff; stroke-width: 3; }
.setup-map path { cursor: pointer; }
@keyframes pulse { 50% { stroke-opacity: .25; } }
.bubble { cursor: pointer; }
.bubble circle { fill: var(--accent); stroke: #fff; stroke-width: 3; }
.bubble text { font-size: 22px; font-weight: 900; fill: #111; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.bubble.new { animation: pop .35s ease-out; transform-box: fill-box; transform-origin: center; }
@keyframes pop { from { transform: scale(0); } 70% { transform: scale(1.25); } }
.float { font-size: 26px; font-weight: 900; fill: var(--accent); text-anchor: middle; animation: rise 1s ease-out forwards; pointer-events: none; }
@keyframes rise { to { transform: translateY(-50px); opacity: 0; } }

.overseas { display: flex; gap: 5px; padding: 4px 10px 0; flex-wrap: wrap; justify-content: center; }
.tile { min-width: 30px; height: 26px; padding: 0 6px; border-radius: 7px; background: var(--land); font-size: 11px; font-weight: 800; display: grid; place-items: center; color: rgba(255,255,255,.9); border: 2px solid transparent; transition: background .6s ease; }
.tile.hit { border-color: var(--accent); }
.tile.wide { min-width: 44px; }

/* Fiche d'un département */
.card { position: absolute; left: 10px; right: 10px; top: 6px; background: color-mix(in srgb, var(--panel) 94%, transparent); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; display: grid; gap: 6px; backdrop-filter: blur(6px); box-shadow: 0 10px 30px rgba(0,0,0,.4); z-index: 3; }
.card h3 { margin: 0; font-size: 16px; display: flex; justify-content: space-between; gap: 8px; }
.card h3 small { color: var(--muted); font-weight: 600; font-size: 12px; }
.sens { display: flex; gap: 10px; font-size: 13px; color: var(--muted); }
.sens b { color: var(--text); }

/* Événements en cours */
.events { position: absolute; left: 10px; right: 10px; bottom: 4px; display: grid; gap: 6px; z-index: 2; pointer-events: none; }
.event { pointer-events: auto; display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: 8px 10px; animation: slide .3s ease-out; }
.event.ok { border-left-color: var(--ok); }
.event .ic { font-size: 22px; }
.event .t { flex: 1; font-weight: 700; font-size: 14px; }
.event .t .bar { height: 3px; background: var(--line); border-radius: 2px; margin-top: 5px; overflow: hidden; }
.event .t .bar i { display: block; height: 100%; background: var(--accent); }
.event .need { display: flex; gap: 4px; }
.event .need button { width: 34px; height: 34px; border-radius: 50%; background: var(--panel-2); border: 2px dashed var(--accent); font-size: 17px; }
.event .need button.have { border-style: solid; border-color: var(--ok); }
@keyframes slide { from { transform: translateY(12px); opacity: 0; } }

/* ---------- Barre nationale et actions ---------- */
.dock { padding: 8px 12px calc(12px + var(--safe-bottom)); display: grid; gap: 10px; background: linear-gradient(transparent, var(--bg) 18%); }
.national { position: relative; height: 22px; border-radius: 6px; overflow: hidden; display: flex; background: var(--land); }
.national i { height: 100%; transition: width .6s ease; }
.national .cut { position: absolute; top: -2px; bottom: -2px; width: 2px; background: #fff; opacity: .7; }
.legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; }
.chip { display: grid; gap: 2px; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 0; }
.chip .name { display: flex; align-items: center; gap: 5px; min-width: 0; color: var(--muted); font-size: 12px; }
.chip .name span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip .val { display: flex; align-items: center; gap: 5px; font-size: 18px; font-weight: 800; }
.card .chip .val, .card .chip { font-size: 13px; }
.chip .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; }
.chip.me .name { color: var(--player); }
.chip .rank { font-size: 10px; background: var(--panel-2); border-radius: 6px; padding: 1px 5px; color: var(--muted); }
.chip .rank.top { background: var(--ok); color: #062; }
.actions { display: flex; gap: 10px; align-items: center; }
.big { flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--player); color: #111; font-weight: 900; font-size: 17px; border-radius: 999px; height: 56px; position: relative; }
.big .badge { position: absolute; top: -6px; right: 14px; background: var(--danger); color: #fff; font-size: 11px; border-radius: 999px; padding: 2px 7px; }
.round { width: 56px; height: 56px; border-radius: 50%; background: var(--panel); border: 2px solid var(--line); font-size: 24px; position: relative; }
.round:disabled { opacity: .4; }
.round .cd { position: absolute; inset: -2px; border-radius: 50%; }

/* ---------- Arbre ---------- */
.sheet { position: fixed; inset: 0; background: rgba(5,7,15,.6); z-index: 10; display: flex; align-items: flex-end; justify-content: center; animation: fade .2s ease; }
.sheet .panel { width: 100%; max-width: 560px; max-height: 92%; background: var(--panel); border-radius: 22px 22px 0 0; padding: 14px 14px calc(16px + var(--safe-bottom)); display: grid; gap: 12px; animation: up .25s ease-out; overflow: auto; }
@keyframes up { from { transform: translateY(40px); opacity: .4; } }
@keyframes fade { from { opacity: 0; } }
.sheet header { display: flex; align-items: center; gap: 10px; }
.sheet header .close { margin-left: auto; width: 40px; height: 40px; border-radius: 50%; background: var(--panel-2); font-size: 18px; }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: var(--bg); border-radius: 14px; padding: 4px; }
.tabs button { height: 44px; border-radius: 11px; font-size: 22px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.tabs button span { font-size: 12px; font-weight: 700; color: var(--muted); }
.tabs button[aria-pressed="true"] { background: var(--panel-2); }
.tabs button[aria-pressed="true"] span { color: var(--text); }
.tree { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(5, 74px); gap: 0; padding: 4px 0; }
.tree svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.tree line { stroke: var(--line); stroke-width: 4; stroke-linecap: round; }
.tree line.on { stroke: var(--player); }
.node { justify-self: center; align-self: center; width: 58px; height: 58px; border-radius: 50%; background: var(--bg); border: 3px solid var(--line); font-size: 26px; position: relative; z-index: 1; transition: transform .15s ease; }
.node.avail { border-color: var(--accent); }
.node.afford { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.node.owned { background: var(--player); border-color: var(--player); }
.node.locked { opacity: .35; filter: grayscale(1); }
.node[aria-pressed="true"] { transform: scale(1.1); border-color: #fff; }
.node .price { position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 900; background: var(--panel-2); color: var(--accent); border-radius: 999px; padding: 1px 6px; white-space: nowrap; }
.node.owned .price { display: none; }
.detail { background: var(--bg); border-radius: 16px; padding: 12px; display: grid; gap: 8px; min-height: 104px; }
.detail h4 { margin: 0; font-size: 17px; display: flex; gap: 8px; align-items: center; }
.detail .fx { font-size: 15px; color: var(--muted); letter-spacing: .02em; }
.buy { background: var(--accent); color: #111; font-weight: 900; border-radius: 999px; height: 48px; font-size: 16px; }
.buy:disabled { background: var(--panel-2); color: var(--muted); }

/* ---------- Résultats ---------- */
.modal { position: fixed; inset: 0; z-index: 20; background: rgba(5,7,15,.82); display: grid; place-items: center; padding: 20px; animation: fade .3s ease; }
.modal .box { width: 100%; max-width: 420px; background: var(--panel); border-radius: 22px; padding: 22px 18px; display: grid; gap: 14px; text-align: center; }
.modal .big-ic { font-size: 54px; }
.modal h2 { margin: 0; font-size: 24px; }
.bars { display: grid; gap: 8px; text-align: left; }
.bars .row { display: grid; grid-template-columns: 28px 1fr 52px; gap: 8px; align-items: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.bars .row .track { height: 14px; background: var(--bg); border-radius: 7px; overflow: hidden; }
.bars .row .track i { display: block; height: 100%; border-radius: 7px; }
.bars .row.out { opacity: .4; }
.scandal-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.scandal-pick button { background: var(--bg); border-radius: 14px; padding: 12px 6px; display: grid; gap: 6px; justify-items: center; font-weight: 800; }
.scandal-pick button b { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.chip.mini { display: flex; align-items: center; gap: 4px; }

/* =================== V3 =================== */
.stage { overflow: hidden; justify-content: center; }
.map { touch-action: none; cursor: grab; }
.map .sea { fill: transparent; }
.map .net polyline { fill: none; stroke: rgba(255,255,255,.10); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 6; pointer-events: none; }
.map .net line { stroke: rgba(120,170,255,.16); stroke-width: 2; stroke-dasharray: 6 8; pointer-events: none; }
.map .net circle { fill: rgba(255,255,255,.22); pointer-events: none; }
.map .zone { fill: var(--land); stroke: var(--land-line); stroke-width: 1.2; rx: 14; transition: fill .6s ease, fill-opacity .6s ease; }
.map .me .zone { stroke: none; pointer-events: none; fill-opacity: 0; }
.map .zone.hit { stroke: var(--accent); stroke-width: 3; animation: pulse 1.4s ease-in-out infinite; }
.map .zone.sel { stroke: #fff; stroke-width: 3; }
.map .zlabel { font-size: 15px; font-weight: 800; fill: rgba(255,255,255,.85); text-anchor: middle; pointer-events: none; }
.map .zlabel tspan.ic { font-size: 22px; }
.veh text { font-size: 17px; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.veh circle { stroke: rgba(0,0,0,.55); stroke-width: 2; }
.veh { pointer-events: none; }
.map .trail { fill: none; stroke-width: 2.5; stroke-opacity: .45; stroke-dasharray: 5 6; stroke-linecap: round; pointer-events: none; }
.map .trail.plane { stroke-dasharray: 2 7; }
.arrive { fill: none; stroke-width: 3; animation: ring .9s ease-out forwards; pointer-events: none; }
@keyframes ring { from { r: 4; stroke-opacity: .9; } to { r: 34; stroke-opacity: 0; } }


/* Fiche d'un département : en bas pour ne pas masquer les boutons de zoom */
.card { right: 58px; }

/* Bandeau : couleurs par nature */
.ticker .item.world { color: #9FC3FF; }
.ticker .item.poll { color: var(--text); }
.ticker .item.debate { color: var(--accent); }
.ticker .item .who { font-weight: 900; }


/* Crises */
.crisis .lead { color: var(--muted); margin: -6px 0 0; font-size: 14px; }
.crisis .where { font-size: 12px; color: var(--accent); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.postures { display: grid; gap: 8px; text-align: left; }
.postures button { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; background: var(--bg); border: 2px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.postures button:active { border-color: var(--player); }
.postures .pic { font-size: 24px; }
.postures .pt { display: grid; gap: 2px; }
.postures .pt b { font-size: 14px; }
.postures .pt small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.postures .pv { font-size: 13px; font-weight: 800; white-space: nowrap; }
.postures .pv.good { color: var(--ok); }
.postures .pv.bad { color: #FF8A8E; }
.verdict { display: grid; gap: 6px; text-align: left; }
.verdict .row { display: grid; grid-template-columns: 24px 1fr auto; gap: 8px; align-items: center; background: var(--bg); border-radius: 12px; padding: 8px 10px; font-size: 13px; }
.verdict .row .d { font-weight: 900; font-variant-numeric: tabular-nums; }
.verdict .row .d.up { color: var(--ok); }
.verdict .row .d.down { color: #FF8A8E; }
.stars { color: var(--accent); letter-spacing: 1px; }
.tabs button span small { display: block; font-size: 10px; font-weight: 600; opacity: .7; }

/* =================== V4 =================== */
/* Bandeau Flash info plus gros et très lisible */
.ticker { height: 44px; }
.ticker .flash { font-size: 13px; padding: 0 12px; background: linear-gradient(#F0353B, #C21F26); letter-spacing: .06em; }
.ticker .item { font-size: 16px; font-weight: 700; }
.ticker .item.alert { color: #fff; }
.ticker .item.alert::before { content: "ALERTE "; color: #FF5A5F; font-weight: 900; }
.card { right: 10px; }

/* Bandeau bas façon chaîne d'info (flashs sans décision) */
.lower { position: absolute; left: 8px; right: 8px; bottom: 6px; z-index: 4; pointer-events: none; }
.l3 { animation: l3in .35s ease-out; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.l3-tag { display: inline-block; background: #E5232A; color: #fff; font-weight: 900; font-size: 12px; letter-spacing: .1em; padding: 4px 10px; }
.l3-title { background: #fff; color: #0B1020; font-weight: 900; font-size: 17px; text-transform: uppercase; padding: 7px 10px; display: flex; gap: 8px; align-items: center; }
.l3-text { background: #10162B; color: #fff; font-size: 14px; font-weight: 600; padding: 7px 10px; border-left: 5px solid #E5232A; }
@keyframes l3in { from { transform: translateX(-30px); opacity: 0; } }

/* Crises : esthétique chaîne d'info */
.modal .box.tvbox { padding: 0 0 16px; overflow: hidden; gap: 12px; }
.tvbox .postures { padding: 0 14px; }
.tv { background: #0A0F22; text-align: left; }
.tv-top { display: flex; align-items: center; gap: 10px; padding: 8px 12px; font-size: 11px; font-weight: 900; letter-spacing: .08em; color: #fff; background: #131B38; }
.tv-live { color: #FF4B51; animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .35; } }
.tv-ch { background: #E5232A; padding: 2px 6px; }
.tv-clock { margin-left: auto; font-variant-numeric: tabular-nums; }
.tv-alert { background: #FFD400; color: #111; font-weight: 900; font-size: 13px; letter-spacing: .14em; padding: 5px 12px; animation: l3in .3s ease-out; }
.tv-title { background: #E5232A; color: #fff; font-weight: 900; font-size: 22px; line-height: 1.15; text-transform: uppercase; padding: 10px 12px; display: flex; gap: 10px; align-items: center; }
.tv-ic { font-size: 28px; }
.tv-sub { background: #fff; color: #0B1020; font-weight: 700; font-size: 15px; padding: 8px 12px; }
.tv-where { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 8px 12px; }
.tv-duel { color: #fff; font-weight: 900; padding: 6px 12px; font-size: 14px; }
.tv-ask { margin: 0; font-weight: 800; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.tv-mini { display: inline-block; justify-self: center; background: #E5232A; color: #fff; font-size: 11px; font-weight: 900; letter-spacing: .1em; padding: 3px 8px; }
.postures button { grid-template-columns: 34px 1fr; }
.postures .pt small { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 12px; line-height: 1.3; }
.verdict .row.mine { box-shadow: inset 0 0 0 2px var(--player); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(150px + var(--safe-bottom)); transform: translateX(-50%); z-index: 30; background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; font-weight: 800; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.4); animation: fade .2s ease; max-width: 90vw; text-align: center; }

/* Salon */
.room-code { font-size: 54px; font-weight: 900; letter-spacing: .25em; text-align: center; color: var(--accent); font-variant-numeric: tabular-nums; }
.players { display: grid; gap: 8px; }
.pl { display: grid; grid-template-columns: 38px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; background: var(--panel); border-radius: 14px; padding: 10px 12px; }
.pl b { grid-row: span 2; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); }
.pl span { font-weight: 800; }
.pl small { color: var(--muted); font-size: 12px; }
.pl.mine { box-shadow: inset 0 0 0 2px var(--player); }
.pl.empty { opacity: .55; }
.ghost:disabled, .cta:disabled { opacity: .45; }

/* Négociations */
.deals { display: grid; gap: 10px; text-align: left; max-height: 50vh; overflow: auto; }
.deal { background: var(--bg); border-radius: 14px; padding: 10px; display: grid; gap: 6px; }
.deal-h { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.deal-h b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; }
.deal-h small { margin-left: auto; color: var(--accent); font-size: 11px; }
.offer { display: flex; gap: 8px; align-items: center; justify-content: space-between; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.offer span:first-child { display: grid; gap: 2px; }
.offer small { color: var(--muted); font-size: 12px; }
.offer .price { font-weight: 900; color: var(--accent); white-space: nowrap; }
.offer:disabled { opacity: .4; }

/* Soirée électorale */
.ceremony { position: fixed; inset: 0; z-index: 40; background: #000; color: #fff; display: flex; flex-direction: column; overflow: auto; animation: fade .4s ease; }
.c-top { display: flex; gap: 12px; padding: calc(10px + var(--safe-top)) 14px 10px; font-size: 12px; font-weight: 900; letter-spacing: .1em; background: #0A0F22; }
.c-count { flex: 1; display: grid; place-content: center; gap: 16px; text-align: center; }
.c-clock { font-size: 64px; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: .04em; text-shadow: 0 0 30px rgba(255,255,255,.35); }
.c-count p { color: #aab; margin: 0; }
.c-reveal { display: grid; gap: 12px; padding: 18px 16px calc(24px + var(--safe-bottom)); text-align: center; justify-items: center; animation: reveal .8s ease-out; }
@keyframes reveal { from { opacity: 0; transform: scale(.96); } }
.c-face { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; font-size: 46px; box-shadow: 0 0 0 4px #fff, 0 0 40px rgba(255,255,255,.4); }
.c-name { font-size: 30px; font-weight: 900; text-transform: uppercase; }
.c-party { font-size: 18px; font-weight: 800; margin-top: -6px; }
.c-reveal .bars { width: 100%; max-width: 420px; }
.c-reveal h2 { margin: 0; }
.elysee { width: 100%; max-width: 440px; border-radius: 14px; }
.elysee .flag { transform-origin: 221px 30px; animation: wave 2s ease-in-out infinite; }
@keyframes wave { 50% { transform: skewY(4deg); } }

/* Législatives */
.seatbar { display: grid; gap: 4px; }
.seats { position: relative; height: 12px; border-radius: 6px; overflow: hidden; display: flex; background: var(--land); }
.seats i { height: 100%; transition: width .6s ease; }
.seats .cut { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; }
.seat-legend { font-size: 12px; color: var(--muted); }
.hemi { width: 100%; }

/* Arbre convergent : 7 rangées, cœur au centre */
.tree.tree7 { grid-template-rows: repeat(7, 54px); }
.tree7 .node { width: 46px; height: 46px; font-size: 21px; border-width: 3px; }
.tree7 .node.core { width: 52px; height: 52px; border-style: double; border-width: 4px; }
.tree7 .node .price { bottom: -9px; font-size: 10px; }
.tree line.half { stroke: color-mix(in srgb, var(--player) 45%, var(--line)); }
.core-band { position: absolute; left: 0; right: 0; top: calc(4px + 3 * 54px); height: 54px; background: color-mix(in srgb, var(--accent) 10%, transparent); border-radius: 12px; }
.tree-help { font-size: 11px; color: var(--muted); }
.detail .desc { margin: 0; font-size: 14px; line-height: 1.4; }
.core-tag { font-size: 10px; background: var(--accent); color: #111; border-radius: 6px; padding: 1px 6px; }
