/* Guide Forever — pages publiques /guide
   DA alignée site (teal/gold/cinéma), distincte d’un calculateur classic 3-colonnes.
   Responsive : mobile → tablette → PC → TV 4K (portrait & paysage). */

.temp-body {
  --guide-max: min(100% - (var(--pad-inline) * 2), clamp(72rem, 88vw, 120rem));
  --node: clamp(2.5rem, 2.2vw + 1.4rem, 4.25rem);
  --gap-node: clamp(0.4rem, 0.6vw, 0.85rem);
  overflow-x: clip;
}

.temp-body .temp-wrap {
  width: var(--guide-max);
  margin-inline: auto;
  max-width: 100%;
}

.temp-body .temp-main {
  flex: 1;
  padding: clamp(1rem, 2.2vw, 2.5rem) 0 clamp(2rem, 4vw, 4rem);
  min-width: 0;
}

.temp-body h1,
.temp-body h2,
.temp-body h3,
.temp-body p,
.temp-body li,
.temp-body button {
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: manual;
}

.temp-nav-link,
.temp-nav-link * {
  overflow-wrap: normal !important;
  word-break: keep-all !important;
  hyphens: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.muted { color: var(--muted); }
.section-lead {
  color: var(--ink-dim);
  margin: 0 0 1.25rem;
  max-width: 60ch;
}

/* ——— Header / nav scrollable pleine largeur ——— */
.guide-subnav {
  width: 100%;
  margin-left: 0;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  touch-action: pan-x;
  position: sticky;
  top: 0;
  z-index: 40;
}

.guide-subnav-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: safe center;
  gap: 0.4rem;
  width: max-content;
  min-width: 100%;
  margin-inline: auto;
  padding: 0.5rem var(--pad-inline) 0.6rem;
  box-sizing: border-box;
}

.guide-subnav-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--cream);
  font-size: clamp(0.78rem, 0.72rem + 0.25vw, 0.92rem);
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}

.guide-subnav-link .nav-label-full {
  display: none;
}

.guide-subnav-link .nav-label-short {
  display: inline;
}

.guide-subnav-link.is-active {
  color: var(--gold-hi);
  border-color: rgba(247, 185, 10, 0.45);
  background: rgba(247, 185, 10, 0.08);
}

@media (min-width: 900px) {
  .guide-subnav-link .nav-label-full {
    display: inline;
  }
  .guide-subnav-link .nav-label-short {
    display: none;
  }
}

.temp-header {
  overflow: visible;
}

.temp-header-bar {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.temp-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.55rem;
  flex-wrap: wrap;
}

.temp-header .brand {
  flex: 0 1 auto;
}

.temp-site-nav {
  flex: 1 1 auto;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.temp-site-nav > a.is-active:not(.btn-cta) {
  color: var(--gold);
}

.temp-nav {
  width: 100%;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  touch-action: pan-x;
}

.temp-nav-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: safe center;
  gap: 0.4rem;
  width: max-content;
  min-width: 100%;
  margin-inline: auto;
  padding: 0.5rem var(--pad-inline) 0.6rem;
  box-sizing: border-box;
}

.temp-nav-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--cream);
  font-size: clamp(0.78rem, 0.72rem + 0.25vw, 0.92rem);
  font-weight: 600;
  white-space: nowrap;
  overflow: visible;
  overflow-wrap: normal;
  word-break: keep-all;
  line-height: 1.2;
  text-decoration: none;
}

.temp-nav-link .nav-label-full {
  display: none;
  overflow-wrap: normal;
  word-break: keep-all;
}

.temp-nav-link .nav-label-short {
  display: inline;
  overflow-wrap: normal;
  word-break: keep-all;
}

@media (min-width: 900px) {
  .temp-nav {
    overflow-x: visible;
  }

  .temp-nav-track {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: var(--guide-max, 100%);
  }

  .temp-nav-link .nav-label-full { display: inline; }
  .temp-nav-link .nav-label-short { display: none; }
}

/* Mobile / tablette : pastilles centrées, wrap sur plusieurs lignes */
@media (max-width: 899.98px) {
  .temp-nav {
    overflow-x: visible;
  }

  .temp-nav-track {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    row-gap: 0.4rem;
  }
}

.temp-nav-link:hover {
  color: var(--gold-hi);
}

.temp-nav-link.is-active {
  color: var(--gold-hi);
  border-color: rgba(247, 185, 10, 0.45);
  background: rgba(247, 185, 10, 0.08);
}

.temp-footer .footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* ——— Hero blocks ——— */
.guide-hero {
  margin-bottom: clamp(1rem, 2vw, 1.75rem);
  padding: clamp(1rem, 2vw, 1.5rem) clamp(1rem, 2.2vw, 1.75rem);
}

.guide-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 1.1rem + 2vw, 3rem);
  margin: 0.15rem 0 0.55rem;
  line-height: 1.15;
  color: var(--cream);
}

.guide-hero .hero-lead {
  margin: 0;
  color: var(--ink-dim);
  max-width: 62ch;
  font-size: clamp(0.95rem, 0.85rem + 0.35vw, 1.15rem);
}

/* ——— Hub tiles ——— */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
}

.guide-tile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  padding: clamp(0.9rem, 1.5vw, 1.2rem);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    linear-gradient(145deg, rgba(26, 111, 115, 0.18), transparent 55%),
    var(--panel);
  color: inherit;
  min-width: 0;
  transition: border-color 0.2s, transform 0.2s;
}

.guide-tile:hover {
  border-color: rgba(247, 185, 10, 0.5);
  color: inherit;
  transform: translateY(-2px);
}

.guide-tile img {
  width: clamp(2.75rem, 4vw, 3.5rem);
  height: clamp(2.75rem, 4vw, 3.5rem);
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45);
}

.guide-tile-copy {
  min-width: 0;
}

.guide-tile h2 {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.35rem);
  margin: 0 0 0.3rem;
  color: var(--cream);
  line-height: 1.2;
}

.guide-tile p {
  margin: 0;
  color: var(--ink-dim);
  font-size: clamp(0.88rem, 0.82rem + 0.2vw, 1rem);
  line-height: 1.45;
}

/* ——— Class picker ——— */
.class-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr));
  gap: 0.65rem;
  margin: 0.75rem 0 1.25rem;
}

.class-picker-compact {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 7.5rem), 1fr));
}

.class-chip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--cream);
  min-width: 0;
  box-shadow: inset 3px 0 0 color-mix(in srgb, var(--class-accent, var(--teal)) 70%, transparent);
}

.class-chip span {
  min-width: 0;
  font-size: clamp(0.82rem, 0.75rem + 0.25vw, 0.95rem);
  line-height: 1.2;
}

.class-chip img {
  width: 2rem;
  height: 2rem;
  border-radius: 6px;
}

.class-chip:hover,
.class-chip.is-active {
  border-color: color-mix(in srgb, var(--class-accent, var(--gold)) 55%, white);
  color: var(--ink);
  background: rgba(0, 0, 0, 0.28);
}

/* ——— Toolbar ——— */
.calc-toolbar {
  display: grid;
  gap: 1rem;
  padding: clamp(0.9rem, 1.6vw, 1.25rem);
  margin-bottom: 1rem;
  align-items: center;
}

@media (min-width: 900px) {
  .calc-toolbar {
    grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1fr);
  }
}

.calc-who {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  min-width: 0;
}

.calc-who img {
  width: clamp(2.75rem, 4vw, 3.5rem);
  height: clamp(2.75rem, 4vw, 3.5rem);
  border-radius: 8px;
}

.calc-who-copy {
  min-width: 0;
}

.calc-who h1 {
  font-family: var(--font-display);
  margin: 0;
  font-size: clamp(1.35rem, 1rem + 1.2vw, 2rem);
  line-height: 1.15;
  color: var(--cream);
}

.calc-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  justify-content: flex-start;
}

.calc-stats div {
  text-align: center;
  min-width: 4rem;
}

.calc-stats span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.calc-stats b {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.55rem);
  color: var(--gold-hi);
}

.calc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn-ghost.is-on {
  border-color: var(--gold);
  color: var(--gold-hi);
}

.calc-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  align-items: center;
  color: var(--ink-dim);
  font-size: clamp(0.8rem, 0.75rem + 0.2vw, 0.92rem);
  margin: 0 0 1rem;
}

.flag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.flag.new::before { content: "★ "; color: #7dffb0; }
.flag.changed::before { content: "◆ "; color: #7ec8ff; }
.flag.unchanged::before { content: "✓ "; color: #c9b48a; }
.flag.removed::before { content: "✕ "; color: #ff8f86; }

.tip-hint { color: var(--muted); }

/* ——— Tree tabs (mobile / étroit) ——— */
.tree-tabs {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  margin-bottom: 0.85rem;
  padding-bottom: 0.15rem;
  -webkit-overflow-scrolling: touch;
}

.tree-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--cream);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  max-width: 14rem;
}

.tree-tab span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 8rem;
}

.tree-tab img {
  border-radius: 4px;
  flex-shrink: 0;
}

.tree-tab b {
  color: var(--gold);
  font-family: var(--font-display);
}

.tree-tab.is-active {
  border-color: var(--gold);
  color: var(--gold-hi);
  background: rgba(247, 185, 10, 0.08);
}

/* ——— Talent trees ——— */
.talent-trees {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

/* Sur large : 3 colonnes ; sur étroit : 1 arbre via onglets */
@media (min-width: 1100px) {
  .tree-tabs { display: none !important; }
  .talent-trees {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .talent-tree { display: flex !important; }
}

@media (max-width: 1099.98px) {
  .talent-tree { display: none; }
  .talent-tree.is-active-tree { display: flex; }
}

.talent-tree {
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(26, 111, 115, 0.16), transparent 60%),
    var(--surface);
  overflow: hidden;
  min-width: 0;
}

.talent-tree-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.55rem 0.65rem;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.28);
}

.talent-tree-head img {
  border-radius: 6px;
  width: 2.25rem;
  height: 2.25rem;
}

.talent-tree-title {
  min-width: 0;
}

.talent-tree-title h2 {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 0.85rem + 0.35vw, 1.15rem);
  margin: 0;
  line-height: 1.2;
  color: var(--cream);
}

.talent-tree-title .muted {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tree-count {
  font-family: var(--font-display);
  color: var(--gold);
  min-width: 1.5rem;
  text-align: center;
}

.talent-grid-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  padding: clamp(0.85rem, 1.5vw, 1.25rem);
}

.talent-grid {
  --rows: 7;
  display: grid;
  grid-template-columns: repeat(4, var(--node));
  grid-template-rows: repeat(var(--rows), var(--node));
  gap: var(--gap-node);
  margin-inline: auto;
  width: max-content;
  min-height: calc(var(--rows) * var(--node));
}

.heritage-grid {
  grid-template-columns: repeat(4, var(--node));
}

.talent-node {
  position: relative;
  width: var(--node);
  height: var(--node);
  padding: 0;
  border: 2px solid rgba(245, 229, 207, 0.28);
  border-radius: 10px;
  background: #0c0806;
  cursor: pointer;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.5);
}

.talent-node img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0.2) brightness(0.82);
}

.talent-node.has-points {
  border-color: color-mix(in srgb, var(--class-accent, var(--gold)) 65%, #fff);
  box-shadow:
    0 0 0 1px rgba(247, 185, 10, 0.2),
    0 0 16px rgba(26, 111, 115, 0.35);
}

.talent-node.has-points img { filter: none; }
.talent-node.is-max { border-color: var(--gold-hi); }
.talent-node.is-locked { opacity: 0.4; }

.talent-rank {
  position: absolute;
  right: 2px;
  bottom: 1px;
  font-size: clamp(0.58rem, 0.5rem + 0.2vw, 0.72rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px #000;
  background: rgba(0, 0, 0, 0.62);
  padding: 0 3px;
  border-radius: 3px;
  line-height: 1.2;
  max-width: calc(100% - 4px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.talent-placeholder {
  width: var(--node);
  height: var(--node);
}

/* ——— Spellbook ——— */
.spell-filters {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.spell-filters input[type="search"] {
  width: min(100%, 22rem);
  max-width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
  color: var(--ink);
  font: inherit;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ab-chip {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--cream);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font: inherit;
  font-size: clamp(0.78rem, 0.72rem + 0.2vw, 0.88rem);
  cursor: pointer;
  max-width: 100%;
}

.ab-chip span {
  color: var(--muted);
  margin-left: 0.25rem;
}

.ab-chip.active {
  border-color: var(--gold);
  color: var(--gold-hi);
}

.spell-count {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 0.75rem;
}

.spell-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr));
  gap: 0.85rem;
}

.spell-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 0.9rem;
  min-width: 0;
}

.spell-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  margin-bottom: 0.55rem;
}

.spell-card-head img {
  border-radius: 8px;
  width: 3rem;
  height: 3rem;
}

.spell-card-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 0.88rem + 0.3vw, 1.1rem);
  line-height: 1.25;
  color: var(--cream);
}

.spell-desc {
  margin: 0.35rem 0;
  color: var(--ink-dim);
  font-size: clamp(0.88rem, 0.82rem + 0.2vw, 0.98rem);
  line-height: 1.45;
}

.spell-meta {
  margin: 0;
  color: var(--gold);
  font-size: 0.82rem;
}

.ab-pips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0.35rem 0;
}

.ab-pip {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--cream);
  cursor: pointer;
  font-size: 0.75rem;
}

.ab-pip.active {
  border-color: var(--gold);
  color: var(--gold-hi);
}

.empty-note {
  color: var(--muted);
}

/* ——— Raciales / métiers ——— */
.faction-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1.1rem;
}

.faction-tab {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--cream);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  cursor: pointer;
  font: inherit;
}

.faction-tab.is-active {
  border-color: var(--gold);
  color: var(--gold-hi);
}

.faction-panel { display: none; }
.faction-panel.is-active { display: block; }

.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
  gap: 1rem;
}

.info-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 1rem;
  min-width: 0;
}

.info-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  margin-bottom: 0.75rem;
}

.info-card-head img {
  border-radius: 8px;
  width: 2.5rem;
  height: 2.5rem;
}

.info-card-title {
  min-width: 0;
}

.info-card-title h2 {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 0.95rem + 0.35vw, 1.25rem);
  margin: 0;
  line-height: 1.2;
  color: var(--cream);
}

.info-card-title .muted {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  line-height: 1.4;
}

.race-classes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.85rem;
}

.pill {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--cream);
  max-width: 100%;
}

.pill-new {
  border-color: rgba(125, 255, 176, 0.45);
  color: #9dffc2;
}

.ability-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.ability-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
}

.ability-row img {
  border-radius: 6px;
  width: 2.25rem;
  height: 2.25rem;
}

.ability-copy {
  min-width: 0;
}

.ability-name {
  font-weight: 700;
  color: var(--cream);
  line-height: 1.25;
}

.ability-text {
  margin: 0.15rem 0 0;
  color: var(--ink-dim);
  font-size: 0.9rem;
  line-height: 1.45;
}

/* ——— Donjons (groupés par tranche, sans barre d’échelle) ——— */
.dungeon-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.25rem;
}

.dungeon-band {
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.dungeon-band-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--border);
}

.dungeon-band-head h2 {
  font-family: var(--font-display);
  margin: 0;
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.35rem);
  color: var(--gold-hi);
}

.dungeon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  gap: 0.75rem;
}

.dungeon-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(26, 111, 115, 0.14), transparent 55%),
    var(--panel);
  padding: 0.85rem 0.95rem;
  min-width: 0;
}

.dungeon-card.is-new {
  border-color: rgba(125, 255, 176, 0.35);
}

.dungeon-level-badge {
  display: grid;
  justify-items: center;
  gap: 0.1rem;
  min-width: 3.25rem;
  padding: 0.45rem 0.4rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(247, 185, 10, 0.35);
  font-family: var(--font-display);
  line-height: 1.1;
}

.dungeon-lvl-from,
.dungeon-lvl-to {
  color: var(--gold-hi);
  font-size: clamp(0.95rem, 0.85rem + 0.3vw, 1.15rem);
}

.dungeon-lvl-sep {
  color: var(--muted);
  font-size: 0.75rem;
}

.dungeon-card-body {
  min-width: 0;
}

.dungeon-card-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.65rem;
  align-items: flex-start;
  justify-content: space-between;
}

.dungeon-card-top h3 {
  font-family: var(--font-display);
  font-size: clamp(0.98rem, 0.9rem + 0.3vw, 1.15rem);
  margin: 0;
  line-height: 1.25;
  flex: 1 1 8rem;
  min-width: 0;
  color: var(--cream);
}

.dungeon-abbr {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
}

/* ——— Roadmap ——— */
.roadmap {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
}

.roadmap-season-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  margin-bottom: 0.85rem;
}

.roadmap-season-head img {
  border-radius: 6px;
}

.roadmap-season-copy {
  min-width: 0;
}

.roadmap-season-head h2 {
  font-family: var(--font-display);
  margin: 0;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.55rem);
  line-height: 1.2;
  color: var(--cream);
}

.roadmap-entries {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: 0.85rem;
}

.roadmap-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 0.95rem;
  min-width: 0;
}

.roadmap-card.is-launch {
  border-color: rgba(247, 185, 10, 0.55);
  box-shadow: 0 0 24px rgba(247, 185, 10, 0.12);
}

.roadmap-card-date {
  color: var(--gold);
  font-size: 0.82rem;
  margin-bottom: 0.45rem;
}

.roadmap-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 0.55rem;
}

.roadmap-card-head img {
  border-radius: 8px;
  width: 2.5rem;
  height: 2.5rem;
}

.roadmap-card-head h3 {
  font-family: var(--font-display);
  margin: 0;
  font-size: clamp(0.98rem, 0.9rem + 0.3vw, 1.15rem);
  line-height: 1.25;
  color: var(--cream);
}

.roadmap-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-dim);
  font-size: 0.92rem;
}

.roadmap-card li {
  margin: 0.2rem 0;
}

/* ——— Tooltip ——— */
.wf-tooltip {
  position: fixed;
  z-index: 200;
  width: min(20rem, calc(100vw - 1.5rem));
  max-height: min(50vh, 22rem);
  overflow: auto;
  padding: 0.75rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(247, 185, 10, 0.45);
  background: rgba(18, 11, 7, 0.97);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  color: var(--cream);
}

.wf-tip-title {
  font-family: var(--font-display);
  color: var(--gold-hi);
  margin-bottom: 0.25rem;
  line-height: 1.25;
}

.wf-tip-meta {
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 0.4rem;
}

.wf-tip-body {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink-dim);
}

/* ——— 4K / très large ——— */
@media (min-width: 1920px) {
  .temp-body {
    --guide-max: min(100% - 4rem, 100rem);
    --node: clamp(3rem, 1.6vw, 4.5rem);
  }
}

@media (min-width: 2560px) {
  .temp-body {
    --guide-max: min(100% - 5rem, 120rem);
    font-size: 1.05rem;
  }
}

/* Portrait téléphone étroit */
@media (max-width: 420px) {
  .calc-who {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .calc-actions .btn-cta,
  .calc-actions .btn-ghost {
    flex: 1 1 auto;
  }
  .talent-tree-head {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .talent-tree-head .tree-count,
  .talent-tree-head .btn-ghost {
    grid-column: span 1;
  }
}

/* Paysage court (tablette / TV barre) */
@media (max-height: 500px) and (orientation: landscape) {
  .temp-body .temp-main {
    padding-block: 0.75rem 1.25rem;
  }
  .guide-hero {
    padding-block: 0.75rem;
  }
}
