/* =====================================================================
   Aion 2 Builder — thème sombre fantasy (or + bleu céleste)
   ===================================================================== */

:root {
  /* Fonds */
  --bg: #090c15;
  --bg-2: #0f1424;
  --panel: #141a2e;
  --panel-2: #1a2240;
  --panel-3: #222c50;
  --border: #2a3458;
  --border-strong: #3b4878;

  /* Accents */
  --gold: #d4af6a;
  --gold-bright: #f3dba4;
  --gold-dim: #8c7442;
  --sky: #6ec6ff;
  --sky-dim: #2f6f9e;

  /* Texte */
  --text: #e7eaf6;
  --muted: #929bbd;
  --faint: #5f688c;

  /* États */
  --good: #5fd38d;
  --bad: #ff6b6b;

  /* Divers */
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --font-title: "Barlow Condensed", "Arial Narrow", sans-serif; /* redéfini dans harmonisation.css */
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --cls: var(--gold); /* couleur de la classe courante, redéfinie en ligne */
}

*, *::before, *::after { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font: 15px/1.5 var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(110, 198, 255, .13), transparent 60%),
    radial-gradient(900px 480px at 0% 0%, rgba(212, 175, 106, .10), transparent 60%),
    linear-gradient(var(--bg), var(--bg-2));
  background-attachment: fixed;
}

h1, h2, h3 { font-family: var(--font-title); font-weight: 700; letter-spacing: .03em; margin: 0; }
h1 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); color: var(--gold-bright); }
h2 { font-size: 1.1rem; color: var(--gold); }
p { margin: 0 0 .6em; }
a { color: var(--sky); }
code, pre, kbd { font-family: ui-monospace, Consolas, monospace; }
pre { background: var(--bg); border: 1px solid var(--border); padding: 10px 12px; border-radius: var(--radius-sm); overflow-x: auto; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }

/* ---------- Barre supérieure et menu : voir guide/css/navigation.css et css/harmonisation.css ---------- */

/* ---------- Mise en page générale ---------- */

.view { flex: 1; width: 100%; max-width: 1320px; margin: 0 auto; padding: clamp(14px, 3vw, 32px); }
.page-head { margin-bottom: 22px; }
.page-head p { color: var(--muted); }
.page-head .toolbar { margin-top: 12px; }
.loading { color: var(--muted); text-align: center; padding: 60px 0; }

.footer { padding: 18px clamp(12px, 3vw, 32px); border-top: 1px solid var(--border); color: var(--faint); font-size: .8rem; text-align: center; }
.footer p { margin: 0; }
.footer strong { color: var(--muted); }

.panel {
  background: linear-gradient(180deg, var(--panel), rgba(20, 26, 46, .85));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.panel-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.panel-head h2 { margin-right: auto; }
.sub-head { font: 700 .78rem var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--sky); margin: 16px 0 8px; }
.sub-head .count { color: var(--muted); letter-spacing: 0; }
.hint { color: var(--faint); font-size: .82rem; margin: 10px 0 0; }
.panel-head .hint { margin: 0; }

.notice { max-width: 620px; margin: 40px auto; padding: 26px; text-align: center; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); }
.notice h2 { margin-bottom: 10px; }
.notice p { color: var(--muted); }
.notice pre { text-align: left; }

/* ---------- Boutons et champs ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--panel-2); color: var(--text);
  font: 600 .88rem var(--font-body); text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { background: var(--panel-3); border-color: var(--sky-dim); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: linear-gradient(180deg, #e3c283, #b8924c); border-color: var(--gold-bright); color: #1c1403; }
.btn-primary:hover { background: linear-gradient(180deg, #f3dba4, #c9a35c); border-color: #fff3d1; }
.btn-danger { color: var(--bad); border-color: rgba(255, 107, 107, .4); }
.btn-danger:hover { background: rgba(255, 107, 107, .12); border-color: var(--bad); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); }
.btn-sm { padding: 5px 10px; font-size: .8rem; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; }

.input {
  width: 100%; padding: 8px 10px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--bg); color: var(--text);
  font: inherit;
}
.input:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(110, 198, 255, .18); }
textarea.input { resize: vertical; min-height: 44px; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field > span { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.icon {
  flex: none; display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 8px; font-size: 1.4rem; line-height: 1;
  background: radial-gradient(circle at 30% 25%, var(--panel-3), var(--bg));
  border: 1px solid var(--border-strong);
}

.stepper { display: inline-flex; align-items: center; flex: none; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; background: var(--bg); }
.stepper button { width: 30px; height: 32px; border: 0; background: var(--panel-2); color: var(--gold-bright); font: 700 1.05rem var(--font-body); cursor: pointer; }
.stepper button:hover:not(:disabled) { background: var(--gold-dim); color: #fff; }
.stepper button:disabled { color: var(--faint); cursor: not-allowed; opacity: .6; }
.stepper .rank { min-width: 40px; padding: 0 6px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; font-size: .88rem; }

/* ---------- Sélection de classe ---------- */

.class-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.class-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 20px 18px; text-align: left; cursor: pointer;
  color: var(--text); font: inherit;
  background: linear-gradient(160deg, color-mix(in srgb, var(--cls) 14%, var(--panel)), var(--panel) 55%);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.class-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--cls); }
.class-card:hover, .class-card:focus-visible { transform: translateY(-4px); border-color: var(--cls); box-shadow: 0 14px 34px rgba(0, 0, 0, .55), 0 0 22px color-mix(in srgb, var(--cls) 30%, transparent); }
.class-icon { font-size: 2.6rem; line-height: 1; filter: drop-shadow(0 4px 10px color-mix(in srgb, var(--cls) 60%, transparent)); }
.class-name { font: 700 1.3rem var(--font-title); color: var(--gold-bright); letter-spacing: .04em; }
.role-tag { padding: 2px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; color: var(--cls); border: 1px solid color-mix(in srgb, var(--cls) 55%, transparent); background: color-mix(in srgb, var(--cls) 12%, transparent); }
.class-weapon { color: var(--sky); font-size: .85rem; font-weight: 600; }
.class-desc { color: var(--muted); font-size: .84rem; }

/* ---------- Éditeur ---------- */

.editor { display: flex; flex-direction: column; gap: 16px; }
.editor-head { display: grid; grid-template-columns: auto 1fr; gap: 14px 22px; align-items: start; border-top: 3px solid var(--cls); }
.class-badge { display: flex; align-items: center; gap: 12px; }
.class-badge .icon { width: 56px; height: 56px; font-size: 1.9rem; border-color: var(--cls); box-shadow: 0 0 18px color-mix(in srgb, var(--cls) 35%, transparent); }
.class-badge strong { display: block; font: 700 1.25rem var(--font-title); color: var(--gold-bright); }
.class-badge span:not(.icon) { color: var(--cls); font-size: .84rem; font-weight: 600; }
.meta-fields { display: grid; grid-template-columns: 1fr 150px; gap: 10px 12px; }
.field-desc { grid-column: 1 / -1; }
.editor-head .toolbar { grid-column: 1 / -1; }

.editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.editor-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.stats-panel { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow-y: auto; }

.tabs { display: flex; gap: 6px; margin-bottom: -17px; position: relative; z-index: 1; padding-left: 8px; overflow-x: auto; }
.tab {
  padding: 9px 18px; border: 1px solid var(--border); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0;
  background: var(--bg-2); color: var(--muted); font: 700 .9rem var(--font-title); letter-spacing: .04em; cursor: pointer; white-space: nowrap;
}
.tab:hover { color: var(--text); }
.tab.active { background: var(--panel); color: var(--gold-bright); box-shadow: inset 0 2px 0 var(--gold); }

/* Compétences */
.points { color: var(--muted); font-size: .9rem; }
.points b { color: var(--gold-bright); font-size: 1.1rem; }
.points.over b { color: var(--bad); }
.points-bar { height: 5px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.points-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-dim), var(--gold-bright)); transition: width .2s; }
.tier { margin-top: 16px; }
.tier-label { font: 700 .76rem var(--font-title); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.tier-label::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--border), transparent); }
.skill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 10px; }
.skill {
  min-width: 0;
  display: flex; align-items: center; gap: 10px; padding: 9px 10px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color .15s, background .15s;
}
.skill:hover { border-color: var(--border-strong); }
.skill.passive .icon { border-radius: 50%; }
.skill.learned { border-color: var(--gold-dim); background: linear-gradient(90deg, rgba(212, 175, 106, .10), var(--bg-2) 70%); }
.skill.learned .icon { border-color: var(--gold); }
.skill.maxed .rank { color: var(--gold-bright); }
.skill.locked { opacity: .55; }
.skill.locked .icon { filter: grayscale(1); }
.skill[draggable="true"] { cursor: grab; }
.skill-body { flex: 1; min-width: 0; }
.skill-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.skill-meta { color: var(--muted); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.skill-meta .req { color: var(--faint); }
.skill.passive .skill-meta { color: var(--sky); }

/* Stigmas */
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.slot {
  min-width: 0;
  display: flex; align-items: center; gap: 10px; padding: 10px; cursor: pointer;
  background: var(--bg-2); border: 1px dashed var(--border-strong); border-radius: var(--radius-sm);
  transition: border-color .15s, background .15s;
}
.slot:hover { border-color: var(--sky); background: var(--panel-2); }
.slot.filled { border-style: solid; border-color: var(--sky-dim); background: linear-gradient(90deg, rgba(110, 198, 255, .10), var(--bg-2) 70%); }
.slot.filled .icon { border-color: var(--sky); }
.slot.empty { color: var(--faint); }
.slot.empty .icon { font-size: 1.1rem; color: var(--faint); }
.slot-name { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* Équipement */
.gear-list { display: flex; flex-direction: column; gap: 8px; }
.gear-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; }
.gear-label { color: var(--muted); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.gear-item {
  display: flex; align-items: center; gap: 10px; min-width: 0; padding: 6px 10px 6px 6px; text-align: left; cursor: pointer;
  background: var(--bg-2); border: 1px dashed var(--border-strong); border-radius: var(--radius-sm);
  color: var(--faint); font: inherit;
}
.gear-item .icon { width: 36px; height: 36px; font-size: 1.2rem; }
.gear-item:hover { border-color: var(--sky); background: var(--panel-2); }
.gear-item.filled { border-style: solid; border-color: color-mix(in srgb, var(--rarity) 45%, var(--border)); color: var(--rarity); font-weight: 700; }
.gear-item.filled .icon { border-color: var(--rarity); }
.gear-item:not(.filled) .icon { filter: grayscale(1); opacity: .5; }
.gear-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gear-name b { color: var(--good); }
.stones { display: flex; gap: 4px; min-width: 132px; }
.stone {
  width: 30px; height: 30px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1px dashed var(--border-strong); background: var(--bg); color: var(--faint); font-size: .85rem; line-height: 1;
}
.stone:hover { border-color: var(--sky); color: var(--sky); }
.stone.filled { border-style: solid; border-color: var(--sky-dim); }

/* Barre de raccourcis */
.hotbar { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; max-width: 640px; }
.hot-slot {
  position: relative; aspect-ratio: 1; display: grid; place-items: center; cursor: pointer;
  background: radial-gradient(circle at 30% 25%, var(--panel-2), var(--bg));
  border: 1px solid var(--border-strong); border-radius: 8px;
  transition: border-color .15s, box-shadow .15s, transform .1s;
}
.hot-slot .icon { width: 100%; height: 100%; border: 0; background: none; font-size: clamp(1rem, 3.4vw, 1.6rem); }
.hot-slot kbd { position: absolute; top: 2px; left: 5px; font-size: .68rem; font-weight: 700; color: var(--gold); pointer-events: none; }
.hot-slot:hover { border-color: var(--gold); }
.hot-slot.filled { border-color: var(--gold-dim); box-shadow: inset 0 0 12px rgba(212, 175, 106, .18); cursor: grab; }
.hot-slot.filled.stigma { border-color: var(--sky-dim); box-shadow: inset 0 0 12px rgba(110, 198, 255, .2); }
.dragging .hot-slot { border-color: var(--sky); border-style: dashed; }
.hot-slot.drop-over { border-style: solid; border-color: var(--sky); box-shadow: 0 0 16px rgba(110, 198, 255, .55); transform: scale(1.06); }

/* Statistiques */
.stat-group:first-of-type .sub-head { margin-top: 0; }
.stat-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: baseline; padding: 4px 0; border-bottom: 1px solid rgba(42, 52, 88, .5); }
.stat-row.zero { opacity: .4; }
.stat-label { color: var(--muted); }
.stat-val { min-width: 62px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--gold-bright); }
.stat-delta { font-size: .78rem; font-weight: 600; color: var(--good); font-variant-numeric: tabular-nums; }

/* ---------- Mes builds ---------- */

.build-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.build-card, .cmp-card {
  display: flex; flex-direction: column; gap: 10px; padding: 16px;
  background: var(--panel); border: 1px solid var(--border); border-left: 3px solid var(--cls); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.build-card-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.build-card-head .icon { border-color: var(--cls); }
.build-card-head > div { min-width: 0; }
.build-card-head h2 { color: var(--gold-bright); overflow-wrap: anywhere; }
.build-card-head p { margin: 0; color: var(--muted); font-size: .85rem; }
.ctx-tag { padding: 1px 8px; border-radius: 999px; border: 1px solid var(--sky-dim); color: var(--sky); font-size: .74rem; font-weight: 700; }
.build-desc { margin: 0; color: var(--muted); font-size: .86rem; white-space: pre-line; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.build-date { margin: 0; color: var(--faint); font-size: .78rem; }
.build-card .toolbar { margin-top: auto; }

/* ---------- Comparateur ---------- */

.cmp-heads { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.cmp-card { position: relative; padding-top: 20px; }
.cmp-letter { position: absolute; top: -12px; left: 14px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: #1c1403; font: 700 .9rem var(--font-title); }
.cmp-table-wrap { padding: 4px 0; overflow-x: auto; }
.cmp-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.cmp-table th, .cmp-table td { padding: 7px 16px; text-align: right; border-bottom: 1px solid rgba(42, 52, 88, .5); }
.cmp-table th:first-child { text-align: left; font-weight: 500; color: var(--muted); }
.cmp-table thead th { font: 700 .78rem var(--font-title); letter-spacing: .1em; color: var(--gold); }
.cmp-group th { padding-top: 14px; font: 700 .74rem var(--font-body) !important; letter-spacing: .12em; text-transform: uppercase; color: var(--sky) !important; border-bottom-color: var(--border); }
.cmp-table td.best { color: var(--gold-bright); font-weight: 700; }
.diff { font-weight: 700; white-space: nowrap; }
.diff.up { color: var(--good); }
.diff.down { color: var(--bad); }
.diff.same { color: var(--faint); }

/* ---------- Fenêtre de sélection ---------- */

.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(4, 6, 12, .72); backdrop-filter: blur(3px); }
.modal {
  width: min(520px, 100%); max-height: min(640px, 88vh); display: flex; flex-direction: column; gap: 10px; padding: 16px;
  background: var(--panel); border: 1px solid var(--gold-dim); border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0, 0, 0, .7);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.modal-head h3 { color: var(--gold-bright); font-size: 1.05rem; }
.picker-list { display: flex; flex-direction: column; gap: 6px; overflow-y: auto; padding-right: 4px; }
.picker-opt {
  display: flex; align-items: center; gap: 10px; padding: 7px; text-align: left; cursor: pointer;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font: inherit;
}
.picker-opt:hover, .picker-opt:focus-visible { border-color: var(--sky); background: var(--panel-2); }
.picker-opt .icon { width: 38px; height: 38px; font-size: 1.25rem; }
.picker-text { display: flex; flex-direction: column; min-width: 0; }
.picker-name { font-weight: 700; }
.picker-sub { color: var(--muted); font-size: .78rem; }
.picker-clear { color: var(--bad); }
.picker-clear .picker-name { font-weight: 600; }
.empty { color: var(--muted); text-align: center; padding: 18px 0; margin: 0; }

/* ---------- Infobulle MMO ---------- */

.tooltip {
  position: fixed; z-index: 100; top: 0; left: 0; width: max-content; max-width: min(320px, calc(100vw - 24px));
  padding: 12px 14px; pointer-events: none; font-size: .84rem;
  background: linear-gradient(180deg, rgba(16, 21, 40, .98), rgba(8, 11, 22, .98));
  border: 1px solid var(--gold-dim); border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .8), 0 12px 32px rgba(0, 0, 0, .7), inset 0 0 24px rgba(110, 198, 255, .05);
}
.tt-head { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
.tt-icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; font-size: 1.3rem; border-radius: 6px; background: var(--bg); border: 1px solid var(--border-strong); }
.tt-name { font: 700 1rem var(--font-title); color: var(--gold-bright); }
.tt-ench { color: var(--good); }
.tt-sub { color: var(--muted); font-size: .76rem; }
.tt-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; margin: 0 0 8px; }
.tt-meta div { display: flex; justify-content: space-between; gap: 8px; }
.tt-meta dt { color: var(--faint); }
.tt-meta dd { margin: 0; color: var(--text); }
.tt-desc { margin: 0 0 6px; }
.tt-val { color: var(--gold-bright); }
.tt-dim { color: var(--faint); }
.tt-dim .tt-val { color: var(--muted); }
.tt-next { margin: 8px 0 2px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sky); }
.tt-stats, .tt-stones { list-style: none; margin: 0 0 6px; padding: 0; }
.tt-stats li { color: var(--sky); }
.tt-stats b { color: #fff; }
.tt-bonus { color: var(--good); }
.tt-stones { padding-top: 6px; border-top: 1px solid var(--border); }
.tt-req { margin: 4px 0 0; font-size: .8rem; }
.tt-req.ok { color: var(--good); }
.tt-req.ko { color: var(--bad); }
.tt-flavor { margin: 8px 0 0; font-style: italic; color: var(--gold); }
.tt-hint { margin: 8px 0 0; font-size: .74rem; color: var(--faint); }

/* ---------- Notifications ---------- */

.toasts { position: fixed; z-index: 120; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; width: min(92vw, 460px); pointer-events: none; }
.toast { padding: 10px 16px; border-radius: var(--radius-sm); background: var(--panel-3); border: 1px solid var(--sky-dim); box-shadow: var(--shadow); font-weight: 600; text-align: center; animation: toast-in .25s ease-out; transition: opacity .4s, transform .4s; }
.toast.success { border-color: var(--good); }
.toast.error { border-color: var(--bad); }
.toast.out { opacity: 0; transform: translateY(8px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .editor-grid { grid-template-columns: 1fr; }
  .stats-panel { position: static; max-height: none; }
}

@media (max-width: 720px) {
  .editor-head { grid-template-columns: 1fr; }
  .meta-fields { grid-template-columns: 1fr; }
  .gear-row { grid-template-columns: minmax(0, 1fr) auto; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
  .gear-label { grid-column: 1 / -1; }
  .stones { grid-column: 1 / -1; min-width: 0; }
  .hotbar { grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 360px; }
  .cmp-heads { grid-template-columns: 1fr; }
  .cmp-table th, .cmp-table td { padding: 7px 10px; }
  .skill-grid { grid-template-columns: minmax(0, 1fr); }
  .build-list { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
