/* ─────────────────────────────────────────────────────────────
   Incantum — direction artistique « encre & aquarelle »
   Couche purement visuelle, chargée APRÈS style.css / landing.css.
   Nuit verte · crème · or · traits tracés à la main.
   ───────────────────────────────────────────────────────────── */
@font-face { font-family: 'Caveat Brush'; font-display: swap; size-adjust: 118%; src: url(/fonts/caveat-brush-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Caveat Brush'; font-display: swap; size-adjust: 118%; src: url(/fonts/caveat-brush-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Patrick Hand'; font-display: swap; size-adjust: 112%; src: url(/fonts/patrick-hand-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Patrick Hand'; font-display: swap; size-adjust: 112%; src: url(/fonts/patrick-hand-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Kalam'; font-display: swap; src: url(/fonts/kalam-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Kalam'; font-display: swap; font-weight: 600 900; src: url(/fonts/kalam-latin-700-normal.woff2) format('woff2'); }

:root {
  --ink: #0f2f2a;            /* fond (nuit verte) */
  --ink-2: #0b2420;
  --panel: rgba(17, 52, 46, .96);
  --panel-solid: #11332e;
  --panel-2: #164039;
  --panel-3: #1c4a42;
  --line: rgba(243, 231, 204, .34);
  --line-2: rgba(243, 231, 204, .16);
  --gold: #f0b93a;
  --gold-2: #ffd36e;
  --gold-dim: #b98a2c;
  --arcane: #7c5cd6;
  --arcane-2: #c4b2ff;
  --ember: #f08a3c;
  --blood: #e2564f;
  --ok: #8bbd56;
  --warn: #f0b93a;
  --text: #f3e7cc;
  --text-2: #d3e4d8;
  --muted: #93b5a8;
  --pen: #1d1813;            /* encre */
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 5px 8px 0 rgba(0, 0, 0, .32);
  --font: 'Patrick Hand', 'Kalam', 'Comic Sans MS', cursive;
  --display: 'Caveat Brush', 'Patrick Hand', cursive;
  --serif: 'Kalam', 'Patrick Hand', cursive;
  --hand-a: 255px 15px 225px 15px / 15px 225px 15px 255px;
  --hand-b: 18px 225px 15px 255px / 255px 15px 225px 15px;
  --hand-c: 12px 30px 14px 26px / 28px 12px 30px 14px;
  --hand-d: 30px 12px 26px 14px / 12px 28px 14px 30px;
  --hand-o: 50% 45% 55% 48% / 52% 48% 52% 48%;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .95  0 0 0 0 .9  0 0 0 0 .8  .22 0 0 0 -.07'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .02' numOctaves='3' seed='5'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  .28 0 0 0 -.06'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Base ── */
body { background-color: var(--ink); background-image: var(--grain), var(--grain-dark); font-size: 15px; letter-spacing: .01em; }
::selection { background: rgba(240, 185, 58, .4); color: #fff; }
::-webkit-scrollbar-thumb { background: rgba(243, 231, 204, .2); border-radius: var(--hand-c); }
::-webkit-scrollbar-thumb:hover { background-color: rgba(243, 231, 204, .38); }
a { color: var(--gold-2); text-decoration-style: wavy; text-underline-offset: 3px; }
kbd { font-family: var(--font); background: var(--panel-3); border-radius: var(--hand-c); border-color: var(--line); color: var(--gold-2); }
code { font-family: ui-monospace, Menlo, Consolas, monospace; background: rgba(0, 0, 0, .25); }
.ai { pointer-events: none; }

/* ── Boutons ── */
.btn { font-family: var(--display); font-weight: 400; font-size: 16px; letter-spacing: .03em; background: var(--panel-2); border: 2px solid var(--line); border-radius: var(--hand-a); box-shadow: 2px 3px 0 rgba(0, 0, 0, .3); padding: 7px 15px; }
.btn:hover { border-color: var(--text); box-shadow: 3px 4px 0 rgba(0, 0, 0, .35); transform: rotate(-.6deg); }
.btn:active { transform: translate(1px, 2px); box-shadow: 1px 1px 0 rgba(0, 0, 0, .3); }
.btn-primary { background: var(--gold); color: var(--pen); border-color: var(--pen); text-shadow: none; transform: rotate(-.8deg); }
.btn-primary:hover { background: #ffc94d; box-shadow: 3px 5px 0 rgba(0, 0, 0, .4); transform: rotate(-1.4deg); }
.btn-danger { background: #a8352f; color: #fff1e6; border-color: var(--pen); }
.btn-ok { background: #5f9e4a; color: #10260f; border-color: var(--pen); }
.btn-ghost { background: transparent; border: 2px dashed var(--line); color: var(--text-2); box-shadow: none; }
.btn-sm { padding: 5px 11px; font-size: 15px; }
.btn-xs { padding: 2px 8px; font-size: 14px; border-radius: var(--hand-c); }
.btn.active { border-color: var(--gold); color: var(--gold-2); }
.btn .ai { width: 1.2em; height: 1.2em; }
@keyframes glow { 50% { box-shadow: 0 0 0 4px rgba(240, 185, 58, .35), 3px 5px 0 rgba(0, 0, 0, .4); } }
.icon-btn { border-radius: var(--hand-c); font-size: 17px; color: var(--text-2); }
.icon-btn:hover { background: rgba(243, 231, 204, .08); border-color: var(--line-2); }
.icon-btn.active { background: var(--gold); border-color: var(--pen); color: var(--pen); box-shadow: 2px 2px 0 rgba(0, 0, 0, .35); }
.icon-btn.danger:hover, .icon-btn.danger.active { background: rgba(226, 86, 79, .25); }
.link.roll:hover, .roll:hover { color: var(--gold-2); text-shadow: none; text-decoration: underline wavy; }

/* ── Champs ── */
.input, .chat-input { font-family: var(--font); font-size: 15.5px; background: rgba(5, 22, 19, .45); border: 2px solid var(--line-2); border-radius: var(--hand-c); color: var(--text); }
.input:focus, .chat-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(240, 185, 58, .15); background: rgba(5, 22, 19, .6); }
.input.code { font-family: ui-monospace, Menlo, Consolas, monospace; }
select.input option { background: var(--panel-solid); color: var(--text); }
input[type=checkbox], input[type=range] { accent-color: var(--gold); }
input[type=color] { border-radius: var(--hand-c); border: 2px solid var(--line); }
.field > span { font-family: var(--serif); font-weight: 400; font-size: 13px; letter-spacing: .04em; color: var(--muted); }
fieldset { border: 2px solid var(--line-2); border-radius: var(--hand-b); background: rgba(243, 231, 204, .025); }
legend { font: 400 20px var(--display); letter-spacing: .03em; text-transform: none; color: var(--gold); }
.hint { font-family: var(--serif); font-size: 13.5px; }
.seg { background: rgba(5, 22, 19, .4); border: 2px solid var(--line-2); border-radius: var(--hand-a); }
.seg button { font-family: var(--font); font-weight: 400; font-size: 14.5px; border-radius: var(--hand-c); }
.seg button.active { background: var(--gold); color: var(--pen); box-shadow: 1px 2px 0 rgba(0, 0, 0, .3); }
.chip { font-family: var(--font); font-size: 14px; border: 1.5px solid var(--line-2); border-radius: var(--hand-a); background: rgba(243, 231, 204, .04); }
.chip.active { background: var(--gold); color: var(--pen); border-color: var(--pen); }
.badge { font-family: var(--serif); border-radius: var(--hand-a); background: rgba(243, 231, 204, .07); }
.badge.tag { color: var(--arcane-2); }
.empty-hint { font-family: var(--serif); font-style: normal; }
.list-group-title { font: 400 19px var(--display); letter-spacing: .03em; text-transform: none; color: var(--gold); border-bottom: 2px dashed var(--line-2); padding-bottom: 3px; }
.list-group-title .count { font-family: var(--serif); }

/* ── Avatars ── */
.avatar { border: 2.5px solid var(--text); border-radius: var(--hand-o); background: var(--panel-3) center/cover no-repeat; font-family: var(--display); font-weight: 400; box-shadow: 2px 3px 0 rgba(0, 0, 0, .35); }
.avatar .ai { width: 104%; height: 104%; }

/* ── Table : cadre général ── */
#topbar { background: var(--ink-2) var(--grain); border-bottom: 2px dashed var(--line-2); }
#topbar::after { display: none; }
.brand { font: 400 26px var(--display); color: var(--text); letter-spacing: .02em; }
.brand .ai { width: 30px; height: 30px; filter: drop-shadow(0 0 3px rgba(246, 200, 76, .4)) drop-shadow(0 0 9px rgba(246, 220, 150, .16)); } /* halo doré léger : le dé reste lisible sur le fond vert */
.camp-name { font: 400 21px var(--display); color: var(--gold); }
.scene-name { font-family: var(--serif); font-size: 13.5px; }
.scene-name::before { content: ''; }
.conn { border: 2px solid var(--pen); box-shadow: none; }
#toolbar { background: var(--ink-2) var(--grain); border-right: 2px dashed var(--line-2); gap: 5px; }
.tool-btn { width: 42px; height: 42px; border-radius: var(--hand-c); border: 2px solid transparent; }
.tool-btn .ai { width: 28px; height: 28px; }
.tool-btn:hover { background: rgba(243, 231, 204, .07); border-color: var(--line-2); transform: rotate(-3deg); }
.tool-btn.active { background: var(--gold); border-color: var(--pen); box-shadow: 2px 3px 0 rgba(0, 0, 0, .4); transform: rotate(-2deg); }
.tool-sep { height: 0; background: none; border-top: 2px dashed var(--line-2); }
.board-wrap { background: radial-gradient(ellipse at center, #123a34, #061714); }
.tool-options, .view-controls { background: var(--panel); border: 2px solid var(--line); border-radius: var(--hand-b); box-shadow: var(--shadow); backdrop-filter: none; font-family: var(--font); }
.opt-label, .opt-hint, .coords { font-family: var(--serif); }
.macro-btn { font-family: var(--display); font-weight: 400; font-size: 16px; background: var(--panel); border: 2px solid var(--line); border-radius: var(--hand-a); box-shadow: 2px 3px 0 rgba(0, 0, 0, .3); backdrop-filter: none; }
.macro-btn:hover { border-color: var(--gold); transform: rotate(-1deg) translateY(-2px); }

/* ── Barre latérale ── */
#sidebar { background: var(--ink-2) var(--grain); border-left: 2px dashed var(--line-2); }
.side-toggle { background: var(--panel-solid); border: 2px solid var(--line); border-right: 0; border-radius: var(--hand-c); }
#side-tabs { background: rgba(0, 0, 0, .15); border-right: 2px dashed var(--line-2); }
.side-tab { border-radius: var(--hand-c); border: 2px solid transparent; }
.side-tab .ai { width: 27px; height: 27px; }
.side-tab:hover { background: rgba(243, 231, 204, .07); transform: rotate(-3deg); }
.side-tab.active { background: var(--panel-3); border-color: var(--line); }
.badge-dot { font-family: var(--display); font-weight: 400; background: var(--blood); border: 1.5px solid var(--pen); border-radius: var(--hand-o); }
.panel-title { font: 400 25px var(--display); letter-spacing: .02em; color: var(--gold); border-bottom: 2px dashed var(--line-2); }

/* ── Chat ── */
.chat-head { border-bottom: 2px dashed var(--line-2); }
.msg-name { font: 400 18px var(--display); color: var(--gold); }
.msg-player, .msg-time { font-family: var(--serif); }
.bubble { font-size: 15.5px; background: rgba(243, 231, 204, .05); border: 1.5px solid var(--line-2); border-radius: var(--hand-c); }
.mine .bubble { background: rgba(139, 189, 86, .1); border-color: rgba(139, 189, 86, .35); }
.bubble.whisper { background: rgba(180, 160, 245, .1); border: 1.5px dashed #b4a0f5; }
.whisper-to { font-family: var(--serif); color: #c9b8ff; }
.sys { font-family: var(--serif); font-style: normal; }
.emote, .desc { font-family: var(--serif); }
.desc { background: rgba(240, 185, 58, .08); border-left: 0; border: 2px solid rgba(240, 185, 58, .4); border-radius: var(--hand-b); color: #f6e7c3; font-style: normal; }
.inline-roll { font-family: var(--display); font-weight: 400; font-size: 1.08em; background: rgba(240, 185, 58, .16); border: 1.5px solid var(--gold); border-radius: var(--hand-c); }
.inline-roll.crit { background: var(--gold); color: var(--pen); box-shadow: none; }
.inline-roll.fum { background: rgba(226, 86, 79, .3); }
.roll-card { background: var(--panel-2); border: 2px solid var(--line); border-radius: var(--hand-b); box-shadow: 3px 4px 0 rgba(0, 0, 0, .3); }
.roll-card::before { display: none; }
.roll-card.is-crit { border-color: var(--gold); box-shadow: 3px 4px 0 rgba(0, 0, 0, .3), 0 0 0 3px rgba(240, 185, 58, .25); }
.roll-card.is-fumble { border-color: var(--blood); box-shadow: 3px 4px 0 rgba(0, 0, 0, .3), 0 0 0 3px rgba(226, 86, 79, .2); }
.roll-label { font: 400 17px var(--display); letter-spacing: .02em; text-transform: none; color: var(--gold); }
.roll-label .ai { width: 20px; height: 20px; }
.hidden-badge { font-family: var(--serif); }
.rf-op { font-family: var(--serif); }
.die { font: 400 17px var(--display); color: var(--pen); background: #e9dcc0; border: 2px solid var(--pen); border-radius: var(--hand-o); min-width: 28px; height: 28px; }
.die.d20 { clip-path: none; border-radius: var(--hand-o); background: #b9a5f0; min-width: 30px; height: 30px; }
.die.dropped { opacity: .4; }
.die.crit { background: var(--gold); color: var(--pen); border-color: var(--pen); }
.die.fum { background: #e2564f; color: #fff; }
.die.exploded { box-shadow: 0 0 0 2px var(--ember); }
.die.success { background: #b9e07a; border-color: var(--pen); }
.die.failure { background: #f2a3a0; border-color: var(--pen); }
.roll-total { font: 400 40px var(--display); color: #ffe39a; text-shadow: 2px 3px 0 rgba(0, 0, 0, .35); }
@keyframes critPulse { 50% { transform: rotate(-4deg) scale(1.08); } }
.is-crit .roll-total { display: inline-block; }
.crit-banner, .fumble-banner { font: 400 17px var(--display); letter-spacing: .14em; background: none; }
.crit-banner { color: #ffe39a; }
.fumble-banner { color: #ff9a95; }
.roll-extra { border-top: 2px dashed var(--line-2); }
.rx-label { font-family: var(--display); font-weight: 400; font-size: 15px; text-transform: none; }
.rx-total { font: 400 26px var(--display); }
.check-badge { font-family: var(--display); font-weight: 400; font-size: 16px; border-radius: var(--hand-a); }
.table-card, .help-card { background: rgba(243, 231, 204, .04); border: 2px solid var(--line-2); border-radius: var(--hand-b); }
.playing-card { font-family: var(--display); border: 2px solid var(--pen); border-radius: var(--hand-c); background: #f6ecd4; }
.chat-compose { background: rgba(0, 0, 0, .15); border-top: 2px dashed var(--line-2); }
.qd { font: 400 15px var(--display); color: var(--text-2); border: 1.5px solid var(--line-2); border-radius: var(--hand-o); background: rgba(243, 231, 204, .04); }
.qd:hover { background: var(--panel-3); border-color: var(--text); color: #fff; transform: rotate(-4deg); }
.qd.d20 { color: var(--gold-2); border-color: rgba(240, 185, 58, .55); }
.cmd-hints { background: rgba(0, 0, 0, .25); border-top: 2px dashed var(--line-2); }
.cmd-hint { font-family: var(--font); border-radius: var(--hand-c); }

/* ── Listes ── */
.char-row, .lore-row, .comp-row { border-radius: var(--hand-c); border-width: 1.5px; }
.char-row:hover, .lore-row:hover, .comp-row:hover { background: rgba(243, 231, 204, .05); border-color: var(--line-2); }
.char-name, .lore-title { font-family: var(--display); font-weight: 400; font-size: 18px; }
.char-sub { font-family: var(--serif); }
.mini-bar { border: 1.5px solid rgba(243, 231, 204, .5); border-radius: var(--hand-a); height: 7px; background: rgba(0, 0, 0, .3); }
.mini-bar > div { background: var(--ok); border-radius: 0; }
.mini-bar.big { height: 12px; }
.lore-thumb { border-radius: var(--hand-c); border: 1.5px solid var(--line); background-color: var(--panel-3); }
.lore-thumb .ai, .comp-glyph .ai { width: 30px; height: 30px; }
.rarity-dot { border: 1.5px solid var(--pen); box-shadow: none; }
.lvl-badge { font: 400 16px var(--display); color: var(--pen); background: var(--arcane-2); border: 1.5px solid var(--pen); border-radius: var(--hand-o); }
.feat-row { border-bottom: 1.5px dashed var(--line-2); }
.tl-date { font: 400 17px var(--display); }
.tl-dot { background: var(--gold); border: 2px solid var(--pen); box-shadow: none; }
.tl-dot::after { background: none; border-left: 2px dashed var(--line); }

/* ── Modales & fenêtres ── */
.modal-back { background: rgba(4, 16, 14, .6); backdrop-filter: blur(3px); }
.modal { background: var(--panel-solid) var(--grain); border: 2.5px solid var(--line); border-radius: var(--hand-b); box-shadow: 8px 12px 0 rgba(0, 0, 0, .35); }
.modal-head { border-bottom: 2px dashed var(--line-2); }
.modal-head h3 { font: 400 27px var(--display); color: var(--gold); letter-spacing: .02em; }
.modal-actions { border-top: 2px dashed var(--line-2); }
.float-win { background: var(--panel-solid) var(--grain); border: 2.5px solid var(--line); border-radius: var(--hand-b); box-shadow: 7px 11px 0 rgba(0, 0, 0, .33); }
.fw-head { background: rgba(0, 0, 0, .14); border-bottom: 2px dashed var(--line-2); }
.fw-title { font: 400 21px var(--display); letter-spacing: .02em; }
.fw-title .ai { width: 22px; height: 22px; }
.fw-resize { background: linear-gradient(135deg, transparent 50%, rgba(243, 231, 204, .45) 50%, transparent 62%, rgba(243, 231, 204, .45) 62%, transparent 74%); }
.toast { font-family: var(--font); font-weight: 400; font-size: 15.5px; background: var(--panel-solid); border: 2px solid var(--line); border-radius: var(--hand-a); box-shadow: var(--shadow); }
.toast-ok { border-color: var(--ok); }
.toast-error { border-color: var(--blood); color: #ffd2cf; }
.toast-warn { border-color: var(--gold); color: #ffe6a8; }
.ctx-menu { background: var(--panel-solid) var(--grain); border: 2px solid var(--line); border-radius: var(--hand-b); box-shadow: 5px 8px 0 rgba(0, 0, 0, .35); backdrop-filter: none; }
.ctx-item { font-family: var(--font); font-size: 15px; border-radius: var(--hand-c); }
.ctx-item:hover:not(:disabled) { background: rgba(240, 185, 58, .16); }
.ctx-item.danger { color: #ff9f99; }
.ctx-ico { width: 22px; display: inline-grid; place-items: center; }
.ctx-ico .ai { width: 20px; height: 20px; }
.ctx-sep { height: 0; background: none; border-top: 1.5px dashed var(--line-2); }

/* ── Fiches ── */
.sheet-window .fw-body { background: none; }
.portrait .avatar { border-width: 3px; box-shadow: 3px 5px 0 rgba(0, 0, 0, .35); }
.portrait:hover::after { content: '✎'; background: var(--gold); color: var(--pen); border: 2px solid var(--pen); border-radius: var(--hand-o); font-family: var(--font); }
.sheet-name { font: 400 32px var(--display); color: var(--text); }
.ability { background: rgba(243, 231, 204, .04); border: 2px solid rgba(243, 231, 204, .6); border-radius: var(--hand-o); }
.ab-name { font: 400 15px var(--serif); letter-spacing: .08em; color: var(--muted); }
.ab-mod { font: 400 30px var(--display); }
.ab-mod:hover { background: rgba(240, 185, 58, .18); border-radius: var(--hand-o); }
.ab-score { font-family: var(--display) !important; font-weight: 400; color: var(--gold-2); }
.ab-save { font-family: var(--serif); }
.stat-box { background: rgba(0, 0, 0, .18); border: 2px solid var(--line-2); border-radius: var(--hand-b); }
.stat-box.clickable:hover { border-color: var(--gold); background: rgba(240, 185, 58, .08); }
.stat-label { font: 400 13px var(--serif); letter-spacing: .05em; }
.big-num { font: 400 30px var(--display); }
.mid-num { font: 400 20px var(--display); }
.hp-box { border-color: rgba(226, 86, 79, .55); background: rgba(226, 86, 79, .08); }
.pip { border: 2px solid var(--muted); border-radius: var(--hand-o); }
.pip.ok.on { background: var(--ok); border-color: var(--pen); }
.pip.bad.on { background: var(--blood); border-color: var(--pen); }
.pip.slot { background: var(--arcane-2); border-color: var(--pen); box-shadow: none; }
.sheet-tabs { border-bottom: 2px dashed var(--line-2); }
.tab { font: 400 18px var(--display); letter-spacing: .02em; border-bottom: 3px solid transparent; }
.tab.active { color: var(--gold); border-bottom-color: var(--gold); border-radius: 0 0 2px 2px; }
.skill-row { border-bottom: 1.5px dashed var(--line-2); }
.skill-name { font-family: var(--font); }
.skill-val { font-family: var(--display); font-weight: 400; font-size: 17px; }
.prof-pip { border-radius: var(--hand-o) !important; }
.slot-lvl, .slot-label { font-family: var(--display); font-weight: 400; }
.spell-name { font-family: var(--display); font-weight: 400; font-size: 17px; }
.spell-desc, .info-card p { font-family: var(--serif); }
.info-card { border-radius: var(--hand-b) !important; }
.coin { border-radius: var(--hand-o) !important; }
.glyph-btn { border-radius: var(--hand-c) !important; }
.glyph-btn .ai { width: 30px; height: 30px; }
.wiz-step span { font-family: var(--display); font-weight: 400; border-radius: var(--hand-o) !important; }
.pick-card, .kind-card, .scene-card, .fx-btn, .prop-btn, .status-btn, .mix-ch, .pl-row, .player-row, .invite-card, .voice-chip { border-radius: var(--hand-c) !important; }
.pick-card.active, .kind-card.active, .fx-btn.active, .status-btn.on { box-shadow: 2px 3px 0 rgba(0, 0, 0, .35) !important; }
.pc-glyph .ai { width: 86px; height: 86px; filter: drop-shadow(3px 5px 0 rgba(0, 0, 0, .3)); }
.pc-glyph { position: relative; display: grid; place-items: center; min-height: 92px; }
.pc-glyph::before { content: ''; position: absolute; width: 74px; height: 62px; border-radius: 50% 44% 56% 48% / 52% 58% 42% 48%; background: radial-gradient(circle at 40% 40%, rgba(243, 231, 204, .16), rgba(243, 231, 204, .03) 70%); transform: rotate(-8deg); }
.pc-glyph .ai { position: relative; }
.pick-card:hover .pc-glyph .ai { transform: rotate(-4deg) scale(1.06); transition: transform .25s; }
.kc-icon .ai { width: 52px; height: 52px; }
.comp-glyph .ai { width: 36px; height: 36px; }
.sb-glyph .ai, .item-glyph .ai { width: 72px; height: 72px; }
.pc-name, .kc-name { font-family: var(--display); font-weight: 400; font-size: 19px; }
.pc-desc, .pc-traits, .pc-bonus { font-family: var(--serif); }
.summary h2 { font-family: var(--display); font-weight: 400; }
.invite-code { font-family: var(--display) !important; font-weight: 400; letter-spacing: .25em; }

/* ── Initiative & HUD jeton ── */
#initiative { font-family: var(--font); }
.ini-round b, .ini-round small { font-family: var(--display); font-weight: 400; }
.ini-chip { border-radius: var(--hand-c) !important; border-width: 2px !important; }
.ini-chip.current { box-shadow: 2px 3px 0 rgba(0, 0, 0, .4), 0 0 0 3px rgba(240, 185, 58, .3) !important; }
.ini-name { font-family: var(--display); font-weight: 400; }
.ini-val { font-family: var(--display); font-weight: 400; }
.token-hud, .status-pop { background: var(--panel-solid) var(--grain) !important; border: 2px solid var(--line) !important; border-radius: var(--hand-b) !important; box-shadow: var(--shadow) !important; }
.hud-bar { border-radius: var(--hand-a) !important; }
.hud-num { font-family: var(--display) !important; font-weight: 400 !important; }

/* ── Lore & stat blocks ── */
.lore-h1, .stat-block h2, .item-head h2, .handout h1 { font-family: var(--display) !important; font-weight: 400 !important; letter-spacing: .02em; }
.lore-content { font-family: var(--serif); }
.lore-content h2, .lore-content h3 { font-family: var(--display); font-weight: 400; color: var(--gold); }
.lore-content blockquote { border-left: 0; border: 2px dashed var(--line); border-radius: var(--hand-b); }
.lore-banner { border-radius: var(--hand-b) !important; }
.wiki-link { text-decoration: underline wavy rgba(240, 185, 58, .6); }
.rich-toolbar { border-radius: var(--hand-c) !important; }
.tb { border-radius: var(--hand-c) !important; }
.rich-editor { font-family: var(--serif); border-radius: var(--hand-c) !important; }
.sb-sec h4 { font-family: var(--display); font-weight: 400; font-size: 19px; }
.sb-stats b { font-family: var(--display); font-weight: 400; }
.flavor { font-family: var(--serif); }

/* ── Écrans & mises en scène ── */
#loading { background: var(--ink) var(--grain) !important; }
#loading h1, .curtain-text, #pause-screen h2, .kicked h1, .narr-text { font-family: var(--display) !important; font-weight: 400 !important; letter-spacing: .03em; }
.loader-d20 polygon { fill: #b9a5f0 !important; stroke: var(--pen) !important; stroke-width: 3 !important; }
.loader-d20 polygon.inner { fill: #d9ccff !important; }
.loader-d20 line { stroke: var(--pen) !important; stroke-width: 2.5 !important; }
.loader-d20 span { font-family: var(--display) !important; font-weight: 400 !important; color: var(--pen) !important; }
.handout { border-radius: var(--hand-b) !important; }

/* ── Comptes ── */
.auth-box { font-family: var(--font); }
.account-card { border-radius: var(--hand-b) !important; }

/* ───────── Page d'accueil ───────── */
body.landing { background: radial-gradient(ellipse at 70% -10%, #1d5249 0%, transparent 55%), radial-gradient(ellipse at 0% 100%, #2b3a1a 0%, transparent 50%), var(--grain), var(--ink); }
.l-nav { background: linear-gradient(180deg, rgba(11, 36, 32, .95), rgba(11, 36, 32, 0)); }
.l-nav .brand { font-size: 32px; }
.l-nav nav a:not(.btn) { font-family: var(--font); font-weight: 400; font-size: 17px; }
.l-nav nav .nav-res > summary { font-family: var(--font); font-weight: 400; font-size: 17px; } /* même allure que les autres liens du menu */
.btn-lg { font-size: 21px; padding: 11px 24px; border-radius: var(--hand-a); }
.eyebrow { font: 400 16px var(--serif); letter-spacing: .06em; text-transform: none; border: 2px dashed var(--line); border-radius: var(--hand-a); background: rgba(240, 185, 58, .07); }
.hero h1 { font: 400 clamp(46px, 6.2vw, 84px)/1 var(--display); letter-spacing: .01em; }
.hero h1 em { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--gold); position: relative; }
.hero h1 em::after { content: ''; position: absolute; left: -2%; right: -2%; bottom: .02em; height: .26em; z-index: -1; background: var(--blood); opacity: .75; border-radius: var(--hand-a); transform: rotate(-1.2deg); }
.lead { font-family: var(--serif); font-size: 19px; }
.proof { font-family: var(--serif); font-weight: 400; font-size: 15px; }
#hero-map { border-radius: var(--hand-b); border: 3px solid var(--text); box-shadow: 10px 16px 0 rgba(0, 0, 0, .4); background: #0c2622; }
.mock-card { background: var(--panel-solid); border: 2px solid var(--line); border-radius: var(--hand-b); box-shadow: 5px 8px 0 rgba(0, 0, 0, .35); backdrop-filter: none; font-family: var(--font); font-size: 15px; }
.mock-card.roll { border-color: var(--gold); }
.mc-label { font: 400 16px var(--display); letter-spacing: .02em; }
.mc-row b { font: 400 40px var(--display); color: #ffe39a; text-shadow: 2px 3px 0 rgba(0, 0, 0, .35); }
.mc-crit { font: 400 15px var(--display); letter-spacing: .14em; color: #ffe39a; }
.chip-i { font-family: var(--font); font-size: 14px; border: 1.5px solid var(--line-2); border-radius: var(--hand-a); }
.chip-i.cur { border-color: var(--pen); background: var(--gold); color: var(--pen); box-shadow: 2px 2px 0 rgba(0, 0, 0, .35); }
.vdot { border-radius: var(--hand-o) !important; }
.play-card { background: var(--panel-solid) var(--grain); border: 2.5px solid var(--line); border-radius: var(--hand-b); box-shadow: 8px 12px 0 rgba(0, 0, 0, .32); }
.play-card.create { border-color: var(--gold); box-shadow: 8px 12px 0 rgba(0, 0, 0, .32); transform: rotate(-.4deg); }
.play-card.join { transform: rotate(.4deg); }
.play-card h2 { font: 400 34px var(--display); color: var(--gold); }
.sys-btn { border: 2px solid var(--line-2); border-radius: var(--hand-c); background: rgba(243, 231, 204, .03); }
.sys-btn.active { border-color: var(--gold); background: rgba(240, 185, 58, .12); box-shadow: 2px 3px 0 rgba(0, 0, 0, .3); }
.sys-btn .si .ai { width: 32px; height: 32px; }
.sys-btn b { font: 400 18px var(--display); }
.sys-btn small { font-family: var(--serif); font-size: 13px; }
.code-input { font: 400 32px var(--display) !important; letter-spacing: .3em; }
.camp-item { border: 2px solid var(--line-2); border-radius: var(--hand-c); }
.camp-item:hover { border-color: var(--gold); background: rgba(240, 185, 58, .07); transform: rotate(-.5deg) translateX(3px); }
.camp-item .ci-role { font-family: var(--serif); border-radius: var(--hand-a); background: rgba(180, 160, 245, .22); }
.camp-item .ci-role.gm { background: rgba(240, 185, 58, .25); }
.sec-title { font: 400 clamp(34px, 4.4vw, 56px)/1.1 var(--display); }
.sec-title span { font: 400 21px var(--serif); }
.feat-grid article { border: 2px solid var(--line-2); border-radius: var(--hand-b); background: rgba(243, 231, 204, .035); }
.feat-grid article:nth-child(odd) { transform: rotate(-.4deg); }
.feat-grid article:nth-child(even) { transform: rotate(.4deg); }
.feat-grid article:hover { transform: rotate(0) translateY(-4px); border-color: var(--line); box-shadow: 6px 10px 0 rgba(0, 0, 0, .3); }
.fi { width: 96px; height: 96px; font-size: 77px; border: 0; background: none; margin: -6px 0 6px -6px; filter: drop-shadow(4px 6px 0 rgba(0, 0, 0, .3)); }
.fi .ai { width: 96px; height: 96px; }
.feat-grid h3 { font: 400 25px var(--display); color: var(--gold); }
.feat-grid p { font-size: 16px; }
.cmp-table { border: 2.5px solid var(--line); border-radius: var(--hand-b); background: var(--panel-solid); }
.cmp-row { border-bottom: 1.5px dashed var(--line-2); font-size: 16px; }
.cmp-row.head { font: 400 18px var(--display); letter-spacing: .04em; text-transform: none; background: rgba(0, 0, 0, .18); }
.cmp-row .us { font-family: var(--display); font-weight: 400; font-size: 18px; }
.faq details { border: 2px solid var(--line-2); border-radius: var(--hand-c); background: rgba(243, 231, 204, .03); }
.faq summary { font: 400 20px var(--display); }
.faq p { font-family: var(--serif); }
.l-foot { border-top: 2px dashed var(--line-2); font-family: var(--serif); }
.acc-name { font-family: var(--display); font-weight: 400; font-size: 18px; }
.mine-empty { border: 2px dashed var(--line); border-radius: var(--hand-b); font-family: var(--serif); }

/* ── Accueil : nature morte dessinée (remplace la fausse interface) ── */
body.landing { background-attachment: fixed; }
.hero-visual { perspective: none; }
.hero-ill { position: relative; width: 100%; max-width: 640px; aspect-ratio: 1; margin: 0 auto; }
.hero-ill::before { content: ''; position: absolute; inset: 8% 4% 4% 6%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 190, 90, .22), rgba(255, 170, 70, .06) 55%, transparent 70%); filter: blur(10px); }
.hero-ill .it { position: absolute; display: block; filter: drop-shadow(6px 10px 0 rgba(0, 0, 0, .28)); transition: transform .35s cubic-bezier(.2, .9, .3, 1.3); animation: bob 7s ease-in-out infinite; }
.hero-ill .it svg, .hero-ill .it img { width: 100%; height: 100%; display: block; }
.hero-ill .it:hover { transform: translateY(-8px) rotate(var(--r2, 0deg)) scale(1.05); }
@keyframes bob { 50% { translate: 0 -6px; } }
.it-map { width: 78%; left: 11%; top: 12%; transform: rotate(-7deg); animation: none !important; filter: drop-shadow(10px 16px 0 rgba(0, 0, 0, .3)); }
.it-key { width: 26%; left: 2%; top: 2%; transform: rotate(-14deg); animation-delay: -1s !important; }
.it-candle { width: 25%; right: 2%; top: 0; animation-delay: -3s !important; }
.it-book { width: 34%; left: 0; bottom: 4%; transform: rotate(-10deg); animation-delay: -2s !important; }
.it-sword { width: 46%; left: 28%; bottom: 0; transform: rotate(18deg); animation-delay: -4s !important; }
.it-potion { width: 23%; right: 4%; top: 34%; transform: rotate(8deg); animation-delay: -5s !important; }
.it-coin { width: 22%; right: 0; bottom: 6%; animation-delay: -2.5s !important; }
.it-dice { width: 27%; left: 38%; top: 36%; transform: rotate(10deg); animation-delay: -1.5s !important; filter: drop-shadow(8px 12px 0 rgba(0, 0, 0, .35)); }
.note-roll { position: absolute; left: 4%; top: 36%; width: 34%; padding: 10px 14px 12px; background: #f3e7cc; color: var(--pen); border: 2px solid var(--pen); border-radius: var(--hand-b); transform: rotate(-5deg); box-shadow: 5px 8px 0 rgba(0, 0, 0, .3); display: flex; flex-direction: column; font-family: var(--serif); line-height: 1.15; }
.note-roll::before { content: ''; position: absolute; top: -9px; left: 50%; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff8a80, #c8413b 60%, #7a1d24); border: 2px solid var(--pen); }
.note-roll b { font: 400 18px var(--display); color: #7a1d24; }
.note-roll span { font: 400 20px var(--serif); }
.note-roll em { font: 400 34px var(--display); font-style: normal; color: #b23a33; }
.note-roll small { font: 400 17px var(--display); letter-spacing: .1em; color: #8a5a10; }
@media (max-width: 960px) { .hero-ill { max-width: 420px; } .note-roll { width: 44%; } }

/* Mon stockage */
.stor-box { border: 2px dashed var(--line-2); border-radius: var(--hand-b); padding: 10px 12px; margin: 4px 0 10px; display: grid; gap: 8px; }
.stor-title { font-family: var(--serif); }
.stor-bar { height: 10px; border-radius: 999px; background: rgba(0, 0, 0, .3); border: 1.5px solid var(--line-2); overflow: hidden; }
.stor-fill { height: 100%; width: 0; background: linear-gradient(90deg, #6fbf73, #f0b93a); transition: width .4s; }
.stor-fill.warn { background: linear-gradient(90deg, #f0b93a, #e07a3a); }
.stor-fill.full { background: #c8413b; }
.stor-list { display: grid; gap: 6px; max-height: 60vh; overflow: auto; }
.stor-item { display: flex; align-items: center; gap: 10px; padding: 6px; border: 1.5px solid var(--line-2); border-radius: var(--hand-c); }
.stor-item img, .stor-ico { width: 54px; height: 40px; object-fit: cover; border-radius: 6px; display: grid; place-items: center; background: rgba(0, 0, 0, .25); flex: none; }
.stor-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* l'accueil remet ses enfants en position relative : la modale doit rester par-dessus tout */
body > .modal-back { position: fixed !important; inset: 0; z-index: 9000 !important; }
/* (14 nov. 2026, bug signalé par Cléo : « je clique sur l'essai gratuit et il ne se passe rien ») même cause pour les messages :
   sur les pages publiques (.landing), #toasts passait en position relative et s'affichait tout en bas de la page, hors de l'écran */
body > #toasts { position: fixed !important; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 9500 !important; }

/* Générateur : la grille des lieux défile, ne déborde plus sur l'aperçu */
.generator { grid-template-columns: minmax(330px, 400px) minmax(0, 1fr); align-items: start; }
.gen-left { min-width: 0; }
.gen-left .kind-grid { grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); max-height: 46vh; overflow-y: auto; padding: 2px 6px 2px 2px; }
.kind-card { min-width: 0; padding: 6px 4px; }
.kind-card .kc-icon .ai { width: 40px; height: 40px; }
.kind-card .kc-name { font-size: 14px; line-height: 1.05; text-align: center; overflow-wrap: anywhere; hyphens: auto; }
.gen-right .preview-wrap { min-height: 380px; max-height: 64vh; }
.gen-preview { max-width: 100%; height: auto; }
/* Pause / fondu : astuce pour sortir */
.overlay-hint { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; font-size: 14px; opacity: .7; }
.overlay-close { position: absolute; top: 18px; right: 22px; }
#curtain .overlay-hint { color: #cfc4a8; }

/* Table de bruitages par catégories */
.sfx-cat { margin: 4px 0 10px; }
.sfx-cat-title { font-family: var(--serif); font-size: 15px; color: var(--gold-2, #f0c75e); margin: 2px 2px 4px; opacity: .9; }

/* Aide-mémoire des règles sur les fiches des systèmes clé en main */
.rules-tip { margin: 6px 14px 4px; padding: 8px 12px; border: 1.5px dashed var(--line-2); border-radius: var(--hand-c); font-size: 13px; line-height: 1.4; background: rgba(240, 185, 58, .06); }
.le-row .w140 { width: 140px; flex: none; }

/* Aptitudes actives */
.feat-list { display: grid; gap: 8px; }
.feat-card { border: 1.5px solid var(--line-2); border-radius: var(--hand-c); padding: 8px; display: grid; gap: 6px; }
.feat-card.active-feat { border-color: rgba(240, 185, 58, .5); background: rgba(240, 185, 58, .04); }
.feat-head, .feat-foot { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.feat-foot label { display: flex; gap: 4px; align-items: center; }
.feat-foot .w60 { width: 60px; } .feat-foot .w110 { width: 110px; }
.feat-name input, input.feat-name { font-family: var(--display); font-size: 17px; }
.feat-pips { display: inline-flex; gap: 3px; } .feat-pool b { font-size: 16px; color: var(--gold-2, #f0c75e); }
.feat-note { flex-basis: 100%; }
.feat-quick { margin-bottom: 10px; } .feat-quick-row { display: flex; gap: 6px; flex-wrap: wrap; }
.feat-btn .feat-left { opacity: .75; font-size: 12px; }
.feat-foot .w160 { width: 160px; }
/* Fiches des systèmes clé en main */
.abilities.auto { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
.ability .ab-full { text-align: center; line-height: 1.1; max-width: 110px; }
.res-box .res-pips { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; max-width: 150px; margin-top: 6px; }
details.rules-tip summary { cursor: pointer; list-style: none; } details.rules-tip summary::-webkit-details-marker { display: none; }
details.rules-tip p { margin: 6px 0 0; }

/* ── Objets interactifs, butin, potions glissées ── */
.le-row.inv-drag { cursor: grab; }
.le-row.inv-drag:active { cursor: grabbing; }
.drag-handle { color: var(--muted); font-size: 16px; line-height: 1; padding: 0 2px; cursor: grab; user-select: none; }
.le-row.inv-drag:hover .drag-handle { color: var(--gold-2); }
.item-use.heal { border-color: rgba(139, 189, 86, .6); }
.item-use.damage { border-color: rgba(226, 86, 79, .6); }
.item-use small { font-size: 11px; opacity: .8; }
body.dragging-item .char-row, body.dragging-item .sheet .portrait { outline: 2px dashed rgba(139, 189, 86, .45); outline-offset: 2px; }
.item-drop { outline: 3px solid var(--ok) !important; outline-offset: 2px; background: rgba(139, 189, 86, .12) !important; }
.le-row .w90 { width: 90px; flex: none; }
.le-row .w110 { width: 110px; flex: none; }
.effect-badge { display: flex; align-items: center; gap: 6px; margin-top: 6px; padding: 4px 8px; border-radius: var(--hand-c); font-size: 14px; border: 2px solid var(--line-2); }
.effect-badge.heal { background: rgba(139, 189, 86, .14); border-color: rgba(139, 189, 86, .5); }
.effect-badge.dmg { background: rgba(226, 86, 79, .14); border-color: rgba(226, 86, 79, .5); }
.effect-badge.undone { opacity: .45; text-decoration: line-through; }
.effect-badge b { font-family: var(--display); font-size: 18px; font-weight: 400; }
.effect-badge .fx-undo { margin-left: auto; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; cursor: pointer; padding: 0 6px; }
.effect-badge .fx-undo:disabled { opacity: .3; cursor: default; }
.loot-modal .loot-text { padding: 10px 12px; border-radius: var(--hand-b); background: rgba(243, 231, 204, .07); border: 2px dashed var(--line-2); font-family: var(--serif); line-height: 1.45; }
.loot-list { display: flex; flex-direction: column; gap: 6px; max-height: 46vh; overflow: auto; }
.loot-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--hand-c); background: rgba(255, 255, 255, .03); border: 2px solid var(--line-2); animation: lootIn .35s ease both; }
.loot-row:nth-child(2) { animation-delay: .06s; } .loot-row:nth-child(3) { animation-delay: .12s; } .loot-row:nth-child(4) { animation-delay: .18s; } .loot-row:nth-child(n+5) { animation-delay: .24s; }
.loot-sell-box > summary { cursor: pointer; font-weight: 700; padding: 6px 2px; } .loot-sell-box[open] > summary { margin-bottom: 6px; } .loot-sell { max-height: 30vh; } /* revente aux marchands (11 nov. 2026) */
.loot-ico { font-size: 24px; width: 30px; text-align: center; }
.loot-qty { color: var(--gold-2); font-family: var(--display); font-size: 17px; }
@keyframes lootIn { from { opacity: 0; transform: translateY(6px) scale(.97); } to { opacity: 1; transform: none; } }
.interact-ed .loot-edit { display: flex; flex-direction: column; gap: 5px; }
.interact-ed .row.wrap { flex-wrap: wrap; }
.outcome-badge { margin-top: 6px; padding: 3px 10px; border-radius: var(--hand-c); font-family: var(--display); font-size: 18px; border: 2px solid var(--line-2); }
.outcome-badge.ok { background: rgba(139, 189, 86, .16); border-color: rgba(139, 189, 86, .55); color: #cfeeb0; }
.outcome-badge.ko { background: rgba(226, 86, 79, .14); border-color: rgba(226, 86, 79, .5); color: #ffc2bd; }
.mastery-badge { margin-top: 6px; padding: 4px 10px; border-radius: var(--hand-c); border: 1px dashed rgba(216, 178, 106, .55); background: rgba(216, 178, 106, .08); color: var(--ink, #f1e6cf); font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: space-between; }
.outcome-badge.neutral { background: rgba(243, 231, 204, .06); color: var(--muted); }
.trap-desc { margin-top: 5px; font-style: italic; font-size: 14px; color: var(--text-2); }
.effects-list { display: flex; flex-direction: column; gap: 3px; margin-top: 4px; }
.effects-list .effect-badge { margin-top: 0; }
.effects-list .effect-badge.none { background: rgba(243, 231, 204, .05); border-color: var(--line-2); }
.effects-list.undone { opacity: .45; text-decoration: line-through; }
.effects-list > .fx-undo { align-self: flex-end; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; cursor: pointer; padding: 1px 8px; font-size: 13px; }
.chest-approach .chest-notes { display: flex; flex-direction: column; gap: 4px; }
.chest-approach .chest-note { padding: 6px 10px; border-radius: var(--hand-c); background: rgba(243, 231, 204, .06); border: 1px dashed var(--line-2); font-size: 14px; }
.chest-approach .chest-puzzle { padding: 10px 12px; border-radius: var(--hand-b); background: rgba(124, 92, 214, .14); border: 2px dashed rgba(196, 178, 255, .4); font-family: var(--serif); font-style: italic; }
.chest-acts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.chest-act { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; padding: 8px 12px; min-height: 54px; }
.chest-act b { font-family: var(--display); font-size: 18px; font-weight: 400; }
.chest-act small { font-size: 12px; opacity: .75; line-height: 1.2; }
.chest-act.primary { border-color: var(--gold) !important; }
.chest-act.danger { border-color: rgba(226, 86, 79, .6) !important; }
.chest-msg { font-family: var(--display); font-size: 19px; color: var(--gold-2); min-height: 22px; }
.chest-state { display: flex; flex-wrap: wrap; gap: 5px; }
.chest-state span { font-size: 12px; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); }
.chest-state span.on { border-color: var(--gold); color: var(--gold-2); }
.trap-ed .grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.trap-ed .grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 640px) { .trap-ed .grid3, .trap-ed .grid4 { grid-template-columns: 1fr 1fr; } }
.img-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; max-height: 56vh; overflow: auto; padding: 2px; }
.img-pick-item { position: relative; aspect-ratio: 1; padding: 0; border: 2px solid var(--line-2); border-radius: var(--hand-c); overflow: hidden; background: rgba(0,0,0,.25); cursor: pointer; }
.img-pick-item:hover { border-color: var(--gold); transform: translateY(-1px); }
.img-pick-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-pick-tag { position: absolute; left: 4px; bottom: 4px; right: 4px; font-size: 11px; background: rgba(0,0,0,.6); color: var(--text); border-radius: 6px; padding: 1px 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lore-linked { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; margin: 8px 0; border-radius: var(--hand-b); border: 2px dashed var(--line-2); background: rgba(243,231,204,.05); }
.lore-linked .ll-name { font-family: var(--display); font-size: 20px; color: var(--gold-2); }
.lore-linked .ll-bio { white-space: pre-wrap; font-family: var(--serif); }
/* ── Appliquer un jet sur des cibles ── */
.apply-btn { margin-left: 8px; padding: 2px 10px; border-radius: var(--hand-c); border: 2px solid var(--line); background: rgba(255,255,255,.05); color: var(--text); font-family: var(--display); font-size: 15px; cursor: pointer; white-space: nowrap; }
.apply-btn.damage { border-color: rgba(226, 86, 79, .6); }
.apply-btn.heal { border-color: rgba(139, 189, 86, .6); }
.apply-btn:hover { background: rgba(255,255,255,.12); transform: translateY(-1px); }
.apply-row { display: flex; justify-content: flex-end; margin-top: 4px; }
.roll-extra { display: flex; align-items: center; flex-wrap: wrap; }
.apply-head { display: flex; align-items: baseline; gap: 12px; }
.apply-amount { font-family: var(--display); font-size: 30px; }
.apply-amount.damage { color: #ffb0a8; } .apply-amount.heal { color: #cfeeb0; }
.apply-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; }
.apply-tok { display: flex; align-items: center; gap: 8px; text-align: left; padding: 6px 8px; border-radius: var(--hand-c); border: 2px solid var(--line-2); background: rgba(255,255,255,.03); color: var(--text); cursor: pointer; }
.apply-tok.on { border-color: var(--gold); background: rgba(240, 185, 58, .14); box-shadow: 0 0 0 1px var(--gold) inset; }
.apply-tok.foe.on { border-color: #e2564f; background: rgba(226, 86, 79, .14); box-shadow: 0 0 0 1px #e2564f inset; }
.apply-tok b { display: block; font-size: 15px; }
.apply-card .effects-list { margin-top: 2px; }
.apply-modal .list-group-title { display: flex; align-items: center; }
.plan-seg { flex-wrap: wrap; }
.plan-seg button { white-space: nowrap; }
.dj-badge { margin: 6px 0 4px; padding: 8px 10px; border: 2px dashed var(--gold); border-radius: var(--hand-a); background: rgba(216, 178, 106, .1); font-size: 13.5px; line-height: 1.35; }
.dj-settings .check { display: flex; align-items: center; gap: 6px; }
.dj-settings .pdot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid rgba(0, 0, 0, .4); }
.name-row { display: flex; align-items: center; gap: 8px; }
.name-row .sheet-name { flex: 1; min-width: 0; }
.codex-chip { flex: none; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font); font-size: 13px; padding: 4px 10px; border-radius: var(--hand-c); border: 2px dashed var(--line-2); background: rgba(5, 22, 19, .35); color: inherit; cursor: pointer; }
.codex-chip.linked { border-style: solid; border-color: var(--gold); background: rgba(216, 178, 106, .15); }
.codex-chip:hover { border-color: var(--gold); }
/* Horloge de jeu */
.clock-chip { flex: none; align-self: center; margin-left: 12px; font-family: var(--font); font-size: 13.5px; padding: 2px 10px; border-radius: var(--hand-c); border: 2px solid var(--line-2); background: rgba(5, 22, 19, .4); color: inherit; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.clock-chip:hover { border-color: var(--gold); }
.clock-now { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.clock-ico svg, .clock-ico img { width: 20px; height: 20px; }
/* Zones déclencheuses */
.zone-action { border: 2px dashed var(--line-2); border-radius: var(--hand-a); padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; background: rgba(5, 22, 19, .25); }
.zone-ed .chip { display: inline-flex; align-items: center; gap: 4px; }
.zone-actions { max-height: 46vh; overflow: auto; }
/* Recherche d'objets */
.prop-searchbar { display: flex; gap: 6px; align-items: center; position: sticky; top: 0; z-index: 2; padding: 4px 0 6px; background: var(--panel-solid, #11332e); }
.prop-searchbar .prop-search { flex: 1; min-width: 0; }
.prop-cats { margin-bottom: 4px; flex-wrap: wrap; overflow: visible; }

/* ── Montée de niveau guidée & choix de sorts ── */
.lvlup { gap: 10px; }
.lvlup .lu-sec { padding: 10px 12px; border: 1.5px solid var(--line-2); border-radius: var(--hand-c); background: rgba(243, 231, 204, .03); display: flex; flex-direction: column; gap: 6px; }
.lvlup .lu-sec h4 { margin: 0 0 2px; font-family: var(--font); font-size: 17px; color: var(--gold-2); letter-spacing: .2px; }
.lvlup .lu-sec p { margin: 2px 0; line-height: 1.4; font-size: 13.5px; }
.lvlup .lu-subfeat { border-left: 3px solid var(--gold); padding-left: 8px; }
.lvlup .seg { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 4px; }
.lvlup .lu-pick { padding: 7px 9px; border: 1.5px dashed var(--line-2); border-radius: var(--hand-a); display: flex; flex-direction: column; gap: 4px; }
.lvlup .lu-feat { align-items: flex-start; gap: 8px; padding: 3px 0; }
.lvlup .ok, .sp-pick-count .ok { color: var(--ok); } .lvlup .bad, .sp-pick-count .bad { color: var(--blood); }
.asi-box { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.sp-pick-modal .modal-body { max-height: 72vh; display: flex; flex-direction: column; }
.sp-pick { min-height: 0; flex: 1; }
.sp-pick-lvls { display: flex; flex-wrap: wrap; gap: 5px; }
.sp-pick-list { overflow: auto; max-height: 52vh; border: 1.5px solid var(--line-2); border-radius: var(--hand-c); }
.sp-pick-row { display: flex; gap: 9px; align-items: flex-start; padding: 7px 10px; border-bottom: 1px solid var(--line-2); cursor: pointer; transition: background .12s; }
.sp-pick-row:hover { background: rgba(240, 185, 58, .06); }
.sp-pick-row.on { background: rgba(240, 185, 58, .14); }
.sp-pick-row.known { opacity: .55; cursor: default; }
.sp-pick-row .spell-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sp-pick-row:hover .spell-desc { -webkit-line-clamp: unset; }
.sp-lvl { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line-2); font-size: 12px; font-weight: 700; color: var(--gold-2); }
.sp-pick-count { font-size: 15px; white-space: nowrap; }
.sp-tag { display: inline-block; margin-left: 5px; padding: 0 5px; border: 1px solid var(--line-2); border-radius: 6px; font-size: 10.5px; line-height: 16px; color: var(--text-2); vertical-align: middle; }
.sp-tag.gold { border-color: var(--gold); color: var(--gold-2); } .sp-tag.ok { border-color: var(--ok); color: var(--ok); } .sp-tag.bad { border-color: var(--blood); color: var(--blood); }
.sp-budget { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sp-budget-item { display: flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1.5px solid var(--line-2); border-radius: var(--hand-a); font-size: 13px; }
.sp-budget-item b { font-size: 15px; }
.sp-budget-item.under { border-color: var(--warn); background: rgba(240, 185, 58, .08); } .sp-budget-item.under b { color: var(--warn); }
.sp-budget-item.over { border-color: var(--blood); } .sp-budget-item.over b { color: var(--blood); }
.sp-budget-item.ok b { color: var(--ok); }
.sp-lock { width: 16px; text-align: center; font-size: 12px; color: var(--gold-2); }
.sp-unprep { opacity: .55; }

/* ── Dés : réglages et aperçu ── */
.dice-dot { display: inline-block; width: 11px; height: 11px; border-radius: 3px; transform: rotate(45deg); margin-right: 6px; border: 1.5px solid rgba(0, 0, 0, .5); vertical-align: -1px; }
.dice-dlg .dice-prev { display: flex; align-items: flex-end; justify-content: center; gap: 4px; padding: 10px 0 4px; border-radius: var(--hand-c); background: radial-gradient(ellipse at 50% 70%, rgba(243, 231, 204, .07), transparent 70%); }
.dice-dlg .field > span { display: block; margin-bottom: 4px; }
.dice-styles { display: flex; flex-wrap: wrap; gap: 5px; padding: 4px; }
.dice-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.dice-preset { width: 30px; height: 30px; border-radius: 7px; transform: rotate(45deg); border: 2px solid rgba(0, 0, 0, .45); background: var(--c); box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--i) 35%, transparent); cursor: pointer; transition: transform .15s; }
.dice-preset:hover { transform: rotate(45deg) scale(1.15); }
.dice-preset.gem { background: linear-gradient(135deg, color-mix(in srgb, var(--c) 55%, #fff), var(--c) 55%, color-mix(in srgb, var(--c) 60%, #000)); }
.dice-preset.metal { background: linear-gradient(135deg, #f4f4f5, var(--c) 45%, #3f3f46); }
.dice-preset.glow { background: #0b0b10; border-color: var(--c); box-shadow: 0 0 10px var(--c); }
.dice-preset.marble { background: repeating-linear-gradient(60deg, var(--c) 0 6px, color-mix(in srgb, var(--c) 50%, #fff) 6px 8px); }
.dice-preset.bone { background: #e8dcc0; box-shadow: inset 0 0 0 4px var(--c); }
.dice-swatch { display: block; }

/* Expertise (maîtrise ×2) : pastille blanc lumineux, bien distincte de la simple maîtrise dorée */
.prof-pip.r2 { background: #fffaf0 !important; border-color: #fff !important; box-shadow: 0 0 6px 2px rgba(255, 255, 255, .85), 0 0 14px 4px rgba(255, 244, 214, .45) !important; }
.prof-pip.r2:hover { box-shadow: 0 0 8px 3px rgba(255, 255, 255, .95), 0 0 18px 6px rgba(255, 244, 214, .55) !important; }

/* ── Codex : secret du MJ, relations, liens ── */
.lore-entry > .lore-secret { margin: 6px 22px 10px; }
.lore-secret { margin: 14px 0 6px; padding: 10px 14px; border: 1.5px dashed rgba(240, 120, 120, .55); border-radius: var(--hand-c); background: rgba(160, 30, 30, .1); }
.lore-secret-head { font-family: var(--font); font-size: 16px; color: #f2a7a7; margin-bottom: 4px; }
.lore-secret-body { font-size: 14px; line-height: 1.5; white-space: pre-line; }
label.lore-secret.edit > span { color: #f2a7a7; }
.lore-rels { padding: 0 22px 14px; }
.lore-rels .list-group-title { width: 100%; }
.lore-rel-list { display: flex; flex-wrap: wrap; gap: 6px; }
.rel-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1.5px solid color-mix(in srgb, var(--rc) 60%, transparent); border-radius: var(--hand-a); background: color-mix(in srgb, var(--rc) 10%, transparent); color: var(--text); font-size: 13px; cursor: pointer; }
.rel-chip:hover { background: color-mix(in srgb, var(--rc) 22%, transparent); }
.rel-chip.secret { border-style: dashed; }
.rel-chip .rel-lbl { color: var(--text-2); }
.rel-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--rc); flex: none; box-shadow: 0 0 6px var(--rc); }
.rel-editor { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.rel-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
/* Toile des relations avancée (Labo de l'Archimage) */
.rel-score { font-size: 12px; padding: 1px 8px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--sc) 60%, transparent); color: var(--sc); background: color-mix(in srgb, var(--sc) 10%, transparent); white-space: nowrap; }
.rel-item { display: flex; flex-direction: column; gap: 4px; padding: 6px 0; border-bottom: 1px dashed var(--line-2); }
.rel-sub { padding-left: 15px; }
.rel-row select.grow { min-width: 160px; flex: 1; }
.toile-box { padding: 0 22px 14px; display: flex; flex-direction: column; gap: 10px; }
.rep-box { padding: 10px 14px; border: 1.5px solid color-mix(in srgb, var(--rc) 55%, transparent); border-radius: var(--hand-c); background: color-mix(in srgb, var(--rc) 8%, transparent); }
.rep-box .rep-level { color: var(--rc); font-family: var(--font); font-size: 18px; }
.rep-gauge { position: relative; height: 10px; margin-top: 8px; border-radius: 999px; background: linear-gradient(90deg, #f87171, #fb923c 30%, #d6c7a1 50%, #a3e635 70%, #4ade80); opacity: .85; }
.rep-gauge .rep-mid { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; background: rgba(14, 24, 21, .6); }
.rep-gauge .rep-mark { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #f3e7cc; border: 3px solid var(--rc); box-shadow: 0 2px 6px rgba(0, 0, 0, .5); }
.rep-edit { margin-top: 10px; padding: 10px 12px; border: 1px dashed var(--line-2); border-radius: var(--hand-b, 10px); }
.rep-edit .rep-level { font-family: var(--font); font-size: 16px; min-width: 120px; }
.rel-log summary { cursor: pointer; font-family: var(--font); font-size: 17px; color: var(--gold-2); }
.rel-log .stack { margin-top: 6px; max-height: 220px; overflow: auto; }
.rel-log-line { font-size: 13.5px; padding: 3px 8px; border-left: 2px solid var(--line-2); }
.rel-log-line.secret { border-left-style: dashed; opacity: .8; }
.wiki-link.auto { border-bottom-style: dotted; }
.ext-link { color: #8ec5ff; text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
.ext-link::after { content: ' ↗'; font-size: .8em; }
/* Texte à liens (fiche de personnage) */
.linked-text .lt-head > span:first-child { font-family: var(--serif); font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.linked-text .lt-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.linked-text .lt-view { padding: 8px 12px; min-height: 42px; border: 1.5px solid var(--line-2); border-radius: var(--hand-c); background: rgba(243, 231, 204, .03); line-height: 1.55; font-size: 14px; white-space: normal; }
.linked-text .lt-view .wiki-link { color: var(--gold-2); cursor: pointer; border-bottom: 1px solid currentColor; }
/* Toile des relations */
.graph-wrap { position: relative; display: flex; flex-direction: column; height: 100%; min-height: 420px; }
.graph-wrap .graph-canvas { flex: 1; width: 100%; min-height: 360px; cursor: grab; display: block; background: radial-gradient(ellipse at center, rgba(243, 231, 204, .04), transparent 70%); }
.graph-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1.5px dashed var(--line-2); }
.graph-search { width: 180px; }
.graph-cats { display: flex; flex-wrap: wrap; gap: 4px; }
.graph-cats .chip { opacity: .45; font-size: 12.5px; padding: 2px 8px; }
.graph-cats .chip.active { opacity: 1; background: color-mix(in srgb, var(--cc) 18%, transparent); color: var(--text); border-color: color-mix(in srgb, var(--cc) 60%, transparent); }
.graph-cats .cat-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--cc); }
.graph-legend { position: absolute; left: 10px; bottom: 34px; display: flex; flex-wrap: wrap; gap: 10px; max-width: 70%; padding: 6px 10px; border-radius: var(--hand-c); background: rgba(14, 24, 21, .8); font-size: 12px; pointer-events: none; }
.graph-legend .lg-item { display: inline-flex; align-items: center; gap: 5px; color: var(--text-2); }
.graph-legend .lg-line { width: 18px; height: 3px; border-radius: 2px; background: var(--rc); }
.graph-legend .lg-line.dash { background: repeating-linear-gradient(90deg, rgba(214, 199, 161, .7) 0 4px, transparent 4px 8px); }
.graph-tip { position: absolute; display: none; max-width: 250px; padding: 8px 10px; border: 1.5px solid var(--line-2); border-radius: var(--hand-c); background: rgba(14, 24, 21, .95); pointer-events: none; z-index: 2; box-shadow: 0 8px 22px rgba(0, 0, 0, .4); }
.graph-tip > * + * { margin-top: 3px; }
.graph-wrap .graph-hint { padding: 4px 10px; font-size: 12px; color: var(--muted); }
.graph-empty { position: absolute; inset: 40% 0 auto; text-align: center; }

/* ── Tableau de bord admin ── */
.admin-btn { margin-top: 8px; width: 100%; }
.adm-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.adm-kpi { display: flex; flex-direction: column; padding: 10px 12px; border: 1.5px solid var(--line-2); border-radius: var(--hand-c); background: rgba(243, 231, 204, .03); }
.adm-kpi b { font-family: var(--font); font-size: 28px; color: var(--gold-2); line-height: 1.1; }
.adm-kpi span { font-size: 13px; }
.adm-kpi small { font-size: 11.5px; color: var(--muted); }
.adm-chart { padding: 8px 10px; border: 1.5px solid var(--line-2); border-radius: var(--hand-c); }
.adm-chart-title { font-size: 14px; margin-bottom: 6px; }
.adm-svg svg { width: 100%; height: 130px; display: block; }
.adm-latest { display: flex; flex-direction: column; gap: 2px; }
.lore-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 4px 0 6px; }
.lore-filters .input { min-width: 0; font-size: 13px; padding: 4px 8px; }
/* inscription : acceptation des CGU ; compte : action sensible */
.terms-check { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.4; }
.terms-check input { margin-top: 3px; flex: none; }
.terms-check a { text-decoration: underline; }
.danger-text { color: #e5484d; }
/* pied de page : liens légaux */
.l-foot .legal-links { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; font-size: 13px; }
.l-foot .legal-links a { color: inherit; opacity: .75; text-decoration: none; }
.l-foot .legal-links a:hover { opacity: 1; text-decoration: underline; }
/* accueil : pastille « Exclusif » sur les fonctionnalités introuvables ailleurs */
.feat-grid article { position: relative; }
.feat-grid .excl { position: absolute; top: 12px; right: 12px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #2a1d08; background: #f6c84c; padding: 3px 9px; border-radius: 999px; transform: rotate(3deg); box-shadow: 0 2px 0 rgba(0,0,0,.25); }

/* Accueil : liens communauté (Discord / Instagram) dans le haut de page */
.hero-social { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 4px 0 18px; }
.hs-label { width: 100%; font-family: var(--font); color: var(--gold); font-size: 16px; }
.hs-btn { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border: 1.5px dashed rgba(246, 200, 76, .55); border-radius: 14px; background: rgba(246, 200, 76, .06); color: var(--text); text-decoration: none; transition: transform .15s, background .15s, border-color .15s; }
.hs-btn > span { display: flex; flex-direction: column; line-height: 1.1; }
.hs-btn b { font-family: var(--display); font-size: 22px; color: var(--gold-2); letter-spacing: .02em; }
.hs-btn small { color: var(--muted); font-size: 13px; }
.hs-btn .ai { font-size: 26px; }
.hs-btn:hover { border-style: solid; border-color: var(--gold); background: rgba(246, 200, 76, .12); transform: translateY(-2px); }
@media (max-width: 520px) { .hs-btn { flex: 1 1 100%; } }
.kind-cats { margin-bottom: 8px; }
.sb-stats.ten { grid-template-columns: repeat(5, 1fr); row-gap: 4px; }

/* ── Codex vu par un personnage ── */
.lore-persona { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; margin: 0 0 8px; border: 1.5px dashed var(--line, rgba(243,231,204,.25)); border-radius: var(--hand-a, 10px); background: rgba(0,0,0,.12); }
.lore-persona.previewing { border-style: solid; border-color: #e8c26a; background: rgba(232,194,106,.12); }
.lore-persona .lp-row { display: flex; align-items: center; gap: 8px; margin: 0; }
.lore-persona .lp-lbl { white-space: nowrap; font-weight: 600; }
.lore-persona select { flex: 1; min-width: 0; }
.lore-persona .lp-note { font-size: 12px; color: var(--text-2); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.graph-persona { position: absolute; top: 52px; left: 50%; transform: translateX(-50%); padding: 4px 12px; border-radius: 999px; background: rgba(232,194,106,.9); color: #1a1208; font-weight: 700; font-size: 13px; pointer-events: none; }
/* relations en phrases */
.lore-rel-list { flex-direction: column; flex-wrap: nowrap; }
.rel-line { display: flex; align-items: baseline; gap: 8px; padding: 5px 10px; border-left: 3px solid var(--rc); background: color-mix(in srgb, var(--rc) 8%, transparent); border-radius: 6px; font-size: 14px; }
.rel-line.secret { border-left-style: dashed; }
.rel-line .rel-dot { align-self: center; }
.rel-line .rel-self { color: var(--text); }
.rel-row.incoming { opacity: .85; padding: 2px 0; }

/* Codex : en-tête figé (recherche, filtres, vues) pendant le défilement de la liste */
.lore-head { position: sticky; top: -10px; z-index: 6; margin: -10px -14px 8px; padding: 10px 14px 8px; background: var(--panel-solid, #142a24); border-bottom: 1.5px dashed var(--line-2, rgba(243,231,204,.15)); box-shadow: 0 8px 14px -10px rgba(0,0,0,.6); }
.lore-head .panel-toolbar { margin-bottom: 6px; }
.lore-head .lore-filters { margin-bottom: 6px; }
/* (12 nov. 2026) l'en-tête figé prend toute la largeur du panneau : la règle « .panel-content > * { max-width: 100% } » le coupait à droite
   (28 px où les entrées passaient dessous pendant le défilement) */
.side-panel .panel-content > .lore-head { max-width: none; width: auto; }

/* Fonctions premium grisées (tables dont le MJ n'est pas premium) */
.premium-off { opacity: .55; filter: grayscale(.7); cursor: pointer; }
.premium-off:hover { opacity: .8; }

/* Bloc « Mon compte » */
.offer-box { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; border: 1px dashed var(--line); background: rgba(216, 178, 106, .05); }
/* (1er déc. 2026) téléphone : les boutons de l'offre passent à la ligne au lieu de déborder */
.offer-box .btn { white-space: normal; height: auto; min-height: 36px; line-height: 1.25; padding-top: 6px; padding-bottom: 6px; text-align: center; max-width: 100%; box-sizing: border-box; }
.offer-line { display: flex; justify-content: space-between; align-items: center; }
/* (1er déc. 2026) fenêtre de parrainage */
.ref { display: flex; flex-direction: column; gap: 12px; }
.ref-lead { margin: 0; }
.ref-link { display: flex; gap: 8px; align-items: center; }
.ref-link .ref-in { flex: 1 1 auto; min-width: 0; font-family: ui-monospace, monospace; font-size: 13px; }
.ref-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ref-card { padding: 10px 12px; border-radius: 10px; background: rgba(0, 0, 0, .22); border: 1px solid rgba(246, 200, 76, .22); }
.ref-card h4, .ref-h { margin: 0 0 6px; color: var(--gold); }
.ref-card ul { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.45; }
.ref-guild { padding: 12px 14px; border-radius: 12px; background: linear-gradient(135deg, rgba(246, 200, 76, .18), rgba(246, 200, 76, .05)); border: 1px solid rgba(246, 200, 76, .55); display: flex; flex-direction: column; gap: 8px; }
.ref-guild h4 { margin: 0; color: var(--gold); }
.ref-guild-big { display: flex; align-items: baseline; gap: 10px; }
.ref-guild-big b { font-size: 30px; line-height: 1; color: var(--gold); white-space: nowrap; }
.ref-guild-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.ref-gs { display: flex; flex-direction: column; align-items: center; padding: 5px 2px; border-radius: 8px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(246, 200, 76, .2); }
.ref-gs b { font-size: 14px; color: #f3e4c2; } .ref-gs i { font-style: normal; font-size: 11px; opacity: .7; }
.ref-gs:last-child { border-color: rgba(246, 200, 76, .7); } .ref-gs:last-child b { color: var(--gold); }
.ref-gs.on { background: rgba(246, 200, 76, .3); border-color: var(--gold); }
.ref-guild-cta { display: flex; align-items: center; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
.ref-prog { display: flex; gap: 12px; align-items: center; padding: 8px 12px; border-radius: 10px; background: rgba(0, 0, 0, .18); }
.ref-prog .grow { display: flex; flex-direction: column; gap: 4px; }
.ref-die { flex: 0 0 92px; height: 92px; }
.ref-list { display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow: auto; }
.ref-row { display: flex; gap: 10px; align-items: center; padding: 6px 10px; border-radius: 8px; background: rgba(0, 0, 0, .18); }
.ref-steps { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ref-step { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .5); white-space: nowrap; }
.ref-step.on { background: rgba(246, 200, 76, .18); color: var(--gold); }
@media (max-width: 600px) { .ref-cols { grid-template-columns: 1fr; } .ref-row { flex-direction: column; align-items: flex-start; } .ref-steps { justify-content: flex-start; } }

/* Aperçu admin (premium / gratuit / vente ouverte) */
.admin-preview { position: fixed; left: 50%; bottom: 72px; transform: translateX(-50%); z-index: 3200; display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 999px; background: rgba(14, 24, 21, .94); border: 1.5px dashed var(--line, rgba(243,231,204,.3)); box-shadow: 0 8px 24px rgba(0,0,0,.45); font: 600 13px var(--font, sans-serif); color: var(--text, #f3e7cc); }
.admin-preview.on { border: 2px solid #e8c26a; }
.admin-preview select { background: transparent; color: inherit; border: 0; font: inherit; cursor: pointer; }
.admin-preview select option { background: #142a24; }

/* Outils premium : historique, bibliothèque, scénarios prêts à jouer */
.hist-list { display: flex; flex-direction: column; gap: 6px; max-height: 52vh; overflow: auto; padding-right: 4px; }
.hist-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 1px dashed var(--line); background: rgba(216, 178, 106, .04); }
.hist-row.check { cursor: pointer; }
.hist-row:hover { background: rgba(216, 178, 106, .09); }
.hist-ico { font-size: 22px; }
.pack-card { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; border: 1.5px dashed var(--line); background: linear-gradient(135deg, rgba(216, 178, 106, .07), rgba(139, 92, 246, .05)); }
.pack-card p { margin: 6px 0; }
.pack-icon { font-size: 34px; line-height: 1; filter: drop-shadow(0 3px 6px rgba(0,0,0,.5)); }
.pack-fit { margin-left: 8px; font-size: 11px; padding: 1px 7px; border-radius: 999px; background: rgba(62, 207, 110, .15); color: var(--ok, #3ecf6e); }
.dice-preset.gloss { box-shadow: inset 4px 4px 6px rgba(255,255,255,.45); }
.dice-preset.matte { filter: saturate(.85) contrast(.95); }
/* Générateur : cartes restantes pour l'offre gratuite */
.gen-quota { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; margin-top: 10px; border-radius: 8px; background: rgba(216, 178, 106, .1); border: 1px solid var(--line); font-size: 13px; color: var(--gold-2); }
.gen-quota.empty { background: rgba(229, 72, 77, .12); border-color: rgba(229, 72, 77, .4); color: #ffd4d6; }
/* Statistiques admin : présence en direct */
.adm-live { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.adm-table { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: rgba(255, 255, 255, .03); }
.adm-table-head { margin-bottom: 6px; }
.adm-people { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.adm-who { font-size: 12px; padding: 3px 8px; border-radius: 999px; background: var(--panel-3); }
.adm-who.gm { background: rgba(216, 178, 106, .18); color: var(--gold-2); }
.adm-who small { color: var(--muted); }

/* 10 nov. 2026 : mention « sans IA » du générateur, jukebox qui ne déborde plus, aides d'outils compactes sur téléphone */
.gen-noai { margin-top: 8px; font-size: 12.5px; color: var(--muted); font-family: var(--serif); }
.jukebox-add .btn { flex: 1 1 150px; min-width: 0; white-space: normal; text-align: center; }
.side-panel .panel-content { overflow-x: hidden; }
.side-panel .panel-content > * { max-width: 100%; }
@media (max-width: 600px) {
  .tool-options .opt-hint { flex-basis: 100%; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.25; }
}

/* Étages : un bâtiment = un bloc compact, rien ne déborde (10 nov. 2026) */
.scene-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.building { border: 1px solid var(--gold-dim, #8a6d32); border-radius: var(--hand-c, 12px); padding: 6px 6px 0; margin-bottom: 8px; background: rgba(216, 178, 106, .04); min-width: 0; }
.building-head { display: flex; align-items: center; gap: 6px; padding: 2px 4px 6px; min-width: 0; font-weight: 700; }
.building-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--gold-2, #f6d77a); }
.building .scene-card { margin-bottom: 6px; padding: 6px; gap: 8px; }
.building .scene-thumb-wrap { width: 84px; height: 56px; }
.building .scene-actions .btn { padding-inline: 8px; }
/* Aperçu admin compact (11 nov. 2026) : petite pastille en bas à gauche, le menu s'ouvre au survol, ne cache plus le pied de page */
#admin-preview.admin-preview { left: 10px; right: auto; bottom: 10px; transform: none; width: auto; max-width: calc(100vw - 20px); padding: 3px 9px; gap: 4px; font-size: 11px; opacity: .75; box-sizing: border-box; }
#admin-preview.admin-preview select { display: none; font-size: 11px; max-width: 220px; }
#admin-preview.admin-preview:hover, #admin-preview.admin-preview:focus-within { opacity: 1; }
#admin-preview.admin-preview:hover select, #admin-preview.admin-preview:focus-within select, #admin-preview.admin-preview.open select { display: block; }
#admin-preview.admin-preview.open { opacity: 1; }

/* Scénarios prêts à jouer sur téléphone (11 nov. 2026) : le bouton passe sous le texte au lieu d'écraser la colonne */
@media (max-width: 760px) {
  .pack-card { flex-wrap: wrap; gap: 10px; padding: 12px; }
  .pack-card .pack-icon { font-size: 28px; }
  .pack-card > .grow { flex: 1 1 0; min-width: 0; }
  .pack-card > .btn { flex: 1 1 100%; order: 3; justify-content: center; }
  .pack-fit { display: inline-block; margin: 4px 0 0; }
  .modal-head h3 { font-size: 22px; line-height: 1.1; }
}

/* Forme sauvage du druide (11 nov. 2026) */
.ws-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; max-height: 52vh; overflow: auto; }
.ws-card { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1.5px dashed var(--line); background: rgba(216, 178, 106, .06); color: inherit; cursor: pointer; }
.ws-card:hover { border-color: var(--gold, #f6c84c); background: rgba(216, 178, 106, .14); }
.ws-card .ws-glyph { font-size: 30px; line-height: 1; }
.ws-panel { margin: 0 0 10px; padding: 10px 12px; border-radius: 14px; border: 2px solid rgba(62, 207, 110, .55); background: linear-gradient(135deg, rgba(62, 207, 110, .12), rgba(216, 178, 106, .06)); display: flex; flex-direction: column; gap: 8px; }
.ws-head { display: flex; align-items: center; gap: 10px; }
.ws-head .ws-glyph { font-size: 34px; line-height: 1; }

/* Joueurs connectés dans la bannière du haut (11 nov. 2026) */
.online-bar { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; overflow-x: auto; max-width: 44vw; scrollbar-width: none; }
.online-bar::-webkit-scrollbar { display: none; }
.online-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px; white-space: nowrap; font-size: 13px; font-weight: 700;
  color: #9be36b; background: rgba(110, 200, 70, .12); border: 1.5px solid rgba(139, 189, 86, .7); }
.online-pill.me { background: rgba(110, 200, 70, .22); }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: #5fd35a; box-shadow: 0 0 8px #5fd35a; flex: none; }
@media (max-width: 900px) { .online-bar { max-width: 38vw; } .online-pill { font-size: 12px; padding: 2px 8px 2px 6px; } }
@media (max-width: 600px) { .online-name { max-width: 64px; overflow: hidden; text-overflow: ellipsis; } }
body.is-screen .online-bar { display: none; }

/* Jet caché depuis la fiche (11 nov. 2026) */
.sheet-secret { margin-left: auto; align-self: center; flex: none; white-space: nowrap; font: inherit; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; cursor: pointer;
  color: var(--muted, #b9b0a0); background: transparent; border: 1.5px dashed var(--line-2, rgba(255,255,255,.25)); }
.sheet-secret:hover { color: var(--text, #fff); border-style: solid; }
.sheet-secret.active { color: #fff; background: rgba(124, 58, 237, .35); border: 1.5px solid rgba(167, 139, 250, .9); }

/* Fenêtre à part (11 nov. 2026) : fiche, Codex ou toile seule dans une fenêtre du navigateur */
body.is-popout > :not(.float-win):not(.modal-back):not(.ctx-menu):not(#toasts):not(script):not(style) { display: none !important; }
body.is-popout .float-win { left: 0 !important; top: 0 !important; width: 100vw !important; height: 100vh !important; max-width: none !important; max-height: none !important; border-radius: 0 !important; }
body.is-popout .float-win .fw-resize { display: none; }

/* Chuchoter depuis le chat (11 nov. 2026) */
.chat-who { align-items: center; flex-wrap: nowrap; }
.chat-who .as-select, .chat-who .to-select { flex: 1 1 0; min-width: 0; max-width: none; padding: 5px 8px; font-size: 12.5px; }
.to-select.whisper-on, .chat-input.whisper-on { border-color: rgba(167, 139, 250, .9) !important; background-color: rgba(124, 58, 237, .14) !important; }
button.online-pill { font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
button.online-pill:hover { background: rgba(110, 200, 70, .25); }

/* Barre du pion : flèches ▲▼ sur les PV actuels (11 nov. 2026) */
.hud-spin { display: inline-flex; flex-direction: column; margin-left: -2px; }
.hud-spin button { all: unset; cursor: pointer; font-size: 8px; line-height: 9px; padding: 0 3px; color: var(--muted, #bbb); }
.hud-spin button:hover { color: var(--text, #fff); }

/* Déroulé du tour de combat (11 nov. 2026) */
.turn-panel { display: inline-flex; align-items: center; gap: 4px; margin: 0 6px; flex: none; }
.turn-move { font-size: 12.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(255, 200, 70, .14); border: 1px solid rgba(255, 200, 70, .5); color: #ffd98a; white-space: nowrap; }
.turn-move.over { background: rgba(255, 80, 80, .18); border-color: rgba(255, 90, 90, .8); color: #ff9a9a; }
.turn-pill { font: inherit; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; cursor: pointer; white-space: nowrap; color: #bfe8a8; background: rgba(110, 200, 70, .14); border: 1px solid rgba(139, 189, 86, .6); }
.turn-pill.used { color: #9a9a9a; background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .15); text-decoration: line-through; }
.turn-pill:disabled { cursor: default; opacity: .9; }
@media (max-width: 900px) { .turn-pill { padding: 2px 5px; font-size: 11px; } }

/* Barre d'outils du MJ (11 nov. 2026) : 19 outils, tous visibles sans défiler sur un écran de portable */
@media (max-height: 1000px) { body.is-gm #toolbar { gap: 3px; padding-top: 8px; padding-bottom: 8px; } body.is-gm .tool-btn { width: 36px; height: 36px; } body.is-gm .tool-btn .ai { width: 25px; height: 25px; } body.is-gm .tool-sep { margin: 3px 0; } }
@media (max-height: 860px) { body.is-gm .tool-btn { width: 32px; height: 32px; font-size: 16px; } body.is-gm .tool-btn .ai { width: 22px; height: 22px; } body.is-gm #toolbar { gap: 2px; } }
@media (max-height: 740px) { body.is-gm .tool-btn { width: 28px; height: 28px; font-size: 14px; } body.is-gm .tool-btn .ai { width: 19px; height: 19px; } body.is-gm .tool-sep { margin: 2px 0; } }

/* Bulles d'aide des outils de la table (12 nov. 2026, tips.js) */
.ui-tip { position: fixed; z-index: 9999; max-width: 260px; padding: 6px 10px; pointer-events: none; opacity: 0; transition: opacity .08s; background: #0a201c; color: #f3e7cc; border: 2px solid #d8b26a; border-radius: 10px 13px 9px 12px; font: 15px/1.25 'Kalam', 'Patrick Hand', cursive; box-shadow: 0 4px 14px rgba(0,0,0,.45); }
.ui-tip.on { opacity: 1; }

/* Prochaine séance dans la barre du haut (12 nov. 2026, session.js) */
.next-session { margin-left: 8px; padding: 3px 10px; border: 2px solid #d8b26a; border-radius: 10px 13px 9px 12px; background: rgba(240,185,58,.14); color: #f3e7cc; font: 15px/1.2 'Kalam', 'Patrick Hand', cursive; cursor: pointer; white-space: nowrap; }
.next-session:hover { background: rgba(240,185,58,.26); }
.next-session.empty { border-style: dashed; opacity: .75; }
@media (max-width: 1100px) { .next-session.empty { display: none; } }
@media (max-width: 760px) { .next-session { font-size: 13px; padding: 2px 7px; } }

/* Onglet Personnages : 4 éléments dans la barre (bouton Importer, 12 nov. 2026) : passage à la ligne au lieu d'écraser la recherche */
.panel-toolbar:has(.char-search) { flex-wrap: wrap; }
.panel-toolbar .char-search { flex: 1 1 100%; min-width: 0; }

/* Joueur sans pion sur une carte à murs (12 nov. 2026, board.js blindHint) */
.blind-hint { position: fixed; left: 50%; top: 45%; transform: translate(-50%, -50%); z-index: 40; max-width: min(420px, 86vw); padding: 14px 18px; text-align: center; pointer-events: none;
  background: rgba(10,32,28,.92); color: #f3e7cc; border: 2px solid #d8b26a; border-radius: 14px 10px 16px 11px; font: 17px/1.35 'Kalam', 'Patrick Hand', cursive; box-shadow: 0 6px 24px rgba(0,0,0,.5); }

/* Menus du clic droit : jamais plus hauts que l'écran (12 nov. 2026 : la liste des créatures dépassait en bas) */
.ctx-menu { max-height: calc(100dvh - 16px); overflow-y: auto; box-sizing: border-box; }

/* Scène par joueur (12 nov. 2026) : pastilles des joueurs sur les cartes de scène */
.pchips { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0; }
.pchip { display: inline-flex; align-items: center; gap: 4px; max-width: 110px; padding: 1px 7px 1px 4px; border-radius: 999px; border: 1.5px dashed var(--line-2, rgba(243,231,204,.2)); background: transparent; color: var(--text-2, #c9bfa6); font: 600 11px var(--font, sans-serif); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .7; }
.pchip:hover { opacity: 1; border-color: var(--pc); }
.pchip .pdot-s { width: 8px; height: 8px; border-radius: 50%; background: var(--pc); flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.4); }
.pchip.on { opacity: 1; border-style: solid; border-color: var(--pc); background: color-mix(in srgb, var(--pc) 18%, transparent); color: var(--text, #f3e7cc); }
.pchip.on.split { box-shadow: 0 0 0 1px var(--pc) inset; }
.pchip:disabled { cursor: default; }

/* ── Aptitudes en cartes compactes (12 nov. 2026, demande de Cléo) : résumé, ordre ▲▼, réglages dans un volet ⚙ ── */
.feat-card { padding: 8px 10px; gap: 4px; background: rgba(216, 178, 106, .04); }
.feat-card .feat-head { flex-wrap: nowrap; align-items: center; }
.feat-order { display: flex; flex-direction: column; gap: 1px; }
.feat-order .icon-btn.xs { width: 20px; height: 15px; min-width: 0; padding: 0; font-size: 9px; line-height: 1; opacity: .55; }
.feat-order .icon-btn.xs:hover:not(:disabled) { opacity: 1; }
.feat-order .icon-btn.xs:disabled { opacity: .15; }
.feat-sum { cursor: pointer; min-width: 0; }
.feat-title { font-family: var(--display); font-size: 18px; color: var(--gold, #f6c84c); line-height: 1.1; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.feat-src { font-family: var(--hand, inherit); font-size: 11px; color: var(--text-2); border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; }
.feat-line { font-style: italic; font-size: 13px; color: var(--text-2); font-family: var(--serif); margin-top: 2px; }
.feat-eff { font-weight: 700; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: rgba(240, 185, 58, .14); color: #f0d48a; white-space: nowrap; }
.feat-desc-full { font-family: var(--serif); font-size: 13px; color: var(--text-2); white-space: pre-wrap; border-left: 2px solid var(--line-2); padding: 2px 0 2px 10px; margin-left: 24px; }
.feat-settings { display: grid; gap: 6px; border-top: 1px dashed var(--line-2); padding-top: 8px; margin-top: 2px; }
.feat-settings .feat-row { display: flex; gap: 8px; }
.feat-settings label.tiny { display: grid; gap: 3px; }
.feat-card.open { border-color: rgba(246, 200, 76, .45); }
.icon-btn.on { color: var(--gold, #f6c84c); }
@media (max-width: 560px) { .feat-card .feat-head { flex-wrap: wrap; } .feat-settings .feat-row { flex-direction: column; } }
/* munitions / utilisations des attaques */
.ammo-col { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; white-space: nowrap; }
.ammo-col input { width: 46px; padding: 2px 4px; }
.ammo-col.empty input:first-of-type { color: #f87171; }
/* générateur : réglages avancés repliables (repliés sur téléphone, 12 nov. 2026) */
.gen-more > summary { cursor: pointer; font-weight: 700; color: var(--gold-2, #ffd36e); padding: 4px 0; }
.gen-more > * + * { margin-top: 14px; }
/* « Continuer sur mon PC » */
.pc-link-box { display: grid; gap: 10px; }
.pc-link-url { font-family: monospace; font-size: 12px; word-break: break-all; padding: 8px; border: 1px dashed var(--line-2); border-radius: 8px; }

/* Panneau d'options des outils compact (13 nov. 2026, demande de Cléo : le panneau Construction était trop gros et cachait la carte) */
.tool-options { gap: 6px 8px; padding: 6px 10px; }
.tool-options .input.xs { width: auto; min-width: 0; max-width: 150px; padding: 2px 6px; font-size: 13px; line-height: 1.2; height: 28px; border-width: 1px; }
.tool-options .input.num.xs { max-width: 64px; }
.tool-options .opt { gap: 4px; }
.tool-options .opt-label { font-size: 11.5px; }
.tool-options .seg.small button { padding: 3px 8px; font-size: 12.5px; }
.tool-options .btn-xs { padding: 3px 8px; font-size: 12px; }
@media (min-width: 901px) { .tool-options[data-tool=build] { width: max-content; max-width: min(880px, calc(100% - 20px)); } } /* 14 nov. 2026 : 880 px, le bouton Sélection ne passe plus à la ligne */
.tool-options[data-tool=build] .opt-hint { order: 5; flex: 1 1 100%; min-width: 0; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tool-options[data-tool=build] .tool-exit { order: 4; margin-left: auto; }

/* ── Accueil, 13 nov. 2026 : vue du MJ / vue joueur, et premier écran sur téléphone ── */
.mjvj { max-width: 1240px; margin: 0 auto; padding: 30px clamp(16px, 5vw, 64px) 50px; }
.mjvj-tabs { display: none; gap: 8px; justify-content: center; margin: 0 0 14px; }
.mjvj-tab { font: inherit; font-weight: 700; padding: 8px 14px; border-radius: var(--hand-a, 12px); border: 2px solid var(--line, rgba(255,255,255,.2)); background: rgba(0, 0, 0, .25); color: var(--text-2, #ddd); cursor: pointer; }
.mjvj-tab[aria-selected="true"] { background: var(--gold, #f2c14e); color: #1b1408; border-color: var(--gold, #f2c14e); }
.mjvj-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.mjvj-fig { margin: 0; }
.mjvj-fig img { width: 100%; height: auto; aspect-ratio: 15 / 11; object-fit: cover; display: block; border-radius: var(--hand-b, 14px); border: 3px solid var(--text, #f4ead5); box-shadow: 10px 14px 0 rgba(0, 0, 0, .35); background: #050409; }
.mjvj-fig figcaption { margin-top: 12px; color: var(--text-2, #ddd); font-size: 15px; line-height: 1.45; }
.mjvj-fig figcaption b { color: var(--gold, #f2c14e); }
.mjvj-note { text-align: center; color: var(--text-2, #ccc); font-size: 14px; margin: 18px 0 0; opacity: .85; }
.mjvj-cta { text-align: center; margin-top: 18px; }
.more-btn { display: none; margin: 18px auto 0; }
@media (max-width: 960px) {
  .hero { padding-top: 6px; padding-bottom: 30px; gap: 18px; }
  .hero-visual { order: 1; }
  .hero-ill { max-width: 250px; }
  .hero h1 { font-size: clamp(34px, 9.6vw, 46px); margin: 8px 0 12px; }
  .hero h1.h1-seo .eyebrow { margin: 0 0 12px; font-size: 13px; }
  .hero .lead { font-size: 16px; line-height: 1.5; }
  .hero-cta { margin: 16px 0 12px; }
  .hero-social { display: none; }
  .mjvj { padding-top: 10px; }
  .mjvj-tabs { display: flex; }
  .mjvj-grid { grid-template-columns: 1fr; }
  .mjvj[data-show="mj"] .mjvj-fig[data-vue="joueur"], .mjvj[data-show="joueur"] .mjvj-fig[data-vue="mj"] { display: none; }
  .more-btn { display: block; }
  .features:not(.open) .feat-grid > article:nth-child(n+7) { display: none; }
  .compare:not(.open) .cmp-row:nth-child(n+7) { display: none; }
}

/* ── Ressources, 13 nov. 2026 (pages construites par tools/ressources/build.cjs) ── */
.rs-page { max-width: 1040px; }
.rs-crumbs { font-size: 14px; color: var(--text-2); margin: 0 0 14px; }
.rs-crumbs a { color: var(--text-2); }
.rs-crumbs .rs-sep { opacity: .5; margin: 0 4px; }
.rs-maps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 22px 0 8px; }
.rs-map { margin: 0; }
.rs-map img, .rs-card img { width: 100%; height: auto; display: block; border-radius: var(--hand-b); border: 3px solid var(--text); box-shadow: 6px 9px 0 rgba(0, 0, 0, .35); background: #0b0a10; }
.rs-map figcaption { margin-top: 10px; font-size: 15px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rs-tag { font-size: 12px; padding: 1px 8px; border-radius: var(--hand-a); border: 1.5px solid var(--line); }
.rs-tag.free { color: #b6f0c0; border-color: rgba(120, 220, 140, .5); }
.rs-tag.prem { color: var(--gold); border-color: rgba(240, 185, 58, .55); }
.rs-note { font-size: 14px; color: var(--text-2); opacity: .9; }
.rs-ideas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.rs-ideas.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* page Univers : vignette de carte à droite du texte (15 nov. 2026) */
.rs-univ::after { content: ""; display: block; clear: both; }
.rs-univ-img { float: right; width: 40%; margin: 4px 0 12px 20px; }
.rs-univ-img img { width: 100%; height: auto; display: block; border-radius: var(--hand-b); border: 3px solid var(--text); box-shadow: 6px 9px 0 rgba(0, 0, 0, .35); background: #0b0a10; } /* 2, 4 ou 8 cases : 2 colonnes (15 nov. 2026) */
.rs-idea { border: 2px dashed var(--line); border-radius: var(--hand-b); padding: 14px 16px; background: rgba(0, 0, 0, .15); }
.rs-idea h3 { margin: 0 0 6px; font-size: 18px; color: var(--gold); }
.rs-idea p { margin: 0; }
.rs-adrien { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px; margin: 14px 0 6px; }
.rs-adrien-card { margin: 0; text-align: center; display: none; }
.rs-adrien-card.ok { display: block; }
.rs-adrien-card img { width: 100%; max-width: 150px; height: auto; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(4px 6px 0 rgba(0, 0, 0, .3)); }
.rs-adrien-card figcaption { font-family: var(--display); font-size: 17px; margin-top: 4px; }
.rs-adrien-strip { grid-template-columns: repeat(auto-fill, minmax(90px, 110px)); justify-content: center; }
.rs-adrien-strip figcaption { display: none; }
.rs-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 14px 0; }
.rs-card { display: block; text-decoration: none; color: inherit; }
.rs-card span { display: block; margin-top: 8px; }
.rs-card b { font-family: var(--display); font-size: 20px; font-weight: 400; color: var(--text); display: block; }
.rs-card small { color: var(--text-2); }
.rs-card:hover img { transform: rotate(-.6deg) translateY(-2px); }
.rs-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 12px 0 8px; }
.rs-item { display: block; padding: 12px 14px; border: 2px solid var(--line); border-radius: var(--hand-a); background: rgba(0, 0, 0, .18); text-decoration: none; color: inherit; }
.rs-item b { display: block; font-family: var(--display); font-weight: 400; font-size: 19px; color: var(--gold); }
.rs-item small { color: var(--text-2); font-size: 14px; }
.rs-item:hover { border-color: var(--gold); }
.rs-dice { padding: 12px 16px; border-left: 4px solid var(--gold); background: rgba(0, 0, 0, .2); margin: 16px 0; }
.rs-dice b { color: var(--gold); margin-right: 6px; }
.rs-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 10px 0 6px; }
.rs-stats div { text-align: center; padding: 10px 6px; border: 2px solid var(--line); border-radius: var(--hand-b); }
.rs-stats b { display: block; font-family: var(--display); font-size: 28px; font-weight: 400; color: var(--gold); }
.rs-stats span { font-size: 14px; color: var(--text-2); }
.rs-tool { border: 3px solid var(--text); border-radius: var(--hand-b); padding: 18px; margin: 20px 0; background: rgba(5, 22, 19, .45); box-shadow: 8px 12px 0 rgba(0, 0, 0, .3); }
.rs-dice-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.rs-dice-btns .btn { min-width: 64px; font-size: 18px; }
.rs-dice-form { display: grid; gap: 10px; }
.rs-dice-opts, .rs-name-opts { display: flex; flex-wrap: wrap; gap: 14px; }
.rs-dice-out { display: flex; align-items: baseline; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.rs-total { font-family: var(--display); font-weight: 400; font-size: 64px; line-height: 1; color: var(--gold); }
.rs-dice-out.pop .rs-total { animation: rsPop .35s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes rsPop { from { transform: scale(.6) rotate(-8deg); opacity: .3; } to { transform: none; opacity: 1; } }
.rs-detail { color: var(--text-2); }
.rs-history { margin: 12px 0 0; padding-left: 20px; color: var(--text-2); font-size: 14px; columns: 2; }
.rs-name-kinds { display: flex; flex-wrap: wrap; margin-bottom: 12px; }
.rs-name-go { margin: 14px 0; }
.rs-names { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rs-names button { width: 100%; text-align: left; font: inherit; font-size: 17px; padding: 8px 12px; border-radius: var(--hand-a); border: 1.5px solid var(--line-2); background: rgba(243, 231, 204, .04); color: var(--text); cursor: pointer; }
.rs-names button:hover { border-color: var(--gold); }
.rs-names button.copied { border-color: #7fd890; color: #b6f0c0; }
@media (max-width: 760px) {
  .rs-maps, .rs-ideas, .rs-ideas.two { grid-template-columns: minmax(0, 1fr); }
  .rs-univ-img { float: none; width: 100%; margin: 8px 0 12px; }
  .rs-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rs-names { grid-template-columns: minmax(0, 1fr); }
  .rs-history { columns: 1; }
  .rs-total { font-size: 52px; }
}
.legal-page a.rs-card, .legal-page a.rs-item, .legal-page a.rs-card *, .legal-page a.rs-item * { text-decoration: none; }

/* ── Choix du système à la création (13 nov. 2026) : 2 cartes + menu déroulant des 8 autres ── */
#systems.sys-grid { display: block; }
.sys-main { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sys-more { margin-top: 8px; border: 2px solid var(--line-2); border-radius: var(--hand-c); background: rgba(243, 231, 204, .03); }
.sys-more.active { border-color: var(--gold); background: rgba(240, 185, 58, .12); }
.sys-more > summary { list-style: none; cursor: pointer; padding: 10px 40px 10px 12px; position: relative; }
.sys-more > summary::-webkit-details-marker { display: none; }
.sys-more > summary::after { content: ''; position: absolute; right: 16px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--text); border-bottom: 2px solid var(--text); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.sys-more[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }
.sys-more > summary b { display: block; font: 400 18px var(--display); }
.sys-more > summary small { font-family: var(--serif); font-size: 13px; color: var(--text-2); }
.sys-more-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 0 8px 8px; }
.sys-btn.sys-mini { padding: 6px 8px; align-items: center; }
.sys-btn.sys-mini small { display: none; }
.sys-btn.sys-mini b { font-size: 15px; }
.sys-btn.sys-mini .si .ai { width: 24px; height: 24px; }
@media (max-width: 960px) {
  .sys-main .sys-btn { flex-direction: column; gap: 4px; }
  .sys-main .sys-btn small { display: none; }
  .sys-more-list { grid-template-columns: minmax(0, 1fr); }
}

/* Menu Ressources (13 nov. 2026) : le mot « Ressources » mène à la page centrale, la flèche ouvre le menu */
.l-nav nav .nav-res > summary { padding-right: 4px; }
.l-nav nav .nav-res > summary .nav-res-link { display: inline !important; color: inherit; text-decoration: none; }
.l-nav nav .nav-res > summary::after { padding: 4px; margin-left: 4px; }
.feat-grid .feat-more { display: inline-block; margin-top: 8px; font-size: 14px; color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* ── Thème du public (13 nov. 2026, demande de Cléo) ──
   Côté MJ = vert du site (défaut). Côté joueur = bordeaux, même or et même crème.
   body.pov-joueur sur les pages pour les joueurs ; .pov-tag = badge « Côté MJ » / « Côté joueur » ;
   .pov-zone = bloc teinté dans une page qui mélange les deux (page Ressources). Même code couleur dans les vidéos et visuels. */
body.pov-joueur {
  --ink: #2a1216; --ink-2: #1f0d10;
  --panel: rgba(58, 20, 26, .96); --panel-solid: #3a141a; --panel-2: #4a1a21; --panel-3: #5a2029;
}
body.landing.pov-joueur { background-color: #2a1216; background-image: radial-gradient(ellipse at 50% 0%, #4a1c22 0%, transparent 60%), radial-gradient(ellipse at 0% 100%, #1a0a0c 0%, transparent 55%); background-repeat: no-repeat; background-size: 100% 100vh; background-attachment: fixed; }
@media (max-width: 960px), (pointer: coarse) { body.landing.pov-joueur { background-attachment: scroll; background-size: 100% 100%; } }
body.pov-joueur .l-nav { background: linear-gradient(180deg, rgba(31, 13, 16, .94), rgba(31, 13, 16, 0)); }
.pov-tag { display: block; width: max-content; max-width: 100%; font: 700 12px var(--font); letter-spacing: .12em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; margin: 0 0 8px; border: 1.5px solid; }
.pov-tag-mj { color: #bfe3b0; background: rgba(46, 110, 80, .35); border-color: rgba(139, 189, 86, .6); }
.pov-tag-joueur { color: #ffc9c4; background: rgba(120, 30, 40, .45); border-color: rgba(226, 86, 79, .65); }
.pov-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0 26px; }
.pov-card, .pov-card:hover { display: block; text-decoration: none !important; padding: 18px 20px; border: 2px solid var(--line); border-radius: var(--hand-a, 14px); box-shadow: 2px 3px 0 rgba(0, 0, 0, .3); }
.pov-card b, .pov-card small { text-decoration: none; }
.pov-card b { display: block; font: 400 28px var(--display); color: var(--gold-2); }
.pov-card small { color: var(--text-2, #e8dcc0); font-size: 15px; }
.pov-card-mj { background: linear-gradient(135deg, #164039, #0f2f2a); }
.pov-card-joueur { background: linear-gradient(135deg, #4a1a21, #2a1216); }
.pov-card:hover { transform: translateY(-2px); border-color: var(--gold); }
.pov-zone { border-radius: var(--hand-b, 18px); padding: 14px 20px 6px; margin: 22px 0; border: 2px dashed var(--line-2); }
.pov-zone-mj { background: rgba(22, 64, 57, .35); }
.pov-zone-joueur { background: linear-gradient(135deg, rgba(74, 26, 33, .75), rgba(42, 18, 22, .75)); border-color: rgba(226, 86, 79, .35); scroll-margin-top: 80px; }
@media (max-width: 640px) { .pov-choice { grid-template-columns: 1fr; } }

/* Page Ressources (14 nov. 2026, demande de Cléo) : « Je suis MJ » / « Je suis joueur » = deux onglets, une seule zone visible à la fois
   (le contenu des deux reste dans la page pour Google) ; cartes et univers = deux grandes portes vers leurs pages. */
.pov-card { position: relative; }
.pov-choice.js .pov-card { opacity: .62; }
.pov-choice.js .pov-card[aria-selected="true"] { opacity: 1; border-color: var(--gold); box-shadow: 0 0 0 2px rgba(240, 200, 90, .35), 2px 3px 0 rgba(0, 0, 0, .35); }
.pov-choice.js .pov-card[aria-selected="true"]::after { content: ""; position: absolute; left: 50%; bottom: -12px; width: 18px; height: 18px; transform: translateX(-50%) rotate(45deg); background: inherit; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); }
.pov-zone[hidden] { display: none; }
.pov-choice.js + .pov-zone, .pov-choice.js ~ .pov-zone { margin-top: 0; }
.rs-doors { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 12px 0 18px; }
.legal-page a.rs-door, .legal-page a.rs-door * { text-decoration: none; }
.rs-door { display: flex; flex-direction: column; gap: 4px; padding: 12px 12px 16px; border: 2px solid var(--line); border-radius: var(--hand-a, 14px); background: rgba(0, 0, 0, .2); color: inherit; transition: transform .15s, border-color .15s; }
.rs-door:hover { transform: translateY(-2px); border-color: var(--gold); }
.rs-door > b { font: 400 26px var(--display); color: var(--gold-2, var(--gold)); margin-top: 8px; }
.rs-door > small { color: var(--text-2); font-size: 15px; }
.rs-door-img { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; height: 120px; }
.rs-door-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.rs-door-u { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 6px; border-radius: 8px; background: linear-gradient(160deg, rgba(240, 200, 90, .16), rgba(0, 0, 0, .25)); border: 1px solid var(--line); }
.rs-door-u em { font: 400 19px var(--display); font-style: normal; color: var(--gold); }
.rs-door-u small { font-size: 12px; color: var(--text-2); line-height: 1.25; margin-top: 4px; }
.rs-univ { padding: 4px 0 14px; border-bottom: 1px dashed var(--line-2, var(--line)); margin-bottom: 8px; }
.rs-univ h2 a { color: inherit; text-decoration: none; }
@media (max-width: 640px) { .rs-doors { grid-template-columns: 1fr; } .rs-door-img { height: 90px; } }

/* Barre du haut sur téléphone (16 nov. 2026, Cléo : « trop lourde, le bouton Vocal n'est pas accessible ») :
   le bouton Vocal ne rétrécit jamais ; horloge courte ; heure du jour repliée sur l'heure active (toucher pour déplier) ;
   joueurs connectés en pastilles sans nom (le nom reste au survol / dans l'onglet Joueurs) ; prochaine séance raccourcie. */
@media (max-width: 700px) {
  #topbar { gap: 6px; padding: 0 6px; }
  #topbar .top-right { gap: 6px; min-width: 0; flex: 0 1 auto; }
  #voice, .voice-bar { flex: none; }
  .clock-chip { margin-left: 4px; padding: 1px 7px; font-size: 12px; }
  .clock-chip .clock-ico svg, .clock-chip .clock-ico img { width: 16px; height: 16px; }
  .quick-time { margin-left: 2px; padding: 2px; position: relative; }
  .quick-time:not(.open) .qt-btn:not(.active) { display: none; }
  .quick-time:not(.open):not(:has(.qt-btn.active)) .qt-btn:first-child { display: grid; }
  .quick-time.open { position: absolute; top: 4px; left: 44px; z-index: 60; background: var(--ink-2, #0f2f2a); box-shadow: 0 6px 18px rgba(0,0,0,.45); }
  .quick-time.open .qt-btn { display: grid !important; }
  .online-bar { max-width: 26vw; min-width: 46px; flex: 0 1 auto; gap: 3px; }
  .online-pill { padding: 3px; gap: 0; }
  .online-pill .online-name { display: none; }
  .next-session { max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; padding: 2px 6px; margin-left: 2px; }
  .next-session.empty { display: none; }
}
@media (max-width: 700px) { .clock-chip .clock-day { display: none; } }

/* Horloge : raccourcis sous l'heure (16 nov. 2026) — petit menu, pas une fenêtre */
.clock-pop { position: fixed; z-index: 900; width: 340px; max-width: calc(100vw - 16px); max-height: calc(100dvh - 80px); overflow-y: auto; box-sizing: border-box; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px;
  background: var(--panel-solid) var(--grain); border: 2px solid var(--line); border-radius: var(--hand-b); box-shadow: 5px 8px 0 rgba(0, 0, 0, .35); }
.clock-pop .list-group-title { margin: 4px 0 0; }
.clock-speed-row { align-items: center; }
.clock-speed-row .input { width: auto !important; flex: none; height: 30px; padding: 2px 6px; font-size: 14px; }
.clock-speed-row .input.num { width: 58px !important; }
@media (max-width: 700px) { .clock-pop { left: 8px !important; right: 8px; width: auto; } }

/* ── Atelier des dés (16 nov. 2026, 2e passe) : aperçu en vitrine, onglets, collections nommées ── */
.dice-modal .dice-dlg { gap: 10px; }
.dice-stage { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; align-items: center; column-gap: 10px; padding: 10px 14px 12px; border-radius: 14px;
  background: radial-gradient(ellipse at 30% 75%, rgba(255, 236, 200, .12), transparent 60%), linear-gradient(180deg, #2c2722, #1b1815); box-shadow: inset 0 0 0 1px rgba(243, 231, 204, .08), inset 0 -18px 30px rgba(0, 0, 0, .35); }
.dice-stage > .dice-swatch { grid-row: 1 / span 3; }
.dice-set { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 2px; }
.dice-name { font-family: inherit; font-weight: 700; font-size: 1.05rem; color: #f3e7cc; margin-top: 4px; }
.dice-desc { max-width: 46ch; }
.dice-panel label.field { min-width: 120px; }
.dice-tabs { display: flex; flex-wrap: wrap; gap: 5px; }
.dice-panel { min-height: 170px; max-height: 42vh; overflow: auto; padding: 2px; }
.dice-presets2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
.dice-coll { position: relative; display: flex; align-items: center; gap: 9px; padding: 6px 8px 6px 10px; border-radius: 10px; border: 1px solid rgba(243, 231, 204, .12); background: rgba(255, 255, 255, .03); color: inherit; font: inherit; font-size: .85rem; text-align: left; cursor: pointer; transition: background .15s, transform .15s; }
.dice-coll:hover { background: rgba(255, 255, 255, .08); transform: translateY(-1px); }
.dice-coll .dice-preset { flex: none; width: 22px; height: 22px; border-radius: 5px; margin: 3px; }
.dice-coll .dice-lock { position: absolute; top: 2px; right: 4px; font-size: .7rem; }
.dice-coll-n { line-height: 1.15; }
.dice-lock { font-size: .75em; }
.dice-fontname { font: 11px system-ui, sans-serif; opacity: .75; }
.dice-pal { display: flex; flex-wrap: wrap; gap: 5px; }
.dice-pal-c { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, .4); box-shadow: inset 0 2px 3px rgba(255, 255, 255, .3); cursor: pointer; padding: 0; }
.dice-pal-c:hover { transform: scale(1.15); }
.dice-dlg .field.disabled { opacity: .45; }
/* pastilles de matière */
.dmat { display: inline-block; width: 13px; height: 13px; border-radius: 3px; transform: rotate(45deg); vertical-align: -2px; margin: 0 3px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35); }
.dmat.gem, .dmat.candy { background: linear-gradient(135deg, color-mix(in srgb, var(--c) 45%, #fff), var(--c) 55%, color-mix(in srgb, var(--c) 55%, #000)); }
.dmat.metal { background: linear-gradient(135deg, #f4f4f5, var(--c) 45%, #3f3f46); }
.dmat.glow { background: #0b0b10; box-shadow: 0 0 6px var(--c), inset 0 0 0 1px var(--c); }
.dmat.marble { background: repeating-linear-gradient(60deg, var(--c) 0 4px, color-mix(in srgb, var(--c) 45%, #fff) 4px 5px); }
.dmat.bone { background: #e8dcc0; } .dmat.wood { background: repeating-linear-gradient(80deg, #8b5a2b 0 2px, #a8743d 2px 4px); }
.dmat.pearl { background: linear-gradient(135deg, #ffe4f1, #dbeafe 50%, #dcfce7); } .dmat.foam { background: var(--c); filter: saturate(.7) brightness(1.15); border-radius: 5px; }
.dmat.bubble { background: radial-gradient(circle at 35% 30%, #fff 0 15%, transparent 30%), linear-gradient(135deg, #fbcfe8, #a5f3fc, #fde68a); opacity: .85; }
.dmat.ice { background: linear-gradient(135deg, #f0f9ff, color-mix(in srgb, var(--c) 50%, #bae6fd)); } .dmat.stone { background: #78716c radial-gradient(circle, rgba(255, 255, 255, .35) 1px, transparent 1.5px) 0 0 / 4px 4px; }
.dmat.galaxy { background: radial-gradient(circle at 30% 30%, #fff 0 1px, transparent 1.5px), radial-gradient(circle at 70% 60%, #fff 0 1px, transparent 1.5px), radial-gradient(circle at 40% 60%, #c026d3, #1e1b4b 70%); }
.dmat.lava { background: linear-gradient(120deg, #1c1917 0 40%, #f97316 45%, #1c1917 52%), #1c1917; box-shadow: 0 0 5px rgba(249, 115, 22, .7); }
/* pastilles d'encre */
.dink { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: -1px; background: #f3e7cc; }
.dink.gold { background: linear-gradient(135deg, #8a5a14, #ffe39a 45%, #c8901f); } .dink.silver { background: linear-gradient(135deg, #6b7280, #f9fafb 45%, #9ca3af); }
.dink.copper { background: linear-gradient(135deg, #7c2d12, #fdba74 45%, #c2410c); } .dink.glow { background: #a5f3fc; box-shadow: 0 0 6px #22d3ee; }
/* collections : nouvelles matières et effets */
.dice-preset.galaxy { background: radial-gradient(circle at 30% 30%, #fff 0 1px, transparent 2px), radial-gradient(circle at 65% 55%, #fff 0 1px, transparent 2px), radial-gradient(circle at 45% 60%, color-mix(in srgb, var(--c) 70%, #d946ef), #0b0a1f 75%); }
.dice-preset.lava { background: linear-gradient(115deg, #1c1917 0 38%, #fb923c 44%, #1c1917 50%, #1c1917 66%, #f97316 70%, #1c1917 74%); box-shadow: 0 0 8px rgba(249, 115, 22, .6); }
.dice-preset.wood { background: repeating-linear-gradient(80deg, var(--c) 0 3px, color-mix(in srgb, var(--c) 70%, #fff) 3px 5px); }
.dice-preset.pearl { background: linear-gradient(135deg, #ffe4f1, color-mix(in srgb, var(--c) 60%, #dbeafe) 50%, #dcfce7); }
.dice-preset.bubble { background: radial-gradient(circle at 35% 30%, #fff 0 12%, transparent 25%), linear-gradient(135deg, #fbcfe8, var(--c), #fde68a); }
.dice-preset.candy, .dice-preset.ice { background: linear-gradient(135deg, color-mix(in srgb, var(--c) 40%, #fff), var(--c) 60%, color-mix(in srgb, var(--c) 70%, #000)); }
.dice-preset.stone { background: var(--c) radial-gradient(circle, rgba(255, 255, 255, .3) 1px, transparent 1.6px) 0 0 / 5px 5px; }
.dice-preset.foam { filter: saturate(.75) brightness(1.1); border-radius: 9px; }
.dice-preset.swirl { background-image: repeating-linear-gradient(55deg, transparent 0 5px, color-mix(in srgb, var(--c2) 75%, transparent) 5px 7px); background-color: var(--c); }
.dice-preset.flakes { background-image: radial-gradient(circle, var(--c2) 1px, transparent 1.5px), radial-gradient(circle, var(--c2) 0.8px, transparent 1.3px); background-size: 6px 6px, 4px 4px; background-position: 0 0, 2px 3px; background-color: var(--c); }
.dice-preset.smoke { background: radial-gradient(ellipse at 40% 40%, color-mix(in srgb, var(--c2) 60%, transparent), transparent 60%), var(--c); }
.dice-preset.ink-gold { border-color: #e9b85a; } .dice-preset.ink-silver { border-color: #e5e7eb; } .dice-preset.ink-copper { border-color: #d6804f; } .dice-preset.ink-glow { border-color: #67e8f9; box-shadow: 0 0 8px #22d3ee; }
@media (max-width: 560px) { .dice-stage { grid-template-columns: 1fr; justify-items: center; text-align: center; } .dice-stage > .dice-swatch { grid-row: auto; } .dice-set { justify-content: center; } }

/* aperçu premium (16 nov. 2026) : bouton cliquable dans le message, options premium montrées en couleur avec un petit cadenas */
#toasts .toast-peek, #toasts .toast-peek button { pointer-events: auto; }
#toasts .toast-peek button { margin-left: 6px; }
.premium-peek { position: relative; }
.premium-peek .dice-lock { opacity: .85; }
.dice-stage .dice-peek { position: absolute; bottom: 10px; right: 12px; display: flex; align-items: center; gap: 6px; padding: 3px 4px 3px 10px; border-radius: 999px; font-size: .78rem; color: #ffe6a8; background: rgba(243, 194, 106, .14); border: 1px solid rgba(243, 194, 106, .45); }
.dice-stage .dice-peek[hidden] { display: none; }

/* ── Médaillons ronds (16 nov. 2026, demande de Cléo : « les bulles sont ovales et pas rondes ») ──
   Chaque attribut = son nom au-dessus, une bulle VRAIMENT ronde (.ab-orb, taille bornée + aspect-ratio 1) avec la valeur,
   puis le reste en dessous (sauvegarde, choix du score, bonus du peuple…). Avant, tout tenait dans la bulle : elle s'étirait en ovale
   dans l'assistant et coupait le nom et le jet de sauvegarde sur la fiche. Vaut pour toutes les fiches et tous les systèmes, PC et téléphone. */
.abilities { justify-items: center; align-items: start; row-gap: 14px; }
.abilities .ability, .abilities.meds-round .ability, .sheet-inner .abilities .ability, .sheet-inner .abilities.eight .ability {
  width: 100%; max-width: none; min-width: 0; aspect-ratio: auto; overflow: visible; padding: 2px 0 0; gap: 6px;
  background: none; border: 0; border-radius: 0; justify-content: flex-start; }
.libre-sheet.editing .ability { border: 0; }
.abilities .ability .ab-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; font-size: 14px; line-height: 1.15; }
.ab-orb { --orb: 104px; position: relative; width: 100%; max-width: var(--orb); aspect-ratio: 1; flex: none; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px;
  background: radial-gradient(circle at 38% 30%, rgba(243, 231, 204, .13), rgba(243, 231, 204, .03) 58%, rgba(0, 0, 0, .16));
  border: 2px solid rgba(243, 231, 204, .62); box-shadow: inset 0 0 0 4px rgba(10, 30, 26, .55), inset 0 0 0 5px rgba(243, 231, 204, .16), 2px 4px 0 rgba(0, 0, 0, .28); }
/* deuxième trait d'encre, à peine décalé : l'esprit « dessiné à la main » sans perdre le rond */
.ab-orb::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid rgba(243, 231, 204, .2); transform: rotate(-8deg) scale(1, .985); pointer-events: none; }
.ab-orb .ab-mod { font-size: 32px; line-height: 1; padding: 2px 8px; }
.ab-orb .ab-tot { font: 400 15px var(--display); color: var(--gold-2); line-height: 1; padding: 2px 10px; border-radius: 999px; background: rgba(0, 0, 0, .28); }
.ab-orb .ab-score { width: 54px !important; height: 26px; font-size: 15px !important; background: rgba(0, 0, 0, .3); }
.ab-orb .ab-score.ab-big, .ab-orb input.ab-big { width: 68% !important; height: 40px; font-size: 24px !important; text-align: center; border-radius: 999px !important; }
.ab-orb .tiny { line-height: 1.1; }
.ability .ab-die { font-size: 18px; line-height: 1; padding: 4px 10px; border: 2px solid var(--line-2); border-radius: var(--hand-c); }
.ability .ab-save { justify-content: center; }
.ability .ab-pm { gap: 6px; }
.ability select.input { width: 74px; }
.abilities.wiz .ab-orb, .summary .ab-orb, .camp-meds .ab-orb { --orb: 92px; }
.abilities.wiz .ab-orb .ab-mod, .summary .ab-orb .ab-mod { font-size: 30px; }
.abilities.ten .ab-orb, .abilities.eight .ab-orb { --orb: 92px; }
.libre-sheet .ab-add { border: 0; background: none; padding: 2px 0 0; }
.libre-sheet .ab-add .ab-orb { border-style: dashed; background: none; box-shadow: none; }
.libre-sheet .ab-add .ab-orb::after { display: none; }
.libre-sheet .ab-del { top: 18px; right: 50%; transform: translateX(calc(46px + 50%)); z-index: 1; }
.libre-sheet .ab-rename { width: 92%; }
@media (max-width: 600px) {
  .ab-orb { --orb: 86px; padding: 4px; }
  .ab-orb .ab-mod { font-size: 26px; }
  .abilities.wiz .ab-orb, .summary .ab-orb, .camp-meds .ab-orb, .abilities.ten .ab-orb, .abilities.eight .ab-orb { --orb: 80px; }
  .abilities .ability .ab-name { font-size: 12.5px; letter-spacing: .04em; }
  .ab-orb .ab-score { width: 48px !important; height: 24px; font-size: 14px !important; }
  .libre-sheet .ab-del { transform: translateX(calc(40px + 50%)); }
}
/* Assistant de création sur téléphone (16 nov. 2026) : portrait et boutons passent à la ligne au lieu de déborder ;
   étapes compactes (numéro seul sauf l'étape en cours) pour que toute la frise tienne sur la largeur. */
.wiz-face { flex-wrap: wrap; justify-content: center; }
@media (max-width: 600px) {
  .wiz-face .avatar.big { width: 80px; height: 80px; font-size: 36px; }
  .wiz-face .btn { flex: 1 1 140px; }
  .wiz-steps { gap: 4px; overflow-x: auto; scrollbar-width: none; }
  .wiz-step:not(.active) { font-size: 0; gap: 0; padding: 5px; }
  .wiz-step:not(.active) span { font-size: 11px; }
  .wiz-step.active { flex: none; }
}

/* ── Panneau Scènes (16 nov. 2026, demande de Cléo : « les scènes sont assez mal faites ») ──
   Grande vignette fidèle à la carte (photo du vrai rendu ou rendu HD du générateur), nom lisible, infos en pastilles,
   boutons sur une ligne. Les niveaux d'un bâtiment (.floor-card) gardent leur rangée compacte. PC et téléphone. */
.scene-tools { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.scene-tools .scene-new { width: 100%; justify-content: center; font-size: 17px; padding: 9px 12px; }
.scene-tools-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.scene-tools-row .btn { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; font-size: 14px; border-style: dashed; white-space: nowrap; }
.scene-tools-row .btn span { font-size: 18px; line-height: 1; }
.scene-count { margin: -4px 2px 10px; text-align: center; }
.scene-card:not(.floor-card) { flex-direction: column; gap: 0; padding: 0; overflow: hidden; margin-bottom: 12px; background: rgba(0, 0, 0, .2); border: 2px solid var(--line-2); box-shadow: 2px 4px 0 rgba(0, 0, 0, .28); transition: border-color .15s, box-shadow .15s, transform .15s; }
.scene-card:not(.floor-card):hover { border-color: rgba(243, 231, 204, .45); }
.scene-card:not(.floor-card) .scene-thumb-wrap { width: 100%; height: auto; aspect-ratio: 2 / 1; margin: 0 !important; border-radius: 0; background: #0b0d0c; }
.scene-card:not(.floor-card) .scene-thumb-wrap::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .5), inset 0 -26px 30px -18px rgba(0, 0, 0, .55); }
.scene-thumb { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease, filter .2s; }
.scene-card:not(.floor-card) .scene-thumb-wrap:hover .scene-thumb { transform: scale(1.04); filter: brightness(1.08); }
.scene-card:not(.floor-card) .scene-info { padding: 7px 10px 9px; gap: 5px; }
.scene-card:not(.floor-card) .scene-name { font: 400 19px var(--display); color: var(--text); letter-spacing: .02em; line-height: 1.15; }
.scene-meta { display: flex; flex-wrap: wrap; gap: 4px; }
.scene-meta span { font-size: 12px; line-height: 1.5; padding: 0 8px; border-radius: 999px; background: rgba(243, 231, 204, .07); border: 1px solid rgba(243, 231, 204, .1); color: var(--text-2); white-space: nowrap; }
.scene-card:not(.floor-card) .scene-actions { gap: 6px; margin-top: 2px; flex-wrap: nowrap; align-items: center; }
.scene-card:not(.floor-card) .scene-actions .btn { padding: 4px 10px; font-size: 15px; }
.scene-card:not(.floor-card) .scene-actions .btn-primary { flex: 1 1 auto; justify-content: center; }
.scene-actions .scene-more { margin-left: auto; min-width: 34px; justify-content: center; }
.scene-card.active:not(.floor-card) { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(240, 185, 58, .35), 0 0 18px rgba(240, 185, 58, .15), 2px 4px 0 rgba(0, 0, 0, .28); }
.scene-card.viewing:not(.active):not(.floor-card) { border-color: rgba(167, 139, 250, .7); background: rgba(139, 92, 246, .07); }
.scene-flag { left: 8px; top: 8px; font: 400 13px var(--display); padding: 2px 9px; box-shadow: 1px 2px 0 rgba(0, 0, 0, .4); z-index: 1; }
.scene-eye { position: absolute; left: 8px; bottom: 8px; z-index: 1; font: 400 12.5px var(--display); padding: 1px 8px; border-radius: 999px; background: rgba(20, 14, 40, .78); color: #d9ccff; border: 1px solid rgba(167, 139, 250, .6); }
.scene-flag + .scene-eye { bottom: 8px; }
/* poignée pour réordonner : en haut à droite de la vignette, bien attrapable au doigt */
.scene-card.scene-item:not(.floor-card) > .scene-grip { left: auto; right: 8px; top: 8px; transform: none; width: 34px; height: 34px; border-radius: 50%; background: rgba(8, 12, 10, .72); color: rgba(243, 231, 204, .85); border: 1px solid rgba(243, 231, 204, .25); font-size: 17px; z-index: 3; }
.scene-card.scene-item .scene-thumb-wrap { margin-left: 0; }
.building { padding: 8px 8px 2px; margin-bottom: 14px; }
.building .scene-card { background: rgba(0, 0, 0, .18); }
.building .scene-thumb-wrap { width: 96px; height: 64px; }
.building .scene-name { font: 400 15px var(--display); }
.building .scene-meta span { font-size: 11px; }
@media (max-width: 600px) {
  .scene-card:not(.floor-card) .scene-thumb-wrap { width: 100%; height: auto; aspect-ratio: 16 / 10; }
  .scene-card:not(.floor-card) .scene-name { font-size: 18px; }
  .scene-card:not(.floor-card) .scene-actions .btn { padding: 6px 10px; }
  .scene-tools-row .btn { font-size: 13px; }
}
.floor-card .scene-actions { flex-wrap: nowrap; gap: 4px; }
.floor-card .scene-actions .btn { padding: 3px 8px; min-width: 32px; justify-content: center; }
.floor-card.viewing { border-color: rgba(167, 139, 250, .7); }
.floor-card.active { border-color: var(--gold); }
/* Pense-bête « Lance ta première partie » sur téléphone (16 nov. 2026) : il recouvrait la barre d'outils et l'aide du haut ;
   il se range maintenant en bas, entre les deux colonnes de boutons, au-dessus de « + Macro ». */
.starter-head { gap: 10px; }
.starter-count { white-space: nowrap; }
@media (max-width: 600px) {
  .starter { top: auto; bottom: 104px; left: 58px; right: 58px; width: auto; max-height: calc(100dvh - 220px); overflow-y: auto; }
  .starter.folded { right: auto; max-width: calc(100vw - 116px); }
}
.scene-thumb { -webkit-user-drag: none; user-select: none; } /* une vignette-image ne part pas en glisser-déposer du navigateur (sinon on ne peut plus réordonner) */

/* ── Carnet d'aventurier (17 nov. 2026) ── */
.pg-head { display: grid; grid-template-columns: minmax(0, 2.2fr) repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 6px; }
.pg-streak { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 2px solid var(--line-2); border-radius: var(--hand-b); background: rgba(0, 0, 0, .18); }
.pg-streak.on { border-color: rgba(255, 150, 60, .65); background: radial-gradient(circle at 12% 50%, rgba(255, 120, 40, .18), rgba(0, 0, 0, .15) 60%); }
.pg-flame { font-size: 30px; line-height: 1; filter: grayscale(1) opacity(.45); }
.pg-streak.on .pg-flame { filter: none; animation: pg-flicker 2.6s ease-in-out infinite; }
@keyframes pg-flicker { 0%, 100% { transform: scale(1) rotate(-2deg); } 50% { transform: scale(1.08) rotate(2deg); } }
.pg-stat { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px 4px; border: 2px solid var(--line-2); border-radius: var(--hand-b); background: rgba(0, 0, 0, .18); }
.pg-stat b { font: 400 26px var(--display); color: var(--gold-2); line-height: 1; }
.pg-stat span { font-size: 12.5px; opacity: .75; }
.pg-help { margin: 4px 0 10px; }
.pg-choose { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px; margin-bottom: 6px; }
.pg-fbtn { gap: 6px; }
.pg-dicerow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pg-reward { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 2px solid var(--line-2); border-radius: var(--hand-b); background: rgba(0, 0, 0, .16); }
.pg-reward.locked { opacity: .6; }
.pg-reward.locked .pg-dice { filter: grayscale(.85) brightness(.7); }
.pg-dice { flex: none; width: 40px; height: 40px; display: grid; place-items: center; font: 400 15px var(--display); color: var(--di);
  clip-path: polygon(50% 0, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%); background: linear-gradient(140deg, color-mix(in srgb, var(--dc) 70%, #fff) 0%, var(--dc) 45%, var(--d2) 100%); text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.pg-dice[data-style=lava] { background: radial-gradient(circle at 30% 70%, #ff7a1a 0 8%, transparent 20%), radial-gradient(circle at 70% 30%, #ff9a3a 0 6%, transparent 18%), linear-gradient(140deg, #3a1a10, var(--dc)); }
.pg-dice[data-style=galaxy] { background: radial-gradient(circle at 30% 30%, #fff 0 2%, transparent 3%), radial-gradient(circle at 65% 60%, #fff 0 1.5%, transparent 2.5%), linear-gradient(140deg, var(--d2), var(--dc) 70%); }
.pg-dice[data-style=wood] { background: repeating-linear-gradient(100deg, rgba(0, 0, 0, .18) 0 2px, transparent 2px 7px), linear-gradient(140deg, #a8502a, var(--dc)); }
.pg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pg-ach { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 2px solid var(--line-2); border-radius: var(--hand-b); background: rgba(0, 0, 0, .14); }
.pg-ach .pg-ico { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 21px; background: rgba(0, 0, 0, .3); border: 2px solid rgba(243, 231, 204, .2); filter: grayscale(1) opacity(.55); }
.pg-ach.ok { border-color: rgba(240, 185, 58, .55); background: linear-gradient(135deg, rgba(240, 185, 58, .1), rgba(0, 0, 0, .14) 60%); }
.pg-ach.ok .pg-ico { filter: none; border-color: var(--gold); box-shadow: 0 0 10px rgba(240, 185, 58, .3); }
.pg-ach b { font-weight: 600; }
.pg-bar { position: relative; height: 12px; margin-top: 5px; border-radius: 999px; background: rgba(0, 0, 0, .35); overflow: hidden; }
.pg-bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #b8862e, var(--gold)); border-radius: 999px; }
.pg-bar span { position: relative; display: block; text-align: center; font-size: 10px; line-height: 12px; color: #fff; text-shadow: 0 1px 1px #000; }
.pg-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.pg-tag { font-size: 11.5px; padding: 0 7px; border-radius: 999px; background: rgba(243, 231, 204, .08); border: 1px solid rgba(243, 231, 204, .14); }
.pg-tag.rw { border-color: rgba(167, 139, 250, .5); color: #d9ccff; }
.pg-tag.when { border-color: rgba(240, 185, 58, .45); color: var(--gold-2); }
.pg-title { display: inline-block; margin-left: 6px; font: 400 12.5px var(--display); padding: 0 7px; border-radius: 999px; color: var(--gold-2); border: 1px solid rgba(240, 185, 58, .45); background: rgba(240, 185, 58, .08); vertical-align: 1px; }
.pg-mini-streak { margin-left: 6px; font-size: 12px; white-space: nowrap; }
.pg-entry { display: flex; gap: 6px; margin: 10px 0 4px; }
.pg-toast { display: flex; align-items: center; gap: 10px; }
.pg-toast-ico { font-size: 26px; }
.sys.sys-ach { color: var(--gold-2); }
.sys.sys-recap { text-align: left; padding: 8px 10px; border: 1px dashed rgba(240, 185, 58, .45); border-radius: var(--hand-b); background: rgba(240, 185, 58, .06); line-height: 1.5; }
.pg-recap-body p { margin: 6px 0; }
.pg-old { padding: 8px 0; border-top: 1px dashed var(--line-2); }
.pg-old b { display: block; margin-bottom: 2px; color: var(--gold-2); }
@media (max-width: 600px) {
  .pg-head { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pg-streak { grid-column: 1 / -1; }
  .pg-choose, .pg-dicerow, .pg-grid { grid-template-columns: minmax(0, 1fr); }
}
.toast .pg-toast { min-width: min(300px, 80vw); text-align: left; }
.toast .pg-toast .grow { flex: 1; min-width: 0; }
/* Carnet, lot 2 (17 nov. 2026) : admin, dés vétérans, bilan de l'année, vote du moment de la séance, histoire du personnage */
.pg-admin { margin: 6px 0; padding: 7px 10px; border: 1.5px dashed rgba(240, 185, 58, .55); border-radius: var(--hand-b); font-size: 13px; color: var(--gold-2); background: rgba(240, 185, 58, .06); }
.pg-row2 { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 10px; margin: 6px 0; }
.pg-wear { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border: 2px solid var(--line-2); border-radius: var(--hand-b); background: rgba(0, 0, 0, .16); }
.pg-wear-die { flex: none; width: 46px; height: 46px; display: grid; place-items: center; font: 400 17px var(--display); color: #fff; clip-path: polygon(50% 0, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%); background: linear-gradient(140deg, #8b5cf6, #4c1d95); }
.pg-wear-1 .pg-wear-die { background: radial-gradient(circle at 50% 50%, transparent 55%, rgba(60, 40, 20, .25)), linear-gradient(140deg, #8b5cf6, #4c1d95); }
.pg-wear-2 .pg-wear-die { background: repeating-linear-gradient(35deg, transparent 0 7px, rgba(255, 245, 225, .12) 7px 8px), radial-gradient(circle at 50% 50%, transparent 45%, rgba(60, 40, 20, .4)), linear-gradient(140deg, #7c55d6, #43198a); }
.pg-wear-3 .pg-wear-die { background: repeating-linear-gradient(35deg, transparent 0 5px, rgba(255, 245, 225, .14) 5px 6px), repeating-linear-gradient(-50deg, transparent 0 9px, rgba(20, 10, 0, .2) 9px 10px), radial-gradient(circle at 50% 50%, transparent 35%, rgba(70, 45, 20, .55)), linear-gradient(140deg, #6d4bbd, #3a167a); }
.pg-year-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 2px solid rgba(240, 185, 58, .55); background: linear-gradient(135deg, rgba(240, 185, 58, .16), rgba(109, 40, 217, .18)); }
.pg-year-btn b { font: 400 19px var(--display); color: var(--gold-2); }
.pg-wrapped-img { width: 100%; border-radius: 10px; box-shadow: 0 6px 24px rgba(0, 0, 0, .45); }
.pg-vote-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.pg-vote-c { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; border: 2px solid var(--line-2); border-radius: var(--hand-b); background: rgba(0, 0, 0, .18); color: inherit; cursor: pointer; }
.pg-vote-c img, .pg-vote-c .avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; font-size: 26px; }
.pg-vote-c.on { border-color: var(--gold); background: linear-gradient(135deg, rgba(240, 185, 58, .2), rgba(0, 0, 0, .15)); box-shadow: 0 0 12px rgba(240, 185, 58, .35); }
.pg-draft-btn { margin: 4px 0; }
.sheet-story { margin: 6px 0 4px; padding: 6px 10px; border: 1.5px solid rgba(240, 185, 58, .4); border-radius: var(--hand-b); background: linear-gradient(135deg, rgba(240, 185, 58, .07), rgba(0, 0, 0, .12)); }
.sheet-story summary { cursor: pointer; display: flex; align-items: center; gap: 8px; }
.sheet-story summary b { font: 400 16px var(--display); color: var(--gold-2); }
.story-stars { font-size: 14px; letter-spacing: 1px; }
.sheet-story ul { list-style: none; margin: 6px 0 2px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.sheet-story li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.story-ico { flex: none; width: 22px; text-align: center; }
@media (max-width: 640px) { .pg-row2 { grid-template-columns: 1fr; } }
/* Anneaux de voix (17 nov. 2026) : le cercle qui s'allume quand on parle, du vert simple à l'arcanique pailleté.
   Animations seulement pendant la parole (pastille du vocal) ou dans l'aperçu du carnet : rien ne tourne le reste du temps. */
[data-ring=vert] { --ra: #6effaa; --rb: #22c55e; }
[data-ring=bleu] { --ra: #8fd3ff; --rb: #2f7fe0; }
[data-ring=violet] { --ra: #d4bcff; --rb: #7c3aed; }
[data-ring=or] { --ra: #ffe9a8; --rb: #e0a020; }
[data-ring=arcane] { --ra: #c4b5fd; --rb: #22d3ee; }
.voice-chip.speaking .vdot, .pdot.speaking, .ring-prev .rp-av { position: relative; border-color: var(--ra, #6effaa); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ra, #6effaa) 40%, transparent), 0 0 14px color-mix(in srgb, var(--ra, #6effaa) 70%, transparent); }
.voice-chip.speaking[data-ring=violet] .vdot, .pdot.speaking[data-ring=violet], .ring-prev[data-ring=violet] .rp-av { box-shadow: 0 0 0 3px var(--rb), 0 0 18px var(--ra), 0 0 30px color-mix(in srgb, var(--rb) 60%, transparent); }
@keyframes ring-spin { to { transform: rotate(360deg); } }
.voice-chip.speaking .vdot, .pdot.speaking, .ring-prev.on .rp-av { animation: ring-pulse 1.1s ease-in-out infinite; }
@keyframes ring-pulse { 50% { transform: scale(1.07); } }
@media (prefers-reduced-motion: reduce) { .voice-chip.speaking .vdot, .ring-prev .rp-av, .ring-prev .rp-av::after, .voice-chip .vdot::after { animation: none !important; } }
/* carnet : choix de l'anneau et des dés, compact */
.pg-pick { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.ring-prev { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 62px; padding: 8px 2px 4px; border: 2px solid transparent; border-radius: 12px; background: rgba(0, 0, 0, .16); color: inherit; cursor: pointer; font-size: 11.5px; line-height: 1.1; }
.ring-prev .rp-av { width: 30px; height: 30px; border-radius: 50%; border: 2px solid; display: grid; place-items: center; font: 400 13px var(--display); background: #3a5a50; color: #fff; }
.ring-prev:not(.on) .rp-av { animation: none; }
.ring-prev:hover .rp-av { animation: ring-pulse 1.1s ease-in-out infinite; }
.ring-prev.sel { border-color: var(--gold); background: rgba(240, 185, 58, .12); }
.ring-prev.locked { opacity: .5; cursor: default; }
.ring-prev.locked .rp-av { filter: grayscale(.6); box-shadow: none; }
.ring-prev small { opacity: .75; font-size: 10.5px; }
.pg-dice-pick { display: flex; align-items: center; gap: 10px; }
.pg-dice-pick .dice-swatch { flex: none; border-radius: 12px; background: rgba(0, 0, 0, .25); }
.pg-dchip { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 70px; padding: 6px 2px; border: 2px solid transparent; border-radius: 12px; background: rgba(0, 0, 0, .16); color: inherit; cursor: pointer; font-size: 11px; line-height: 1.1; text-align: center; }
.pg-dchip .pg-dice { width: 30px; height: 30px; font-size: 12px; }
.pg-dchip.sel { border-color: var(--gold); }
.pg-dchip.locked { opacity: .55; }
.pg-dchip.locked .pg-dice { filter: grayscale(.85) brightness(.7); }
.pg-sec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin: 6px 0; }
.pg-sec > div > .tiny { margin-bottom: 4px; }
@media (max-width: 640px) { .pg-sec { grid-template-columns: minmax(0, 1fr); } }
.pg-entry { flex-wrap: wrap; }
.pg-entry .btn { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Ouverture de la table (17 nov. 2026) : fondu depuis le noir ; secours en CSS si le script ne l'enlève pas */
#table-veil { position: fixed; inset: 0; z-index: 9000; background: #000; pointer-events: none; transition: opacity .9s ease; animation: veil-out .9s ease 6s forwards; }
#table-veil.off { opacity: 0; }
@keyframes veil-out { to { opacity: 0; visibility: hidden; } }

.pdot.speaking { position: relative; border: 2px solid var(--ra, #6effaa); }
/* vignettes des dés gagnés (carnet) : plus lisibles sur le fond sombre */
.pg-dchip { background: rgba(255, 240, 210, .07); }
.pg-dchip .pg-dice { width: 34px; height: 34px; filter: brightness(1.3) saturate(1.15); }
.pg-dchip:hover { background: rgba(255, 240, 210, .13); }

/* (17 nov. 2026) éclats : compteur du carnet, prochain anneau, « +2 ✦ » discret (visible seulement par soi) */
.pg-pts b { color: var(--gold); }
.pg-next { display: flex; align-items: center; gap: 12px; margin: 10px 0 4px; padding: 8px 12px; border: 1px dashed rgba(216, 178, 106, .45); border-radius: 12px; }
.pg-next .ring-prev { pointer-events: none; padding: 0; background: none; border: 0; }
.pg-float { position: fixed; left: 18px; bottom: 74px; z-index: 60; padding: 3px 10px; border-radius: 999px; background: rgba(15, 47, 42, .92); border: 1px solid rgba(216, 178, 106, .6); color: var(--gold); font: 600 15px 'Patrick Hand', cursive; pointer-events: none; animation: pg-float 2.6s ease-out forwards; }
@keyframes pg-float { 0% { opacity: 0; transform: translateY(8px); } 15% { opacity: 1; transform: translateY(0); } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-18px); } }
@media (prefers-reduced-motion: reduce) { .pg-float { animation: none; opacity: .9; } }

/* (17 nov. 2026) joueur : la carte est encore cachée par le MJ */
.fog-notice { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 5; max-width: min(80%, 360px); padding: 10px 16px; border-radius: 12px; background: rgba(15, 47, 42, .92); border: 1px solid rgba(216, 178, 106, .55); color: var(--parch, #f3e6c8); font-size: 15px; text-align: center; pointer-events: none; }
/* (17 nov. 2026) liste « Lance ta première partie » repliée : plus discrète, ne cache plus le coin de la carte */
@media (min-width: 701px) { .starter.folded { width: auto; padding: 4px 12px; opacity: .72; transition: opacity .2s; } .starter.folded:hover, .starter.folded:focus-within { opacity: 1; } }

/* (17 nov. 2026) fiche de navire / vaisseau (Pirates, Étoiles) */
.vehicle-strip { flex-wrap: wrap; }
.vehicle-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.vehicle-act { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0, 0, 0, .12); }
.vehicle-act .btn { align-self: flex-start; }
/* (17 nov. 2026) ressources à 4 chiffres et plus (Crédits 6000, Doublons…) : plus coupées */
.res-box input.big-num.long { font-size: 20px; letter-spacing: -0.5px; }

/* ── Tour guidé de la 1re campagne (19 nov. 2026, tour.js) : voile qui ne capte pas les clics, halo doré autour de l'élément montré ── */
.tour-veil { position: fixed; inset: 0; z-index: 940; pointer-events: none; background: transparent; transition: background .3s; }
.tour-veil.on { background: rgba(4, 16, 14, .55); }
.tour-hole { position: fixed; z-index: 941; pointer-events: none; border: 2.5px dashed var(--gold); border-radius: 12px; box-shadow: 0 0 0 200vmax rgba(4, 16, 14, .5), 0 0 22px rgba(216, 178, 106, .45); transition: left .3s, top .3s, width .3s, height .3s; }
.tour-hole.center { border-color: transparent; box-shadow: 0 0 0 200vmax rgba(4, 16, 14, .6); }
.tour-card { position: fixed; z-index: 942; width: min(380px, 92vw); background: var(--panel-solid) var(--grain); border: 2.5px solid var(--line); border-radius: var(--hand-b); box-shadow: 8px 12px 0 rgba(0, 0, 0, .35); padding: 12px 16px 12px; transition: left .3s, top .3s; }
.tour-card[hidden], .tour-veil[hidden], .tour-hole[hidden] { display: none; }
.tour-head { display: flex; align-items: baseline; gap: 10px; border-bottom: 2px dashed var(--line-2); padding-bottom: 6px; margin-bottom: 8px; }
.tour-head b { font: 400 22px var(--display); color: var(--gold); letter-spacing: .02em; flex: 1; line-height: 1.15; }
.tour-count { font-size: 12px; color: var(--muted); white-space: nowrap; }
.tour-x { margin-left: 2px; }
.tour-body p { margin: 0 0 8px; line-height: 1.45; }
.tour-try { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.tour-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 2px dashed var(--line-2); padding-top: 8px; }
.tour-foot .link { background: none; border: 0; cursor: pointer; text-decoration: underline; padding: 0; }
/* pendant le tour : la liste de démarrage et le bandeau d'invitation attendent */
body.touring .starter, body.touring .invite-bar { display: none !important; }
/* (19 nov. 2026) Compendium : les onglets passent à la ligne au lieu de déborder (Tables, États, Peuples étaient cachés à droite) */
.chip-row.comp-tabs { flex-wrap: wrap; overflow: visible; }

/* (19 nov. 2026) pastilles des nouvelles matières de dés */
.dmat.porcelain { background: radial-gradient(circle at 50% 50%, transparent 0 22%, #1e40af 24% 30%, transparent 32%), #f8fafc; }
.dmat.lacquer { background: linear-gradient(135deg, color-mix(in srgb, var(--c) 40%, #fff), var(--c) 40%, color-mix(in srgb, var(--c) 60%, #000)); }
.dmat.ocean { background: linear-gradient(160deg, #a5f3fc 0 12%, #0e7490 30%, #082f49); }
.dmat.melon { background: radial-gradient(circle at 40% 45%, #111 0 6%, transparent 7%), radial-gradient(circle at 62% 60%, #111 0 6%, transparent 7%), #f43f5e; box-shadow: inset 0 0 0 2px #1f5a25; }
.dmat.opal { background: radial-gradient(circle at 30% 35%, #f472b6 0 12%, transparent 22%), radial-gradient(circle at 65% 60%, #34d399 0 12%, transparent 22%), radial-gradient(circle at 60% 25%, #60a5fa 0 10%, transparent 20%), #e0f2fe; }
.dmat.obsidian { background: linear-gradient(135deg, #3f3f46, #09090b 45%, #312e81 70%, #09090b); }
.dmat.amber { background: radial-gradient(circle at 35% 35%, #fde68a 0 18%, transparent 30%), linear-gradient(135deg, #f59e0b, #92400e); }
.dmat.jade { background: radial-gradient(circle at 40% 40%, #bbf7d0 0 15%, transparent 35%), linear-gradient(135deg, #22c55e, #14532d); }
.dmat.meteor { background: repeating-linear-gradient(60deg, #a1a1aa 0 2px, #71717a 2px 3px), repeating-linear-gradient(-30deg, transparent 0 3px, rgba(255,255,255,.25) 3px 4px); }
.dmat.frost { background: linear-gradient(170deg, color-mix(in srgb, var(--c) 80%, #fff) 0 42%, #e9e3ff 50%, #c026d3 60% 100%); }
.dmat.watercolor { background: radial-gradient(circle at 35% 40%, color-mix(in srgb, var(--c) 70%, #fff) 0 30%, transparent 45%), radial-gradient(circle at 65% 60%, #7dd3fc 0 28%, transparent 45%), #f6f1e6; }
.die.neg { box-shadow: 0 0 0 2px #b4232a; color: #b4232a; } /* Néon : dé retranché sur un 1 (20 nov. 2026) */
/* Néon : Réseau et implants (20 nov. 2026) */
.cyber-sheet .net-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.cyber-sheet .net-prog { align-items: center; padding: 3px 0; border-bottom: 1px dashed rgba(0,0,0,.12); }
.cyber-sheet .stat-box.danger { box-shadow: 0 0 0 2px #b4232a inset; }
.cyber-sheet .stat-box.danger .stat-label { color: #b4232a; font-weight: 700; }
/* Récit : horloge de blessure et Liens (20 nov. 2026) */
.harm-box { min-width: 150px; align-items: center; }
.harm-clock { width: 78px; height: 78px; display: block; margin: 2px auto; }
.harm-clock .seg { fill: rgba(255,255,255,.06); stroke: var(--pen, #2a1f14); stroke-width: 1.2; cursor: pointer; transition: fill .15s; }
.harm-clock .seg.late { fill: rgba(255,255,255,.1); }
.harm-clock .seg.on { fill: #b4232a; }
.harm-clock .seg:hover { fill: rgba(180,35,42,.45); }
.harm-btns .btn { padding: 2px 8px; }
.harm-death { margin: 6px 0; padding: 8px 10px; border: 2px solid #b4232a; border-radius: 10px; }
.stat-box.harm-box.danger { box-shadow: 0 0 0 2px #b4232a inset; }
.bonds-tab .bond-row { align-items: center; padding: 4px 0; border-bottom: 1px dashed rgba(0,0,0,.12); }
.bonds-tab .bond-val { min-width: 32px; text-align: center; font-weight: 700; font-size: 1.2em; }
.bonds-tab .bond-val.pos { color: #3f8a4a; } .bonds-tab .bond-val.neg { color: #b4232a; }
/* Abysses : cases de progression (20 nov. 2026) */
.skill-row.coc .tick-box { width: 16px; height: 16px; margin: 0 4px 0 0; accent-color: #7a5cc4; flex: none; }
.skill-row.coc .tick-box.none { display: inline-block; }

/* (20 nov. 2026) scénario offert sous « Créer une campagne » */
.pack-offer { margin-top: 16px; padding-top: 14px; border-top: 2px dashed var(--line); gap: 6px; }
.pack-offer .btn { width: 100%; }
.pack-offer p { font-size: 14px; margin: 0; }

/* (20 nov. 2026) règles D&D 2014 / 2024 à la création */
.rules-row { margin-top: 8px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rules-row[hidden] { display: none; }

/* (20 nov. 2026) D&D règles 2024 */
.rules-badge { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--gold); color: #2a1d08; align-self: center; }
.bg24-box { padding: 10px; border: 2px dashed var(--line); border-radius: 10px; }
.mastery-box { margin: 6px 0 10px; }
.actions-2024 { margin: 4px 0 10px; } .actions-2024 summary { cursor: pointer; font-weight: 700; }
.c24-box { padding: 10px; border: 2px dashed var(--line); border-radius: 10px; } .c24-block { margin-bottom: 6px; }

/* (23 nov. 2026) menu des états en 2 colonnes : les 30 états, comme dans la barre du jeton */
.ctx-menu.ctx-cols { display: grid; grid-template-columns: repeat(2, auto); column-gap: 4px; }
@media (max-width: 480px) { .ctx-menu.ctx-cols { grid-template-columns: 1fr; } }
/* (23 nov. 2026) vocal sur téléphone : le bouton Quitter sortait de l'écran ; Appuyer pour parler (touche V), effet de voix et écoute de soi restent sur PC */
@media (max-width: 700px) { #voice .vc-pc { display: none; } #voice .vc-quit { order: -1; } }
/* (23 nov. 2026) question de retour : petite carte dans le coin bas gauche, une seule fois par compte */
.ask-card { position: fixed !important; left: 14px; bottom: 14px; z-index: 880; width: min(340px, calc(100vw - 28px)); display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; background: var(--panel-solid) var(--grain); color: #f3e7cc; border: 2px solid var(--line); border-radius: var(--hand-c); box-shadow: 4px 6px 0 rgba(0, 0, 0, .35); font-size: 14px; }
body:has(#board) .ask-card { bottom: 78px; } /* au-dessus de la barre du bas de la table */
.ask-card b { color: #f6c84c; font-weight: 400; font-family: 'Patrick Hand', cursive; font-size: 16px; padding-right: 22px; }
.ask-card .ask-x { position: absolute; top: 4px; right: 6px; background: none; border: 0; color: inherit; font-size: 20px; line-height: 1; cursor: pointer; opacity: .7; }
.ask-card .ask-x:hover { opacity: 1; }
.ask-card .ask-row { display: flex; gap: 6px; }
.ask-card .ask-row .input { flex: 1; min-width: 0; }
.ask-card .ask-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.ask-card .ask-chips .chip { font-size: 13px; }
body.is-screen .ask-card { display: none; }
#topbar .fb-btn { flex: none; }

/* ── Préparation du MJ (23 nov. 2026, premium) : moments préparés, PNJ en 1 clic, plan de séance, formules ── */
.prem-tag { margin-left: 8px; padding: 1px 7px; border-radius: 999px; font: 600 10.5px var(--font); letter-spacing: .02em; color: #1b1405; background: linear-gradient(135deg, var(--gold-2), var(--gold)); vertical-align: middle; }
.moments { margin-bottom: 6px; }
.moments .chip-grid { margin: 6px 0; }
.moments-grid .moment-btn small { white-space: normal; line-height: 1.1; }
.moment-row { display: flex; align-items: flex-start; gap: 8px; padding: 6px 4px; border-bottom: 1px dashed var(--line); }
.moment-row b { font-weight: 600; }
.moment-steps { max-height: 190px; overflow: auto; padding: 4px; border: 1px solid var(--line); border-radius: var(--hand-c); }
.moment-step { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.lore-prep { margin-top: 4px; }
.npc-card { position: relative; padding: 10px 12px; border: 1.5px solid rgba(240, 185, 58, .35); border-radius: var(--hand-b); background: linear-gradient(135deg, rgba(240, 185, 58, .06), rgba(0, 0, 0, .14)); }
.npc-card p { margin: 4px 0; font-size: 13.5px; }
.npc-card-head { display: flex; align-items: center; gap: 10px; }
.npc-card-head b { font: 400 17px var(--display); color: var(--gold-2); }
.npc-ico { font-size: 26px; }
.npc-secret.blurred { filter: blur(4px); user-select: none; pointer-events: none; opacity: .75; }
.npc-lock { margin-top: 6px; text-align: center; font-size: 12.5px; color: var(--gold-2); }
.plan-title-in { font: 400 18px var(--display); }
.plan-row { display: flex; align-items: center; gap: 8px; padding: 4px 2px; border-bottom: 1px dashed var(--line); font-size: 14px; }
.plan-row.done > .grow { text-decoration: line-through; opacity: .55; }
.plan-link { color: var(--gold-2); text-decoration: none; }
.plan-link:hover { text-decoration: underline; }
.plan-pick { max-height: 50vh; overflow: auto; }
.plan-pick-row { text-align: left; padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--hand-c); background: rgba(0, 0, 0, .15); color: inherit; cursor: pointer; }
.plan-pick-row:hover { border-color: var(--gold); }
.plan-peek { position: relative; padding: 10px; border: 1.5px solid rgba(240, 185, 58, .35); border-radius: var(--hand-b); }
.plan-demo { filter: saturate(.7); opacity: .85; }
.plan-demo .plan-title { font: 400 17px var(--display); color: var(--gold-2); margin-bottom: 4px; }
.plan-demo .plan-row:nth-child(n+5) > .grow { filter: blur(3px); }
.plan-check { width: 16px; text-align: center; }
.sheet-formulas { margin: 6px 0 4px; padding: 6px 10px; border: 1.5px solid rgba(240, 185, 58, .3); border-radius: var(--hand-b); background: rgba(0, 0, 0, .12); }
.sheet-formulas summary { cursor: pointer; display: flex; align-items: center; gap: 6px; }
.sheet-formulas summary b { font: 400 16px var(--display); color: var(--gold-2); }
.formula-list { display: flex; flex-direction: column; gap: 4px; margin: 6px 0; }
.formula-row { display: flex; align-items: center; gap: 6px; }
.formula-row .f-name { flex: 0 1 30%; min-width: 0; }
.formula-row input.f-expr { flex: 1 1 auto; min-width: 0; font-family: ui-monospace, monospace; }
.formula-row code.f-expr { flex: 1; opacity: .8; }
.formula-row .f-kind { flex: none; width: auto; }
.formula-row .f-val { min-width: 40px; text-align: right; font-weight: 700; color: var(--gold-2); }
.formula-row .f-val.err { color: #e98; }
.formula-row.demo { opacity: .7; }
.formula-help p { margin: 4px 0; word-break: break-word; }
.npc-gen .row select { flex: 1 1 140px; width: auto; min-width: 0; }
.opt-hint-sel { font-size: 14px; color: var(--text); }
/* (24 nov. 2026) téléphone : outils repliés, carte dégagée (audit « MJ inconnu ») */
.tool-more { display: none; }
@media (max-width: 700px) {
  #toolbar .tool-more { display: grid; order: 99; }
  #toolbar:not(.tools-open) .tool-sep, #toolbar:not(.tools-open) .tool-btn[data-tool]:not([data-tool=select]):not([data-tool=pan]):not([data-tool=ruler]):not([data-tool=ping]):not(.active) { display: none; }
  #macros { display: none !important; }
  .starter.folded { font-size: 13px; padding: 3px 10px; opacity: .8; }
}
/* (24 nov. 2026) carte de royaume */
.world-gen { display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: start; }
.world-styles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.world-style { display: flex; align-items: center; gap: 6px; padding: 8px; border: 2px solid var(--line); border-radius: var(--hand-b, 10px); background: var(--ink-2, #0f2f2a); color: var(--text); font-family: var(--font); cursor: pointer; text-align: left; }
.world-style.active { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.world-style .ws-ico { font-size: 20px; }
.world-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.world-preview { width: 100%; height: auto; border-radius: 8px; border: 2px solid var(--line); background: #e8d8b5; }
.world-info { flex: 1; }
@media (max-width: 800px) { .world-gen { grid-template-columns: 1fr; } }
.world-bar { position: absolute; top: 10px; left: 0; right: 0; margin: 0 auto; width: max-content; z-index: 15; display: flex; flex-wrap: wrap; justify-content: center; max-width: calc(100% - 24px); align-items: center; gap: 8px 10px; padding: 5px 10px; background: var(--panel); border: 2px solid var(--line); border-radius: var(--hand-b, 10px); box-shadow: var(--shadow); font-family: var(--font); }
.world-place .row.wrap { gap: 6px; }
body.is-screen .world-bar { display: none; }
.world-enc { justify-content: space-between; gap: 8px; }
.world-bar .btn.active { border-color: var(--gold); }
.world-bar > .tiny { white-space: nowrap; position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%); padding: 2px 10px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); pointer-events: none; }
.world-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; }
.world-opt .seg button { padding: 2px 6px; font-size: 12px; }
.world-opt > span { display: block; margin-bottom: 2px; }
.world-tables { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.world-tables textarea { font-size: 12px; min-height: 44px; }
.world-trow { gap: 8px; align-items: center; }
.world-trow .input { width: auto; }
@media (max-width: 800px) { .world-tables { grid-template-columns: 1fr 1fr; } }
/* Outils du MJ (25 nov. 2026) : PNJ en cartes, butin et rumeurs en lignes pleine largeur */
.rs-npcs { margin-top: 4px; }
.rs-npcs .rs-idea:hover, .rs-npcs .rs-idea:focus { border-color: var(--gold); outline: none; }
.rs-npcs .rs-idea.copied { border-color: #7fd890; }
.rs-loot, .rs-rumors { grid-template-columns: 1fr; }
.rs-npc-kinds, .rs-loot-lvl { display: flex; flex-wrap: wrap; margin-bottom: 12px; }
/* Côté joueur (25 nov. 2026) : calculateur de caractéristiques, lexique */
.rs-caracs { display: grid; gap: 8px; margin: 10px 0; }
.rs-carac { display: grid; grid-template-columns: 1fr auto 56px; align-items: center; gap: 12px; padding: 6px 12px; border: 1.5px solid var(--line-2); border-radius: var(--hand-a); background: rgba(243, 231, 204, .04); }
.rs-carac-ctl { display: inline-flex; align-items: center; gap: 10px; }
.rs-carac-ctl b { min-width: 2ch; text-align: center; font-size: 20px; }
.rs-carac-ctl .btn { min-width: 38px; padding: 4px 10px; }
.rs-carac-ctl select { min-width: 90px; }
.rs-carac-mod { font-style: normal; font-size: 22px; color: var(--gold); text-align: right; }
.rs-carac-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.rs-carac-help { margin: 0 0 6px; color: var(--text-2); }
.rs-lexique { display: grid; grid-template-columns: minmax(160px, 240px) 1fr; gap: 10px 18px; margin: 0; }
.rs-lexique dt { font-weight: 700; color: var(--gold); }
.rs-lexique dd { margin: 0; }
@media (max-width: 640px) { .rs-lexique { grid-template-columns: 1fr; } .rs-lexique dd { margin-bottom: 8px; } }
.rs-chars { grid-template-columns: 1fr !important; max-width: 640px; }

/* (25 nov. 2026) bruitages : gratuit / premium visibles d'un coup d'œil */
.fx-btn.sfx-locked { border-style: dashed; color: var(--muted, #9a94a6); }
.fx-btn.sfx-locked > :not(.sfx-prem-badge), .fx-btn.sfx-locked img { opacity: .5; filter: grayscale(.7); }
.fx-btn.sfx-locked:hover > :not(.sfx-prem-badge), .fx-btn.sfx-locked:hover img { opacity: .95; filter: none; }
.sfx-prem-badge { position: absolute; top: -7px; right: -4px; font-size: 9px; line-height: 1; padding: 2px 5px; border-radius: 8px; background: #e8be6e; color: #1a1820; font-weight: 800; letter-spacing: .02em; filter: none; }
.fx-btn.sfx-locked .sfx-prem-badge { opacity: 1; }
.sfx-prem-tag { background: #e8be6e; color: #1a1820; font-weight: 800; font-size: 10px; padding: 1px 6px; border-radius: 8px; }
.sfx-free-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #5bbf74; vertical-align: middle; }
.sfx-legend { margin: 4px 0 8px; }

/* (26 nov. 2026) gratuit ou premium visible avant le clic : pastille dorée + liste (premium-legend.js) */
.prem-pill { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: .72em; font-weight: 700; line-height: 1.5; letter-spacing: .02em; vertical-align: middle;
  color: #1c1405; background: linear-gradient(180deg, #f6d27a, #d8a43c); box-shadow: 0 0 0 1px rgba(0,0,0,.25); white-space: nowrap; }
.fp-top { margin-right: 8px; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(120,200,160,.55); background: rgba(15,70,55,.55); color: #d9f2e6; font-size: 12px; cursor: pointer; white-space: nowrap; }
.fp-top:hover { background: rgba(20,95,72,.75); }
.fp-top.hidden { display: none; }
@media (max-width: 900px) { .fp-top:not(.adv-btn) { font-size: 0; padding: 4px 8px; } .fp-top:not(.adv-btn)::before { content: '✅ Gratuit ?'; font-size: 12px; } } /* (1er déc. 2026) :not(.adv-btn) : le bouton de l'Avent affichait aussi « Gratuit ? » */
/* (1er déc. 2026, Cléo : « tout doit être adapté téléphone, tablette ») barre du haut de la table sur téléphone : Avent en icône seule, tout tient (Vocal compris) */
@media (max-width: 900px) { #topbar .adv-btn.fp-top { padding: 4px 7px; margin-right: 4px; } #topbar .adv-btn .adv-lbl { display: none; } }
/* tablette : heure du jour repliée (toucher pour déplier) et nom « Incantum » masqué, pour que Vocal tienne toujours */
@media (max-width: 1100px) {
  #topbar .brand span { display: none; }
  .quick-time { margin-left: 2px; padding: 2px; position: relative; }
  .quick-time:not(.open) .qt-btn:not(.active) { display: none; }
  .quick-time:not(.open):not(:has(.qt-btn.active)) .qt-btn:first-child { display: grid; }
  .quick-time.open { position: absolute; top: 4px; left: 44px; z-index: 60; background: var(--ink-2, #0f2f2a); box-shadow: 0 6px 18px rgba(0,0,0,.45); }
  .quick-time.open .qt-btn { display: grid !important; }
}
/* téléphone : Vocal en icône, et on retire de la barre ce qui existe ailleurs (« Gratuit » : pastilles Premium sur chaque outil ;
   joueurs connectés : onglet Joueurs ; « ton avis » : réglages) */
@media (max-width: 560px) {
  #topbar .fp-top:not(.adv-btn), #topbar .online-bar, #topbar .fb-btn { display: none !important; }
  #voice .vc-lbl { display: none; }
}
/* pages publiques et fenêtres sur téléphone : un bouton au long texte passe à la ligne au lieu de sortir de l'écran */
@media (max-width: 600px) { body.landing .btn, .modal .btn { white-space: normal; text-align: center; max-width: 100%; height: auto; } }
.fp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 700px) { .fp-grid { grid-template-columns: 1fr; } }
.fp-col { border-radius: 12px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.12); }
.fp-col h3 { margin: 0 0 8px; font-size: 1.05em; }
.fp-col ul { margin: 0; padding-left: 18px; display: grid; gap: 5px; }
.fp-free { background: rgba(15,70,55,.35); border-color: rgba(120,200,160,.4); }
.fp-prem { background: rgba(90,66,20,.3); border-color: rgba(216,164,60,.5); }
.fp-prem h3 { color: #f6c84c; }

/* 26 nov. 2026 (Cléo : « texte blanc sur fond jaune, illisible ») : le lien dans la pastille « Premium » des cartes de
   fonctionnalités prend la couleur sombre de la pastille (contraste 10:1) au lieu du blanc des liens. */
.feat-grid .excl a { color: inherit; text-decoration: none; }
.feat-grid .excl a:hover, .feat-grid .excl a:focus-visible { text-decoration: underline; text-underline-offset: 2px; }

/* 26 nov. 2026, audit MJ (contrastes et finitions) */
/* Barre d'outils du Codex : fond opaque (avant, le texte défilait visible sous les boutons). */
.rich-toolbar { background: #10261f; box-shadow: 0 6px 10px -6px rgba(0,0,0,.6); }
/* Fonctions premium d'une table gratuite : le bouton est atténué mais sa pastille « Premium » reste dorée et lisible
   (avant : opacité + gris sur tout le bouton, la pastille devenait grise sur gris). */
.premium-off { opacity: 1; filter: none; color: rgba(232, 222, 200, .62); border-style: dashed; }
.premium-off:hover { opacity: 1; color: rgba(240, 232, 214, .9); }
.premium-off img { opacity: .55; filter: grayscale(.7); }
/* Pastille dans une tuile d'effet ou de bruitage : en coin, comme les bruitages premium. */
.fx-btn { position: relative; }
.fx-btn > .prem-pill { position: absolute; top: -7px; right: -4px; margin: 0; font-size: 9px; line-height: 1; padding: 2px 5px; }
/* Cases à cocher avec un long texte : la case reste en face de la 1re ligne. */
.check > input[type="checkbox"], .check > input[type="radio"] { flex: none; align-self: flex-start; margin-top: .22em; }
/* Fenêtres « PNJ en 1 clic » et « Plan de séance » : marge intérieure (avant, le texte touchait le bord et la 1re lettre était coupée). */
.fw-body > .npc-gen, .fw-body > .plan, .fw-body > .wl { padding: 14px 16px 18px; }
/* Toile des relations : l'aide sous la carte prend sa place au lieu de passer sous la légende. */
.graph-wrap .graph-hint { position: static; padding: 6px 12px 8px; }
.graph-wrap .graph-legend { position: static; max-width: none; margin: 6px 12px 0; padding: 0; background: none; }
/* (26 nov. 2026) carnet : bloc « Côté MJ » (préparation, cartes, fiches, chopes reçues) et chopes à côté du pseudo du MJ */
.pg-gm { margin: 10px 0; padding: 10px 12px; border: 2px solid rgba(216, 178, 106, .45); border-radius: var(--hand-b, 14px); background: rgba(90, 66, 20, .18); }
.pg-gm-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.pg-gm-head b { color: var(--gold-2, #f6c84c); }
.pg-gm-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 600px) { .pg-gm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pg-gm p { margin: 8px 0 0; }
.pg-chopes { color: #f3d27a; }
/* (26 nov. 2026) anneau de saison « Aurore boréale » (calendrier de l'Avent 2026) */
[data-ring=aurore] { --ra: #7dffcf; --rb: #a35cff; }

/* (1er déc. 2026) anneaux de la voie de la Guilde de la Veillée de Gaspard */
/* (1er déc. 2026, Cléo : « les anneaux se ressemblent trop, tu les différencies pas ») : chaque anneau a sa forme, pas seulement sa couleur.
   Doré = bijou d'or martelé et perlé ; Arcanique = cercle de runes qui tourne, triangles entrelacés en sens inverse ;
   Aurore boréale = voile de couleurs qui ondule ; Étoile du berger = anneau de nuit, la grande étoile posée en haut ;
   Houx = vraie couronne de houx, baies et nœud d'or. Le pion sur la carte suit les mêmes dessins (board.js, drawRing). */
[data-ring=berger] { --ra: #fff6d6; --rb: #2b4a9e; }
[data-ring=houx] { --ra: #ff5a6a; --rb: #1f8a4c; }
.voice-chip.speaking[data-ring=or] .vdot, .pdot.speaking[data-ring=or], .ring-prev[data-ring=or] .rp-av { border-color: transparent; box-shadow: 0 0 0 1px #8a5a10, 0 0 12px rgba(224, 160, 32, .45); }
.voice-chip.speaking[data-ring=or] .vdot::before, .pdot.speaking[data-ring=or]::before, .ring-prev[data-ring=or] .rp-av::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 0deg, #fff3c4, #e0a020 12%, #8a5a10 25%, #f6d27a 38%, #c88a18 52%, #fff3c4 62%, #b07818 78%, #ffe9a8 90%, #fff3c4); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4.5px), #000 calc(100% - 4.0px)); mask: radial-gradient(farthest-side, transparent calc(100% - 4.5px), #000 calc(100% - 4.0px)); animation: ring-spin 6s linear infinite; }
.voice-chip.speaking[data-ring=or] .vdot::after, .pdot.speaking[data-ring=or]::after, .ring-prev[data-ring=or] .rp-av::after { content: ''; position: absolute; inset: -11px; border-radius: 50%; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3CradialGradient id='p' cx='.35' cy='.35' r='.7'%3E%3Cstop offset='0' stop-color='%23fffbe8'/%3E%3Cstop offset='.5' stop-color='%23f0c050'/%3E%3Cstop offset='1' stop-color='%238a5a10'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='97' cy='50' r='2.6' fill='url(%23p)'/%3E%3Ccircle cx='95.4' cy='62.16' r='2.6' fill='url(%23p)'/%3E%3Ccircle cx='90.7' cy='73.5' r='2.6' fill='url(%23p)'/%3E%3Ccircle cx='83.23' cy='83.23' r='2.6' fill='url(%23p)'/%3E%3Ccircle cx='73.5' cy='90.7' r='2.6' fill='url(%23p)'/%3E%3Ccircle cx='62.16' cy='95.4' r='2.6' fill='url(%23p)'/%3E%3Ccircle cx='50' cy='97' r='2.6' fill='url(%23p)'/%3E%3Ccircle cx='37.84' cy='95.4' r='2.6' fill='url(%23p)'/%3E%3Ccircle cx='26.5' cy='90.7' r='2.6' fill='url(%23p)'/%3E%3Ccircle cx='16.77' cy='83.23' r='2.6' fill='url(%23p)'/%3E%3Ccircle cx='9.3' cy='73.5' r='2.6' fill='url(%23p)'/%3E%3Ccircle cx='4.6' cy='62.16' r='2.6' fill='url(%23p)'/%3E%3Ccircle cx='3' cy='50' r='2.6' fill='url(%23p)'/%3E%3Ccircle cx='4.6' cy='37.84' r='2.6' fill='url(%23p)'/%3E%3Ccircle cx='9.3' cy='26.5' r='2.6' fill='url(%23p)'/%3E%3Ccircle cx='16.77' cy='16.77' r='2.6' fill='url(%23p)'/%3E%3Ccircle cx='26.5' cy='9.3' r='2.6' fill='url(%23p)'/%3E%3Ccircle cx='37.84' cy='4.6' r='2.6' fill='url(%23p)'/%3E%3Ccircle cx='50' cy='3' r='2.6' fill='url(%23p)'/%3E%3Ccircle cx='62.16' cy='4.6' r='2.6' fill='url(%23p)'/%3E%3Ccircle cx='73.5' cy='9.3' r='2.6' fill='url(%23p)'/%3E%3Ccircle cx='83.23' cy='16.77' r='2.6' fill='url(%23p)'/%3E%3Ccircle cx='90.7' cy='26.5' r='2.6' fill='url(%23p)'/%3E%3Ccircle cx='95.4' cy='37.84' r='2.6' fill='url(%23p)'/%3E%3C/svg%3E") center / 100% no-repeat; animation: none; filter: none; }
.voice-chip.speaking[data-ring=berger] .vdot, .pdot.speaking[data-ring=berger], .ring-prev[data-ring=berger] .rp-av { border-color: #fff6d6; background-clip: border-box; box-shadow: 0 0 0 3px #16275e, 0 0 0 4.5px rgba(255, 246, 214, .85), 0 0 16px rgba(120, 160, 255, .55); }
.voice-chip.speaking[data-ring=berger] .vdot::before, .pdot.speaking[data-ring=berger]::before, .ring-prev[data-ring=berger] .rp-av::before { content: ''; position: absolute; left: 50%; top: -19px; width: 26px; height: 26px; margin-left: -13px; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cdefs%3E%3CradialGradient id='g' cx='.5' cy='.5' r='.5'%3E%3Cstop offset='0' stop-color='%23fff'/%3E%3Cstop offset='.4' stop-color='%23fff6d6' stop-opacity='.7'/%3E%3Cstop offset='1' stop-color='%23f0b93a' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='20' cy='20' r='14' fill='url(%23g)'/%3E%3Cpath d='M20 2 L22.4 17.6 L31 20 L22.4 22.4 L20 33.5 L17.6 22.4 L9 20 L17.6 17.6Z' fill='%23fffbe8' stroke='%23f0b93a' stroke-width='.8'/%3E%3Cpath d='M20 11 L21.2 18.8 L25.5 20 L21.2 21.2 L20 26.75 L18.8 21.2 L14.5 20 L18.8 18.8Z' fill='%23fff'/%3E%3C/svg%3E") center / contain no-repeat; filter: drop-shadow(0 0 4px #fff6d6); animation: ring-twinkle 1.6s ease-in-out infinite; }
.voice-chip.speaking[data-ring=berger] .vdot::after, .pdot.speaking[data-ring=berger]::after, .ring-prev[data-ring=berger] .rp-av::after { content: ''; position: absolute; inset: -12px; border-radius: 50%; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M16 25 L17.1 28.9 L20 30 L17.1 31.1 L16 33.75 L14.9 31.1 L12 30 L14.9 28.9Z' fill='%23fff6d6'/%3E%3Cpath d='M86 36 L86.88 39.12 L89.2 40 L86.88 40.88 L86 43 L85.12 40.88 L82.8 40 L85.12 39.12Z' fill='%23fff6d6'/%3E%3Cpath d='M24 80.5 L24.77 83.23 L26.8 84 L24.77 84.77 L24 86.62 L23.23 84.77 L21.2 84 L23.23 83.23Z' fill='%23fff6d6'/%3E%3Cpath d='M80 75.5 L80.99 79.01 L83.6 80 L80.99 80.99 L80 83.38 L79.01 80.99 L76.4 80 L79.01 79.01Z' fill='%23fff6d6'/%3E%3Cpath d='M50 95 L50.66 97.34 L52.4 98 L50.66 98.66 L50 100.25 L49.34 98.66 L47.6 98 L49.34 97.34Z' fill='%23fff6d6'/%3E%3C/svg%3E") center / 100% no-repeat; filter: none; animation: ring-spin 14s linear infinite; }
.voice-chip.speaking[data-ring=arcane] .vdot, .pdot.speaking[data-ring=arcane], .ring-prev[data-ring=arcane] .rp-av { border-color: transparent; background-clip: padding-box; box-shadow: 0 0 0 2px rgba(196, 181, 253, .9), 0 0 16px rgba(34, 211, 238, .6), 0 0 26px rgba(124, 58, 237, .45); }
.voice-chip.speaking[data-ring=arcane] .vdot::before, .pdot.speaking[data-ring=arcane]::before, .ring-prev[data-ring=arcane] .rp-av::before { content: ''; position: absolute; inset: -12px; border-radius: 50%; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='50' cy='50' r='47' stroke='%23c4b5fd' stroke-width='1.6'/%3E%3Ccircle cx='50' cy='50' r='38' stroke='%2322d3ee' stroke-width='1.1'/%3E%3Cpath d='M95.7 50 L89.3 50 L93.46 51.92' stroke='%23e9e2ff' stroke-width='1.3'/%3E%3Cpath d='M90.38 71.46 L83.23 71.04' stroke='%23e9e2ff' stroke-width='1.3'/%3E%3Cpath d='M72.85 89.58 L69.65 84.03 L72.91 85.85 L69.59 87.77' stroke='%23e9e2ff' stroke-width='1.3'/%3E%3Cpath d='M51.6 95.7 L50 92.5 L48.4 95.7' stroke='%23e9e2ff' stroke-width='1.3'/%3E%3Cpath d='M27.15 89.58 L27.09 85.85 L30.35 84.03 L30.41 87.77 L27.15 89.58' stroke='%23e9e2ff' stroke-width='1.3'/%3E%3Cpath d='M10.42 72.85 L15.97 69.65 L11.4 70.07' stroke='%23e9e2ff' stroke-width='1.3'/%3E%3Cpath d='M4.3 51.6 L10.7 48.4' stroke='%23e9e2ff' stroke-width='1.3'/%3E%3Cpath d='M10.42 27.15 L15.97 30.35 L12.23 30.41 L14.15 27.09' stroke='%23e9e2ff' stroke-width='1.3'/%3E%3Cpath d='M25.76 11.22 L28.75 13.19 L28.54 9.62' stroke='%23e9e2ff' stroke-width='1.3'/%3E%3Cpath d='M50 4.3 L51.92 7.5 L50 10.7 L48.08 7.5 L50 4.3' stroke='%23e9e2ff' stroke-width='1.3'/%3E%3Cpath d='M72.85 10.42 L69.65 15.97 L73.39 13.32' stroke='%23e9e2ff' stroke-width='1.3'/%3E%3Cpath d='M88.78 25.76 L84.83 31.74' stroke='%23e9e2ff' stroke-width='1.3'/%3E%3C/svg%3E") center / 100% no-repeat; filter: drop-shadow(0 0 3px #a78bfa); animation: ring-spin 9s linear infinite; }
.voice-chip.speaking[data-ring=arcane] .vdot::after, .pdot.speaking[data-ring=arcane]::after, .ring-prev[data-ring=arcane] .rp-av::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50.00 -0.50 L52.20 4.00 L50.00 6.50 L47.80 4.00Z' fill='%23e0f7ff'/%3E%3Cpath d='M93.73 24.75 L90.94 28.91 L87.67 28.25 L88.74 25.09Z' fill='%23e0f7ff'/%3E%3Cpath d='M93.73 75.25 L88.74 74.91 L87.67 71.75 L90.94 71.09Z' fill='%23e0f7ff'/%3E%3Cpath d='M50.00 100.50 L47.80 96.00 L50.00 93.50 L52.20 96.00Z' fill='%23e0f7ff'/%3E%3Cpath d='M6.27 75.25 L9.06 71.09 L12.33 71.75 L11.26 74.91Z' fill='%23e0f7ff'/%3E%3Cpath d='M6.27 24.75 L11.26 25.09 L12.33 28.25 L9.06 28.91Z' fill='%23e0f7ff'/%3E%3C/svg%3E") center / 100% no-repeat; filter: drop-shadow(0 0 2px #22d3ee); opacity: .9; animation: ring-spin 6s linear infinite reverse; }
.voice-chip.speaking[data-ring=aurore] .vdot, .pdot.speaking[data-ring=aurore], .ring-prev[data-ring=aurore] .rp-av { border-color: transparent; background-clip: padding-box; box-shadow: 0 0 18px rgba(125, 255, 207, .35), 0 0 30px rgba(163, 92, 255, .3); }
.voice-chip.speaking[data-ring=aurore] .vdot::before, .pdot.speaking[data-ring=aurore]::before, .ring-prev[data-ring=aurore] .rp-av::before { content: ''; position: absolute; inset: -8px; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 0deg, #7dffcf, #34d3c0, #a35cff, #ff7ad9, #7dffcf, #3ee08a, #a35cff, #7dffcf); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 6px), #000 calc(100% - 2px), transparent 100%); mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 6px), #000 calc(100% - 2px), transparent 100%); filter: blur(1.2px); animation: ring-spin 5s linear infinite, ring-aurora 3.4s ease-in-out infinite; }
.voice-chip.speaking[data-ring=aurore] .vdot::after, .pdot.speaking[data-ring=aurore]::after, .ring-prev[data-ring=aurore] .rp-av::after { content: ''; position: absolute; inset: -14px; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 90deg, transparent 0 8%, rgba(125, 255, 207, .75) 14%, transparent 24% 40%, rgba(255, 122, 217, .6) 48%, transparent 58% 70%, rgba(163, 92, 255, .75) 80%, transparent 90%); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 6px), transparent 100%); mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 6px), transparent 100%); filter: blur(2.5px); animation: ring-spin 7s linear infinite reverse; }
.voice-chip.speaking[data-ring=houx] .vdot, .pdot.speaking[data-ring=houx], .ring-prev[data-ring=houx] .rp-av { border-color: #1f6e3a; box-shadow: 0 0 0 2px #0f3d20, 0 0 14px rgba(255, 90, 106, .35); }
.voice-chip.speaking[data-ring=houx] .vdot::before, .pdot.speaking[data-ring=houx]::before, .ring-prev[data-ring=houx] .rp-av::before { content: ''; position: absolute; inset: -14px; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3CradialGradient id='b' cx='.35' cy='.35' r='.7'%3E%3Cstop offset='0' stop-color='%23ffb3b8'/%3E%3Cstop offset='.45' stop-color='%23e0283a'/%3E%3Cstop offset='1' stop-color='%237a0712'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cpath d='M42.54 12.08 L43.65 8.19 L46.06 6.7 L47.24 2.95 L51.03 3.98 L53.59 2.76 L57.46 3.92 L57.46 3.92 L56.35 7.81 L53.94 9.3 L52.76 13.05 L48.97 12.02 L46.41 13.24 L42.54 12.08Z' fill='%231f6e3a' stroke='%230f3d20' stroke-width='.8'/%3E%3Cpath d='M63.27 5.25 L67.26 5.88 L69.04 8.09 L72.9 8.81 L72.34 12.7 L73.86 15.09 L73.18 19.07 L73.18 19.07 L69.19 18.44 L67.41 16.23 L63.55 15.51 L64.11 11.62 L62.58 9.23 L63.27 5.25Z' fill='%232f8a4a' stroke='%230f3d20' stroke-width='.8'/%3E%3Cpath d='M75 20.52 L78.73 18.97 L81.4 19.92 L85.06 18.51 L86.62 22.12 L89.17 23.36 L90.67 27.1 L90.67 27.1 L86.95 28.66 L84.28 27.71 L80.61 29.11 L79.05 25.51 L76.5 24.27 L75 20.52Z' fill='%231f6e3a' stroke='%230f3d20' stroke-width='.8'/%3E%3Cpath d='M93.26 32.47 L95.26 35.98 L94.63 38.75 L96.48 42.22 L93.09 44.21 L92.17 46.89 L88.63 48.83 L88.63 48.83 L86.64 45.32 L87.26 42.56 L85.41 39.09 L88.8 37.1 L89.72 34.42 L93.26 32.47Z' fill='%232f8a4a' stroke='%230f3d20' stroke-width='.8'/%3E%3Cpath d='M88.63 51.17 L92.17 53.11 L93.09 55.79 L96.48 57.78 L94.63 61.25 L95.26 64.02 L93.26 67.53 L93.26 67.53 L89.72 65.58 L88.8 62.9 L85.41 60.91 L87.26 57.44 L86.64 54.68 L88.63 51.17Z' fill='%231f6e3a' stroke='%230f3d20' stroke-width='.8'/%3E%3Cpath d='M90.67 72.9 L89.17 76.64 L86.62 77.88 L85.06 81.49 L81.4 80.08 L78.73 81.03 L75 79.48 L75 79.48 L76.5 75.73 L79.05 74.49 L80.61 70.89 L84.28 72.29 L86.95 71.34 L90.67 72.9Z' fill='%232f8a4a' stroke='%230f3d20' stroke-width='.8'/%3E%3Cpath d='M73.18 80.93 L73.86 84.91 L72.34 87.3 L72.9 91.19 L69.04 91.91 L67.26 94.12 L63.27 94.75 L63.27 94.75 L62.58 90.77 L64.11 88.38 L63.55 84.49 L67.41 83.77 L69.19 81.56 L73.18 80.93Z' fill='%231f6e3a' stroke='%230f3d20' stroke-width='.8'/%3E%3Cpath d='M57.46 96.08 L53.59 97.24 L51.03 96.02 L47.24 97.05 L46.06 93.3 L43.65 91.81 L42.54 87.92 L42.54 87.92 L46.41 86.76 L48.97 87.98 L52.76 86.95 L53.94 90.7 L56.35 92.19 L57.46 96.08Z' fill='%232f8a4a' stroke='%230f3d20' stroke-width='.8'/%3E%3Cpath d='M40.27 87.41 L37.58 90.42 L34.76 90.72 L32.07 93.58 L29.1 91.01 L26.26 91 L23.29 88.28 L23.29 88.28 L25.97 85.26 L28.79 84.96 L31.48 82.1 L34.45 84.67 L37.29 84.68 L40.27 87.41Z' fill='%231f6e3a' stroke='%230f3d20' stroke-width='.8'/%3E%3Cpath d='M18.63 84.56 L15.31 82.26 L14.67 79.5 L11.5 77.18 L13.69 73.92 L13.35 71.1 L15.7 67.81 L15.7 67.81 L19.02 70.11 L19.66 72.87 L22.83 75.2 L20.64 78.46 L20.97 81.27 L18.63 84.56Z' fill='%232f8a4a' stroke='%230f3d20' stroke-width='.8'/%3E%3Cpath d='M14.69 65.71 L10.66 65.49 L8.66 63.48 L4.75 63.16 L4.91 59.23 L3.14 57.01 L3.42 52.98 L3.42 52.98 L7.45 53.2 L9.45 55.22 L13.36 55.54 L13.2 59.46 L14.96 61.68 L14.69 65.71Z' fill='%231f6e3a' stroke='%230f3d20' stroke-width='.8'/%3E%3Cpath d='M3.42 47.02 L3.14 42.99 L4.91 40.77 L4.75 36.84 L8.66 36.52 L10.66 34.51 L14.69 34.29 L14.69 34.29 L14.96 38.32 L13.2 40.54 L13.36 44.46 L9.45 44.78 L7.45 46.8 L3.42 47.02Z' fill='%232f8a4a' stroke='%230f3d20' stroke-width='.8'/%3E%3Cpath d='M15.7 32.19 L13.35 28.9 L13.69 26.08 L11.5 22.82 L14.67 20.5 L15.31 17.74 L18.63 15.44 L18.63 15.44 L20.97 18.73 L20.64 21.54 L22.83 24.8 L19.66 27.13 L19.02 29.89 L15.7 32.19Z' fill='%231f6e3a' stroke='%230f3d20' stroke-width='.8'/%3E%3Cpath d='M23.29 11.72 L26.26 9 L29.1 8.99 L32.07 6.42 L34.76 9.28 L37.58 9.58 L40.27 12.59 L40.27 12.59 L37.29 15.32 L34.45 15.33 L31.48 17.9 L28.79 15.04 L25.97 14.74 L23.29 11.72Z' fill='%232f8a4a' stroke='%230f3d20' stroke-width='.8'/%3E%3Cpath d='M42.54 12.08 L43.65 8.19 L46.06 6.7 L47.24 2.95 L51.03 3.98 L53.59 2.76 L57.46 3.92 L57.46 3.92 L56.35 7.81 L53.94 9.3 L52.76 13.05 L48.97 12.02 L46.41 13.24 L42.54 12.08Z' fill='none' stroke='%237fd39a' stroke-width='.5' opacity='.6'/%3E%3Cpath d='M75 20.52 L78.73 18.97 L81.4 19.92 L85.06 18.51 L86.62 22.12 L89.17 23.36 L90.67 27.1 L90.67 27.1 L86.95 28.66 L84.28 27.71 L80.61 29.11 L79.05 25.51 L76.5 24.27 L75 20.52Z' fill='none' stroke='%237fd39a' stroke-width='.5' opacity='.6'/%3E%3Cpath d='M88.63 51.17 L92.17 53.11 L93.09 55.79 L96.48 57.78 L94.63 61.25 L95.26 64.02 L93.26 67.53 L93.26 67.53 L89.72 65.58 L88.8 62.9 L85.41 60.91 L87.26 57.44 L86.64 54.68 L88.63 51.17Z' fill='none' stroke='%237fd39a' stroke-width='.5' opacity='.6'/%3E%3Cpath d='M73.18 80.93 L73.86 84.91 L72.34 87.3 L72.9 91.19 L69.04 91.91 L67.26 94.12 L63.27 94.75 L63.27 94.75 L62.58 90.77 L64.11 88.38 L63.55 84.49 L67.41 83.77 L69.19 81.56 L73.18 80.93Z' fill='none' stroke='%237fd39a' stroke-width='.5' opacity='.6'/%3E%3Cpath d='M40.27 87.41 L37.58 90.42 L34.76 90.72 L32.07 93.58 L29.1 91.01 L26.26 91 L23.29 88.28 L23.29 88.28 L25.97 85.26 L28.79 84.96 L31.48 82.1 L34.45 84.67 L37.29 84.68 L40.27 87.41Z' fill='none' stroke='%237fd39a' stroke-width='.5' opacity='.6'/%3E%3Cpath d='M14.69 65.71 L10.66 65.49 L8.66 63.48 L4.75 63.16 L4.91 59.23 L3.14 57.01 L3.42 52.98 L3.42 52.98 L7.45 53.2 L9.45 55.22 L13.36 55.54 L13.2 59.46 L14.96 61.68 L14.69 65.71Z' fill='none' stroke='%237fd39a' stroke-width='.5' opacity='.6'/%3E%3Cpath d='M15.7 32.19 L13.35 28.9 L13.69 26.08 L11.5 22.82 L14.67 20.5 L15.31 17.74 L18.63 15.44 L18.63 15.44 L20.97 18.73 L20.64 21.54 L22.83 24.8 L19.66 27.13 L19.02 29.89 L15.7 32.19Z' fill='none' stroke='%237fd39a' stroke-width='.5' opacity='.6'/%3E%3Ccircle cx='50' cy='9' r='2.6' fill='url(%23b)' stroke='%234a0309' stroke-width='.4'/%3E%3Ccircle cx='50.36' cy='6.34' r='2.6' fill='url(%23b)' stroke='%234a0309' stroke-width='.4'/%3E%3Ccircle cx='50.36' cy='12.74' r='2.6' fill='url(%23b)' stroke='%234a0309' stroke-width='.4'/%3E%3Ccircle cx='82.06' cy='24.44' r='2.6' fill='url(%23b)' stroke='%234a0309' stroke-width='.4'/%3E%3Ccircle cx='84.78' cy='22.98' r='2.6' fill='url(%23b)' stroke='%234a0309' stroke-width='.4'/%3E%3Ccircle cx='79.78' cy='26.97' r='2.6' fill='url(%23b)' stroke='%234a0309' stroke-width='.4'/%3E%3Ccircle cx='89.97' cy='59.12' r='2.6' fill='url(%23b)' stroke='%234a0309' stroke-width='.4'/%3E%3Ccircle cx='93.01' cy='60.38' r='2.6' fill='url(%23b)' stroke='%234a0309' stroke-width='.4'/%3E%3Ccircle cx='86.77' cy='58.95' r='2.6' fill='url(%23b)' stroke='%234a0309' stroke-width='.4'/%3E%3Ccircle cx='67.79' cy='86.94' r='2.6' fill='url(%23b)' stroke='%234a0309' stroke-width='.4'/%3E%3Ccircle cx='68.85' cy='90.36' r='2.6' fill='url(%23b)' stroke='%234a0309' stroke-width='.4'/%3E%3Ccircle cx='66.08' cy='84.6' r='2.6' fill='url(%23b)' stroke='%234a0309' stroke-width='.4'/%3E%3Ccircle cx='32.21' cy='86.94' r='2.6' fill='url(%23b)' stroke='%234a0309' stroke-width='.4'/%3E%3Ccircle cx='30.5' cy='90.36' r='2.6' fill='url(%23b)' stroke='%234a0309' stroke-width='.4'/%3E%3Ccircle cx='33.27' cy='84.6' r='2.6' fill='url(%23b)' stroke='%234a0309' stroke-width='.4'/%3E%3Ccircle cx='10.03' cy='59.12' r='2.6' fill='url(%23b)' stroke='%234a0309' stroke-width='.4'/%3E%3Ccircle cx='6.83' cy='60.38' r='2.6' fill='url(%23b)' stroke='%234a0309' stroke-width='.4'/%3E%3Ccircle cx='13.07' cy='58.95' r='2.6' fill='url(%23b)' stroke='%234a0309' stroke-width='.4'/%3E%3Ccircle cx='17.94' cy='24.44' r='2.6' fill='url(%23b)' stroke='%234a0309' stroke-width='.4'/%3E%3Ccircle cx='15.67' cy='22.98' r='2.6' fill='url(%23b)' stroke='%234a0309' stroke-width='.4'/%3E%3Ccircle cx='20.67' cy='26.97' r='2.6' fill='url(%23b)' stroke='%234a0309' stroke-width='.4'/%3E%3Cg transform='translate(50 92)'%3E%3Cpath d='M0 0 C-7 -6 -12 -1 -10 4 C-8 8 -3 4 0 0 C3 4 8 8 10 4 C12 -1 7 -6 0 0Z' fill='%23f0b93a' stroke='%238a5a10' stroke-width='.7'/%3E%3Cpath d='M-1.5 1 L-5 9 L-2 8 L0 10 L2 8 L5 9 L1.5 1Z' fill='%23e0a020' stroke='%238a5a10' stroke-width='.6'/%3E%3Ccircle r='2.2' fill='%23ffe9a8' stroke='%238a5a10' stroke-width='.5'/%3E%3C/g%3E%3C/svg%3E") center / 100% no-repeat; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .6)); }
@keyframes ring-twinkle { 50% { transform: scale(1.18) rotate(8deg); filter: drop-shadow(0 0 7px #fff); } }
@keyframes ring-aurora { 50% { filter: blur(2px) hue-rotate(35deg); } }
/* dans le carnet, un anneau qui n'est pas choisi ni survolé reste immobile */
.ring-prev:not(.on):not(:hover) .rp-av::before, .ring-prev:not(.on):not(:hover) .rp-av::after { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .ring-prev .rp-av::before, .voice-chip .vdot::before, .pdot::before { animation: none !important; } }
/* rareté des succès */
.pg-tag.rar { font-weight: 700; }
.pg-tag.rar-common { color: #cfd8cf; border-color: rgba(207, 216, 207, .35); }
.pg-tag.rar-uncommon { color: #7ee2a0; border-color: rgba(126, 226, 160, .5); }
.pg-tag.rar-rare { color: #8fc7ff; border-color: rgba(143, 199, 255, .55); }
.pg-tag.rar-epic { color: #d1a8ff; border-color: rgba(209, 168, 255, .6); }
.pg-tag.rar-legend { color: #ffd36a; border-color: rgba(255, 211, 106, .7); box-shadow: 0 0 8px rgba(255, 211, 106, .35); }
/* succès de saison */
.pg-season { margin: 6px 0 10px; padding: 8px 10px 2px; border-radius: var(--hand-b, 14px); background: linear-gradient(180deg, rgba(120, 180, 255, .10), rgba(120, 180, 255, .02)); border: 1px solid rgba(160, 200, 255, .30); }
.pg-ach.expired { opacity: .45; filter: grayscale(.8); }
/* calendrier de l'Avent */
.adv-btn.due { position: relative; }
.adv-btn.due::after { content: ''; position: absolute; top: 2px; right: 2px; width: 9px; height: 9px; border-radius: 50%; background: #ff5a5a; box-shadow: 0 0 0 2px #10261f, 0 0 8px #ff5a5a; }
.adv-head p { margin: 0 0 8px; }
.adv-prog { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.adv-prog b { font-size: 1.3em; color: #f6c84c; }
.adv-prog .pg-bar { flex: 1 1 260px; }
.adv-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 640px) { .adv-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; } .adv-door { font-size: 22px; border-radius: 10px; } .adv-door .adv-in { font-size: 15px; } .adv-head p { font-size: 14px; margin: 0 0 6px; } .adv-prog .pg-bar { flex-basis: 100%; } .adv-tr { min-width: 96px; } .adv-treasures { gap: 10px; justify-content: center; } }
@media (max-width: 360px) { .adv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.adv-door { position: relative; aspect-ratio: 1 / 1.05; border-radius: 12px; border: 2px solid rgba(216, 178, 106, .45); background: linear-gradient(160deg, #1d4a3c, #123329); color: #f3e7cc; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: 700 26px var(--display, inherit); transition: transform .15s, box-shadow .15s; }
.adv-door:hover { transform: translateY(-2px); }
.adv-door .adv-num { line-height: 1; }
.adv-door .adv-in { font-size: 18px; }
.adv-door.future { opacity: .7; }
.adv-door.today { border-color: #f6c84c; background: linear-gradient(160deg, #7a1e28, #4a1a21); box-shadow: 0 0 0 3px rgba(246, 200, 76, .35), 0 0 22px rgba(246, 200, 76, .45); }
/* (26 nov. 2026) lueur qui respire : seulement l'opacité d'un calque (fluide même sur téléphone, avant : ombre recalculée à chaque image) */
.adv-door.today::after { content: ''; position: absolute; inset: -3px; border-radius: 14px; box-shadow: 0 0 0 4px rgba(246, 200, 76, .5), 0 0 30px rgba(246, 200, 76, .7); opacity: 0; animation: adv-glow 1.6s ease-in-out infinite; pointer-events: none; will-change: opacity; }
@keyframes adv-glow { 50% { opacity: 1; } }
.adv-door.adm { border-color: rgba(246, 200, 76, .7); }
.adv-door.open { background: linear-gradient(160deg, #2a2012, #1a140b); border-style: dashed; color: #f6c84c; }
.adv-door.missed { opacity: .4; filter: grayscale(.8); cursor: default; }
.adv-door .adv-tag { font: 600 10px var(--font, inherit); letter-spacing: .04em; text-transform: uppercase; color: #e8b4b4; }
.adv-door.surprise:not(.open)::before { content: ''; position: absolute; inset: 4px; border-radius: 9px; border: 1px dashed rgba(246, 200, 76, .5); pointer-events: none; }
.adv-pts { font: 700 22px var(--display, inherit); color: #f6c84c; }
.adv-gift { padding: 8px 10px; border-radius: 10px; background: rgba(90, 66, 20, .3); border: 1px solid rgba(216, 164, 60, .5); }
.adv-rumor { padding: 8px 12px; border-left: 3px solid #f6c84c; background: rgba(0, 0, 0, .18); border-radius: 6px; }
.adv-rumor p { margin: 4px 0 0; font-style: italic; }
@media (prefers-reduced-motion: reduce) { .adv-door.today::after { animation: none; opacity: .6; } }
/* (26 nov. 2026) calendrier de l'Avent : aperçu admin des trésors de l'hiver */
.adv-admin { margin-top: 14px; padding: 10px 12px; border: 1px dashed rgba(216, 178, 106, .5); border-radius: 12px; }
.adv-treasures { display: flex; gap: 18px; flex-wrap: wrap; margin: 8px 0 10px; }
.adv-tr { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 120px; text-align: center; }
.adv-won { text-align: center; } .adv-won .adv-treasures { justify-content: center; margin: 6px 0; }
.adv-ring { display: inline-flex; padding: 22px; }
.adv-ring .rp-av { width: 54px; height: 54px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #1d4a3c; font: 700 22px var(--display, inherit); color: #f3e7cc; border: 2px solid var(--ra); }

/* (26 nov. 2026) rareté des objets gagnés (dés, anneaux) : Mythique au-dessus de Légendaire ; objet unique */
.pg-tag.rar-mythic { color: #ff9b7a; border-color: rgba(255, 120, 90, .75); background: linear-gradient(90deg, rgba(255, 90, 60, .16), rgba(190, 90, 255, .16)); box-shadow: 0 0 10px rgba(255, 110, 80, .4); }
.pg-tag.once { color: #f3e7cc; border-color: rgba(243, 231, 204, .35); font-style: italic; }
.pg-rar { font-size: 10px; line-height: 1; font-weight: 700; letter-spacing: .02em; }
.pg-rar.rar-uncommon { color: #7ee2a0; } .pg-rar.rar-rare { color: #8fc7ff; } .pg-rar.rar-epic { color: #d1a8ff; }
.pg-rar.rar-legend { color: #ffd36a; text-shadow: 0 0 6px rgba(255, 211, 106, .6); } .pg-rar.rar-mythic { color: #ff9b7a; text-shadow: 0 0 6px rgba(255, 110, 80, .7); }
/* (26 nov. 2026, Cléo : « l'affichage bug quand la souris passe dessus ») : la fiche du dé a une taille FIXE ; avant, sa hauteur changeait
   avec la description, les dés bougeaient sous la souris et le survol sautait d'un dé à l'autre en boucle */
.pg-dice-pick { flex-direction: column; align-items: stretch; }
.pg-dprev { flex: none; display: flex; align-items: center; gap: 10px; height: 104px; overflow: hidden; }
.pg-dinfo { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; flex: 1; }
.pg-dinfo b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pg-dinfo .pg-tag { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pg-dinfo .tiny { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dice-name .pg-tag { margin-left: 8px; vertical-align: middle; font-size: 12px; }
.adv-tr .pg-tag { font-size: 11px; }

/* (26 nov. 2026, Cléo : « attention à la responsivité du calendrier sur téléphone ») */
@media (max-width: 560px) {
  .account-nav { flex-wrap: wrap; justify-content: flex-end; row-gap: 6px; min-width: 0; }
  .adv-btn .adv-lbl { display: none; }
  #topbar .adv-btn .adv-crown { display: none; }
}
.adv-pts small { display: block; font: 500 13px var(--font, inherit); margin-top: 2px; }
/* (26 nov. 2026) « Mes dés » : le nom (avec rareté) et la description gardent la même hauteur d'un dé à l'autre : rien ne saute */
.dice-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; height: 1.7em; line-height: 1.7em; }
.dice-desc { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; height: 2.7em; }
@media (max-width: 560px) { .dice-name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; height: 2.7em; line-height: 1.35em; font-size: .98rem; } .dice-name .pg-tag.once { display: none; } .dice-name .pg-tag { margin-left: 5px; font-size: 11px; } }
/* Moments préparés, 26 nov. 2026 : texte complet lisible avant d'ajouter, narrations modifiables */
.moment-full { display: grid; gap: 3px; margin-top: 4px; }
.moment-narr p { margin: 2px 0 0; font-style: italic; line-height: 1.35; }
.moment-step.is-narr { align-items: flex-start; }
.moment-step.is-narr textarea { width: 100%; min-height: 44px; }
.moment-steps { max-height: 280px; }
/* « Ton système de jeu » (Archimage, lot 1, 26 nov. 2026) : réussites, archétypes et origines, partage */
.arch-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid rgba(186, 140, 255, .45); border-radius: var(--hand-c, 10px); background: linear-gradient(90deg, rgba(120, 70, 200, .18), rgba(120, 70, 200, .04)); }
.prem-tag.arch-tag { background: linear-gradient(90deg, #7b4fd6, #b48cff); color: #fff; }
.wiz-step.wiz-arch::after { content: 'Archimage'; display: block; font-size: 10px; letter-spacing: .04em; color: #c9a9ff; margin-top: 2px; }
.camp-rules .lib-sec input:disabled, .camp-rules .lib-sec select:disabled, .camp-rules .lib-sec textarea:disabled { opacity: .55; }
.kind-card { border: 1px solid var(--line); border-radius: var(--hand-c, 10px); padding: 8px; display: grid; gap: 8px; background: rgba(255, 255, 255, .02); }
.kind-card.open { border-color: rgba(186, 140, 255, .45); }
.kind-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kind-head .kind-glyph { width: 52px; text-align: center; }
.kind-head .kind-sum { min-width: 0; flex: 0 1 auto; }
.kind-bonuses { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
.kind-bonus { display: flex; align-items: center; gap: 6px; justify-content: space-between; }
.kind-bonus input { width: 64px; }
.kind-tname { width: 180px; }
.kind-grid .pc-bonus { white-space: normal; }
.kind-more { margin-top: 4px; }
.share-code { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.share-code b { font-size: 22px; letter-spacing: .12em; }
@media (max-width: 600px) { .kind-tname { width: 100%; } .kind-head .kind-glyph { width: 46px; } }
/* page publique d'un système partagé */
.sys-intro { border-left: 3px solid var(--gold, #e9b949); padding: 6px 12px; margin: 12px 0; font-style: italic; }
.sys-kinds { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.sys-kind { border: 1px solid rgba(255, 255, 255, .15); border-radius: 12px; padding: 10px 14px; }
.sys-kind h3 { margin: 0 0 6px; }
.camp-rules .wiz-steps { flex-wrap: wrap; overflow-x: visible; row-gap: 6px; } /* (26 nov. 2026) 8 étapes : sur deux lignes plutôt que coupées */
/* « Le monde qui vit » (Archimage, 26 nov. 2026) */
.wl-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.wl-tabs .btn.on { border-color: var(--gold-2); color: var(--gold-2); }
.wl-today { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1.5px solid rgba(240, 185, 58, .35); border-radius: var(--hand-b, 12px); background: rgba(240, 185, 58, .06); }
.wl-today b { font-size: 18px; color: var(--gold-2); }
.wl-clock { display: inline-flex; gap: 3px; vertical-align: middle; margin-left: 6px; }
.wl-seg { width: 14px; height: 14px; border-radius: 3px; border: 1px solid rgba(240, 185, 58, .55); background: rgba(255, 255, 255, .04); cursor: default; }
.wl-seg.on { background: var(--gold-2, #f0b93a); }
.wl-clock .wl-seg[onclick], .wl-fac-card .wl-seg { cursor: pointer; }
.wl-clock.off { opacity: .55; }
.wl-fac { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.wl-fac-card { border: 1px solid var(--line); border-radius: var(--hand-c, 10px); padding: 8px; display: grid; gap: 8px; }
.wl-fac-card.open { border-color: rgba(240, 185, 58, .45); }
.wl-fac-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wl-ev { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.wl-ev.secret { opacity: .8; }
.wl-ev-date { min-width: 130px; font-size: 12.5px; color: var(--gold-2); }
.wl-pending { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 12px; border-radius: 10px; background: rgba(120, 70, 200, .18); border: 1px solid rgba(186, 140, 255, .45); }
.wl-rumor { display: grid; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: var(--hand-c, 10px); }
.wl-rumor.heard { opacity: .7; }
.wl-truth { width: auto; }
.wl-news li { margin: 4px 0; }
.wl-news li.muted { opacity: .6; }
.wl-heard li { margin: 4px 0; font-style: italic; }
.wl-btn { position: relative; }
.wl-dot { position: absolute; top: 2px; right: 2px; width: 8px; height: 8px; border-radius: 50%; background: #b48cff; }
.wl-digest-demo { padding: 8px 10px; border-left: 3px solid var(--gold-2); margin: 6px 0; }
@media (max-width: 600px) { .wl-ev { flex-direction: column; gap: 2px; } .wl-ev-date { min-width: 0; } }
/* Espace dépassé (26 nov. 2026) : fichiers verrouillés dans « Mon stockage » */
.stor-box.stor-locked { border-color: rgba(248, 113, 113, .6); }
.stor-alert { font-size: 12.5px; color: #f87171; }
.stor-banner { border: 1.5px solid rgba(248, 113, 113, .55); background: rgba(248, 113, 113, .08); border-radius: var(--hand-c, 10px); padding: 10px 12px; margin-bottom: 10px; }
.stor-banner p { margin: 6px 0; font-size: 13px; }
.stor-item.locked { border-color: rgba(248, 113, 113, .45); }
.stor-item.locked img { filter: grayscale(.8) brightness(.7); }
/* (27 nov. 2026) Archimage, lot 2 : progression du système (éditeur des règles et fenêtre « Progresser ») */
.camp-rules .prog-row { align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--line, rgba(255,255,255,.12)); }
.camp-rules .prog-lbl { min-width: 150px; font-weight: 600; }
.camp-rules .prog-level { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 10px; margin: 6px 0; border: 1px solid var(--line, rgba(255,255,255,.14)); border-radius: var(--hand-c, 12px); }
.camp-rules .prog-level > b { min-width: 74px; color: var(--gold, #f0c14b); }
.camp-rules .prog-talent { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; margin: 6px 0; border: 1px solid var(--line, rgba(255,255,255,.14)); border-radius: var(--hand-c, 12px); }
.prog-dlg h4 { margin: 10px 0 2px; font-family: var(--font-title, inherit); color: var(--gold, #f0c14b); }
.prog-dlg .stat-box { min-width: 120px; }
.prog-dlg .prog-opt { display: flex; gap: 10px; align-items: center; padding: 7px 10px; border: 1px solid var(--line, rgba(255,255,255,.12)); border-radius: var(--hand-c, 12px); }
.prog-dlg .prog-opt.off { opacity: .55; }
.prog-dlg .prog-up { align-items: center; gap: 10px; }
@media (max-width: 640px) { .camp-rules .prog-lbl { min-width: 0; flex-basis: 100%; } .camp-rules .arch-banner { flex-wrap: wrap; } }
/* (27 nov. 2026) dé du Black Friday, sous l'accueil */
.bf-banner { display: flex; gap: 22px; align-items: center; margin: 18px auto 8px; max-width: 1100px; padding: 18px 22px; border: 2px solid var(--gold, #f0c14b); border-radius: var(--hand-c, 16px); background: linear-gradient(120deg, rgba(20,18,26,.92), rgba(48,36,18,.88)); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.bf-banner .bf-die { flex: 0 0 auto; position: relative; transition: transform .3s; }
/* (27 nov. 2026) le dé roule en 3D (diceSwatch.tumble) : la page ne fait plus tourner l'image à plat, juste de petits rebonds */
.bf-banner .bf-die.bf-rolling { animation: bf-roll .45s ease-in-out infinite; }
@keyframes bf-roll { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.bf-banner .bf-num { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%) scale(.6); min-width: 34px; padding: 2px 7px; border-radius: 8px; background: rgba(20, 20, 26, .88); border: 1px solid var(--gold, #f0c14b); color: var(--gold, #f0c14b); font-weight: 800; font-size: 20px; text-align: center; line-height: 1.2; opacity: 0; pointer-events: none; transition: opacity .25s, transform .35s cubic-bezier(.2, 1.6, .4, 1); }
.bf-banner .bf-num.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
@media (prefers-reduced-motion: reduce) { .bf-banner .bf-die.bf-rolling { animation: none; } }
.bf-banner .bf-die.bf-landed { animation: bf-land .5s ease-out; }
@keyframes bf-land { 0% { transform: scale(1.25); } 100% { transform: scale(1); } }
.bf-banner .bf-die.bf-land-mois, .bf-banner .bf-die.bf-land-an { filter: drop-shadow(0 0 14px var(--gold, #f0c14b)); }
.bf-banner .bf-txt { flex: 1 1 auto; min-width: 0; }
.bf-banner .bf-kicker { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold, #f0c14b); }
.bf-banner .bf-title { margin: 4px 0 6px; font-family: var(--font-title, inherit); font-size: 1.6rem; }
.bf-banner .bf-sub { margin: 0 0 10px; opacity: .9; }
.bf-banner .bf-code b { letter-spacing: .08em; color: var(--gold, #f0c14b); font-size: 1.1rem; }
@media (max-width: 640px) { .bf-banner { flex-direction: column; text-align: center; } .bf-banner .row { justify-content: center; } }
/* (27 nov. 2026) dé du Black Friday : chances et défi des réflexes de Gaspard */
.bf-banner .bf-odds { margin-top: 10px; font-size: .9rem; }
.bf-banner .bf-odds summary { cursor: pointer; color: var(--gold, #f0c14b); }
.bf-banner .bf-odds-t td { padding: 2px 14px 2px 0; }
.bf-banner .bf-reflex-cta { margin-top: 10px; }
.bf-rx { position: relative; height: 300px; border-radius: var(--hand-c, 16px); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; cursor: pointer; user-select: none; overflow: hidden; outline: none; transition: background-color .05s; }
.bf-rx-green { background: #2f8f4e; } .bf-rx-red { background: #c0392b; } .bf-rx-early { background: #6b5a2a; } .bf-rx-done { background: #2b3440; }
.bf-rx-gaspard { height: 220px; pointer-events: none; filter: drop-shadow(0 6px 12px rgba(0,0,0,.4)); }
.bf-rx-msg { margin: 8px 12px 14px; font-family: var(--font-title, inherit); font-size: 1.25rem; text-align: center; color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,.5); }
/* (27 nov. 2026) téléphone : l'indication du défi de Gaspard passe sous le bouton */
@media (max-width: 600px) { .bf-banner .bf-reflex-cta { display: flex; flex-direction: column; align-items: center; gap: 4px; } }
/* (27 nov. 2026, vitesse du site) l'en-tête garde sa hauteur pendant le chargement des polices (il grandissait de 10 px et poussait la page) */
.l-nav { min-height: 84px; box-sizing: border-box; }

/* (28 nov. 2026) dé du Black Friday : bouton de la barre du haut / « Mes campagnes », bandeau du haut de l'accueil */
.bf-chip { display: inline-flex; align-items: center; gap: 6px; margin-right: 8px; padding: 3px 12px 3px 6px; border-radius: 999px; border: 1px solid var(--gold, #f0c14b); background: linear-gradient(120deg, rgba(48,36,18,.9), rgba(20,18,26,.9)); color: #ffe9a8; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; box-shadow: 0 0 0 0 rgba(240,193,75,.6); animation: bfChipPulse 2.4s ease-out infinite; }
.bf-chip:hover { background: linear-gradient(120deg, rgba(70,52,22,.95), rgba(30,26,36,.95)); }
.bf-chip canvas, .bf-chip svg, .bf-chip img { width: 20px; height: 20px; }
.bf-chip-camps { margin: 6px 0 10px; }
@keyframes bfChipPulse { 0% { box-shadow: 0 0 0 0 rgba(240,193,75,.55); } 70% { box-shadow: 0 0 0 8px rgba(240,193,75,0); } 100% { box-shadow: 0 0 0 0 rgba(240,193,75,0); } }
@media (prefers-reduced-motion: reduce) { .bf-chip { animation: none; } }
@media (max-width: 900px) { #topbar .bf-chip span { display: none; } #topbar .bf-chip { padding: 3px 6px; } }
.bf-top { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; max-width: 1100px; margin: 10px auto 4px; padding: 8px 16px; border: 1px solid var(--gold, #f0c14b); border-radius: var(--hand-c, 14px); background: linear-gradient(120deg, rgba(20,18,26,.94), rgba(56,40,16,.92)); color: #f3e6c4; font-size: 15px; text-align: center; }
.bf-top-t b { color: #ffd772; }
.bf-modal .bf-banner { margin: 0; box-shadow: none; }
/* (28 nov. 2026) marchander */
.haggle-box:empty { display: none; }
.haggle-box { padding: 6px 8px; border: 1px dashed rgba(240,193,75,.45); border-radius: 10px; background: rgba(240,193,75,.06); }
.haggle-good { color: #9be59b; } .haggle-bad { color: #ff9b8a; }
/* (28 nov. 2026) fiche du Codex : « Dans le monde » ; liens fiche ↔ monde */
.lore-world { margin: 14px 0; padding: 10px 12px; border: 1px solid rgba(120,200,160,.35); border-radius: 12px; background: rgba(15,70,55,.25); }
.lore-world.locked { cursor: pointer; opacity: .85; }
.lore-world-fac { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 4px 0; }
.lore-world-h { margin-top: 8px; font-weight: 700; color: var(--gold, #f0c14b); }
.lore-world-ev { margin: 2px 0 2px 6px; }
.wl-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 4px 0; }
.wl-link { display: inline-flex; align-items: center; gap: 4px; }
.wl-link-add { width: auto; max-width: 220px; }
/* (28 nov. 2026) « Crée ton monde en 5 minutes » */
.wl-start { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--gold, #f0c14b); border-radius: 12px; background: rgba(240,193,75,.07); }
.wl-tones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wl-tone { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(255,255,255,.15); background: rgba(0,0,0,.15); color: inherit; cursor: pointer; }
.wl-tone.on { border-color: var(--gold, #f0c14b); background: rgba(240,193,75,.12); }
.wl-wiz-fac { padding: 8px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; margin: 6px 0; display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 640px) { .wl-tones { grid-template-columns: 1fr; } }

/* (28 nov. 2026) actes des héros, alliés et ennemis */
.wl-hero-row { display: grid; grid-template-columns: 1fr auto 1.2fr; gap: 6px; align-items: center; }
.wl-rels { display: flex; flex-direction: column; gap: 4px; }
.market-note { color: #f3d98a; }
@media (max-width: 640px) { .wl-hero-row { grid-template-columns: 1fr; } }
/* (28 nov. 2026) pièce (pile ou face) : petit bouton qui ne serre pas les autres dés */
.quick-dice .qd.coin { flex: 0 0 auto; padding-left: 4px; padding-right: 4px; font-size: 13px; }
/* (28 nov. 2026) Construire › Choisir : ce qu'on peut changer sur la pièce ou le mur choisi */
.tool-options .build-sel-box { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 3px 8px; border: 1.5px solid rgba(255, 211, 106, .55); border-radius: 10px; background: rgba(255, 211, 106, .07); }
.tool-options .build-sel-box b { color: var(--gold-2, #f0b93a); font-size: 12.5px; }
/* (28 nov. 2026) barre du mur, de la porte ou de la fenêtre choisi */
.sel-bar.wall-bar { flex-wrap: wrap; justify-content: center; max-width: min(860px, calc(100vw - 24px)); gap: 8px; }
.sel-bar.wall-bar .seg button.active { background: rgba(255, 211, 106, .22); color: #fff; }

/* ── Fiche D&D (30 nov. 2026, demandes de Cléo) ──
   Jets de sauvegarde : un bloc lisible sous les caractéristiques (= jets de résistance), au lieu de « JS +3 » sous chaque bulle */
.saves-block { margin: 6px 0 12px; padding: 8px 10px 10px; border: 1.5px dashed var(--line-2); border-radius: var(--hand-c, 10px); }
.saves-head { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.saves-head b { font-family: var(--serif); color: var(--gold-2); font-size: 17px; }
.saves-sub { color: var(--muted); font-size: 12.5px; }
.saves-help { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--gold-2); font-size: 12px; cursor: help; margin-left: auto; }
.saves-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.save-chip { display: flex; align-items: center; gap: 4px; padding: 3px 6px 3px 4px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel-2); min-width: 0; }
.save-chip.prof { border-color: var(--gold-dim); box-shadow: inset 0 0 0 1px rgba(240, 185, 58, .25); }
.save-prof { display: flex; flex: none; }
.save-roll { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; background: none; border: 0; color: inherit; cursor: pointer; padding: 0; text-align: left; }
.save-name { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.save-val { font-family: var(--serif); font-size: 19px; color: var(--gold-2); line-height: 1.05; }
.save-chip.prof .save-name { color: var(--text, #f1ead8); }
.save-roll:hover .save-val { text-decoration: underline wavy; }
@media (max-width: 720px) { .saves-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* PV temporaires lisibles */
.hp-temp .hp-temp-lbl { font-size: 12px; }
.hp-temp.has .hp-temp-lbl { color: #7fd3ff; }
.hp-temp.has input { border-color: #7fd3ff; color: #bfe9ff; }
/* Aptitudes à activer */
.eff-panel { margin: 4px 0 12px; display: flex; flex-direction: column; gap: 6px; }
.eff-row { display: flex; align-items: flex-start; gap: 8px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.eff-row.on:not(.passive) { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(240, 185, 58, .35), 0 0 12px rgba(240, 185, 58, .12); }
.eff-check { flex: none; width: 24px; height: 24px; margin-top: 1px; display: grid; place-items: center; border: 1.5px solid var(--gold-dim); border-radius: 6px; background: transparent; color: var(--pen, #1b1408); font-weight: 700; cursor: pointer; }
.eff-row.on .eff-check:not(.passive) { background: var(--gold); border-color: var(--gold); }
.eff-check.passive { border-style: dashed; color: var(--gold-2); cursor: default; }
.eff-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.eff-txt b { font-size: 14.5px; }
.eff-tags { font-size: 11.5px; color: var(--gold-2); }
.eff-desc { font-size: 12.5px; color: var(--muted); }
/* (1er déc. 2026) payer sans quitter la table : offres dans la fenêtre du cadenas (pay.js) */
.pay-offers { display: flex; flex-direction: column; gap: 8px; }
.pay-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.pay-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 12px 12px; border-radius: 12px; border: 1px solid rgba(240,193,75,.35); background: rgba(20,18,26,.55); color: inherit; font: inherit; cursor: pointer; text-align: center; transition: border-color .15s, transform .15s; }
.pay-card:hover { border-color: var(--gold, #f0c14b); transform: translateY(-1px); }
.pay-card b { font-size: 17px; }
.pay-card .btn { margin-top: 6px; pointer-events: none; }
.pay-card:disabled { opacity: .6; cursor: wait; }
.pay-best { border-color: var(--gold, #f0c14b); box-shadow: 0 0 0 1px rgba(240,193,75,.35) inset; }
.pay-tag { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); padding: 1px 8px; border-radius: 999px; background: var(--gold, #f0c14b); color: #1b1b22; font-size: 11px; font-weight: 700; white-space: nowrap; }
.pay-fine { font-size: 12px; margin: 0; }
.pay-direct summary { cursor: pointer; color: var(--gold, #f0c14b); font-size: 13px; margin-top: 4px; }
.pay-direct[open] summary { margin-bottom: 10px; }
#topbar .pay-top { margin-right: 8px; border-color: var(--gold, #f0c14b); color: #ffe9a8; white-space: nowrap; }
@media (max-width: 900px) { #topbar .pay-top { padding: 3px 8px; } }
/* (1er déc. 2026) offres dans la colonne Premium de « Gratuit ou premium ? » : visibles sans faire défiler */
.fp-prem .pay-offers { margin-top: 14px; }
.fp-prem .pay-row { grid-template-columns: 1fr 1fr; gap: 8px; }
.fp-prem .pay-card { padding: 12px 6px 8px; }
.fp-prem .pay-card b { font-size: 15px; }
.fp-prem .pay-card .btn { font-size: 12px; padding: 3px 8px; }
.fp-prem .pay-fine { font-size: 11px; }
/* (1er déc. 2026, capture de Cléo) barre de dés : « d100 » débordait de son bouton et touchait la pièce */
.quick-dice { gap: 3px; }
.quick-dice > * { flex: 1 0 auto; }
.quick-dice > .icon-btn { flex: 0 0 auto; }
@media (max-width: 1300px) { .quick-dice { gap: 2px; } .quick-dice .qd { font-size: 11px; padding: 4px 1px; letter-spacing: -.03em; } .quick-dice .icon-btn { padding-left: 2px; padding-right: 2px; } }
.quick-dice .qd { min-width: 0; padding: 5px 2px; font-size: 12.5px; letter-spacing: -.01em; text-align: center; }
.quick-dice .qd.coin { padding: 5px 2px; }
.quick-dice .icon-btn { padding-left: 4px; padding-right: 4px; }
@media (max-width: 1150px) { .quick-dice { gap: 1px; } .quick-dice .qd { font-size: 10px; letter-spacing: -.04em; } }
/* (1er déc. 2026, revérification MJ) le tour guidé passait PAR-DESSUS les fenêtres ouvertes par le MJ (générateur de PNJ, fiches, Codex) :
   dès qu'une fenêtre est ouverte, la bulle du tour et son voile passent dessous */
body:has(.float-win:not(.minimized)) :is(.tour-veil, .tour-hole, .tour-card) { z-index: 90; }

/* ── Trouver une partie (1er déc. 2026) : page publique des tables ouvertes ── */
.tp-page { max-width: 1100px; }
.tp-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 6px 0 18px; }
.tp-bar .input { width: auto; min-width: 180px; }
.tp-check { display: inline-flex; gap: 6px; align-items: center; }
.tp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.tp-card { position: relative; display: flex; flex-direction: column; background: var(--panel-solid); border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.tp-card.tp-hl { border-color: var(--gold); }
.tp-img { position: relative; aspect-ratio: 16 / 8; background: var(--ink-2) center / cover no-repeat; }
.tp-sys { position: absolute; left: 10px; bottom: 10px; background: rgba(11, 36, 32, .88); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: 14px; }
.tp-body { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 14px; flex: 1; }
.tp-body h3 { margin: 0; font-size: 22px; color: var(--gold-2); }
.tp-pitch { margin: 0; line-height: 1.45; color: var(--text); }
.tp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tp-chip { font-size: 13px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); background: rgba(0, 0, 0, .18); }
.tp-chip-ok { border-color: rgba(139, 189, 86, .6); color: #cfe7b0; }
.tp-chip-gold { border-color: rgba(240, 185, 58, .6); color: var(--gold-2); }
.tp-next, .tp-themes { font-size: 14px; }
.tp-themes { color: #f3c9a0; }
.tp-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.tp-gm small { color: var(--muted); }
.tp-state { font-size: 14px; color: var(--gold-2); }
.tp-report { position: absolute; top: 8px; right: 8px; background: rgba(11, 36, 32, .75); border: 0; border-radius: 8px; color: var(--muted); font: inherit; font-size: 12px; padding: 2px 8px; cursor: pointer; opacity: 0; transition: opacity .2s; }
.tp-card:hover .tp-report, .tp-report:focus { opacity: 1; }
.tp-empty { grid-column: 1 / -1; text-align: center; padding: 30px 16px; border: 1.5px dashed var(--line); border-radius: var(--radius); }
.tp-gmbox { margin-top: 34px; padding: 16px 18px; border: 1.5px solid var(--line-2); border-radius: var(--radius); background: rgba(0, 0, 0, .14); }
.tp-dialog:not(#tp-x) { position: fixed; inset: 0; margin: auto; height: fit-content; max-width: min(480px, 94vw); background: var(--panel-solid); color: var(--text); border: 1.5px solid var(--gold-dim); border-radius: var(--radius); padding: 18px 20px; }
.tp-dialog::backdrop { background: rgba(0, 0, 0, .6); }
.tp-dialog h3 { margin: 0 0 8px; color: var(--gold-2); }
.tp-dialog textarea { width: 100%; box-sizing: border-box; }
.tp-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.tp-err { color: var(--blood); min-height: 1em; margin: 6px 0 0; }
/* panneau du MJ à la table */
.pub-req { display: flex; gap: 8px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.pub-req .grow { min-width: 0; }
.pub-req q { display: block; font-size: 13px; color: var(--text-2); margin-top: 2px; }
.pub-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; max-height: 190px; overflow: auto; }
.pub-imgs button { aspect-ratio: 16 / 9; border: 2px solid transparent; border-radius: 8px; background: var(--ink-2) center / cover no-repeat; cursor: pointer; padding: 0; }
.pub-imgs button.on { border-color: var(--gold); }
.pub-themes { display: flex; flex-wrap: wrap; gap: 4px 14px; }
@media (max-width: 640px) { .tp-bar .input { min-width: 0; flex: 1 1 45%; } }
.pub-req q { quotes: "« " " »"; }
@media (max-width: 960px) and (min-width: 481px) { .l-nav nav a.nav-parties { display: inline; } }
.tp-card a.btn { text-decoration: none; }

/* (1er déc. 2026) Calendrier de l'Avent : la Veillée de Gaspard (advent-ui.js) */
.adv-top { display: flex; gap: 14px; align-items: flex-end; margin-bottom: 12px; }
.adv-gaspard { width: 108px; height: auto; flex: none; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45)); }
.adv-gaspard.sm { width: 78px; }
.adv-say { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.adv-bubble { position: relative; padding: 10px 14px; border-radius: 14px; background: #f6ecd4; color: #2b2116; font-size: 14.5px; line-height: 1.4; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
.adv-bubble::before { content: ''; position: absolute; left: -8px; bottom: 14px; border: 8px solid transparent; border-right-color: #f6ecd4; border-left: 0; }
.adv-bubble p { margin: 2px 0 0; font-style: italic; }
.adv-bubble .muted { color: #6b5a40 !important; }
.adv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.adv-chip { padding: 3px 10px; border-radius: 999px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(216, 178, 106, .35); font-size: 12.5px; }
.adv-chip b { color: #f6c84c; font-size: 14px; }
.adv-chip.hot { border-color: #f6c84c; background: rgba(246, 200, 76, .18); color: #ffe7a0; font-weight: 700; }
.adv-door .adv-roll { font: 700 15px var(--display, inherit); color: #f3e7cc; }
.adv-door .adv-roll small { font-size: 10px; opacity: .7; }
.adv-door .adv-st { color: #bfe6ff; }
.adv-door.open.r-crit, .adv-door.open.r-nat20 { border-style: solid; border-color: #9fd8ff; box-shadow: 0 0 14px rgba(159, 216, 255, .35); }
.adv-door.open.r-nat20 { background: linear-gradient(160deg, #23405e, #142538); }
.adv-door.open.r-fumble { border-color: rgba(232, 120, 120, .6); }
.adv-chemin { margin-top: 16px; padding: 12px; border-radius: 14px; background: rgba(0, 0, 0, .2); border: 1px solid rgba(216, 178, 106, .3); }
.adv-chemin-h { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.adv-bar { position: relative; height: 18px; border-radius: 999px; background: rgba(0, 0, 0, .35); overflow: hidden; margin-bottom: 10px; }
.adv-bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #2f7fe0, #9fd8ff, #f6c84c); border-radius: 999px; transition: width .6s; }
.adv-bar span { position: relative; display: block; text-align: center; font: 700 11.5px/18px var(--font, inherit); color: #fff; text-shadow: 0 1px 2px #000; }
.adv-path-wrap { overflow-x: auto; padding-bottom: 4px; }
.adv-path { display: grid; --adv-lane: 104px; --adv-col: 84px; gap: 6px; min-width: 900px; }
/* (1er déc. 2026) trésor commun aux deux voies (Sucre d'orge, Boule de Noël) : une seule grande case, or et vert */
.adv-cell.both { background: radial-gradient(120% 70% at 50% 40%, rgba(255, 214, 130, .14), rgba(0, 0, 0, .12)); border: 1px solid rgba(255, 214, 130, .6); box-shadow: 0 0 18px rgba(255, 200, 110, .12) inset; }
.adv-cell.both .adv-tr b { font-size: 13px; }
.adv-both { font: 700 10px var(--font, inherit); text-transform: uppercase; letter-spacing: .08em; color: #1d1405; background: linear-gradient(90deg, #f6c84c, #ffe9a8); padding: 2px 8px; border-radius: 999px; margin-bottom: 4px; }
.adv-lane-l { display: flex; flex-direction: column; justify-content: center; gap: 2px; font-size: 13px; }
.adv-lane-l.g b { color: #f6c84c; }
.adv-lvl { text-align: center; font-size: 12px; opacity: .6; } .adv-lvl.on { opacity: 1; color: #9fd8ff; }
.adv-cell { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px 4px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(216, 178, 106, .2); min-height: 132px; }
.adv-cell.guild { background: linear-gradient(170deg, rgba(246, 200, 76, .1), rgba(0, 0, 0, .1)); border-color: rgba(246, 200, 76, .35); }
.adv-cell.got { border-color: #6effaa; box-shadow: 0 0 0 1px rgba(110, 255, 170, .3) inset; }
.adv-cell.locked > .adv-tr { filter: saturate(.55) brightness(.85); }
.adv-cell .adv-tr { min-width: 0; gap: 2px; } .adv-cell .adv-tr b { font-size: 11.5px; line-height: 1.2; }
.adv-cell .adv-ring { padding: 14px; } .adv-cell .adv-ring .rp-av { width: 36px; height: 36px; font-size: 15px; }
.adv-ok, .adv-lock { position: absolute; top: 4px; right: 4px; font: 700 9.5px var(--font, inherit); text-transform: uppercase; letter-spacing: .04em; padding: 1px 6px; border-radius: 999px; }
.adv-ok { background: #1f7a4a; color: #dfffe9; }
.adv-lock { background: rgba(0, 0, 0, .55); color: #f6c84c; }
.adv-shard { font-size: 34px; line-height: 64px; color: #f6c84c; text-shadow: 0 0 14px rgba(246, 200, 76, .6); }
.adv-cta { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(246, 200, 76, .12); border: 1px solid rgba(246, 200, 76, .45); }
.adv-cta > div { flex: 1 1 300px; }
.adv-cta .btn { text-decoration: none; }
.adv-trial .adv-scene { display: flex; gap: 12px; align-items: flex-end; margin-bottom: 10px; }
.adv-trial .adv-scene .adv-bubble { flex: 1; }
.adv-q { text-align: center; font: 700 16px var(--display, inherit); margin: 6px 0; }
.adv-asks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 6px; }
.adv-ask { white-space: normal; min-height: 52px; font-weight: 600; }
@media (max-width: 560px) { .adv-asks { grid-template-columns: 1fr; } .adv-top { align-items: flex-start; } .adv-gaspard { width: 72px; } }
.adv-dice { display: flex; justify-content: center; gap: 18px; margin: 10px 0; }
.adv-big { text-align: center; }
.adv-pair { display: flex; justify-content: center; gap: 16px; }
.adv-pair span { font: 700 64px/1 var(--display, inherit); color: #f6ecd4; text-shadow: 0 0 18px rgba(159, 216, 255, .55); }
.adv-pair .drop { opacity: .35; font-size: 40px; align-self: center; text-decoration: line-through; }
.adv-big.r-nat20 .keep, .adv-big.r-crit .keep { color: #bfe6ff; }
.adv-big.r-nat20 .keep { color: #f6c84c; text-shadow: 0 0 24px rgba(246, 200, 76, .8); }
.adv-big.r-fumble .keep { color: #ff8a8a; }
.adv-tier { font: 700 18px var(--display, inherit); color: #f6c84c; margin-top: 4px; }
.adv-gains { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; justify-content: center; }
.adv-pts.st { color: #bfe6ff; }
.center { text-align: center; }
/* (1er déc. 2026) cases plus compactes : le chemin des trésors visible dès l'ouverture */
.adv-modal .adv-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; }
.adv-modal .adv-door { aspect-ratio: 1 / 1.15; font-size: 20px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.adv-modal .adv-door .adv-tag { font-size: 8.5px; }
.adv-modal .adv-door .adv-roll { font-size: 12px; }
@media (max-width: 760px) { .adv-modal .adv-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 640px) { .adv-modal .adv-door { font-size: 17px; } .adv-path { --adv-lane: 74px; --adv-col: 86px; min-width: 880px; } .adv-lane-l { font-size: 12px; } }

/* (1er déc. 2026, Cléo : « tout doit être adapté tablette, téléphone ») table sur tablette : « + Macro » passe au-dessus de la barre du bas
   (il la chevauchait), et « Lance ta première partie » au-dessus des macros */
@media (min-width: 901px) and (max-width: 1200px) { .macro-bar { bottom: 62px; max-width: calc(100% - 80px); } }
@media (min-width: 701px) and (max-width: 1200px) { .starter { bottom: 112px; } }

