/* Vue « Tour » — classes préfixées tn- ; uniquement les variables du thème. */
.tn { padding: 0 12px 24px; margin: 0 auto; }
.tn h2 { font-size: 1.2rem; }
.tn .card { margin-top: 12px; }
.tn-cols { display: grid; gap: 0 16px; }
.tn-col { min-width: 0; }
@media (min-width: 900px) {
  .tn-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}
.tn-big { width: 100%; min-height: 56px; font-size: 1.1rem; }
.tn-sub { margin: 14px 0 6px; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-family: inherit; }
.tn-small { font-size: .85rem; }
.tn-hint { margin: 8px 0 0; text-align: center; font-size: .9rem; }
.tn .row > .btn { flex: 0 0 auto; }

/* Bandeau collant */
.tn-strip { position: sticky; top: 57px; z-index: 15; margin: 0 -12px; padding: 8px 12px; background: var(--bg); border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
@media (min-width: 900px) { .tn-strip { top: 110px; grid-template-columns: 1fr auto; align-items: center; margin: 0; border-radius: 0 0 var(--radius) var(--radius); } }
.tn-strip-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tn-mini-hp { flex: 1; min-width: 0; display: grid; gap: 3px; text-align: left; border: 0; background: transparent; padding: 2px 0; color: var(--ink); font-size: .95rem; }
.tn-mini-hp b { font-size: 1.15rem; }
.tn-mini-hp em { font-style: normal; color: var(--info); font-weight: 700; }
.tn-mini-bar, .tn-bar { display: block; height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--line); }
.tn-mini-bar i, .tn-bar i { display: block; height: 100%; background: var(--good); transition: width .3s; }
.warn .tn-mini-bar i, .tn-hp.warn .tn-bar i { background: var(--warn); }
.bad .tn-mini-bar i, .tn-hp.bad .tn-bar i { background: var(--bad); }
.tn-mini { white-space: nowrap; font-size: .95rem; }
.tn-mini b { font-size: 1.15rem; }
.tn-next-mini { white-space: nowrap; }
.tn-adv { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 3px; }
.tn-adv button { min-height: 36px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 700; font-size: .9rem; padding: 0 10px; }
.tn-adv button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.tn-adv button.on.v0 { background: var(--bad-soft); color: var(--bad); }
.tn-adv button.on.v2 { background: var(--good-soft); color: var(--good); }

/* État */
.tn-hp-num { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.tn-hp-num b { font-size: 2.6rem; line-height: 1; font-family: var(--font-title); }
.tn-hp-num span { color: var(--muted); font-weight: 700; }
.tn-hp.down .tn-hp-num b { color: var(--bad); }
.tn-bar { height: 14px; }
.tn .chip.tn-temp { background: var(--info-soft); color: var(--info); border-color: transparent; }
.tn-hp-form { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 12px; }
.tn-hp-form input { grid-column: span 2; }
.tn-hp-form select { grid-column: span 4; min-height: 48px; }
.tn-hp-form .btn { grid-column: span 2; }
.tn-hp-form input { text-align: center; font-size: 1.15rem; font-weight: 700; min-height: 48px; padding: 6px; }
.tn-hp-form .btn { min-height: 48px; padding: 0 6px; font-size: .95rem; }
.tn-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(62px, 1fr)); gap: 6px; margin-top: 12px; }
.tn-stat { display: grid; justify-items: center; gap: 1px; padding: 6px 2px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--ink); font: inherit; }
.tn-stat small { font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; white-space: nowrap; }
.tn-stat b { font-size: 1.15rem; }
button.tn-stat { cursor: pointer; border-color: var(--gold); }
.tn-conc-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding: 6px 10px; border-radius: 10px; background: var(--info-soft); color: var(--info); }
.tn-conds { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tn-conds .chip { min-height: 34px; padding: 4px 12px; }
.tn-alert { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--warn-soft); color: var(--ink); border: 1px solid var(--warn); display: grid; gap: 8px; }
.tn-alert.bad { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); }
.tn-death { margin-top: 12px; padding: 10px; border-radius: 12px; background: var(--bad-soft); display: grid; gap: 8px; }
.tn-death-head { display: flex; justify-content: space-between; align-items: center; }
.tn-ds-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .85rem; font-weight: 700; }
.tn-ds-row span:nth-of-type(2) { margin-left: 10px; }
.tn-ds { width: 30px; height: 30px; border-radius: 50%; border: 2px solid currentColor; background: transparent; padding: 0; }
.tn-ds.good { color: var(--good); } .tn-ds.bad { color: var(--bad); }
.tn-ds.on { background: currentColor; }

/* Combat */
.tn-start { margin-top: 2px; }
.tn-combat-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.tn-combat-head h2 { margin: 0 0 4px; overflow-wrap: anywhere; }
.tn-myturn { margin: 10px 0; padding: 10px; border-radius: 12px; background: var(--brand); color: var(--brand-ink); font-weight: 800; font-size: 1.1rem; text-align: center; animation: tn-pulse 1.6s ease-in-out 2; }
@keyframes tn-pulse { 50% { transform: scale(1.03); } }
.tn-cur { margin: 10px 0; color: var(--muted); }
.tn-order { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; }
.tn-c { display: flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); border-left: 5px solid var(--bad); }
.tn-c.ally { border-left-color: var(--info); }
.tn-c.me { border-left-color: var(--gold); }
.tn-c.cur { background: var(--warn-soft); border-color: var(--warn); border-left-width: 5px; }
.tn-c.dead { opacity: .5; }
.tn-c.dead b { text-decoration: line-through; }
.tn-c-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 8px; border: 0; background: transparent; text-align: left; color: var(--ink); font: inherit; min-height: 52px; }
.tn-init { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-2); font-weight: 800; font-size: 1.05rem; }
.tn-c-txt { display: grid; min-width: 0; }
.tn-c-txt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tn-c-txt small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tn-c-move { display: flex; flex-direction: column; }
.tn-c-move .icon-btn { min-height: 26px; min-width: 40px; font-size: .8rem; color: var(--muted); }
.tn-c-move .icon-btn:disabled { opacity: .25; }
.tn-combat-tools { margin-bottom: 10px; }
.tn-combat-tools .btn { flex: 1 1 auto !important; }
.tn-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tn-cchips { display: flex; flex-wrap: wrap; gap: 6px; }
.tn-cchips .chip { min-height: 34px; }
.tn-check { font-weight: 600; }
.tn-check input { flex: 0 0 auto !important; min-width: 0 !important; }
.tn-opts { display: grid; gap: 8px; }
.tn-exh { gap: 12px; }
.tn-exh b { font-size: 1.2rem; min-width: 1.5em; text-align: center; }

/* Économie d'actions */
.tn-econ .section-title { margin-top: 0; }
.tn-eco-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tn-eco { display: grid; justify-items: center; gap: 2px; min-height: 64px; padding: 6px 4px; border-radius: 12px; border: 2px solid var(--good); background: var(--good-soft); color: var(--good); font: inherit; font-weight: 800; font-size: .9rem; }
.tn-eco-ico { font-size: 1.3rem; line-height: 1.2; }
.tn-eco.used { border-color: var(--line); background: var(--surface-2); color: var(--muted); text-decoration: line-through; }
.tn-move { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); }
.tn-move small { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; }
.tn-move b { font-size: 1.3rem; }
.tn-move-btns { display: flex; gap: 6px; }

/* IA */
.tn-ai .section-title { margin-top: 0; }
.tn-ai input { margin-bottom: 8px; }
.tn-loading { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.tn-spin { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: tn-spin .8s linear infinite; }
@keyframes tn-spin { to { transform: rotate(360deg); } }
.tn-ai-reply { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }

/* Actions rapides */
.tn-actions .section-title { margin-top: 0; }
.tn-atk, .tn-spell, .tn-res { display: flex; align-items: center; gap: 6px; padding: 8px 0; border-top: 1px solid var(--line); }
.tn-atk:first-of-type { border-top: 0; }
.tn-atk-name { flex: 1; min-width: 0; display: grid; }
.tn-atk-name b { overflow-wrap: anywhere; }
.tn-atk-name small { color: var(--muted); font-size: .8rem; }
.tn-atk .btn, .tn-spell .btn { padding: 0 10px; white-space: nowrap; }
.tn .chip.tn-tag { padding: 0 6px; font-size: .7rem; vertical-align: middle; }
.tn-spell-meta { font-size: .9rem; color: var(--muted); }
.tn-spell-meta b { color: var(--ink); }
.tn-lvl-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 12px 0 2px; padding-bottom: 4px; border-bottom: 2px solid var(--line); font-family: var(--font-title); }
.tn-pips { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }
.tn-pip { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--brand); background: transparent; padding: 0; }
.tn-pip.on { background: var(--brand); }
.tn-gen { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tn-gen .btn { justify-content: flex-start; gap: 6px; padding: 0 10px; min-height: 48px; text-align: left; font-size: .95rem; }
.tn-gen .btn small { margin-left: auto; color: var(--muted); }

/* Jets */
.tn-rolls .section-title { margin-top: 0; }
.tn-saves { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tn-saves .btn { display: flex; justify-content: space-between; padding: 0 12px; min-height: 48px; }
.tn-saves small { color: var(--muted); font-weight: 700; }
.tn-prof { border-color: var(--gold) !important; box-shadow: inset 0 0 0 1px var(--gold); }
.tn-skills { margin-top: 10px; }
.tn-skills summary { cursor: pointer; font-weight: 700; padding: 10px 0; min-height: 44px; }
.tn-skill-list { display: grid; grid-template-columns: 1fr; gap: 4px; }
@media (min-width: 520px) { .tn-skill-list { grid-template-columns: 1fr 1fr; } }
.tn-skill { display: flex; justify-content: space-between; align-items: center; gap: 6px; min-height: 42px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; text-align: left; }
.tn-skill small { color: var(--muted); font-size: .72rem; }
.tn-free { display: flex; gap: 6px; margin-top: 14px; }
.tn-free input { flex: 1; min-width: 0; }
.tn-dice { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tn-dice .btn { flex: 1 1 0; padding: 0 4px; }
.tn-hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.tn-hist li { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.tn-hist li b { font-size: 1.15rem; grid-row: span 2; align-self: center; }
.tn-hist li small { color: var(--muted); font-size: .75rem; overflow-wrap: anywhere; }

/* Journal du combat */
.tn-log .section-title { margin-top: 0; }
.tn-loglist { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow: auto; display: grid; gap: 4px; }
.tn-loglist li { padding: 4px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; overflow-wrap: anywhere; }
.tn-loglist .chip { font-size: .7rem; padding: 0 6px; margin-right: 4px; }
.tn-rest .section-title { margin-top: 0; }
.tn-rest .row .btn { flex: 1 1 auto; }

/* Règles 2024 : actions avec aide, bottes d'armes, épuisement */
.tn-act { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.tn-act .btn { flex: 1; min-width: 0; border: 0; border-radius: 0; background: transparent; }
.tn-info { flex: 0 0 auto; width: 40px; border: 0; border-left: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font-size: 1.05rem; padding: 0; }
.tn .chip.tn-mastery { justify-self: start; margin-top: 4px; min-height: 28px; background: var(--info-soft); color: var(--info); border-color: transparent; font-size: .78rem; }
.tn-exh-line { padding: 4px 10px; border-radius: 10px; background: var(--bad-soft); color: var(--bad); font-weight: 700; font-size: .85rem; }
@media (min-width: 900px) { .tn-exh-line { grid-column: 1 / -1; } }
.tn-exh-chip { white-space: nowrap; }
.tn-skill-pick { display: flex; justify-content: space-between; }
.tn-move > .chip { min-height: 32px; }
.tn-flash { outline: 3px solid var(--gold); outline-offset: 2px; transition: outline-color .6s; }

/* v4 : bonus affichés (plus de jets), effets (bonus de CA, résistances) */
.tn-save { display: flex; justify-content: space-between; align-items: center; padding: 0 12px; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.tn-save small { color: var(--muted); font-weight: 700; }
.tn-val { white-space: nowrap; font-size: .9rem; padding: 0 2px; }
.tn-val b { font-size: 1rem; }
.tn-death-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tn-death-btns .btn { min-height: 48px; }
.tn-effects { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tn-effects .chip { min-height: 34px; padding: 4px 12px; }
button.tn-mini { border: 0; background: transparent; color: var(--ink); font: inherit; padding: 2px 4px; cursor: pointer; }
.tn-mini em { font-style: normal; color: var(--good); font-weight: 700; }
.tn-ac-up b { color: var(--good); }
.tn-stat.tn-ac-up small:last-child { text-transform: none; letter-spacing: 0; color: var(--good); }
.tn-fx-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.tn-fx-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.tn-fx-list small { color: var(--muted); }
.tn-fx-quick { flex-wrap: wrap; gap: 6px; }
