/* OXENED — thème clair, lisible */
:root {
  --bg: #f4f6fa; --bg2: #f7f8fb; --panel: #ffffff; --panel2: #f3f5f9; --panel3: #e7ebf2;
  --line: #e5e9f0; --line2: #d4dae4;
  --text: #0f172a; --text2: #334155; --muted: #64748b; --dim: #94a3b8;
  --accent: #2563eb; --accent2: #1d4ed8; --accent-bg: #eef4ff; --accent-line: #c7d7fe;
  --good: #16a34a; --good-bg: #ecfdf3; --good-line: #bbf0cf;
  --bad: #dc2626; --bad-bg: #fef2f2; --bad-line: #fecaca;
  --warn: #d97706; --warn-bg: #fff8eb; --warn-line: #fde3b0;
  --gold: #b7791f; --gold-bg: #fdf6e3; --gold-line: #f5df9f;
  --r: 16px; --r-sm: 10px;
  --sh: 0 1px 2px rgba(15, 23, 42, .04), 0 6px 20px rgba(15, 23, 42, .05);
  --sh2: 0 10px 40px rgba(15, 23, 42, .14);
  --head: 'Plus Jakarta Sans', Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 14.5px/1.5 Inter, system-ui, -apple-system, Segoe UI, sans-serif; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; }
input { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--head); letter-spacing: -.01em; }
.num { font-variant-numeric: tabular-nums; }
.ico { width: 18px; height: 18px; flex: none; vertical-align: middle; }
.ico.sm { width: 15px; height: 15px; } .ico.lg { width: 22px; height: 22px; }
.muted { color: var(--muted); } .good { color: var(--good); } .bad { color: var(--bad); } .warn { color: var(--warn); }
.sm { font-size: 12.5px; } .xs { font-size: 11px; }
.full { width: 100%; } .grow { flex: 1; min-width: 0; }

/* ---------- Boutons, puces ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line2); background: var(--panel); color: var(--text);
  padding: 9px 15px; border-radius: 11px; font-weight: 600; transition: background .15s, border-color .15s, box-shadow .15s, transform .05s; box-shadow: 0 1px 1px rgba(15, 23, 42, .04); }
.btn:hover { border-color: #b9c2d0; background: var(--bg2); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(37, 99, 235, .25); }
.btn.primary:hover { background: var(--accent2); }
.btn.danger { border-color: var(--bad-line); color: var(--bad); background: var(--bad-bg); }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--text2); }
.btn.ghost:hover { background: var(--panel3); }
.btn.big { padding: 13px 22px; font-size: 15.5px; border-radius: 13px; }
.btn.xl { padding: 15px 26px; font-size: 16.5px; border-radius: 14px; }
.btn.sm { padding: 6px 11px; font-size: 13px; border-radius: 9px; }
.btn.xs { padding: 3px 9px; font-size: 12px; border-radius: 7px; gap: 5px; }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.link { border: 0; background: none; color: var(--accent); font-weight: 600; padding: 4px 0; font-size: 13px; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line); background: var(--panel); color: var(--text2); position: relative; }
.icon-btn:hover { background: var(--panel2); }
.icon-btn.sm { width: 30px; height: 30px; border-radius: 8px; }
.q { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line2); background: var(--panel); font-size: 11px; font-weight: 700; color: var(--muted); padding: 0; flex: none; }
.q:hover { color: var(--accent); border-color: var(--accent); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; white-space: nowrap; color: var(--text2); }
.chip.xs { padding: 2px 8px; font-size: 11px; }
.chip.accent { background: var(--accent-bg); border-color: var(--accent-line); color: var(--accent2); }
.chip.gold { background: var(--gold-bg); border-color: var(--gold-line); color: var(--gold); }
.chip.bad { background: var(--bad-bg); border-color: var(--bad-line); color: var(--bad); }
.chip.good { background: var(--good-bg); border-color: var(--good-line); color: var(--good); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 11px; background: var(--panel2); border: 1px solid var(--line); font-size: 13px; color: var(--text2); white-space: nowrap; }
.pill b { font-weight: 750; color: var(--text); }
.pill.gold { background: var(--gold-bg); border-color: var(--gold-line); color: var(--gold); cursor: pointer; }
.pill.gold b { color: #8a5a0b; }
.pill.blue { background: var(--accent-bg); border-color: var(--accent-line); color: var(--accent2); }
.pill.bad { background: var(--bad-bg); border-color: var(--bad-line); color: var(--bad); }
.badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 800; font-style: normal; }
.inbox-btn .badge { position: absolute; top: -6px; right: -6px; }
.sync { width: 9px; height: 9px; border-radius: 50%; background: var(--dim); display: inline-block; }
.sync.ok { background: var(--good); box-shadow: 0 0 0 3px var(--good-bg); } .sync.err { background: var(--bad); }
.flag { width: 24px; height: 16px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(15, 23, 42, .1); flex: none; vertical-align: middle; }
.flag.xs { width: 18px; height: 12px; } .flag.lg { width: 48px; height: 32px; border-radius: 5px; }
.flags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.seg { display: flex; background: var(--panel3); border-radius: 12px; padding: 4px; gap: 3px; }
.seg button { flex: 1; border: 0; background: none; padding: 8px 12px; border-radius: 9px; font-weight: 600; color: var(--muted); font-size: 13.5px; white-space: nowrap; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--panel); color: var(--text); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.seg button.cur { color: var(--accent); }
.seg button.cur.on { color: var(--accent2); box-shadow: 0 0 0 1.5px var(--accent) inset, 0 1px 3px rgba(15, 23, 42, .1); }
.seg.sm button { padding: 6px 10px; font-size: 12.5px; }
.seg.wrap { flex-wrap: wrap; } .seg.wrap button { flex: 0 1 auto; }
.input { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line2); background: var(--panel); outline: none; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-bg); }
.field label { display: block; font-size: 12.5px; color: var(--text2); margin-bottom: 6px; font-weight: 600; }
.field small { display: block; margin-top: 6px; }
.meter { height: 8px; background: var(--panel3); border-radius: 99px; overflow: hidden; position: relative; }
.meter i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: var(--accent); }
.meter i.good { background: var(--good); } .meter i.bad { background: var(--bad); } .meter i.warn { background: #f59e0b; }
.meter b { position: absolute; top: -2px; bottom: -2px; width: 2px; background: rgba(15, 23, 42, .45); border-radius: 2px; }
.meter.sm { display: inline-block; height: 6px; width: 100%; min-width: 50px; vertical-align: middle; }
.relbar { display: inline-block; position: relative; height: 6px; width: 70px; background: var(--panel3); border-radius: 99px; flex: none; }
.relbar i { position: absolute; top: 0; bottom: 0; border-radius: 99px; }
.relbar b { position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: rgba(15, 23, 42, .35); }
.dots { display: inline-flex; gap: 3px; } .dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--panel3); } .dots i.on { background: #f59e0b; }

/* ---------- Cartes génériques ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); }
.card > h3 { margin: 0 0 12px; font-size: 16px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.card > h3 small { font-weight: 600; font-family: Inter, sans-serif; }
.card h4 { margin: 16px 0 8px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); font-family: Inter, sans-serif; }
.tab-body > .card, .egrid > .card { padding: 18px; }
.hint { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 14px; background: var(--accent-bg); border: 1px solid var(--accent-line); color: #1e3a8a; font-size: 13.5px; }
.hint .ico { color: var(--accent); margin-top: 2px; }
.tip { display: flex; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--accent-bg); border: 1px solid var(--accent-line); }
.tip .ico { color: var(--accent); margin-top: 2px; }
.tip p { margin: 0; font-size: 13.5px; color: #1e3a8a; }
.tip button { border: 0; background: none; color: var(--accent); padding: 0; font-weight: 700; font-size: 12.5px; margin-top: 4px; }
.tip.bad { background: var(--bad-bg); border-color: var(--bad-line); } .tip.bad .ico, .tip.bad p { color: #991b1b; }
.tip.good { background: var(--good-bg); border-color: var(--good-line); } .tip.good .ico, .tip.good p { color: #166534; }
.empty { padding: 34px; text-align: center; color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.egrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ================= ACCUEIL ================= */
#start { min-height: 100vh; background: radial-gradient(1000px 500px at 85% -10%, #dbe7ff, transparent 60%), radial-gradient(800px 400px at -10% 20%, #e8f6ef, transparent 60%), var(--bg); }
.start-wrap { max-width: 1160px; margin: 0 auto; padding: 22px 22px 60px; }
.start-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .22em; font-size: 15px; border: 0; background: none; padding: 0; font-family: var(--head); }
.brand img { width: 30px; height: 30px; }
.acc { display: flex; gap: 8px; align-items: center; }
.hero2 { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; padding: 30px 0 40px; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; padding: 6px 12px; border-radius: 99px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--text2); box-shadow: var(--sh); }
.eyebrow .ico { color: var(--accent); }
.hero2 h1 { font-size: clamp(38px, 5.2vw, 62px); line-height: 1.05; margin: 18px 0 16px; font-weight: 800; letter-spacing: -.02em; }
.hero2 h1 span { background: linear-gradient(90deg, #2563eb, #7c3aed); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero2 p { font-size: 18px; color: var(--text2); max-width: 560px; margin: 0 0 26px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-visual { display: grid; place-items: center; }
.globe { width: 300px; height: 300px; position: relative; }
.globe-core { position: absolute; inset: 70px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #93c5fd, #2563eb 60%, #1e3a8a); display: grid; place-items: center; color: rgba(255, 255, 255, .85); box-shadow: 0 30px 60px rgba(37, 99, 235, .35), inset -18px -18px 40px rgba(15, 23, 42, .35); }
.globe-core .ico { width: 70px; height: 70px; stroke-width: 1.2; }
.orbit { position: absolute; inset: 0; animation: spin 40s linear infinite; }
.orbit img { position: absolute; left: 50%; top: 50%; width: 46px; height: 31px; border-radius: 6px; object-fit: cover; box-shadow: 0 6px 16px rgba(15, 23, 42, .18), 0 0 0 2px #fff;
  transform: rotate(var(--a)) translateY(-135px) rotate(calc(-1 * var(--a))); margin: -15px 0 0 -23px; animation: counter 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes counter { to { transform: rotate(var(--a)) translateY(-135px) rotate(calc(-1 * var(--a) - 360deg)); } }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.sec-h h2 { margin: 0; font-size: 22px; }
.saves { margin-bottom: 40px; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 10px; }
.slot { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); box-shadow: var(--sh); text-align: left; }
.slot img { width: 46px; height: 31px; object-fit: cover; border-radius: 5px; box-shadow: 0 0 0 1px rgba(15, 23, 42, .1); }
.slot b { display: block; } .slot small { color: var(--muted); font-size: 12px; }
.slot.empty { border-style: dashed; border-color: var(--line2); box-shadow: none; background: rgba(255, 255, 255, .55); }
.slot.empty:hover { border-color: var(--accent); background: var(--panel); }
.slot .sn { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-bg); color: var(--accent); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.feat { padding: 18px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--sh); display: flex; flex-direction: column; gap: 6px; }
.feat .ico { width: 26px; height: 26px; color: var(--accent); margin-bottom: 4px; }
.feat b { font-size: 15px; } .feat span { color: var(--muted); font-size: 13.5px; }
.foot { margin-top: 40px; color: var(--dim); font-size: 12.5px; text-align: center; }
/* Assistant de création */
.wiz { max-width: 1100px; }
.wiz-steps { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 26px; flex-wrap: wrap; }
.wiz-steps > i { width: 40px; height: 2px; background: var(--line2); }
.ws { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--muted); font-size: 14px; }
.ws span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--panel3); color: var(--muted); font-weight: 800; }
.ws.on { color: var(--text); } .ws.on span { background: var(--accent); color: #fff; box-shadow: 0 0 0 5px var(--accent-bg); }
.ws.done span { background: var(--good); color: #fff; }
.wiz-title { text-align: center; font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 6px; }
.wiz-sub { text-align: center; color: var(--muted); margin: 0 auto 24px; max-width: 640px; }
.wiz-body { min-height: 300px; }
.wiz-foot { position: sticky; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 0 calc(14px + env(safe-area-inset-bottom)); margin-top: 24px;
  background: linear-gradient(transparent, var(--bg) 30%); }
.countries { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.ccard { text-align: left; border: 1.5px solid var(--line); background: var(--panel); border-radius: var(--r); padding: 14px; display: flex; gap: 14px; box-shadow: var(--sh); transition: border-color .15s, transform .15s, box-shadow .15s; }
.ccard:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.ccard.sel { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-bg), var(--sh); }
.cflag { width: 62px; height: 42px; object-fit: cover; border-radius: 6px; box-shadow: 0 0 0 1px rgba(15, 23, 42, .1); flex: none; }
.cc-b b { font-size: 16.5px; display: block; font-family: var(--head); }
.cc-b small { color: var(--muted); font-size: 12px; }
.cc-b p { margin: 6px 0 8px; color: var(--text2); font-size: 13px; }
.ccard-stats { display: flex; gap: 14px; font-size: 12px; color: var(--muted); align-items: center; }
.final { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: start; }
.fin-form { padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.recap { padding: 20px; }
.recap-h { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.recap-h img { width: 60px; height: 40px; border-radius: 6px; object-fit: cover; }
.recap-h b { display: block; font-size: 18px; font-family: var(--head); } .recap-h small { color: var(--muted); }
.recap-l { display: flex; gap: 10px; align-items: center; font-weight: 700; padding: 10px 12px; border-radius: 12px; background: var(--panel2); }
.recap-l i { width: 12px; height: 12px; border-radius: 4px; }
.recap ul { padding-left: 18px; margin: 12px 0 0; font-size: 13.5px; display: flex; flex-direction: column; gap: 4px; }
/* Ligne politique */
.ideo-mode { max-width: 460px; margin: 0 auto 16px; }
.ideo-box { display: flex; flex-direction: column; gap: 14px; }
.arc-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 10px 0; box-shadow: var(--sh); }
.arc-wrap.sm .iarc { max-height: 220px; }
.iarc { width: 100%; display: block; max-height: 360px; }
.inode { cursor: pointer; }
.inode circle { stroke: #fff; stroke-width: 3; filter: drop-shadow(0 2px 4px rgba(15, 23, 42, .2)); }
.inode text { fill: var(--text2); font-size: 13.5px; font-weight: 600; }
.inode:hover text, .inode.on text { fill: var(--text); font-weight: 800; }
.inode.on circle { stroke: var(--text); stroke-width: 3.5; }
.iend { fill: var(--dim); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.imark line { stroke: var(--text); stroke-width: 2; stroke-dasharray: 4 4; }
.imark circle { fill: #fff; stroke: var(--accent); stroke-width: 5; }
.ideo-list { display: none; }
.pcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--sh); }
.pcard-h { display: flex; gap: 12px; align-items: center; }
.pcard-h i { width: 14px; height: 44px; border-radius: 5px; flex: none; }
.pcard-h b { font-size: 19px; display: block; font-family: var(--head); }
.pcard-h small { color: var(--muted); }
.pc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pc-grid > div { padding: 12px 14px; border-radius: 12px; }
.pc-grid > div:first-child { background: var(--good-bg); } .pc-grid > div:last-child { background: var(--bad-bg); }
.pc-grid h5 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.pc-grid ul { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--text2); display: flex; flex-direction: column; gap: 3px; }
.pc-stats { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); }
.pc-ex { display: flex; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--panel2); font-size: 13px; color: var(--text2); }
.pc-ex .ico { color: var(--muted); margin-top: 2px; }
.quiz { display: flex; flex-direction: column; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--sh); }
.qrow { display: grid; grid-template-columns: 210px 1fr; gap: 12px; align-items: center; }
.qrow b { font-size: 14px; }
.auth { display: flex; flex-direction: column; gap: 14px; }
.auth-err { min-height: 18px; font-size: 13px; }

/* ================= JEU : structure ================= */
#game { min-height: 100vh; }
.hud { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 14px; height: 64px; padding: 0 18px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.hud-l { display: flex; align-items: center; gap: 14px; min-width: 0; }
.hud .brand img { width: 26px; height: 26px; }
.hud .country { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hud .country img { width: 38px; height: 26px; object-fit: cover; border-radius: 4px; box-shadow: 0 0 0 1px rgba(15, 23, 42, .1); }
.hud .country b { display: block; font-size: 15.5px; font-family: var(--head); white-space: nowrap; }
.hud .country small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.hud-stats { flex: 1; display: flex; justify-content: center; gap: 4px; min-width: 0; }
.hstat { border: 0; background: none; padding: 6px 12px; border-radius: 10px; text-align: left; display: grid; grid-template-columns: auto auto; column-gap: 6px; align-items: baseline; }
.hstat:hover { background: var(--panel2); }
.hstat span { grid-column: 1 / -1; font-size: 11px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.hstat b { font-size: 15.5px; font-weight: 750; }
.hstat i { font-style: normal; font-size: 11.5px; font-weight: 700; }
.hud-r { display: flex; gap: 8px; align-items: center; }
.shell { display: grid; grid-template-columns: 236px 1fr; max-width: 1560px; margin: 0 auto; }
.shell > .rail { position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto; padding: 16px 12px 110px; display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--line); }
.shell > .rail button { display: flex; align-items: center; gap: 12px; border: 0; background: none; padding: 9px 12px; border-radius: 11px; font-weight: 600; color: var(--text2); text-align: left; font-size: 14px; }
.shell > .rail button .ico { color: var(--muted); }
.shell > .rail button:hover { background: var(--panel3); }
.shell > .rail button.on { background: var(--panel); color: var(--accent2); box-shadow: var(--sh); }
.shell > .rail button.on .ico { color: var(--accent); }
.shell > .rail button span { flex: 1; }
.nav-g { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); font-weight: 700; padding: 16px 12px 6px; }
.main { min-width: 0; padding: 22px 26px 130px; }
.pagehead { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.ph-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--line); color: var(--accent); box-shadow: var(--sh); }
.ph-ico .ico { width: 22px; height: 22px; }
.pagehead h1 { margin: 0; font-size: 25px; }
.pagehead p { margin: 2px 0 0; color: var(--muted); }
.tab-body { display: flex; flex-direction: column; gap: 16px; }
.endbar { position: fixed; right: 22px; bottom: 20px; z-index: 35; display: flex; gap: 18px; align-items: center; padding: 10px 10px 10px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--sh2); }
.endbar .preview { display: flex; flex-direction: column; font-size: 13px; line-height: 1.3; }
.endbar .preview .lbl { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.endbar .preview b { font-size: 15px; }
.mnav, .more { display: none; }

/* Tableau de bord */
.home-top { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; }
.welcome { padding: 20px; display: flex; gap: 16px; align-items: center; background: linear-gradient(135deg, #ffffff, #f0f5ff); }
.wl-flag img { width: 72px; height: 48px; object-fit: cover; border-radius: 8px; box-shadow: 0 6px 16px rgba(15, 23, 42, .15); }
.welcome h2 { margin: 0 0 4px; font-size: 20px; }
.welcome p { margin: 0; color: var(--text2); }
.todo { padding: 16px; }
.todo h3 { margin: 0 0 8px; font-size: 15px; }
.todo-row { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; border: 0; background: none; padding: 9px 10px; border-radius: 10px; font-size: 13.5px; }
.todo-row:hover { background: var(--panel2); }
.todo-row span:not(.dot) { flex: 1; }
.todo-row .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); flex: none; }
.todo-row.alert { color: #991b1b; } .todo-row.alert .ico:first-child { color: var(--bad); }
.section-h { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; margin: 6px 2px -4px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi { text-align: left; border: 1px solid var(--line); background: var(--panel); border-radius: 14px; padding: 14px 16px; box-shadow: var(--sh); transition: border-color .15s; }
.kpi:hover { border-color: var(--accent-line); }
.kpi .l { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.kpi .v { font-size: 24px; font-weight: 750; letter-spacing: -.02em; font-family: var(--head); }
.kpi .d { font-size: 12px; font-weight: 700; }
.home-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.home-2 > .card { padding: 16px 18px; }
.home-2 h3 { margin: 0 0 8px; font-size: 15px; }
.bars { display: flex; flex-direction: column; gap: 1px; }
.bar-row { display: grid; grid-template-columns: 150px 1fr 40px; gap: 12px; align-items: center; padding: 6px 8px; border-radius: 9px; border: 0; background: none; text-align: left; }
.bar-row:hover { background: var(--panel2); }
.bar-row .l { font-size: 13.5px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-row .v { font-size: 13.5px; font-weight: 700; text-align: right; }
.shortcuts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.sc { text-align: left; border: 1px solid var(--line); background: var(--panel); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 3px; box-shadow: var(--sh); }
.sc:hover { border-color: var(--accent-line); }
.sc .ico { color: var(--accent); margin-bottom: 6px; }
.sc b { font-size: 14px; } .sc small { color: var(--muted); font-size: 12px; }

/* Budget */
.budget-sum { padding: 18px; display: grid; grid-template-columns: repeat(4, 1fr) 1.4fr; gap: 16px; align-items: center; }
.sum-item .l { font-size: 12.5px; color: var(--muted); display: flex; gap: 5px; align-items: center; }
.sum-item .v { font-size: 24px; font-weight: 750; font-family: var(--head); }
.sum-item .s { font-size: 12px; color: var(--muted); }
.balance { display: flex; flex-direction: column; gap: 7px; }
.balance .row { display: grid; grid-template-columns: 74px 1fr; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); }
.balance .track { height: 12px; background: var(--panel3); border-radius: 99px; position: relative; overflow: hidden; }
.balance .track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; }
.budget-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.bcol { padding: 18px 18px 8px; }
.bcol h3 { margin: 0 0 4px; font-size: 16px; display: flex; justify-content: space-between; align-items: baseline; }
.bcol h3 small { color: var(--muted); font-weight: 600; font-size: 13px; }
.bcol > p { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.slider { padding: 12px 0; border-top: 1px solid var(--line); }
.slider:first-of-type { border-top: 0; }
.slider-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.slider-top .ico { color: var(--muted); }
.slider-top .n { font-weight: 600; font-size: 14px; flex: 1; min-width: 0; }
.slider-top .val { font-weight: 750; font-size: 15.5px; min-width: 64px; text-align: right; }
.slider-sub { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 4px; gap: 8px; }
.slider-sub .chg { font-weight: 700; color: var(--accent2); }
.slider-sub .undo { border: 0; background: none; color: var(--accent); padding: 0; font-size: 12px; font-weight: 600; }
.range { position: relative; height: 22px; }
.range input { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; margin: 0; position: relative; z-index: 2; }
.range .rail { position: absolute; left: 0; right: 0; top: 8px; height: 6px; border-radius: 99px; background: var(--panel3); }
.range .fill { position: absolute; left: 0; top: 8px; height: 6px; border-radius: 99px; background: var(--accent); }
.range .mark { position: absolute; top: 4px; width: 2px; height: 14px; background: rgba(15, 23, 42, .4); border-radius: 2px; z-index: 1; }
.range input::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); box-shadow: 0 2px 6px rgba(15, 23, 42, .25); }
.range input::-moz-range-thumb { width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); }
.range input::-moz-range-track { background: transparent; }
.static-line { display: flex; justify-content: space-between; padding: 11px 0; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--text2); gap: 8px; }
.static-line b { font-weight: 700; }
input[type=range] { accent-color: var(--accent); }

/* Lois */
.laws { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.law { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.law-head { display: flex; gap: 10px; align-items: center; }
.law-head .ico { color: var(--accent); }
.law-head b { flex: 1; font-size: 15px; }
.law p { margin: 0; color: var(--muted); font-size: 13px; }
.fx { display: flex; flex-wrap: wrap; gap: 6px; }
.fx span { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 7px; background: var(--panel2); border: 1px solid var(--line); }
.fx span.p { color: #166534; background: var(--good-bg); border-color: var(--good-line); }
.fx span.m { color: #991b1b; background: var(--bad-bg); border-color: var(--bad-line); }
.law-act { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.law-act small { color: var(--warn); font-size: 12.5px; }

/* Opinion */
.gauge-card { padding: 20px; display: grid; grid-template-columns: 1fr 1.3fr; gap: 20px; align-items: center; }
.gauge-big { font-size: 48px; font-weight: 800; letter-spacing: -.03em; font-family: var(--head); }
.gauge-track { height: 14px; border-radius: 99px; background: var(--panel3); position: relative; margin: 10px 0 6px; }
.gauge-track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; }
.gauge-track .half { position: absolute; left: 50%; top: -5px; bottom: -5px; width: 2px; background: var(--text); opacity: .6; }
.groups { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.group { padding: 16px; }
.group-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.group-head .gi { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-bg); color: var(--accent); flex: none; }
.group-head b { display: block; font-size: 14.5px; }
.group-head small { color: var(--muted); font-size: 12px; }
.group-head .score { margin-left: auto; text-align: right; }
.group-head .score b { font-size: 24px; font-family: var(--head); }
.issues { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.issues span { font-size: 12px; padding: 3px 9px; border-radius: 7px; background: var(--panel2); border: 1px solid var(--line); display: inline-flex; gap: 5px; align-items: center; color: var(--text2); }
.issues span i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.popcard .pop-rows > div { display: grid; grid-template-columns: 1.4fr .6fr 1.1fr .9fr 2fr; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.pg { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.pg i { width: 10px; height: 10px; border-radius: 50%; }

/* Régime */
.regime-card { padding: 20px; display: grid; grid-template-columns: auto 1fr; gap: 16px; }
.regime-card .big-ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-bg); color: var(--accent); }
.regime-card .big-ico .ico { width: 28px; height: 28px; }
.regime-card h2 { margin: 0 0 6px; font-size: 22px; }
.regime-card p { margin: 0; color: var(--text2); }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.action { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.action.danger { border-color: var(--bad-line); }
.action-head { display: flex; gap: 10px; align-items: center; } .action-head b { flex: 1; }
.action p { margin: 0; color: var(--muted); font-size: 13px; flex: 1; }
.regime-map { padding: 18px; } .regime-map h3 { margin: 0 0 10px; font-size: 16px; }
.rmap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.rnode { padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel2); font-size: 13px; }
.rnode b { display: flex; gap: 6px; align-items: center; font-size: 13.5px; margin-bottom: 4px; }
.rnode.cur { border-color: var(--accent); background: var(--accent-bg); }
.rnode span { color: var(--muted); }

/* Historique */
.charts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.chart-card { padding: 14px 14px 10px; }
.chart-card .h { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.chart-card .h b { color: var(--text); font-size: 16px; }
.chart svg { display: block; width: 100%; height: auto; }
.log { padding: 8px 18px; max-height: 460px; overflow: auto; }
.log-row { display: grid; grid-template-columns: 80px 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.log-row:first-child { border-top: 0; } .log-row span { color: var(--muted); font-size: 12.5px; }

/* Carte */
.map-head { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.map-wrap { display: grid; grid-template-columns: 1fr 340px; gap: 16px; align-items: start; }
.map-card { padding: 12px; overflow: hidden; }
.mapbox { width: 100%; min-height: 320px; position: relative; }
.map-loading { display: grid; place-items: center; height: 320px; color: var(--muted); }
.cmap, .wmap { width: 100%; display: block; user-select: none; }
.rcell { stroke: #fff; stroke-width: 1.6; cursor: pointer; transition: filter .15s; }
.rcell:hover { filter: brightness(1.08) saturate(1.1); }
.rcell.sel { stroke: var(--text); stroke-width: 3; }
.rlabel { font-size: 11.5px; font-weight: 700; fill: var(--text); paint-order: stroke; stroke: rgba(255, 255, 255, .9); stroke-width: 3.5px; pointer-events: none; }
.rval { font-size: 11px; font-weight: 700; fill: var(--text2); paint-order: stroke; stroke: rgba(255, 255, 255, .9); stroke-width: 3.5px; pointer-events: none; }
.rmark { font-size: 13px; pointer-events: none; }
.pulse circle { fill: var(--bad); animation: pulse 1.6s infinite; } .pulse text { fill: #fff; font-size: 11px; font-weight: 800; pointer-events: none; }
.cbadge circle { fill: #f59e0b; } .cbadge text { fill: #fff; font-size: 10px; font-weight: 800; pointer-events: none; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.wmap { background: #a9cbe6; border-radius: 12px; }
.wc { stroke: rgba(70, 55, 40, .7); stroke-width: .7; stroke-linejoin: round; pointer-events: all; transition: fill-opacity .15s; vector-effect: non-scaling-stroke; }
.wc.me, .wc.sel { stroke-width: 2; }
.wmap .cline { vector-effect: non-scaling-stroke; stroke-width: 2.2; }
.wc.k { cursor: pointer; }
.wc.k:hover { fill: #ffffff; fill-opacity: .35; }
.wc.sel { stroke: #111827; fill: #ffffff; fill-opacity: .3; }
.wc.me { stroke: #b45309; }
.map-card:has(.wmap) { padding: 8px; }
.cline { fill: none; stroke-width: 2; stroke-dasharray: 5 4; opacity: .9; pointer-events: stroke; animation: dash 1.2s linear infinite; }
.cline.cut { stroke: var(--bad) !important; animation: none; opacity: .5; }
@keyframes dash { to { stroke-dashoffset: -18; } }
.warmark { font-size: 22px; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 14px; padding: 10px 6px 2px; font-size: 12.5px; color: var(--muted); align-items: center; }
.legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.legend i.line { height: 0; border-top: 2px dashed #7c3aed; width: 16px; border-radius: 0; }
.legend .grad { width: 120px; height: 9px; border-radius: 99px; background: linear-gradient(90deg, #b91c1c, #ef4444, #f59e0b, #a3e635, #16a34a); }
.legend .grad.rev { background: linear-gradient(90deg, #16a34a, #a3e635, #f59e0b, #ef4444, #b91c1c); }
.pulse-l::before { content: '!'; display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: var(--bad); color: #fff; font-weight: 800; font-size: 10px; margin-right: 4px; }
.cb-l::before { content: 'n'; display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: #f59e0b; color: #fff; font-weight: 800; font-size: 10px; margin-right: 4px; }
.map-side { padding: 18px; position: sticky; top: 84px; max-height: calc(100vh - 110px); overflow: auto; }
.map-side h3 { margin: 6px 0 4px; font-size: 18px; }
.rs-title { font-size: 21px !important; }
.rs-kpis { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.rs-kpis > div { flex: 1; min-width: 72px; padding: 9px 11px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); }
.rs-kpis span { display: block; font-size: 11.5px; color: var(--muted); }
.rs-kpis b { font-size: 19px; font-family: var(--head); }
.rs-kpis small { display: block; font-size: 11px; color: var(--muted); }
.reasons div { display: flex; justify-content: space-between; font-size: 13px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.mix { display: flex; height: 10px; border-radius: 99px; overflow: hidden; gap: 2px; }
.mix-l { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.mix-l i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; }
.plist div { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--line); align-items: center; }
.map-side .btn.full { margin-top: 14px; }
.rlist { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.rrow { display: grid; grid-template-columns: 1fr 70px 44px auto; gap: 8px; align-items: center; border: 0; background: none; padding: 7px 8px; border-radius: 9px; text-align: left; font-size: 13px; }
.rrow:hover { background: var(--panel2); }
.rrow .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.projs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.proj { padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel2); display: flex; flex-direction: column; gap: 6px; }
.proj.off { opacity: .6; }
.proj-h { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.proj-h .ico { color: var(--accent); }
.proj-h b { flex: 1; min-width: 140px; font-size: 14px; }
.proj p { margin: 0; font-size: 13px; color: var(--muted); }
.proj .btn { align-self: flex-start; }
.ns-head { display: flex; gap: 12px; align-items: center; margin-top: 6px; }
.dacts { display: flex; flex-direction: column; gap: 6px; }
.dact { text-align: left; border: 1px solid var(--line); background: var(--panel); border-radius: 12px; padding: 9px 46px 9px 12px; position: relative; }
.dact:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-bg); }
.dact:disabled { opacity: .45; cursor: not-allowed; }
.dact b { display: block; font-size: 13.5px; } .dact small { color: var(--muted); font-size: 12px; }
.dact .chip { position: absolute; right: 8px; top: 9px; }
.threat { display: flex; gap: 8px; align-items: center; padding: 6px 0; font-size: 13.5px; }
.threat .meter.sm { width: 80px; flex: none; }

/* Messages */
.msgs { display: flex; flex-direction: column; gap: 10px; }
.msg { padding: 14px 16px; border-left: 4px solid var(--line2); }
.msg.unread { border-left-color: var(--accent); }
.msg.todo { border-left-color: #f59e0b; background: linear-gradient(90deg, var(--warn-bg), var(--panel) 35%); }
.msg.k-manif.todo { border-left-color: var(--bad); background: linear-gradient(90deg, var(--bad-bg), var(--panel) 35%); }
.msg-h { display: flex; gap: 12px; align-items: flex-start; }
.msg-h .mi { width: 36px; height: 36px; border-radius: 11px; background: var(--panel2); display: grid; place-items: center; flex: none; color: var(--accent); }
.msg.k-manif .mi { color: var(--bad); background: var(--bad-bg); } .msg.k-energie .mi { color: var(--gold); background: var(--gold-bg); } .msg.k-loi .mi { color: #7c3aed; background: #f3efff; } .msg.k-climat .mi { color: var(--good); background: var(--good-bg); }
.msg-h b { display: block; font-size: 14.5px; }
.msg-h small { color: var(--muted); font-size: 12.5px; }
.msg p { margin: 8px 0 0 48px; font-size: 13.5px; color: var(--text2); }
.msg-acts { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0 48px; }
.msg > .muted { margin: 6px 0 0 48px; }

/* Énergie */
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.kbox { padding: 14px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--sh); }
.kbox .l { font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; align-items: center; font-weight: 600; }
.kbox .v { font-size: 23px; font-weight: 750; font-family: var(--head); }
.kbox .s { font-size: 12px; color: var(--muted); }
.stack { display: flex; height: 24px; border-radius: 9px; overflow: hidden; gap: 2px; margin-bottom: 12px; }
.elist { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; margin-bottom: 12px; }
.elist div { display: grid; grid-template-columns: 10px 1fr auto auto; gap: 8px; align-items: center; font-size: 13px; }
.elist i { width: 10px; height: 10px; border-radius: 3px; }
.elist small { color: var(--muted); min-width: 56px; text-align: right; }
.steps { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.rtable { display: flex; flex-direction: column; font-size: 13px; overflow-x: auto; }
.rt-h, .rt-r { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.4fr 1.2fr .9fr 1.1fr; gap: 8px; padding: 9px 4px; align-items: center; min-width: 760px; }
.rt-h { color: var(--muted); font-size: 12px; font-weight: 600; border-bottom: 1px solid var(--line); }
.rt-r { border-bottom: 1px solid var(--line); }
.rt-r > span:first-child { display: flex; gap: 6px; align-items: center; font-weight: 600; }
.rt-r small { font-size: 11px; margin-left: 3px; }
.sup { display: flex; gap: 3px; flex-wrap: wrap; align-items: center; }
.row-btns { display: flex; gap: 8px; margin-top: 14px; }
.ctable { display: flex; flex-direction: column; font-size: 13px; overflow-x: auto; }
.ctable > div { display: grid; grid-template-columns: 1.4fr 1.2fr .9fr 1fr 1.2fr 1.1fr; gap: 8px; padding: 8px 4px; border-bottom: 1px solid var(--line); align-items: center; min-width: 700px; }
.ctable > div > span:first-child { display: flex; gap: 6px; align-items: center; }
.ctable .cut { background: var(--bad-bg); }
.ctrl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; margin-bottom: 10px; }
.ctrl { padding: 8px 0; } .ctrl input[type=range] { width: 100%; }

/* Négociation */
.nego .partners { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-height: 250px; overflow: auto; }
.partner { display: flex; gap: 10px; align-items: center; text-align: left; border: 1px solid var(--line); background: var(--panel); border-radius: 12px; padding: 9px 11px; }
.partner.on { border-color: var(--accent); background: var(--accent-bg); }
.partner:disabled { opacity: .4; }
.partner b { display: block; font-size: 13.5px; } .partner small { color: var(--muted); font-size: 12px; }
.nego-grid { display: grid; grid-template-columns: 1fr auto; gap: 14px 22px; align-items: end; }
.nego-grid .full { grid-column: 1 / -1; }
.conc { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.conc label, .conds .tog { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; }
.conc label:hover, .conds .tog:hover { border-color: var(--accent-line); }
.conc label.want { border-color: var(--gold-line); background: var(--gold-bg); }
.conc b, .tog b { display: block; font-size: 13px; }
.conc small, .tog small { color: var(--muted); font-size: 12px; }
.conc input, .tog input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; }

/* Diplomatie */
.world-top { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--sh); }
.world-top > h3 { margin: 0; }
.world-top .org { background: var(--panel2); padding: 14px; box-shadow: none; }
.world-grid { display: grid; grid-template-columns: 1fr 370px; gap: 16px; align-items: start; }
.nlist { display: flex; flex-direction: column; gap: 6px; }
.nrow { display: flex; gap: 12px; align-items: center; text-align: left; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.nrow:hover { border-color: var(--accent-line); }
.nrow.on { border-color: var(--accent); background: var(--accent-bg); }
.nrow b { display: block; font-size: 14px; } .nrow small { color: var(--muted); font-size: 12px; }
.nrow > b.num { width: 34px; text-align: right; }

/* Immigration */
.pol-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 10px 0 4px; }
.conds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.olist div { display: flex; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.parts { display: flex; flex-direction: column; gap: 6px; }
.part { display: grid; grid-template-columns: 1fr 160px 60px; gap: 10px; align-items: center; font-size: 13.5px; }
.part .pb { height: 9px; position: relative; background: var(--panel3); border-radius: 99px; }
.part .pb::before { content: ''; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--line2); }
.part .pb i { position: absolute; top: 0; bottom: 0; border-radius: 99px; }
.part .pv { text-align: right; font-weight: 700; }
.part.total { border-top: 1px solid var(--line); padding-top: 7px; margin-top: 2px; font-weight: 700; }

/* Armée */
.war { border-color: var(--bad-line); background: linear-gradient(180deg, var(--bad-bg), var(--panel)); }
.front { display: flex; gap: 10px; align-items: center; font-size: 12.5px; color: var(--muted); }
.ftrack { flex: 1; height: 14px; border-radius: 99px; background: linear-gradient(90deg, #ef4444, #e2e8f0 50%, #22c55e); position: relative; }
.ftrack i { position: absolute; top: -4px; width: 6px; height: 22px; margin-left: -3px; border-radius: 3px; background: var(--text); }
.ftrack b { position: absolute; top: -2px; bottom: -2px; width: 1px; background: rgba(15, 23, 42, .4); }

/* Gouvernement */
.parl { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; align-items: center; }
.parl > h3, .parl > p { grid-column: 1 / -1; }
.hemisvg { width: 100%; max-width: 380px; display: block; margin: 0 auto; }
.hemi-n { font-size: 22px; font-weight: 800; fill: var(--text); } .hemi-l { font-size: 10px; fill: var(--muted); }
.plegend > div { display: flex; gap: 8px; align-items: center; padding: 6px 0; font-size: 13px; border-bottom: 1px solid var(--line); }
.plegend > div.me { font-weight: 700; }
.plegend i { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.plegend small { min-width: 80px; text-align: right; }
.mins { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.minc { padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel2); display: flex; flex-direction: column; gap: 8px; }
.minh { display: flex; gap: 10px; align-items: center; }
.minh .ico { color: var(--accent); }
.minh small { display: block; color: var(--muted); font-size: 11.5px; } .minh b { font-size: 14px; }
.minbars > div { display: grid; grid-template-columns: 82px 1fr 26px; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); }
.minbars b { color: var(--text); text-align: right; }
.cands { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cand { text-align: left; padding: 14px; border-radius: 14px; border: 1px solid var(--line2); background: var(--panel); display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.cand:hover { border-color: var(--accent); }
.cand .minbars { width: 100%; }

/* ================= MODALES ================= */
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(15, 23, 42, .45); display: grid; place-items: center; padding: 20px; backdrop-filter: blur(4px); overflow-y: auto; }
.modal-card { width: min(760px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--panel); border-radius: 22px; box-shadow: var(--sh2); animation: pop .18s ease-out; }
.modal-card.wide { width: min(960px, 100%); } .modal-card.narrow { width: min(520px, 100%); }
@keyframes pop { from { transform: translateY(8px) scale(.985); opacity: 0; } to { transform: none; opacity: 1; } }
.m-head { padding: 22px 24px 12px; display: flex; gap: 14px; align-items: flex-start; }
.m-head .m-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-bg); color: var(--accent); flex: none; }
.m-head .m-ico.bad { background: var(--bad-bg); color: var(--bad); } .m-head .m-ico.good { background: var(--good-bg); color: var(--good); } .m-head .m-ico.gold { background: var(--gold-bg); color: var(--gold); }
.m-head h2 { margin: 0; font-size: 22px; }
.m-head p { margin: 4px 0 0; color: var(--muted); }
.m-head .x { margin-left: auto; }
.m-body { padding: 4px 24px 20px; display: flex; flex-direction: column; gap: 16px; }
.m-foot { padding: 14px 24px 20px; display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--line); flex-wrap: wrap; background: var(--bg2); }
.m-body h4 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.ev-text { font-size: 16px; color: var(--text2); margin: 0; }
.choices { display: flex; flex-direction: column; gap: 10px; }
.choice { text-align: left; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--panel); transition: border-color .15s, background .15s; }
.choice:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-bg); }
.choice b { display: block; font-size: 15px; margin-bottom: 3px; }
.choice span { font-size: 13.5px; color: var(--muted); }
.choice:disabled { opacity: .4; cursor: not-allowed; }
.rep-kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.rep-kpi { padding: 11px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); }
.rep-kpi .l { font-size: 12px; color: var(--muted); }
.rep-kpi .v { font-size: 19px; font-weight: 750; font-family: var(--head); }
.rep-kpi .d { font-size: 12px; font-weight: 700; }
.news { display: flex; flex-direction: column; gap: 8px; }
.news div { padding: 11px 13px; border-radius: 12px; font-size: 14px; border: 1px solid var(--line); background: var(--panel2); }
.news .g { border-color: var(--good-line); background: var(--good-bg); color: #166534; }
.news .b { border-color: var(--bad-line); background: var(--bad-bg); color: #991b1b; }
.tips { display: flex; flex-direction: column; gap: 8px; }
.gchg { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.gchg > div { padding: 11px 13px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); font-size: 13px; }
.gchg b { display: block; font-size: 13.5px; } .gchg .dv { font-size: 18px; font-weight: 750; }
.wrep { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.wrep > div { display: flex; gap: 8px; align-items: flex-start; padding: 9px 12px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); }
.wrep .ico { color: var(--accent); margin-top: 2px; }
.notion-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.notion-chips button { border: 1px solid var(--gold-line); background: var(--gold-bg); color: var(--gold); border-radius: 99px; padding: 5px 12px; font-size: 12.5px; font-weight: 600; }
.elec-big { text-align: center; padding: 8px 0 4px; }
.elec-big .pct { font-size: 58px; font-weight: 800; letter-spacing: -.03em; font-family: var(--head); }
.elec-map { width: 100%; }
.etable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.etable th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; padding: 7px 8px; border-bottom: 1px solid var(--line); }
.etable td { padding: 8px; border-bottom: 1px solid var(--line); }
.etable td.r, .etable th.r { text-align: right; }
.score-ring { display: flex; gap: 20px; align-items: center; }
.grade { width: 94px; height: 94px; border-radius: 50%; display: grid; place-items: center; font-size: 46px; font-weight: 800; border: 5px solid var(--accent); flex: none; font-family: var(--head); }
.glossary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gl { padding: 13px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel2); }
.gl b { display: flex; gap: 6px; align-items: center; margin-bottom: 4px; }
.gl p { margin: 0; font-size: 13.5px; color: var(--text2); }
.gl.locked { opacity: .5; } .gl.locked p { filter: blur(3px); user-select: none; }
.tuto-steps { display: flex; flex-direction: column; gap: 10px; }
.tuto-step { display: flex; gap: 12px; padding: 13px; border-radius: 14px; background: var(--panel2); border: 1px solid var(--line); }
.tuto-step .n { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.tuto-step p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.m-body > .btn { width: 100%; justify-content: flex-start; }
.pop { position: fixed; z-index: 80; max-width: 320px; padding: 13px 15px; border-radius: 14px; background: var(--text); color: #e2e8f0; box-shadow: var(--sh2); font-size: 13.5px; }
.pop b { display: block; margin-bottom: 4px; color: #fff; }
.toast { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); z-index: 90; padding: 12px 18px; border-radius: 14px; background: var(--text); color: #fff; box-shadow: var(--sh2); font-weight: 600; max-width: calc(100% - 32px); }

/* ================= RESPONSIVE ================= */
@media (max-width: 1280px) {
  .hud-stats .hstat:nth-child(n+4) { display: none; }
}
@media (max-width: 1100px) {
  .shell { grid-template-columns: 76px 1fr; }
  .shell > .rail { padding: 12px 8px 110px; align-items: center; }
  .shell > .rail button { flex-direction: column; gap: 3px; padding: 9px 4px; width: 64px; font-size: 10.5px; text-align: center; position: relative; }
  .shell > .rail button span { line-height: 1.15; }
  .shell > .rail .badge { position: absolute; top: 2px; right: 6px; }
  .nav-g { display: none; }
  .map-wrap, .world-grid { grid-template-columns: 1fr; }
  .map-side { position: static; max-height: none; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .budget-sum { grid-template-columns: repeat(2, 1fr); } .balance { grid-column: 1 / -1; }
  .charts { grid-template-columns: 1fr 1fr; }
  .home-top { grid-template-columns: 1fr; }
  .hud-stats { display: none; }
  .final { grid-template-columns: 1fr; }
  .slots { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 14px; }
  .start-wrap { padding: 14px 16px 40px; }
  .hero2 { grid-template-columns: 1fr; padding: 10px 0 24px; gap: 10px; }
  .hero-visual { display: none; }
  .hero2 p { font-size: 16px; }
  .features { grid-template-columns: 1fr; }
  .countries { grid-template-columns: 1fr; }
  .wiz-steps .ws { font-size: 0; gap: 0; } .wiz-steps > i { width: 22px; }
  .hud { height: 58px; padding: 0 12px; gap: 8px; }
  .hud .brand { display: none; }
  .hud .country b { font-size: 14.5px; }
  .hud-r { gap: 6px; } .pill { height: 34px; padding: 0 9px; } .icon-btn { width: 34px; height: 34px; }
  .hide-m { display: none !important; }
  .shell { display: block; }
  .shell > .rail { display: none; }
  .main { padding: 14px 14px 170px; }
  .pagehead { margin-bottom: 12px; } .pagehead h1 { font-size: 21px; } .ph-ico { width: 40px; height: 40px; }
  .mnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
  .mnav button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; border: 0; background: none; padding: 6px 2px; font-size: 11px; font-weight: 600; color: var(--muted); border-radius: 10px; position: relative; }
  .mnav button.on { color: var(--accent); background: var(--accent-bg); }
  .mnav .badge { position: absolute; top: 0; right: 18%; }
  .more { display: block; position: fixed; inset: 0; z-index: 50; background: rgba(15, 23, 42, .35); }
  .more[hidden] { display: none !important; }
  .more-card { position: absolute; left: 0; right: 0; bottom: 0; background: var(--panel); border-radius: 22px 22px 0 0; padding: 10px 14px calc(80px + env(safe-area-inset-bottom)); max-height: 80vh; overflow: auto; }
  .more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .more-grid button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel2); font-size: 12.5px; font-weight: 600; }
  .more-grid button.on { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); }
  .more-grid .ico { color: var(--accent); }
  .endbar { left: 10px; right: 10px; bottom: calc(66px + env(safe-area-inset-bottom)); padding: 8px 8px 8px 14px; border-radius: 16px; justify-content: space-between; }
  .endbar .btn.big { padding: 11px 16px; font-size: 14.5px; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 8px; } .kpi { padding: 11px 12px; } .kpi .v { font-size: 20px; }
  .home-2, .egrid, .world-top, .ctrl-grid, .pol-grid, .conds, .conc, .projs, .nego .partners, .cands, .parl, .elist, .budget-grid, .laws, .groups, .actions, .glossary, .pc-grid, .qrow { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 110px 1fr 36px; }
  .budget-sum { padding: 14px; gap: 10px; } .sum-item .v { font-size: 19px; }
  .gauge-card { grid-template-columns: 1fr; }
  .rmap { grid-template-columns: 1fr 1fr; }
  .charts { grid-template-columns: 1fr; }
  .rep-kpis { grid-template-columns: repeat(3, 1fr); }
  .gchg { grid-template-columns: 1fr; }
  .part { grid-template-columns: 1fr 90px 50px; font-size: 13px; }
  .modal { padding: 0; place-items: end center; }
  .modal-card, .modal-card.wide, .modal-card.narrow { width: 100%; max-height: 92vh; border-radius: 22px 22px 0 0; }
  .m-head, .m-body, .m-foot { padding-left: 16px; padding-right: 16px; }
  .regime-card { grid-template-columns: 1fr; }
  .msg p, .msg-acts, .msg > .muted { margin-left: 0; }
  .nego-grid { grid-template-columns: 1fr; }
  .map-head .seg { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .map-head .seg button { flex: 0 0 auto; }
  .rlabel { font-size: 9px; stroke-width: 3px; } .rval { font-size: 8.5px; }
  .popcard .pop-rows > div { grid-template-columns: 1fr auto; }
  .popcard .pop-rows > div > span:nth-child(n+3) { grid-column: 1 / -1; }
  .iarc .inode text { display: none; }
  .ideo-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px 0 10px; }
  .inode-b { display: flex; gap: 8px; align-items: center; text-align: left; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); font-size: 13px; font-weight: 600; }
  .inode-b i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
  .inode-b.on { border-color: var(--accent); background: var(--accent-bg); }
  .toast { bottom: 140px; }
  .acc .btn:not(.ghost) { display: none; }
}
@media (max-width: 420px) { .hide-s { display: none !important; } }
.law-cats { margin-bottom: 2px; }
.legend .grad.blue { background: linear-gradient(90deg, #dbeafe, #1e40af); }
.legend .grad.red { background: linear-gradient(90deg, #fde2e2, #7f1d1d); }
.legend .grad.violet { background: linear-gradient(90deg, #ede9fe, #5b21b6); }
.rank { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.rk { display: flex; gap: 8px; align-items: center; border: 0; background: none; padding: 6px 6px; border-radius: 9px; text-align: left; font-size: 13px; }
.rk:hover { background: var(--panel2); }
.rk-n { width: 18px; color: var(--dim); font-weight: 700; font-size: 12px; }
.rk-bar { width: 60px; height: 6px; border-radius: 99px; background: var(--panel3); overflow: hidden; flex: none; }
.rk-bar i { display: block; height: 100%; border-radius: 99px; }
.rk b { min-width: 78px; text-align: right; font-size: 12.5px; }
.ent-big { display: flex; gap: 12px; align-items: baseline; margin: 2px 0 6px; }
.ent-big b { font-size: 34px; font-family: var(--head); font-weight: 800; color: var(--gold); }
.ent-big span { color: var(--muted); font-size: 13px; } .ent-big em { font-style: normal; font-weight: 700; display: block; }
.mini-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mini { display: flex; gap: 12px; align-items: center; padding: 14px; text-align: left; border: 1px solid var(--line); }
.mini:hover { border-color: var(--accent-line); }
.mini > .ico { width: 36px; height: 36px; padding: 8px; border-radius: 11px; background: var(--accent-bg); color: var(--accent); }
.mini b { display: block; font-size: 17px; font-family: var(--head); }
.mini span { font-size: 12px; color: var(--muted); }
@media (max-width: 1100px) { .mini-row { grid-template-columns: 1fr 1fr; } }
.secu-box { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.secu-h { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.secu-box .tog { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel2); cursor: pointer; }
.secu-box .tog small { display: block; color: var(--muted); font-size: 12.5px; }
.secu-box .tog input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--accent); }
.eco-top { display: grid; grid-template-columns: 1.2fr .8fr 1.2fr; gap: 16px; }
.eco-top > .card { padding: 18px; }
.trend-l { margin-top: 10px; } .trend-l > span { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.trend-l .facts { margin-top: 6px; }
.align { display: flex; gap: 10px; align-items: center; margin: 4px 0 8px; }
.align b { font-size: 46px; font-family: var(--head); font-weight: 800; }
.align span { color: var(--muted); font-size: 13px; line-height: 1.3; }
.curs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.cur { text-align: left; border: 1px solid var(--line); background: var(--panel); border-radius: 12px; padding: 9px 11px; }
.cur:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-bg); }
.cur.on { border-color: var(--accent); background: var(--accent-bg); cursor: default; }
.cur b { display: block; font-size: 13.5px; } .cur small { font-size: 11.5px; color: var(--muted); }
.cur small span + span { margin-left: 4px; }
.sectors { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.sector { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.sec-h { display: flex; gap: 10px; align-items: center; }
.sec-h > .ico { width: 36px; height: 36px; padding: 8px; border-radius: 11px; background: var(--accent-bg); color: var(--accent); }
.sec-h b { display: block; font-size: 15px; } .sec-h small { color: var(--muted); font-size: 12px; }
.sec-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 10px; align-items: center; }
.sec-row:first-of-type { grid-template-columns: 1fr auto; }
.spark svg { height: 54px !important; width: 100%; display: block; }
.sec-rank { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.me-dot { display: inline-flex; padding: 1px; border-radius: 4px; box-shadow: 0 0 0 2px #f59e0b; }
@media (max-width: 1100px) { .eco-top { grid-template-columns: 1fr; } }
/* ===== Jeu : flash, conseil, soirée électorale, missions, trophées ===== */
.pill.score { background: linear-gradient(135deg, #fff7e6, #fde7c2); border-color: #f5d08a; color: #92400e; cursor: pointer; font: inherit; font-weight: 700; }
.flash, .enight { position: fixed; inset: 0; z-index: 70; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; overflow-y: auto; padding: 16px; background: radial-gradient(circle at 50% 30%, #1e3a8a, #0b1229 70%); animation: fadein .25s; }
@keyframes fadein { from { opacity: 0; } }
.flash-in, .en-in { width: min(820px, 100%); min-width: 0; color: #fff; position: relative; }
.flash-top, .en-top { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.flash-top b, .en-top b { font-family: var(--head); font-size: clamp(26px, 5vw, 44px); letter-spacing: .04em; background: #dc2626; padding: 2px 16px; border-radius: 6px; transform: skew(-8deg); box-shadow: 0 10px 30px rgba(220, 38, 38, .4); }
.live { color: #fca5a5; font-weight: 800; font-size: 13px; letter-spacing: .1em; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.flash-date, .en-top > span:last-child { margin-left: auto; color: #93c5fd; font-weight: 700; }
.flash-items { display: flex; flex-direction: column; gap: 12px; min-height: 160px; }
.fi { background: rgba(255, 255, 255, .96); color: var(--text); padding: 16px 20px; border-radius: 14px; font-size: clamp(15px, 2.2vw, 19px); font-weight: 650; border-left: 6px solid #60a5fa; opacity: 0; transform: translateX(-30px); animation: slidein .45s forwards; box-shadow: 0 12px 30px rgba(0, 0, 0, .3); }
.fi.good { border-left-color: #22c55e; } .fi.bad { border-left-color: #ef4444; } .fi.gold { border-left-color: #f59e0b; background: #fffbeb; }
@keyframes slidein { to { opacity: 1; transform: none; } }
.flash-foot, .en-foot { display: flex; justify-content: flex-end; margin-top: 22px; min-height: 52px; }
.ticker { margin-top: 26px; overflow: hidden; max-width: 100%; white-space: nowrap; background: #facc15; color: #111; font-weight: 800; padding: 8px 0; border-radius: 8px; }
.tk { display: inline-block; padding-left: 100%; animation: tick 28s linear infinite; }
@keyframes tick { to { transform: translateX(-100%); } }
.council-modal { width: min(640px, 100%) !important; background: transparent !important; box-shadow: none !important; overflow: visible !important; }
.council { display: flex; flex-direction: column; gap: 10px; }
.council-h { display: flex; justify-content: space-between; color: #fff; font-weight: 700; padding: 0 6px; text-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.ccard-big { background: var(--panel); border-radius: 26px; padding: 26px; box-shadow: 0 30px 80px rgba(15, 23, 42, .35); animation: cardin .35s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes cardin { from { transform: translateY(40px) rotate(-3deg) scale(.95); opacity: 0; } }
.cc-who { display: flex; gap: 14px; align-items: center; }
.cc-av { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font-size: 36px; background: linear-gradient(135deg, #eef4ff, #fdf2ff); box-shadow: inset 0 0 0 1px var(--line); }
.cc-who b { display: block; font-size: 18px; font-family: var(--head); } .cc-who small { color: var(--muted); }
.cc-text { font-size: 19px; line-height: 1.45; margin: 20px 0; color: var(--text); font-family: var(--head); font-weight: 600; }
.cc-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cchoice { text-align: left; padding: 16px; border-radius: 18px; border: 2px solid var(--line); background: var(--panel2); display: flex; flex-direction: column; gap: 8px; transition: transform .12s, border-color .12s, background .12s; min-height: 110px; }
.cchoice:hover { transform: translateY(-3px) rotate(-.5deg); border-color: var(--accent); background: var(--accent-bg); }
.cchoice.b:hover { transform: translateY(-3px) rotate(.5deg); }
.cchoice b { font-size: 15.5px; }
.odds { align-self: flex-start; background: #111827; color: #fde68a; font-weight: 800; font-size: 12px; padding: 3px 9px; border-radius: 99px; }
.areas { margin-top: auto; display: flex; gap: 6px; } .areas i { font-style: normal; font-size: 16px; filter: saturate(.8); }
.cc-hint { margin-top: 14px; font-size: 12px; text-align: center; }
.cc-res { margin: 22px 0 8px; padding: 18px; border-radius: 18px; background: var(--panel2); text-align: center; }
.cc-res p { margin: 6px 0 0; font-size: 17px; font-weight: 600; color: var(--text2); }
.cc-res.good { background: var(--good-bg); } .cc-res.bad { background: var(--bad-bg); }
.big-ic { font-size: 44px; display: block; animation: pop .4s; }
.cc-foot { display: flex; justify-content: flex-end; margin-top: 14px; }
.dice { padding: 30px 10px 20px; text-align: center; }
.dice-l { color: var(--muted); font-weight: 600; }
.dice-n { font-size: 88px; font-weight: 800; font-family: var(--head); line-height: 1.1; color: var(--text); }
.dice-n.good { color: var(--good); } .dice-n.bad { color: var(--bad); }
.dice-bar { position: relative; height: 14px; border-radius: 99px; background: var(--bad-bg); margin: 10px 20px 0; overflow: visible; }
.dice-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: #86efac; }
.dice-bar b { position: absolute; top: -6px; width: 4px; height: 26px; background: var(--text); border-radius: 2px; transition: left .06s; }
.en-clock { font-family: var(--head); font-size: 22px; color: #93c5fd; font-weight: 800; text-align: center; margin-bottom: 8px; }
.en-duel { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; }
.en-c { text-align: center; background: rgba(255, 255, 255, .08); border-radius: 20px; padding: 18px 10px; border: 1px solid rgba(255, 255, 255, .15); }
.en-av { font-size: 46px; } .en-c b { display: block; font-size: 17px; margin-top: 4px; }
.en-v { font-family: var(--head); font-size: clamp(36px, 7vw, 64px); font-weight: 800; }
.en-c.me .en-v { color: #93c5fd; } .en-c.rv .en-v { color: #fca5a5; }
.en-vs { font-weight: 900; font-size: 22px; color: #facc15; }
.en-bar { position: relative; height: 18px; border-radius: 99px; background: #ef4444; margin: 18px 0 10px; overflow: hidden; }
.en-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: #3b82f6; transition: width .18s; }
.en-bar b { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: #fff; }
.en-status { text-align: center; font-size: 19px; min-height: 30px; }
.en-status .good { color: #86efac; } .en-status .bad { color: #fca5a5; }
.en-regs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 14px; }
.en-r { padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .1); font-size: 12px; color: #cbd5e1; transition: background .3s; }
.en-r.d.win { background: #2563eb; color: #fff; } .en-r.d.lose { background: #dc2626; color: #fff; }
.enight.won { background: radial-gradient(circle at 50% 30%, #1d4ed8, #0b1229 75%); } .enight.lost { background: radial-gradient(circle at 50% 30%, #7f1d1d, #0b1229 75%); }
.home-fun, .side-fun { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; }
.side-fun { grid-template-columns: 1fr; gap: 10px; margin-bottom: 8px; }
.side-fun .card { box-shadow: none; background: var(--panel2); }
.missions { padding: 16px; } .missions h3 { margin: 0 0 10px; font-size: 15px; }
.mis { padding: 8px 0; border-top: 1px solid var(--line); } .mis:first-of-type { border-top: 0; }
.mis-h { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 13.5px; }
.mis-p { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; margin-top: 6px; }
.rivalc { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.rv-h { display: flex; gap: 12px; align-items: center; }
.rv-av { width: 44px; height: 44px; display: grid; place-items: center; font-size: 26px; border-radius: 14px; background: var(--bad-bg); }
.rv-h b { display: block; font-size: 16px; font-family: var(--head); }
.duel { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-weight: 800; font-size: 16px; }
.duel span:first-child { color: var(--accent); } .duel span:last-child { color: var(--bad); }
.duel-bar { height: 12px; border-radius: 99px; background: #fca5a5; position: relative; overflow: hidden; }
.duel-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); }
.duel-bar b { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: #fff; }
.trophy-toast { position: fixed; top: 76px; right: 20px; z-index: 95; display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: 18px; background: linear-gradient(135deg, #fffbeb, #fff); border: 1px solid #f5d08a; box-shadow: var(--sh2); animation: tin .4s cubic-bezier(.2, .9, .3, 1.3); max-width: 340px; }
.trophy-toast.out { animation: tout .5s forwards; }
@keyframes tin { from { transform: translateX(120%); } } @keyframes tout { to { transform: translateX(130%); opacity: 0; } }
.tt-ic { font-size: 34px; }
.trophy-toast small { display: block; color: #b45309; font-weight: 800; text-transform: uppercase; font-size: 11px; letter-spacing: .08em; }
.trophy-toast b { display: block; font-size: 16px; } .trophy-toast span { font-size: 12.5px; color: var(--muted); }
.trophies { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tro { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel2); opacity: .55; }
.tro.ok { opacity: 1; background: #fffbeb; border-color: #f5d08a; }
.tro > span { font-size: 28px; } .tro b { display: block; } .tro small { color: var(--muted); }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 120; }
@media (max-width: 760px) {
  .cc-choices, .home-fun, .trophies { grid-template-columns: 1fr; }
  .ccard-big { padding: 18px; border-radius: 22px; } .cc-text { font-size: 16.5px; }
  .council-modal { border-radius: 0 !important; }
  .en-duel { grid-template-columns: 1fr; } .en-vs { text-align: center; }
}
@media (max-width: 760px) {
  .flash-top b, .en-top b { font-size: 24px; } .en-av { font-size: 30px; } .en-c { padding: 10px; } .en-v { font-size: 34px; }
  .en-duel { grid-template-columns: 1fr auto 1fr; } .en-c b { font-size: 13px; }
}
