/* =====================================
   VARIABLES DU MODE SOMBRE
===================================== */

:root {
  --background: #07131d;
  --background-secondary: #0b1c29;
  --surface: #102635;
  --surface-hover: #163345;

  --text: #f5fbff;
  --text-secondary: #b2c4cf;

  --accent: #28d9c5;
  --accent-hover: #55ead8;
  --accent-text: #041816;
  --accent-warm: #e9b84a;

  --border: #244255;
  --shadow: rgba(0, 7, 14, 0.38);

  --header-background: rgba(7, 19, 29, 0.92);
}

/* =====================================
   VARIABLES DU MODE CLAIR
===================================== */

body.light-theme {
  --background: #eef6f7;
  --background-secondary: #deedf0;
  --surface: #ffffff;
  --surface-hover: #eaf8f7;

  --text: #10242d;
  --text-secondary: #536d77;

  --accent: #087f78;
  --accent-hover: #066b66;
  --accent-text: #ffffff;
  --accent-warm: #a86f08;

  --border: #c4d9dd;
  --shadow: rgba(17, 59, 70, 0.14);

  --header-background: rgba(238, 246, 247, 0.94);
}

/* =====================================
   RÉGLAGES GÉNÉRAUX
===================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  background-color: var(--background);
  color: var(--text);

  font-family:
    "Atkinson Hyperlegible",
    Arial,
    sans-serif;

  font-size: 17px;
  line-height: 1.6;

  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

button,
input {
  font: inherit;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

/* =====================================
   EN-TÊTE
===================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;

  min-height: 78px;
  padding: 14px max(22px, calc((100% - 1160px) / 2));

  display: flex;
  align-items: center;
  gap: 28px;

  background-color: var(--header-background);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);

  transition:
    background-color 0.3s ease,
    border-color 0.3s ease;
}

.logo {
  margin-right: auto;

  color: var(--accent);

  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

body:not(.build-body) .logo {
  color: var(--accent-warm);
}

.navigation {
  display: flex;
  align-items: center;
  gap: 28px;
}

.navigation a {
  position: relative;

  color: var(--text-secondary);

  font-size: 15px;
  font-weight: 700;

  transition: color 0.2s ease;
}

.navigation a::after {
  content: "";

  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;

  height: 2px;

  background-color: var(--accent);

  transform: scaleX(0);
  transform-origin: center;

  transition: transform 0.2s ease;
}

.navigation a:hover {
  color: var(--text);
}

.navigation a:hover::after {
  transform: scaleX(1);
}

/* =====================================
   PAGE BUILD
===================================== */
.build-body {
  --background: #12100e;
  --background-secondary: #211d18;
  --surface: #2a2520;
  --surface-hover: #342e27;
  --text: #fffaf0;
  --text-secondary: #c9bdad;
  --accent: #e7ad3a;
  --accent-hover: #f3c45d;
  --accent-text: #21170a;
  --border: #4b4238;
  --shadow: rgba(0, 0, 0, 0.42);
  --header-background: rgba(18, 16, 14, 0.94);

  font-family: "Nunito Sans", "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  letter-spacing: 0.005em;
}
.build-body.light-theme {
  --background: #eee8de;
  --background-secondary: #e2d8c9;
  --surface: #fffaf2;
  --surface-hover: #f5ead9;
  --text: #29231d;
  --text-secondary: #675d50;
  --accent: #a76608;
  --accent-hover: #895204;
  --accent-text: #ffffff;
  --border: #cfc0ab;
  --shadow: rgba(60, 42, 24, 0.15);
  --header-background: rgba(238, 232, 222, 0.95);
}
.build-body button,
.build-body input,
.build-body select {
  font-family: inherit;
}
.build-body .navigation a,
.build-body .theme-button {
  font-size: 16px;
}
.build-body .stat-row,
.build-body .special-stat-list li,
.build-body .equipment-slot strong {
  font-size: 13px;
}
.build-body .stat-group h3,
.build-body .eyebrow {
  letter-spacing: 0.1em;
}
.build-page { width: min(1580px, calc(100% - 36px)); margin: auto; padding: 28px 0 70px; }
.build-heading { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 18px; }
.build-heading h1 { max-width: none; font-size: clamp(38px, 4vw, 58px); line-height: 1; }
.build-heading p:not(.eyebrow) { max-width: 680px; margin: 8px 0 0; color: var(--text-secondary); font-size: 15px; }
.build-heading .eyebrow { margin-bottom: 7px; }
.build-actions { display: flex; gap: 10px; flex-shrink: 0; }
.build-button { min-height: 46px; padding: 10px 17px; border: 1px solid var(--border); border-radius: 7px; font-weight: 700; cursor: pointer; }
.build-button.secondary { background: var(--surface); color: var(--text); }
.build-button.primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.build-profile { margin-bottom: 12px; padding: 12px 15px; display: grid; grid-template-columns: 2fr 1fr 160px; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; }
.build-profile label { color: var(--text-secondary); font-size: 12px; font-weight: 700; }
.build-profile input, .build-profile select, .catalog-tools input { width: 100%; min-height: 46px; margin-top: 5px; padding: 10px 12px; background: var(--background-secondary); color: var(--text); border: 1px solid var(--border); border-radius: 7px; }
.build-meta-panel { margin-bottom: 14px; padding: 15px; display: grid; grid-template-columns: minmax(320px, 1.2fr) 1fr; gap: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; }
.build-meta-panel > label { display: grid; gap: 6px; color: var(--text-secondary); font-size: 13px; font-weight: 800; }
.build-meta-panel textarea { width: 100%; min-height: 92px; padding: 11px 13px; resize: vertical; background: var(--background-secondary); color: var(--text); border: 1px solid var(--border); border-radius: 7px; font: inherit; }
.build-tags { margin: 0; padding: 10px 12px; display: flex; align-content: start; flex-wrap: wrap; gap: 8px; border: 1px solid var(--border); border-radius: 8px; }
.build-tags legend { padding: 0 6px; color: var(--text-secondary); font-size: 13px; font-weight: 800; }
.build-tags label { padding: 6px 9px; display: flex; align-items: center; gap: 5px; background: var(--background-secondary); border: 1px solid var(--border); border-radius: 999px; font-size: 12px; cursor: pointer; }
.build-tags input { accent-color: var(--accent); }
.parchment-panel { margin-bottom: 22px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 11px; }
.parchment-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 15px; }
.characteristic-budget { min-width: 150px; padding: 10px 13px; display: grid; justify-items: end; background: color-mix(in srgb, var(--accent) 10%, var(--background-secondary)); border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--border)); border-radius: 9px; }
.characteristic-budget strong { color: var(--accent); font-size: 25px; line-height: 1; }
.characteristic-budget span { margin-top: 4px; color: var(--text-secondary); font-size: 11px; font-weight: 800; }
.characteristic-budget.budget-empty { border-color: #d96666; }
.characteristic-budget.budget-empty strong { color: #ef7777; }
.parchment-heading .eyebrow { margin-bottom: 4px; }
.parchment-heading h2 { margin: 0; font-size: 25px; }
.parchment-heading small { color: var(--text-secondary); }
.parchment-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px; }
.parchment-field { padding: 9px 10px; display: grid; gap: 7px; background: var(--background-secondary); border: 1px solid var(--border); border-radius: 7px; color: var(--text-secondary); font-size: 12px; font-weight: 700; }
.parchment-field .base-cost { grid-column: 1 / -1; color: var(--text-secondary); font-size: 10px; text-align: right; }
.parchment-inputs { display: grid; grid-template-columns: auto 1fr auto 1fr; align-items: center; gap: 5px; }
.parchment-inputs small { color: var(--text-secondary); font-size: 9px; }
.parchment-field input { width: 100%; min-width: 0; min-height: 38px; padding: 6px; background: var(--surface); color: var(--accent); border: 1px solid var(--border); border-radius: 6px; text-align: center; font-weight: 700; }
.parchment-field input:focus { border-color: var(--accent); }
.build-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(390px, 1fr); align-items: start; gap: 22px; }
.build-layout-compact { grid-template-columns: minmax(335px, .76fr) minmax(620px, 1.44fr) minmax(320px, .85fr); gap: 14px; }
.stats-column { display: grid; align-content: start; gap: 12px; }
.stats-column .parchment-panel { margin: 0; padding: 12px; box-shadow: 0 12px 35px var(--shadow); }
.stats-column .parchment-heading { margin-bottom: 10px; align-items: stretch; flex-direction: column; gap: 8px; }
.stats-column .parchment-heading h2 { font-size: 18px; }
.stats-column .characteristic-budget { min-width: 0; grid-template-columns: auto 1fr; align-items: baseline; justify-items: start; gap: 7px; }
.stats-column .parchment-grid { grid-template-columns: 1fr; gap: 5px; }
.stats-column .parchment-field { padding: 6px 8px; grid-template-columns: 100px 1fr; align-items: center; }
.stats-column .parchment-grid { gap: 3px; }
.characteristics-table-head,
.stats-column .characteristic-row { display: grid; grid-template-columns: 48px minmax(98px, 1fr) 53px 57px 57px; align-items: center; gap: 5px; }
.characteristics-table-head { padding: 1px 5px 9px; color: color-mix(in srgb, var(--text) 88%, var(--accent)); font-size: 12px; font-weight: 900; line-height: 1.15; letter-spacing: .01em; text-align: center; }
.characteristics-table-head span:first-child { padding-right: 5px; text-align: right; }
.characteristics-table-head span:nth-child(2) { padding-left: 5px; text-align: left; }
.stats-column .characteristic-row { min-height: 41px; padding: 4px 5px; background: transparent; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--border) 65%, transparent); border-radius: 0; }
.stats-column .characteristic-row:hover { background: color-mix(in srgb, var(--accent) 5%, var(--background-secondary)); }
.characteristic-row .character-total { padding-right: 5px; color: var(--text); font-size: 15.5px; text-align: right; }
.character-label { min-width: 0; padding-left: 5px; display: grid; grid-template-columns: 19px minmax(0, 1fr); align-items: center; gap: 7px; color: var(--text); }
.character-label i { font-family: "Segoe UI Symbol", "Noto Sans Symbols", sans-serif; font-size: 16px; font-style: normal; font-weight: 900; text-align: center; }
.character-label span { overflow: hidden; font-size: 12.5px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.characteristics-table-head span:nth-child(3),
.equipment-stat { padding-right: 5px; text-align: center; }
.equipment-stat { color: color-mix(in srgb, var(--accent) 70%, #74c7f0); font-size: 14.5px; }
.stats-column .characteristic-row input,
.readonly-stat { width: 100%; min-width: 0; min-height: 31px; padding: 3px; display: grid; place-items: center; background: color-mix(in srgb, var(--surface) 86%, var(--background)); color: var(--text); border: 1px solid color-mix(in srgb, var(--border) 80%, var(--text-secondary)); border-radius: 5px; font-size: 13px; font-weight: 800; text-align: center; }
.stats-column .characteristic-row input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 12%, transparent); outline: 0; }
.characteristic-row .base-cost { display: none; }
.characteristic-readonly { opacity: .9; }
.readonly-stat { color: var(--text-secondary); }
.characteristic-vitalite .character-label i { color: #ef4f67; }
.characteristic-sagesse .character-label i { color: #8062cf; }
.characteristic-force .character-label i { color: #b9903d; }
.characteristic-intelligence .character-label i { color: #f07836; }
.characteristic-chance .character-label i { color: #53b8e8; }
.characteristic-agilite .character-label i { color: #83c967; }
.characteristic-puissance .character-label i { color: #f0c53e; }
.characteristic-vitalite .character-label i,
.characteristic-sagesse .character-label i,
.characteristic-force .character-label i,
.characteristic-intelligence .character-label i,
.characteristic-chance .character-label i,
.characteristic-agilite .character-label i,
.characteristic-puissance .character-label i { width: 19px; height: 19px; display: block; background-position: center; background-repeat: no-repeat; background-size: 19px 19px; color: transparent; font-size: 0; text-indent: -9999px; }
.characteristic-vitalite .character-label i { background-image: url("assets/stat-vitality.png"); }
.characteristic-sagesse .character-label i { background-image: url("assets/stat-wisdom.png"); }
.characteristic-force .character-label i { background-image: url("assets/stat-strength.png"); }
.characteristic-intelligence .character-label i { background-image: url("assets/stat-intelligence.png"); }
.characteristic-chance .character-label i { background-image: url("assets/stat-chance.png"); }
.characteristic-agilite .character-label i { background-image: url("assets/stat-agility.png"); }
.characteristic-puissance .character-label i { background-image: url("assets/stat-power.png"); }
.parchment-stat-name { display: flex; align-items: center; justify-content: space-between; gap: 5px; color: var(--text); }
.parchment-stat-name strong { color: var(--accent); font-size: 15px; }
.equipment-panel, .stats-panel, .catalog-drawer { padding: 25px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 18px 50px var(--shadow); }
.stats-panel { position: sticky; top: 100px; }
.panel-title, .catalog-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.panel-title .eyebrow, .catalog-header .eyebrow { margin-bottom: 5px; }
.panel-title h2, .catalog-header h2 { margin: 0; font-size: 28px; }
.panel-title small { color: var(--text-secondary); }
.equipment-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.equipment-slot { min-width: 0; min-height: 125px; padding: 12px 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; color: var(--text); background: var(--background-secondary); border: 1px solid var(--border); border-radius: 9px; cursor: pointer; }
.equipment-slot:hover, .equipment-slot.filled { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.equipment-slot img { width: 62px; height: 62px; object-fit: contain; }
.slot-icon { width: 50px; height: 50px; display: grid; place-items: center; color: var(--accent); border: 1px dashed var(--border); border-radius: 50%; font-size: 24px; }
.equipment-slot > .slot-copy { min-width: 0; width: 100%; display: grid; text-align: center; }
.equipment-slot small { color: var(--text-secondary); font-size: 10px; text-transform: uppercase; }
.equipment-slot > .slot-copy strong { white-space: normal; overflow-wrap: anywhere; font-size: 13px; line-height: 1.1; }
.equipment-slot em { color: var(--accent); font-size: 10px; font-style: normal; }
.equipment-slot .item-level {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 8;
  padding: 3px 6px;
  background: color-mix(in srgb, var(--background) 88%, transparent);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 70%, var(--border));
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
  box-shadow: 0 3px 9px rgba(0, 0, 0, .35);
}
.stats-dashboard { display: grid; gap: 12px; }
.stat-group { overflow: hidden; background: var(--background-secondary); border: 1px solid var(--border); border-radius: 8px; }
.stat-group h3 { margin: 0; padding: 8px 11px; color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); border-bottom: 1px solid var(--border); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.stat-group-grid { padding: 7px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; }
.stat-row { min-width: 0; padding: 6px; display: grid; grid-template-columns: 21px 1fr auto; align-items: center; gap: 5px; border-radius: 5px; font-size: 12px; }
.stat-row:hover { background: var(--surface-hover); }
.stat-icon { color: var(--accent); font-family: "Segoe UI Symbol", "Noto Sans Symbols", sans-serif; font-size: 16px; font-weight: 800; line-height: 1; text-align: center; text-shadow: 0 2px 5px rgba(0,0,0,.35); }
.stat-row strong { color: var(--accent); }
.stat-row small { grid-column: 2 / 4; color: var(--text-secondary); font-size: 9px; }
.stats-column-left .stat-group-grid { grid-template-columns: 1fr 1fr; }
.stats-column-left .stat-row { grid-template-columns: 20px 1fr auto; }
.stats-column-right .stat-group-grid { grid-template-columns: 1fr 1fr; }
.stat-group-special { margin-top: 0; }
.stat-group-summary { padding: 10px; background: linear-gradient(145deg, color-mix(in srgb, var(--surface) 88%, #4b4031), var(--background-secondary)); }
.summary-build-name { min-height: 38px; padding: 7px 11px; display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--text); background: color-mix(in srgb, var(--background) 72%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border)); border-radius: 6px; font-family: Georgia, "Times New Roman", serif; font-size: 14px; font-weight: 700; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.stat-group-summary .stat-group-grid { padding: 12px 13px 2px; grid-template-columns: 1fr 1fr; gap: 3px 20px; }
.stat-group-summary .stat-row { min-height: 29px; padding: 2px 0; grid-template-columns: 40px 20px minmax(0, 1fr); gap: 4px; }
.stat-group-summary .stat-row:hover { background: rgba(255, 255, 255, .035); transform: none; }
.stat-group-summary .stat-row strong { grid-column: 1; grid-row: 1; color: var(--text); font-size: 15px; font-weight: 900; text-align: right; }
.stat-group-summary .stat-icon { grid-column: 2; grid-row: 1; font-size: 18px; font-weight: 900; line-height: 1; text-shadow: 0 2px 7px rgba(0, 0, 0, .45); }
.stat-group-summary .stat-label { grid-column: 3; grid-row: 1; overflow: hidden; color: var(--text); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.stat-group-summary .stat-vitalite .stat-icon { color: #ef4f67; }
.stat-group-summary .stat-initiative .stat-icon { color: #9c59cf; }
.stat-group-summary .stat-prospection .stat-icon { color: #55bfe7; }
.stat-group-summary .stat-critique .stat-icon { color: #f04444; }
.stat-group-summary .stat-pa .stat-icon { color: #53bde5; }
.stat-group-summary .stat-invocation .stat-icon { width: 18px; height: 18px; display: grid; place-items: center; background: #e9873e; color: #2b180b; border-radius: 5px; font-family: "Segoe UI Symbol", "Noto Sans Symbols", sans-serif; font-size: 13px; box-shadow: inset 0 1px rgba(255,255,255,.28), 0 2px 6px rgba(0,0,0,.35); }
.stat-group-summary .stat-pm .stat-icon { color: #6fc75d; }
.stat-group-summary .stat-soins .stat-icon { color: #f14e5d; }
.stat-group-summary .stat-portee .stat-icon { color: #29bba9; }
.stat-group-caracteristiques .stat-sagesse .stat-icon { color: #8062cf; }
.stat-group-caracteristiques .stat-force .stat-icon { color: #b9903d; }
.stat-group-caracteristiques .stat-intelligence .stat-icon { color: #f07836; }
.stat-group-caracteristiques .stat-chance .stat-icon { color: #53b8e8; }
.stat-group-caracteristiques .stat-agilite .stat-icon { color: #83c967; }
.stat-group-caracteristiques .stat-puissance .stat-icon { color: #f0c53e; }
.stat-fuite .stat-icon { color: #55c878; font-size: 18px; font-weight: 900; }
.stat-tacle .stat-icon { color: #e8c943; font-size: 17px; text-shadow: 1px 1px #9a6724; }
.stat-esquive-pa .stat-icon { color: #45b8e7; font-size: 17px; }
.stat-esquive-pm .stat-icon { color: #63c85f; font-size: 17px; }
.stat-retrait-pa .stat-icon { color: #51bce5; font-size: 15px; text-shadow: 1px 1px #b66e2f; }
.stat-retrait-pm .stat-icon { color: #68c65a; font-size: 15px; text-shadow: 1px 1px #d07b31; }
.stat-soins .stat-icon { color: #ed4d62; }
.stat-pods .stat-icon { color: #a7afb8; font-size: 17px; }
.stat-niveau-du-stuff .stat-icon { color: #77c65b; font-size: 17px; font-weight: 900; }
.stat-group-summary .stat-icon { width: 21px; height: 21px; display: block; overflow: hidden; background-color: transparent; background-position: center; background-repeat: no-repeat; background-size: 21px 21px; color: transparent; border-radius: 0; box-shadow: none; font-size: 0; text-shadow: none; }
.stat-group-summary .stat-vitalite .stat-icon { background-image: url("assets/summary-vitalite.png?v=2"); }
.stat-group-summary .stat-prospection .stat-icon { background-image: url("assets/summary-prospection.png?v=2"); }
.stat-group-summary .stat-pa .stat-icon { background-image: url("assets/summary-pa.png?v=2"); }
.stat-group-summary .stat-pm .stat-icon { background-image: url("assets/summary-pm.png?v=2"); }
.stat-group-summary .stat-portee .stat-icon { background-image: url("assets/summary-portee.png?v=2"); }
.stat-group-summary .stat-initiative .stat-icon { background-image: url("assets/summary-initiative.png?v=2"); }
.stat-group-summary .stat-critique .stat-icon { background-image: url("assets/summary-critique.png?v=2"); }
.stat-group-summary .stat-invocation .stat-icon { background-image: url("assets/summary-invocation.png?v=3"); }
.stat-group-summary .stat-soins .stat-icon { background-image: url("assets/summary-soins.png?v=2"); }
.stat-group-summary .stat-initiative .stat-icon,
.stat-group-summary .stat-invocation .stat-icon { width: 21px; height: 21px; padding: 0; display: block; background-color: transparent; background-position: center; background-repeat: no-repeat; background-size: 21px 21px; border: 0; border-radius: 0; box-shadow: none; }
.stat-group-summary .stat-invocation .stat-icon { background-size: 19px 19px; color: transparent; text-indent: -9999px; }
.stat-group-secondaires .stat-icon { width: 18px; height: 18px; display: block; overflow: hidden; background-image: url("assets/secondary-stat-icons.png"); background-repeat: no-repeat; color: transparent; font-size: 0; text-shadow: none; }
.stat-group-secondaires .stat-fuite .stat-icon { background-position: -28px -3px; }
.stat-group-secondaires .stat-tacle .stat-icon { background-position: -218px -3px; }
.stat-group-secondaires .stat-esquive-pa .stat-icon { background-position: -28px -28px; }
.stat-group-secondaires .stat-retrait-pa .stat-icon { background-position: -218px -28px; }
.stat-group-secondaires .stat-esquive-pm .stat-icon { background-position: -28px -53px; }
.stat-group-secondaires .stat-retrait-pm .stat-icon { background-position: -218px -53px; }
.stat-group-secondaires .stat-pods .stat-icon { background-position: -28px -78px; }
.stat-group-secondaires .stat-niveau-du-stuff .stat-icon { background-position: -218px -78px; }
.stat-group-secondaires .stat-pods .stat-icon { background-image: url("assets/stat-pods.png"); background-position: center; background-size: 18px 18px; }
.stat-group-secondaires .stat-niveau-du-stuff .stat-icon { background-image: url("assets/stat-stuff-level.png"); background-position: center; background-size: 18px 18px; }
.stat-group-secondaires .stat-retrait-pm .stat-icon { background-image: url("assets/stat-retrait-pm.png"); background-position: center; background-size: 18px 18px; }
.stat-group-secondaires .stat-retrait-pa .stat-icon { background-image: url("assets/stat-retrait-pa.png"); background-position: center; background-size: 18px 18px; }
.stat-group-secondaires .stat-tacle .stat-icon { background-image: url("assets/stat-tacle.png"); background-position: center; background-size: 18px 18px; }
.stat-group-secondaires .stat-fuite .stat-icon { background-image: url("assets/stat-fuite.png"); background-position: center; background-size: 18px 18px; }
.stat-group-secondaires .stat-esquive-pa .stat-icon { background-image: url("assets/stat-esquive-pa.png"); background-position: center; background-size: 18px 18px; }
.stat-group-secondaires .stat-esquive-pm .stat-icon { background-image: url("assets/stat-esquive-pm.png"); background-position: center; background-size: 18px 18px; }
.stat-dommages-neutre .stat-icon,
.stat-resistance-neutre .stat-icon,
.stat-percent-resistance-neutre .stat-icon { color: #d9dde0; }
.stat-dommages-terre .stat-icon,
.stat-resistance-terre .stat-icon,
.stat-percent-resistance-terre .stat-icon { color: #b98b32; }
.stat-dommages-feu .stat-icon,
.stat-resistance-feu .stat-icon,
.stat-percent-resistance-feu .stat-icon { color: #ef6c2f; }
.stat-dommages-eau .stat-icon,
.stat-resistance-eau .stat-icon,
.stat-percent-resistance-eau .stat-icon { color: #43aee0; }
.stat-dommages-air .stat-icon,
.stat-resistance-air .stat-icon,
.stat-percent-resistance-air .stat-icon { color: #78c55d; }
.stat-dommages-critiques .stat-icon { color: #f0cf43; }
.stat-dommages-poussee .stat-icon { color: #df8841; }
.stats-column-right #stats-right .stat-dommages-poussee .stat-icon { color: #f28a27; font-family: "Segoe UI Symbol", sans-serif; font-size: 20px; font-weight: 900; }
.stat-dommages .stat-icon { color: #f3c63e; }
.stat-resistance-critiques .stat-icon { color: #e34b4b; }
.stat-resistance-poussee .stat-icon { color: #c5752d; }
.stat-percent-resistance-melee .stat-icon { color: #d25454; }
.stat-percent-resistance-distance .stat-icon { color: #d59b42; }
.stat-group-dommages h3::before { content: "✦"; margin-right: 7px; color: #f0c53e; }
.stat-group-resistances-fixes h3::before,
.stat-group-resistances-percent h3::before { content: "⛨"; margin-right: 7px; color: #61a9d0; font-family: "Segoe UI Symbol", sans-serif; }
.special-stat-list { margin: 0; padding: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 5px 12px; list-style: none; }
.special-stat-list li { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.special-stat-list strong { color: var(--accent); }
.special-stat-list .muted-line { color: var(--text-secondary); }
.special-stat-list .set-bonus-title { grid-column: 1 / -1; margin-top: 5px; padding: 8px; align-items: center; background: color-mix(in srgb, #75bd45 12%, var(--surface)); border: 1px solid color-mix(in srgb, #75bd45 45%, var(--border)); border-radius: 6px; }
.special-stat-list .set-bonus-title span { display: grid; gap: 2px; }
.special-stat-list .set-bonus-title b { color: #8fd05f; }
.special-stat-list .set-bonus-title small { color: var(--text-secondary); font-size: 10px; }
.special-stat-list .set-bonus-effect { padding: 3px 6px; }
.special-stat-list .set-bonus-effect strong { color: #8fd05f; }
.stats-note { margin: 18px 0 0; color: var(--text-secondary); font-size: 12px; line-height: 1.5; }
.build-share-card { padding: 12px; display: grid; gap: 11px; background: var(--background-secondary); border: 1px solid var(--border); border-radius: 9px; box-shadow: 0 8px 24px rgba(0,0,0,.16); }
.build-share-link { display: grid; grid-template-columns: 1fr 42px; gap: 8px; }
.build-share-link input { width: 100%; min-width: 0; height: 38px; padding: 7px 10px; color: var(--text); background: var(--surface); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border)); border-radius: 5px; font-size: 12px; }
.build-share-link button { color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 5px; font-size: 19px; cursor: pointer; }
.build-share-link button:hover { color: var(--accent); border-color: var(--accent); }
.build-share-meta { display: flex; align-items: center; gap: 11px; }
.build-share-meta img { width: 48px; height: 48px; object-fit: contain; }
.build-share-meta span { display: grid; gap: 3px; }
.build-share-meta strong { color: var(--text); font-size: 12px; }
.build-share-meta small { color: var(--text-secondary); font-size: 12px; }
.stats-column-right #stats-right .stat-group h3 { display: none; }
.stats-column-right #stats-right .stat-group-grid { padding: 13px 10px; gap: 3px 12px; }
.stats-column-right #stats-right .stat-row { padding: 4px 2px; grid-template-columns: 34px 25px minmax(0, 1fr); gap: 7px; }
.stats-column-right #stats-right .stat-row strong { grid-column: 1; grid-row: 1; color: var(--text); text-align: right; }
.stats-column-right #stats-right .stat-row .stat-icon { grid-column: 2; grid-row: 1; text-align: center; }
.stats-column-right #stats-right .stat-dommages-critiques .stat-icon,
.stats-column-right #stats-right .stat-dommages-poussee .stat-icon,
.stats-column-right #stats-right .stat-percent-dommages-armes .stat-icon,
.stats-column-right #stats-right .stat-percent-dommages-sorts .stat-icon,
.stats-column-right #stats-right .stat-percent-dommages-melee .stat-icon,
.stats-column-right #stats-right .stat-percent-dommages-distance .stat-icon { font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif; font-size: 15px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.45)); }
.stats-column-right #stats-right .stat-row .stat-label { grid-column: 3; grid-row: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stats-column-right #stats-right .stat-group-dommages .stat-icon { width: 23px; height: 23px; display: block; overflow: hidden; background-position: center; background-repeat: no-repeat; background-size: 23px 23px; color: transparent; font-size: 0; text-indent: -9999px; filter: none; }
.stats-column-right #stats-right .stat-dommages-neutre .stat-icon { background-image: url("assets/damage-neutral.png"); }
.stats-column-right #stats-right .stat-dommages-terre .stat-icon { background-image: url("assets/damage-earth.png"); }
.stats-column-right #stats-right .stat-dommages-feu .stat-icon { background-image: url("assets/damage-fire.png"); }
.stats-column-right #stats-right .stat-dommages-eau .stat-icon { background-image: url("assets/damage-water.png"); }
.stats-column-right #stats-right .stat-dommages-air .stat-icon { background-image: url("assets/damage-air.png"); }
.stats-column-right #stats-right .stat-dommages .stat-icon { background-image: url("assets/damage-generic.png"); }
.stats-column-right #stats-right .stat-dommages-critiques .stat-icon { background-image: url("assets/damage-critical.png?v=4"); }
.stats-column-right #stats-right .stat-dommages-poussee .stat-icon { background-image: url("assets/damage-push.png?v=2"); }
.stats-column-right #stats-right .stat-percent-dommages-armes .stat-icon { background-image: url("assets/damage-weapons.png?v=2"); }
.stats-column-right #stats-right .stat-percent-dommages-sorts .stat-icon { background-image: url("assets/damage-spells.png?v=2"); }
.stats-column-right #stats-right .stat-percent-dommages-melee .stat-icon { background-image: url("assets/damage-melee.png?v=2"); }
.stats-column-right #stats-right .stat-percent-dommages-distance .stat-icon { background-image: url("assets/damage-distance.png?v=4"); }
.stats-column-right #stats-right .stat-group-resistances .stat-icon { width: 23px; height: 23px; display: block; overflow: hidden; background-position: center; background-repeat: no-repeat; background-size: 23px 23px; color: transparent; font-size: 0; text-indent: -9999px; filter: none; }
.stats-column-right #stats-right .stat-resistance-neutre .stat-icon,
.stats-column-right #stats-right .stat-percent-resistance-neutre .stat-icon { background-image: url("assets/res-neutral.png"); }
.stats-column-right #stats-right .stat-resistance-terre .stat-icon,
.stats-column-right #stats-right .stat-percent-resistance-terre .stat-icon { background-image: url("assets/res-earth.png"); }
.stats-column-right #stats-right .stat-resistance-feu .stat-icon,
.stats-column-right #stats-right .stat-percent-resistance-feu .stat-icon { background-image: url("assets/res-fire.png"); }
.stats-column-right #stats-right .stat-resistance-eau .stat-icon,
.stats-column-right #stats-right .stat-percent-resistance-eau .stat-icon { background-image: url("assets/res-water.png"); }
.stats-column-right #stats-right .stat-resistance-air .stat-icon,
.stats-column-right #stats-right .stat-percent-resistance-air .stat-icon { background-image: url("assets/res-air.png"); }
.stats-column-right #stats-right .stat-resistance-critiques .stat-icon { background-image: url("assets/res-critical.png"); }
.stats-column-right #stats-right .stat-resistance-poussee .stat-icon { background-image: url("assets/res-push.png"); }
.stats-column-right #stats-right .stat-percent-resistance-melee .stat-icon { background-image: url("assets/res-melee.png"); }
.stats-column-right #stats-right .stat-percent-resistance-distance .stat-icon { background-image: url("assets/res-distance.png"); }
.stats-column-right #stats-right .stat-percent-resistance-armes .stat-icon { background-image: url("assets/res-weapons.png"); }
.special-stat-list li:not(.set-bonus-title) strong { order: -1; min-width: 28px; color: var(--text); text-align: right; }
.special-stat-list .exo-stat-line { display: grid; grid-template-columns: 28px 19px minmax(0, 1fr); align-items: center; justify-content: initial; gap: 5px; }
.special-stat-list .exo-stat-line strong { min-width: 0; order: initial; color: var(--text); font-weight: 900; text-align: right; }
.special-stat-list .exo-stat-line i { display: grid; place-items: center; color: var(--accent); font-family: "Segoe UI Emoji", "Segoe UI Symbol", sans-serif; font-size: 14px; font-style: normal; }
.special-stat-list .exo-stat-pm i { width: 18px; height: 18px; background: url("assets/stat-pm.png") center / 18px 18px no-repeat; color: transparent; font-size: 0; text-indent: -9999px; filter: none; }
.special-stat-list .exo-stat-pa i { width: 18px; height: 18px; background: url("assets/stat-pa.png") center / 18px 18px no-repeat; color: transparent; font-size: 0; text-indent: -9999px; filter: none; }
.special-stat-list .exo-stat-critique i { width: 18px; height: 18px; background: url("assets/stat-critical.png") center / 18px 18px no-repeat; color: transparent; font-size: 0; text-indent: -9999px; filter: none; }
.special-stat-list .exo-stat-dommages-critiques i { width: 18px; height: 18px; background: url("assets/damage-critical.png?v=4") center / 18px 18px no-repeat; color: transparent; font-size: 0; text-indent: -9999px; filter: none; }
.special-stat-list .exo-stat-percent-dommages-distance i { width: 18px; height: 18px; background: url("assets/damage-distance.png?v=4") center / 18px 18px no-repeat; color: transparent; font-size: 0; text-indent: -9999px; filter: none; }
.special-stat-list .exo-stat-pods i { width: 18px; height: 18px; background: url("assets/stat-pods.png") center / 18px 18px no-repeat; color: transparent; font-size: 0; text-indent: -9999px; filter: none; }
.special-stat-list .exo-stat-portee i { width: 18px; height: 18px; background: url("assets/stat-range.png?v=2") center / 18px 18px no-repeat; color: transparent; font-size: 0; text-indent: -9999px; filter: none; }
.special-stat-list .exo-stat-prospection i { width: 18px; height: 18px; background: url("assets/stat-prospection.png?v=2") center / 18px 18px no-repeat; color: transparent; font-size: 0; text-indent: -9999px; filter: none; }
.special-stat-list .exo-stat-initiative i { width: 18px; height: 18px; background: url("assets/stat-initiative.png?v=2") center / 18px 18px no-repeat; color: transparent; font-size: 0; text-indent: -9999px; filter: none; }
.special-stat-list .exo-stat-soins i { width: 18px; height: 18px; background: url("assets/stat-soins.png?v=2") center / 18px 18px no-repeat; color: transparent; font-size: 0; text-indent: -9999px; filter: none; }
.special-stat-list .exo-stat-vitalite i { background-image: url("assets/stat-vitality.png"); }
.special-stat-list .exo-stat-sagesse i { background-image: url("assets/stat-wisdom.png"); }
.special-stat-list .exo-stat-force i { background-image: url("assets/stat-strength.png"); }
.special-stat-list .exo-stat-intelligence i { background-image: url("assets/stat-intelligence.png"); }
.special-stat-list .exo-stat-chance i { background-image: url("assets/stat-chance.png"); }
.special-stat-list .exo-stat-agilite i { background-image: url("assets/stat-agility.png"); }
.special-stat-list .exo-stat-puissance i { background-image: url("assets/stat-power.png"); }
.special-stat-list .exo-stat-vitalite i,
.special-stat-list .exo-stat-sagesse i,
.special-stat-list .exo-stat-force i,
.special-stat-list .exo-stat-intelligence i,
.special-stat-list .exo-stat-chance i,
.special-stat-list .exo-stat-agilite i,
.special-stat-list .exo-stat-puissance i { width: 18px; height: 18px; background-position: center; background-repeat: no-repeat; background-size: 18px 18px; color: transparent; font-size: 0; text-indent: -9999px; filter: none; }
.set-bonuses-panel { width: min(1480px, calc(100% - 36px)); margin: 20px auto 0; padding: 18px; background: linear-gradient(145deg, color-mix(in srgb, var(--surface) 94%, #3d321c), var(--background-secondary)); border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--border)); border-radius: 12px; box-shadow: 0 14px 35px rgba(0,0,0,.2); }
.set-bonuses-panel[hidden] { display: none; }
.set-bonuses-heading h2 { margin: 3px 0 14px; color: var(--text); font-size: 20px; }
.set-bonuses-visual { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 13px; }
.set-visual-card { min-width: 0; padding: 12px; display: grid; grid-template-columns: auto 1fr; gap: 14px; background: color-mix(in srgb, var(--background) 80%, transparent); border: 1px solid var(--border); border-radius: 9px; }
.set-visual-items { max-width: 156px; display: grid; grid-template-columns: repeat(2, 68px); align-content: start; gap: 7px; }
.set-visual-items span { width: 68px; height: 68px; padding: 5px; display: grid; place-items: center; background: var(--surface); border: 1px solid color-mix(in srgb, #79c54d 50%, var(--border)); border-radius: 7px; box-shadow: inset 0 0 12px rgba(121,197,77,.09); }
.set-visual-items img { width: 58px; height: 58px; object-fit: contain; filter: drop-shadow(0 3px 5px rgba(0,0,0,.4)); }
.set-visual-content { min-width: 0; }
.set-visual-title { padding-bottom: 9px; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--border); }
.set-visual-title span { min-width: 0; display: grid; gap: 2px; }
.set-visual-title b { overflow-wrap: anywhere; color: #8fd05f; font-size: 14px; }
.set-visual-title small { color: var(--text-secondary); font-size: 10px; }
.set-visual-title > strong { flex-shrink: 0; padding: 4px 7px; color: #baf28e; background: rgba(121,197,77,.14); border: 1px solid rgba(121,197,77,.35); border-radius: 5px; font-size: 10px; }
.set-visual-content ul { margin: 9px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 5px 10px; list-style: none; }
.set-visual-content li { min-width: 0; display: grid; grid-template-columns: 28px 1fr; gap: 6px; color: var(--text); font-size: 11px; }
.set-visual-content li strong { color: #8fd05f; text-align: right; }
.set-visual-content li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 620px) { .set-bonuses-panel { width: calc(100% - 24px); padding: 13px; } .set-visual-card { grid-template-columns: 1fr; } .set-visual-items { max-width: none; grid-template-columns: repeat(auto-fill, 58px); } .set-visual-items span { width: 58px; height: 58px; } .set-visual-items img { width: 50px; height: 50px; } }
.special-stat-list .exo-stat-line span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catalog-drawer { margin-top: 22px; scroll-margin-top: 100px; }
.catalog-drawer[hidden] { display: none; }
.catalog-header button { width: 42px; height: 42px; background: var(--background-secondary); color: var(--text); border: 1px solid var(--border); border-radius: 50%; cursor: pointer; }
.catalog-tools { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px; }
.catalog-tools { grid-template-columns: 1fr auto auto; }
.catalog-tools input { margin: 0; }
.catalog-message { margin: 13px 0; color: var(--text-secondary); font-size: 13px; }
.build-item-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.build-item { min-width: 0; min-height: 145px; padding: 8px; display: flex; flex-direction: column; align-items: center; color: var(--text); background: var(--background-secondary); border: 1px solid var(--border); border-radius: 8px; cursor: pointer; }
.build-item:hover { border-color: var(--accent); transform: translateY(-2px); }
.build-item > span { width: 70px; height: 70px; display: grid; place-items: center; color: var(--accent); font-size: 24px; }
.build-item img { width: 100%; height: 100%; object-fit: contain; }
.build-item strong { width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.build-item small { color: var(--text-secondary); font-size: 10px; }
.load-more-build { width: 100%; margin-top: 12px; }
.fm-dialog { width: min(650px, calc(100% - 28px)); max-height: 86vh; padding: 0; color: var(--text); background: transparent; border: 0; }
.fm-dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(4px); }
.fm-card { padding: 24px; overflow: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 25px 80px rgba(0,0,0,.5); }
.fm-help { color: var(--text-secondary); font-size: 13px; }
.fm-effects { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 18px 0; }
.fm-effect-row { padding: 9px; display: grid; grid-template-columns: 1fr 80px; align-items: center; gap: 8px; background: var(--background-secondary); border-radius: 7px; font-size: 12px; font-weight: 700; }
.fm-effect-row span { display: grid; }
.fm-effect-row small { color: var(--text-secondary); font-size: 9px; }
.fm-effect-row input, .fm-exotic input, .fm-exotic select { width: 100%; min-height: 40px; padding: 7px; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.fm-extra-row { border: 1px solid var(--accent); grid-template-columns: 1fr 70px 32px; }
.fm-extra-row button { height: 32px; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 50%; cursor: pointer; }
.fm-exotic { display: grid; grid-template-columns: 1fr 90px auto; gap: 8px; margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--border); }
.fm-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.build-footer { padding: 30px 0; align-items: flex-start; }
@media (max-width: 1050px) { .build-layout { grid-template-columns: 1fr; } .stats-panel { position: static; } .build-item-grid { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 1250px) {
  .build-layout-compact { grid-template-columns: minmax(335px, .76fr) minmax(520px, 1.24fr); }
  .stats-column-right { grid-column: 1 / -1; grid-template-columns: repeat(2, 1fr); }
  .stats-column-right .stats-dashboard:last-of-type { grid-column: 1 / -1; }
}
@media (max-width: 1050px) { .parchment-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 850px) { .build-layout-compact { grid-template-columns: 1fr; } .stats-column-right { grid-column: auto; grid-template-columns: 1fr; } }
@media (max-width: 700px) { .build-page { width: calc(100% - 24px); padding-top: 35px; } .build-heading { align-items: flex-start; flex-direction: column; } .build-actions { width: 100%; } .build-actions button { flex: 1; } .build-profile { grid-template-columns: 1fr; } .equipment-panel, .stats-panel, .catalog-drawer { padding: 14px; } .equipment-grid { grid-template-columns: repeat(2, 1fr); } .stats-grid { grid-template-columns: 1fr; } .catalog-tools { grid-template-columns: 1fr; } .build-item-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .parchment-panel { padding: 14px; } .parchment-heading { align-items: flex-start; flex-direction: column; } .parchment-grid { grid-template-columns: 1fr; } .stat-group-grid, .fm-effects { grid-template-columns: 1fr; } .catalog-tools, .fm-exotic { grid-template-columns: 1fr; } .fm-actions { flex-direction: column; } }

/* Plateau visuel du personnage et des équipements */
.equipment-grid {
  min-height: 805px;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(6, minmax(88px, 1fr));
  grid-template-rows: repeat(5, 116px) 142px;
  gap: 10px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 43%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 35%),
    var(--background-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.build-character { position: relative; grid-column: 2 / 6; grid-row: 1 / 6; min-height: 600px; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; isolation: isolate; }
.build-character::after { content: ""; position: absolute; bottom: 45px; width: 250px; height: 40px; z-index: -1; background: rgba(0,0,0,.35); filter: blur(12px); border-radius: 50%; }
.build-character img { position: relative; z-index: 2; width: min(380px, 88%); height: 455px; object-fit: contain; filter: drop-shadow(0 22px 18px rgba(0,0,0,.4)); animation: characterFloat 4s ease-in-out infinite; }
.build-character .class-character-image { width: min(400px, 96%); height: 480px; object-fit: contain; object-position: center bottom; animation: classAppear .35s ease-out, characterFloat 4s .35s ease-in-out infinite; }
.build-character strong { position: relative; z-index: 3; margin-top: -12px; font-size: 22px; }
.build-character > span { position: relative; z-index: 3; color: var(--accent); font-size: 13px; font-weight: 700; }
.character-aura { position: absolute; width: 410px; height: 410px; z-index: -2; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 24%, transparent), transparent 68%); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); border-radius: 50%; animation: auraPulse 3s ease-in-out infinite; }
.character-aura::before, .character-aura::after { content: ""; position: absolute; inset: 25px; border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent); border-radius: 50%; }
.character-aura::after { inset: 58px; }
.visual-pulse { position: absolute; inset: 50% auto auto 50%; width: 10px; height: 10px; z-index: -1; background: var(--accent); border-radius: 50%; box-shadow: 0 0 80px 40px color-mix(in srgb, var(--accent) 16%, transparent); }
.equipment-slot { min-height: 0; height: 116px; position: relative; z-index: 5; padding: 8px; gap: 2px; overflow: visible; }
.equipment-slot img { width: 66px; height: 66px; transition: transform .2s ease, filter .2s ease; }
.equipment-slot .slot-icon { width: 60px; height: 60px; font-size: 29px; }
.equipment-slot strong { font-size: 13px; }
.equipment-slot small { font-size: 10px; }
.equipment-grid { overflow: visible; }
.item-tooltip {
  position: absolute;
  top: 50%;
  left: calc(100% + 12px);
  z-index: 100;
  width: 400px;
  min-height: 360px;
  max-height: none;
  padding: 18px;
  overflow: visible;
  visibility: hidden;
  background: #17130f;
  color: #fffaf0;
  border: 1px solid var(--accent);
  border-radius: 10px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .65);
  opacity: 0;
  transform: translate(8px, -50%);
  pointer-events: auto;
  text-align: left;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.item-tooltip::before {
  content: "";
  position: absolute;
  top: 0;
  right: 100%;
  width: 12px;
  height: 100%;
}
.equipment-slot:hover { z-index: 50; }
.equipment-slot:hover .item-tooltip,
.equipment-slot:focus-visible .item-tooltip { visibility: visible; opacity: 1; transform: translate(0, -50%); }
.equipment-slot[data-slot="amulet"] .item-tooltip,
.equipment-slot[data-slot="ring1"] .item-tooltip,
.equipment-slot[data-slot="ring2"] .item-tooltip,
.equipment-slot[data-slot="belt"] .item-tooltip,
.equipment-slot[data-slot="boots"] .item-tooltip { right: calc(100% + 12px); left: auto; transform: translate(-8px, -50%); }
.equipment-slot[data-slot="amulet"] .item-tooltip::before,
.equipment-slot[data-slot="ring1"] .item-tooltip::before,
.equipment-slot[data-slot="ring2"] .item-tooltip::before,
.equipment-slot[data-slot="belt"] .item-tooltip::before,
.equipment-slot[data-slot="boots"] .item-tooltip::before { right: auto; left: 100%; }
.equipment-slot[data-slot="amulet"]:hover .item-tooltip,
.equipment-slot[data-slot="ring1"]:hover .item-tooltip,
.equipment-slot[data-slot="ring2"]:hover .item-tooltip,
.equipment-slot[data-slot="belt"]:hover .item-tooltip,
.equipment-slot[data-slot="boots"]:hover .item-tooltip { transform: translate(0, -50%); }
.equipment-slot[data-slot^="dofus"] .item-tooltip { top: auto; bottom: calc(100% + 12px); left: 50%; transform: translate(-50%, 8px); }
.equipment-slot[data-slot^="dofus"] .item-tooltip::before { top: 100%; right: auto; left: 0; width: 100%; height: 12px; }
.equipment-slot[data-slot^="dofus"]:hover .item-tooltip { transform: translate(-50%, 0); }
.equipment-slot[data-slot^="dofus"] { height: 138px; padding: 7px 6px 8px; align-self: start; }
.equipment-slot[data-slot^="dofus"] img { width: 61px; height: 61px; }
.equipment-slot[data-slot^="dofus"] > .slot-copy { align-content: start; }
.equipment-slot[data-slot^="dofus"] > .slot-copy strong { max-height: 34px; display: -webkit-box; overflow: hidden; font-size: 10px; line-height: 1.12; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.item-tooltip .tooltip-heading { display: grid; grid-template-columns: 78px 1fr auto; align-items: center; gap: 14px; padding-bottom: 15px; border-bottom: 1px solid #4b4238; }
.item-tooltip .tooltip-heading img { width: 78px; height: 78px; object-fit: contain; filter: none; transform: none; }
.item-tooltip .tooltip-heading > span { min-width: 0; display: grid; }
.item-tooltip .tooltip-heading b { color: var(--accent); font-size: 18px; line-height: 1.2; }
.item-tooltip .tooltip-heading small { margin-top: 4px; color: #c9bdad; font-size: 13px; }
.item-tooltip .fm-shortcut { min-width: 54px; min-height: 52px; padding: 7px 8px; display: grid; place-items: center; align-content: center; gap: 1px; background: linear-gradient(145deg, #f3cf62, #bd8516); color: #1c160a; border: 1px solid #ffe38a; border-radius: 8px; box-shadow: 0 5px 14px rgba(0,0,0,.35); cursor: pointer; pointer-events: auto; transition: transform .16s ease, filter .16s ease; }
.item-tooltip .fm-shortcut b { padding: 0; background: none; color: #1c160a; font-size: 16px; line-height: 1; }
.item-tooltip .fm-shortcut small { margin: 0; color: #40300e; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.item-tooltip .fm-shortcut:hover, .item-tooltip .fm-shortcut:focus-visible { filter: brightness(1.12); outline: 2px solid #fff3bd; outline-offset: 2px; transform: translateY(-2px); }
.item-tooltip ul { max-height: none; margin: 15px 0; padding: 0; overflow: visible; display: grid; grid-template-columns: 1fr; gap: 7px; list-style: none; }
.item-tooltip li { min-width: 0; padding-bottom: 5px; display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(255,255,255,.055); font-size: 14px; line-height: 1.35; }
.item-tooltip li span { min-width: 0; overflow-wrap: anywhere; }
.item-tooltip li strong { flex-shrink: 0; color: var(--accent); font-size: 14px; white-space: nowrap; }
.item-tooltip li.modified strong { color: #68d7ff; }
.item-tooltip li.exotic { color: #b9f27c; }
.item-tooltip li b { padding: 1px 4px; background: #557b27; color: white; border-radius: 4px; font-size: 8px; }
.item-tooltip > em { display: block; padding-top: 3px; color: #a99d8d; font-size: 12px; font-style: normal; }
.equipment-slot:hover img { transform: scale(1.14); filter: drop-shadow(0 0 8px var(--accent)); }
.equipment-slot.filled::after { content: ""; position: absolute; inset: 2px; pointer-events: none; border: 1px solid color-mix(in srgb, var(--accent) 65%, transparent); border-radius: 7px; box-shadow: inset 0 0 14px color-mix(in srgb, var(--accent) 10%, transparent); }
.equipment-slot strong { font-size: 10px; }
.equipment-slot small { font-size: 9px; }
.equipment-slot[data-slot="hat"] { grid-column: 1; grid-row: 1; }
.equipment-slot[data-slot="cape"] { grid-column: 1; grid-row: 2; }
.equipment-slot[data-slot="weapon"] { grid-column: 1; grid-row: 3; }
.equipment-slot[data-slot="shield"] { grid-column: 1; grid-row: 4; }
.equipment-slot[data-slot="pet"] { grid-column: 1; grid-row: 5; }
.equipment-slot[data-slot="amulet"] { grid-column: 6; grid-row: 1; }
.equipment-slot[data-slot="ring1"] { grid-column: 6; grid-row: 2; }
.equipment-slot[data-slot="ring2"] { grid-column: 6; grid-row: 3; }
.equipment-slot[data-slot="belt"] { grid-column: 6; grid-row: 4; }
.equipment-slot[data-slot="boots"] { grid-column: 6; grid-row: 5; }
.equipment-slot[data-slot="dofus1"] { grid-column: 1; grid-row: 6; }
.equipment-slot[data-slot="dofus2"] { grid-column: 2; grid-row: 6; }
.equipment-slot[data-slot="dofus3"] { grid-column: 3; grid-row: 6; }
.equipment-slot[data-slot="dofus4"] { grid-column: 4; grid-row: 6; }
.equipment-slot[data-slot="dofus5"] { grid-column: 5; grid-row: 6; }
.equipment-slot[data-slot="dofus6"] { grid-column: 6; grid-row: 6; }
@keyframes characterFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes auraPulse { 0%,100% { transform: scale(.96); opacity: .7; } 50% { transform: scale(1.04); opacity: 1; } }
@keyframes equippedPop { from { transform: scale(.92); opacity: .5; } to { transform: scale(1); opacity: 1; } }
@keyframes classAppear { from { opacity: 0; transform: scale(.92) translateY(12px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.equipped-pop { animation: equippedPop .25s ease-out; }
.equipment-slot.slot-clicked { border-color: var(--accent); animation: slotFlash .5s ease; }
@keyframes slotFlash { 0%,100% { box-shadow: 0 0 0 0 transparent; } 50% { box-shadow: 0 0 24px 5px color-mix(in srgb, var(--accent) 55%, transparent); transform: scale(1.06); } }
@media (max-width: 700px) {
  .equipment-grid { min-height: 570px; padding: 8px; grid-template-columns: repeat(6, minmax(44px, 1fr)); grid-template-rows: repeat(5, 88px) 92px; gap: 5px; }
  .build-character { min-height: 460px; }
  .build-character img { width: 85%; height: 320px; }
  .build-character .class-character-image { width: 88%; height: 330px; }
  .character-aura { width: 230px; height: 230px; }
  .equipment-slot { height: 88px; padding: 3px; }
  .equipment-slot img { width: 47px; height: 47px; }
  .equipment-slot .slot-icon { width: 42px; height: 42px; }
  .equipment-slot > .slot-copy small { display: none; }
  .equipment-slot > .slot-copy strong { display: block; font-size: 10px; line-height: 1.05; }
  .equipment-slot .item-tooltip { display: none; }
  .equipment-slot .item-level { display: block; top: 3px; right: 3px; padding: 2px 4px; font-size: 9px; }
  .equipment-slot small { font-size: 7px; }
  .equipment-slot[data-slot^="dofus"] { height: 90px; padding: 3px; }
  .equipment-slot[data-slot^="dofus"] img { width: 45px; height: 45px; }
  .equipment-slot[data-slot^="dofus"] > .slot-copy strong { max-height: 22px; font-size: 9px; -webkit-line-clamp: 2; }
}

.navigation a[aria-current="page"] {
  color: var(--text);
}

.navigation a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* =====================================
   BOUTON CLAIR / SOMBRE
===================================== */

.theme-button {
  min-height: 44px;
  padding: 9px 14px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  background-color: var(--surface);
  color: var(--text);

  border: 1px solid var(--border);
  border-radius: 999px;

  font-size: 14px;
  font-weight: 700;

  cursor: pointer;

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.theme-button:hover {
  background-color: var(--surface-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.theme-icon {
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
}

/* =====================================
   MENU MOBILE
===================================== */

.menu-button {
  display: none;

  width: 44px;
  height: 44px;

  background-color: var(--surface);
  color: var(--text);

  border: 1px solid var(--border);
  border-radius: 8px;

  cursor: pointer;
}

/* =====================================
   ACCUEIL
===================================== */

.hero {
  position: relative;

  min-height: calc(100vh - 78px);
  padding: 100px 22px;

  display: flex;
  align-items: center;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 82% 30%,
      color-mix(in srgb, var(--accent) 14%, transparent),
      transparent 30%
    ),
    radial-gradient(
      circle at 15% 75%,
      color-mix(in srgb, var(--accent-warm) 8%, transparent),
      transparent 34%
    ),
    linear-gradient(
      135deg,
      var(--background),
      var(--background-secondary)
    );
}

.hero-content {
  position: relative;
  z-index: 2;

  width: min(1160px, 100%);
  margin: auto;
}

.eyebrow {
  margin: 0 0 14px;

  color: var(--accent);

  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  max-width: 820px;
  margin: 0;

  font-size: clamp(52px, 8vw, 105px);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

body:not(.build-body) .hero h1 {
  max-width: 660px;
}

.hero-description {
  max-width: 610px;
  margin: 30px 0;

  color: var(--text-secondary);

  font-size: 19px;
  line-height: 1.7;
}

.primary-button {
  display: inline-flex;
  min-height: 50px;
  padding: 13px 20px;

  align-items: center;
  justify-content: center;

  background-color: var(--accent);
  color: var(--accent-text);

  border-radius: 7px;

  font-weight: 700;

  box-shadow: 0 12px 30px var(--shadow);

  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.primary-button:hover {
  background-color: var(--accent-hover);
  transform: translateY(-3px);
}

/* =====================================
   DÉCORATION DE L’ACCUEIL
===================================== */

.hero-decoration {
  position: absolute;
  top: 50%;
  right: 3%;

  width: clamp(430px, 46vw, 720px);
  aspect-ratio: 1.35;

  overflow: hidden;

  transform: translateY(-50%);
  border: 1px solid color-mix(in srgb, var(--accent-warm) 42%, var(--border));
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .45);
}

.hero-decoration img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16%);
  mask-image: linear-gradient(to right, transparent 0, #000 16%);
}

/* =====================================
   SECTIONS
===================================== */

.section {
  width: min(1160px, calc(100% - 44px));
  margin: auto;
  padding: 110px 0;

  border-top: 1px solid var(--border);
}

.section-heading {
  margin-bottom: 48px;
}

.section-heading h2 {
  max-width: 760px;
  margin: 0;

  font-size: clamp(38px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -0.035em;
}

/* =====================================
   CARTES D’INFORMATION
===================================== */

.information-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.information-card {
  min-height: 280px;
  padding: 30px;

  background-color: var(--surface);

  border: 1px solid var(--border);
  border-radius: 10px;
  border-top-color: color-mix(in srgb, var(--accent-warm) 55%, var(--border));

  box-shadow: 0 18px 50px var(--shadow);

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.information-card:hover {
  background-color: var(--surface-hover);
  border-color: var(--accent);
  transform: translateY(-5px);
}

.card-number {
  color: var(--accent-warm);

  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.information-card h3 {
  margin: 45px 0 14px;

  font-size: 27px;
  line-height: 1.1;
}

.information-card p {
  margin: 0;
  color: var(--text-secondary);
}

/* =====================================
   SECTION DES BOSS
===================================== */

.boss-page-section {
  min-height: calc(100vh - 78px);
  padding-top: 80px;
  border-top: 0;
}

.boss-page-section .section-heading h1 {
  max-width: 780px;
  font-size: clamp(42px, 5.5vw, 76px);
  line-height: 1;
}

.boss-page-intro {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--text-secondary);
  font-size: 17px;
}

.boss-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.search-field {
  width: min(360px, 100%);
  margin-bottom: 48px;
}

.search-field span {
  display: block;
  margin-bottom: 8px;

  color: var(--text-secondary);

  font-size: 13px;
  font-weight: 700;
}

.search-field input {
  width: 100%;
  min-height: 48px;
  padding: 12px 15px;

  background-color: var(--surface);
  color: var(--text);

  border: 1px solid var(--border);
  border-radius: 7px;

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.search-field input::placeholder {
  color: var(--text-secondary);
}

.search-field input:focus {
  background-color: var(--surface-hover);
  border-color: var(--accent);
}

.boss-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.boss-card {
  padding: 25px;

  background-color: var(--surface);

  border: 1px solid var(--border);
  border-radius: 10px;

  box-shadow: 0 16px 40px var(--shadow);

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.boss-card:hover {
  background-color: var(--surface-hover);
  border-color: var(--accent);
  transform: translateY(-4px);
}

.boss-category {
  color: var(--accent);

  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.boss-card h3 {
  margin: 14px 0 10px;
  font-size: 25px;
}

.boss-card p {
  margin: 0;
  color: var(--text-secondary);
}

.boss-mechanic {
  margin-top: 20px;
  padding: 15px;

  display: grid;
  gap: 7px;

  background-color: color-mix(in srgb, var(--accent) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border));
  border-radius: 7px;
}

.boss-mechanic strong {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.boss-mechanic span {
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}

.boss-mechanic-direct {
  background-color: var(--background-secondary);
  border-color: var(--border);
}

.boss-mechanic-direct strong {
  color: var(--text-secondary);
}

.boss-warning {
  margin-top: 18px;
  padding: 12px;

  background-color: var(--background-secondary);

  border-left: 3px solid var(--accent);
  border-radius: 4px;

  color: var(--text-secondary);
  font-size: 14px;
}

.empty-message {
  padding: 35px;

  background-color: var(--surface);
  color: var(--text-secondary);

  border: 1px solid var(--border);
  border-radius: 10px;

  text-align: center;
}

/* Nouvelle présentation de l'encyclopédie des boss */
.boss-page-body {
  background:
    radial-gradient(circle at 82% 10%, color-mix(in srgb, var(--accent) 8%, transparent) 0, transparent 30%),
    var(--background);
}

.boss-page-section {
  width: min(1380px, calc(100% - 44px));
  padding: 54px 0 90px;
}

.boss-hero-panel {
  position: relative;
  min-height: 330px;
  padding: clamp(32px, 5vw, 68px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  overflow: hidden;
  background:
    linear-gradient(125deg, color-mix(in srgb, var(--surface) 94%, black), color-mix(in srgb, var(--background-secondary) 88%, var(--accent))),
    var(--surface);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border));
  border-radius: 22px;
  box-shadow: 0 28px 80px var(--shadow);
}

.boss-hero-panel::before,
.boss-hero-panel::after {
  content: "";
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  border-radius: 50%;
  pointer-events: none;
}

.boss-hero-panel::before { width: 360px; height: 360px; right: -105px; top: -115px; }
.boss-hero-panel::after { width: 220px; height: 220px; right: -35px; top: -45px; }
.boss-hero-panel .section-heading { position: relative; z-index: 1; }
.boss-page-section .section-heading h1 { max-width: 900px; margin-top: 13px; font-size: clamp(44px, 6vw, 82px); line-height: .98; letter-spacing: -.045em; }
.boss-page-section .section-heading h1 span { color: var(--accent); }
.boss-page-intro { max-width: 730px; margin-top: 24px; font-size: 18px; line-height: 1.65; }

.boss-hero-stat {
  position: relative;
  z-index: 1;
  min-width: 190px;
  padding: 22px 25px;
  display: flex;
  align-items: center;
  gap: 15px;
  background: color-mix(in srgb, var(--background) 80%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--border));
  border-radius: 14px;
  backdrop-filter: blur(10px);
}

.boss-hero-stat strong { color: var(--accent); font-size: 43px; line-height: 1; }
.boss-hero-stat span { color: var(--text-secondary); font-size: 12px; font-weight: 800; letter-spacing: .08em; line-height: 1.35; text-transform: uppercase; }

.boss-toolbar {
  margin: 26px 0 22px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 13px;
  box-shadow: 0 14px 38px var(--shadow);
}

.boss-toolbar .search-field { position: relative; width: min(520px, 100%); margin: 0; }
.boss-toolbar .search-field input { min-height: 50px; padding: 12px 17px 12px 48px; background: var(--background-secondary); border: 0; border-radius: 9px; font-size: 15px; }
.boss-toolbar .search-field input:focus { outline: 2px solid color-mix(in srgb, var(--accent) 72%, transparent); outline-offset: 1px; }
.search-icon { position: absolute; z-index: 1; left: 17px; top: 50%; margin: 0 !important; color: var(--accent) !important; font-size: 24px !important; transform: translateY(-54%); pointer-events: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.boss-filters { display: flex; gap: 7px; }
.boss-filter { min-height: 42px; padding: 9px 15px; background: transparent; color: var(--text-secondary); border: 1px solid transparent; border-radius: 8px; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; transition: .2s ease; }
.boss-filter:hover { color: var(--text); background: var(--background-secondary); }
.boss-filter.active { color: var(--background); background: var(--accent); border-color: var(--accent); }

.boss-final-wave-note {
  margin: 0 0 22px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  background: color-mix(in srgb, #6952c8 12%, var(--surface));
  border: 1px solid color-mix(in srgb, #8d7bf0 48%, var(--border));
  border-radius: 11px;
}
.boss-final-wave-note strong { flex: 0 0 auto; color: #b9aaff; font-size: 10px; letter-spacing: .13em; }
.boss-final-wave-note span { color: var(--text-secondary); font-size: 13px; line-height: 1.5; }

.boss-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.boss-card { position: relative; min-height: 420px; padding: 28px; display: flex; flex-direction: column; background: linear-gradient(145deg, var(--surface), color-mix(in srgb, var(--background-secondary) 78%, var(--surface))); border-radius: 15px; box-shadow: 0 18px 48px var(--shadow); }
.boss-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--accent); border-radius: 15px 0 0 15px; opacity: .75; }
.boss-card.is-direct::before { background: #78909c; }
.boss-card:hover { box-shadow: 0 24px 60px var(--shadow); transform: translateY(-3px); }
.boss-card-top { display: flex; align-items: center; gap: 10px; }
.boss-number { color: color-mix(in srgb, var(--text-secondary) 65%, transparent); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.boss-category { flex: 1; font-size: 11px; }
.boss-status { padding: 5px 8px; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent); border-radius: 999px; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.is-direct .boss-status { color: #b8c4ca; background: color-mix(in srgb, #78909c 10%, transparent); border-color: color-mix(in srgb, #78909c 38%, transparent); }
.boss-portrait {
  position: relative;
  height: 230px;
  margin: 20px 0 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 62%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 48%),
    linear-gradient(145deg, color-mix(in srgb, var(--background-secondary) 80%, transparent), color-mix(in srgb, var(--surface) 92%, black));
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border));
  border-radius: 12px;
}
.boss-portrait::after { content: ""; position: absolute; inset: auto 12% 12px; height: 18px; background: #000; border-radius: 50%; filter: blur(13px); opacity: .32; }
.boss-card .boss-portrait > img {
  position: relative;
  z-index: 1;
  width: auto !important;
  height: auto !important;
  max-width: calc(100% - 32px) !important;
  max-height: 205px !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  filter: drop-shadow(0 13px 13px rgba(0, 0, 0, .38));
  transition: transform .25s ease;
}
.boss-card:hover .boss-portrait > img { transform: scale(1.015); }
.boss-card h3 { margin: 20px 0 12px; font-size: clamp(24px, 2.3vw, 32px); line-height: 1.1; }
.boss-description { min-height: 72px; font-size: 15px; line-height: 1.6; }
.boss-mechanic { margin-top: 22px; padding: 18px; gap: 9px; border-radius: 10px; }
.boss-mechanic strong { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.boss-mechanic span { font-size: 15px; line-height: 1.6; }
.boss-warning { margin-top: auto; padding: 18px 0 0; display: grid; grid-template-columns: 78px 1fr; gap: 12px; background: transparent; border: 0; border-top: 1px solid var(--border); border-radius: 0; }
.boss-warning strong { color: var(--accent); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.boss-warning span { color: var(--text-secondary); font-size: 13px; line-height: 1.5; }

.boss-songe-note {
  margin-top: 20px;
  padding: 16px 17px;
  display: grid;
  gap: 7px;
  background: linear-gradient(135deg, color-mix(in srgb, #7657d6 18%, var(--surface)), color-mix(in srgb, #4f78d8 10%, var(--surface)));
  border: 1px solid color-mix(in srgb, #8d7bf0 55%, var(--border));
  border-radius: 10px;
  box-shadow: inset 3px 0 #8d7bf0;
}

.boss-songe-note strong { color: #b9aaff; font-size: 10px; letter-spacing: .14em; }
.boss-songe-note span { color: var(--text); font-size: 14px; line-height: 1.55; }
.boss-card:not(:has(.boss-songe-note span:not(:empty))) .boss-songe-note { display: none; }

.needs-delock .boss-mechanic {
  background: linear-gradient(135deg, color-mix(in srgb, #b75c37 18%, var(--surface)), color-mix(in srgb, #d39136 10%, var(--surface)));
  border-color: color-mix(in srgb, #e19444 58%, var(--border));
  box-shadow: inset 3px 0 #e19444;
}
.needs-delock .boss-mechanic strong { color: #ffb85d; }
.is-direct .boss-mechanic { background: color-mix(in srgb, #3a7186 12%, var(--background-secondary)); border-color: color-mix(in srgb, #67a8bd 40%, var(--border)); box-shadow: inset 3px 0 #5796aa; }
.is-direct .boss-mechanic strong { color: #8bc5d7; }

.category-poison .boss-status,
.category-debuff .boss-status { color: #d99cff; border-color: #7d4aa0; background: #2e2038; }
.category-poussee .boss-status,
.category-placement .boss-status { color: #80d8ff; border-color: #397d98; background: #172d37; }
.category-glyphes .boss-status { color: #ff91ba; border-color: #9e4567; background: #351d29; }
.category-invocation .boss-status { color: #9ee28e; border-color: #4f8845; background: #1d331e; }
.category-mecanique .boss-status { color: #ffd46d; border-color: #96712c; background: #392d17; }

@media (max-width: 900px) {
  .boss-hero-panel { min-height: 390px; align-items: flex-start; flex-direction: column; }
  .boss-hero-stat { min-width: 0; }
  .boss-toolbar { align-items: stretch; flex-direction: column; }
  .boss-toolbar .search-field { width: 100%; }
  .boss-filters { overflow-x: auto; padding-bottom: 2px; }
  .boss-filter { flex: 0 0 auto; }
}

@media (max-width: 680px) {
  .boss-page-section { width: calc(100% - 24px); padding-top: 28px; }
  .boss-hero-panel { min-height: 0; padding: 28px 22px; border-radius: 15px; }
  .boss-page-section .section-heading h1 { font-size: 43px; }
  .boss-page-intro { font-size: 16px; }
  .boss-grid { grid-template-columns: 1fr; }
  .boss-card { min-height: 0; padding: 23px; }
  .boss-portrait { height: 210px; }
  .boss-card .boss-portrait > img { max-height: 185px !important; }
  .boss-description { min-height: 0; }
  .boss-warning { grid-template-columns: 1fr; gap: 6px; }
  .boss-final-wave-note { align-items: flex-start; flex-direction: column; gap: 7px; }
}

/* =====================================
   PIED DE PAGE
===================================== */

.site-footer {
  width: min(1160px, calc(100% - 44px));
  min-height: 120px;
  margin: auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;

  color: var(--text-secondary);

  border-top: 1px solid var(--border);

  font-size: 13px;
}

.site-footer a {
  color: var(--text);
  font-weight: 700;
}

.site-footer a:hover {
  color: var(--accent);
}

/* =====================================
   TABLETTES
===================================== */

@media (max-width: 900px) {
  .site-header {
    flex-wrap: wrap;
  }

  .menu-button {
    display: grid;
    place-items: center;
  }

  .theme-button {
    margin-left: auto;
  }

  .navigation {
    display: none;
    order: 4;

    width: 100%;
    padding: 18px 0 8px;

    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .navigation.open {
    display: flex;
  }

  .hero {
    min-height: 720px;
  }

  .hero-decoration {
    right: -160px;
    opacity: 0.3;
  }

  .information-grid,
  .boss-grid {
    grid-template-columns: 1fr 1fr;
  }

  .boss-heading {
    display: block;
  }

  .search-field {
    margin-top: 30px;
  }
}

/* =====================================
   TÉLÉPHONES
===================================== */

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .site-header {
    padding-right: 15px;
    padding-left: 15px;
    gap: 10px;
  }

  .theme-text {
    display: none;
  }

  .theme-button {
    width: 44px;
    padding: 0;
  }

  .hero {
    min-height: 650px;
    padding: 70px 16px;
  }

  h1 {
    font-size: 54px;
  }

  .hero-description {
    font-size: 17px;
  }

  .section {
    width: calc(100% - 30px);
    padding: 75px 0;
  }

  .information-grid,
.boss-grid {
  grid-template-columns: 1fr;
}

  .information-card {
    min-height: auto;
  }

  .information-card h3 {
    margin-top: 28px;
  }

  .site-footer {
    width: calc(100% - 30px);
    padding: 35px 0;

    flex-direction: column;
    align-items: flex-start;
  }
}

/* Réduction des animations */

.build-body .build-button.publish {
  background: linear-gradient(135deg, #d7a61f, #f3cc58);
  color: #18140d;
  border-color: #f3cc58;
  font-weight: 900;
}

/* Rafraîchissement visuel léger de la page Build */
.build-body {
  background:
    radial-gradient(circle at 50% 7%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 28%),
    radial-gradient(circle at 8% 48%, rgba(79, 117, 50, .09), transparent 24%),
    linear-gradient(180deg, color-mix(in srgb, var(--background) 92%, #251b0d), var(--background) 34%);
  background-attachment: fixed;
}

.build-body .site-header {
  border-bottom-color: color-mix(in srgb, var(--accent) 28%, var(--border));
  box-shadow: 0 10px 35px rgba(0, 0, 0, .2);
}

.build-body .logo {
  text-shadow: 0 0 22px color-mix(in srgb, var(--accent) 38%, transparent);
}

.build-heading {
  position: relative;
  padding: 24px 26px;
  overflow: hidden;
  background: linear-gradient(115deg, color-mix(in srgb, var(--surface) 94%, #3b2c14), color-mix(in srgb, var(--background-secondary) 93%, #193018));
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border));
  border-radius: 15px;
  box-shadow: 0 18px 50px var(--shadow);
}

.build-heading::after {
  content: "";
  position: absolute;
  top: -65px;
  right: 28%;
  width: 180px;
  height: 180px;
  pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 70px color-mix(in srgb, var(--accent) 9%, transparent);
}

.build-heading h1 {
  margin: 3px 0 0;
  background: linear-gradient(90deg, var(--text), color-mix(in srgb, var(--accent) 72%, var(--text)));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.build-actions { position: relative; z-index: 1; flex-wrap: wrap; justify-content: flex-end; }
.build-button { transition: transform .16s ease, border-color .16s ease, background-color .16s ease, box-shadow .16s ease; }
.build-button:hover:not(:disabled) { border-color: var(--accent); box-shadow: 0 7px 18px rgba(0, 0, 0, .24); transform: translateY(-2px); }
.build-button:active:not(:disabled) { transform: translateY(0); }

.build-profile {
  padding: 15px 18px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 96%, var(--accent)), var(--surface));
  border-color: color-mix(in srgb, var(--accent) 22%, var(--border));
  box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
}

.build-profile label { letter-spacing: .05em; text-transform: uppercase; }
.build-profile input,
.build-profile select {
  border-color: color-mix(in srgb, var(--accent) 18%, var(--border));
  transition: border-color .16s ease, box-shadow .16s ease;
}
.build-profile input:focus,
.build-profile select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent); outline: 0; }

.equipment-panel,
.stats-column .parchment-panel,
.stats-dashboard .stat-group {
  border-color: color-mix(in srgb, var(--accent) 17%, var(--border));
}

.equipment-panel {
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 97%, var(--accent)), var(--surface) 20%);
  box-shadow: 0 24px 65px rgba(0, 0, 0, .36);
}

.panel-title {
  padding-bottom: 15px;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border));
}

.panel-title h2 { color: color-mix(in srgb, var(--text) 86%, var(--accent)); }
.stat-group { box-shadow: 0 8px 24px rgba(0, 0, 0, .14); }
.stat-group h3 { border-bottom-color: color-mix(in srgb, var(--accent) 22%, var(--border)); }
.stat-row { transition: background-color .14s ease, transform .14s ease; }
.stat-row:hover { transform: translateX(2px); }

.equipment-grid {
  background:
    radial-gradient(circle at 50% 43%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 34%),
    linear-gradient(145deg, color-mix(in srgb, var(--background-secondary) 96%, #152719), var(--background-secondary));
  border-color: color-mix(in srgb, var(--accent) 25%, var(--border));
  box-shadow: inset 0 0 70px rgba(0, 0, 0, .26);
}

.equipment-slot {
  background: linear-gradient(145deg, color-mix(in srgb, var(--background-secondary) 95%, var(--accent)), var(--background-secondary));
  box-shadow: inset 0 1px rgba(255, 255, 255, .035), 0 7px 18px rgba(0, 0, 0, .2);
  transition: transform .17s ease, border-color .17s ease, background-color .17s ease, box-shadow .17s ease;
}

.equipment-slot:hover {
  box-shadow: inset 0 0 18px color-mix(in srgb, var(--accent) 10%, transparent), 0 9px 24px rgba(0, 0, 0, .3);
  transform: translateY(-2px);
}

.characteristic-budget { box-shadow: inset 0 0 20px color-mix(in srgb, var(--accent) 5%, transparent); }

@media (max-width: 700px) {
  .build-heading { padding: 20px 17px; }
  .build-heading::after { right: -70px; }
  .build-actions { justify-content: stretch; }
}

.public-builds-panel {
  width: min(1500px, calc(100% - 40px));
  margin: 26px auto 70px;
  padding: 28px;
  background: #1d1a16;
  border: 1px solid #5f5137;
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .3);
}

.community-body {
  --background: #12100e;
  --background-secondary: #211d18;
  --surface: #2a2520;
  --surface-hover: #342e27;
  --text: #fffaf0;
  --text-secondary: #c9bdad;
  --accent: #e7ad3a;
  --accent-hover: #f3c45d;
  --accent-text: #21170a;
  --border: #4b4238;
  --shadow: rgba(0, 0, 0, .42);
  --header-background: rgba(18, 16, 14, .94);
  font-family: "Nunito Sans", "Segoe UI", Arial, sans-serif;
}

.community-body.light-theme {
  --background: #eee8de;
  --background-secondary: #e2d8c9;
  --surface: #fffaf2;
  --surface-hover: #f5ead9;
  --text: #29231d;
  --text-secondary: #675d50;
  --accent: #a76608;
  --accent-hover: #895204;
  --accent-text: #fff;
  --border: #cfc0ab;
  --shadow: rgba(60, 42, 24, .15);
  --header-background: rgba(238, 232, 222, .95);
}

.community-page { width: min(1500px, calc(100% - 40px)); min-height: calc(100vh - 190px); margin: auto; padding: 65px 0 80px; }
.community-heading { padding: 30px; display: flex; align-items: end; justify-content: space-between; gap: 35px; background: linear-gradient(130deg, #2d271f, #181714); border: 1px solid #65563a; border-radius: 16px; }
.community-heading h1 { max-width: 900px; font-size: clamp(44px, 6vw, 82px); }
.community-heading p:not(.eyebrow) { max-width: 760px; margin: 20px 0 0; color: #c8c0b2; }
.community-tools { margin: 22px 0; padding: 15px; display: flex; align-items: end; gap: 10px; background: #211d18; border: 1px solid #4b4238; border-radius: 11px; }
.community-tools label { min-width: min(430px, 100%); display: grid; gap: 6px; color: #c9bdad; font-size: 12px; font-weight: 800; }
.community-tools input { min-height: 44px; padding: 9px 12px; background: #15130f; color: #fffaf0; border: 1px solid #5b4d35; border-radius: 7px; }
.community-filter {
  flex: 0 1 106px;
  width: 106px;
  min-width: 88px;
  min-height: 50px;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2a2520;
  color: #d7cebf;
  border: 1px solid #514632;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.community-filter.active { background: #e7ad3a; color: #21170a; border-color: #e7ad3a; }
.community-filter:disabled { opacity: .45; cursor: not-allowed; }
.community-tools > .build-button {
  width: 112px;
  min-width: 100px;
  min-height: 50px;
  margin-left: auto;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}
.community-builds-grid { min-height: 180px; }
.community-tools select { min-height: 44px; padding: 9px 12px; background: #15130f; color: #fffaf0; border: 1px solid #5b4d35; border-radius: 7px; }
.community-tools label:not(:first-child) { min-width: 125px; }
.community-build-description { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.community-tag-list { min-height: 25px; display: flex; flex-wrap: wrap; gap: 5px; }
.community-tag-list span { padding: 3px 7px; background: #343028; color: #eac567; border: 1px solid #5a4e39; border-radius: 999px; font-size: 10px; font-weight: 900; }
.community-item-preview { min-height: 48px; display: flex; flex-wrap: wrap; gap: 5px; }
.community-item-preview img { width: 44px; height: 44px; object-fit: contain; background: #17140f; border: 1px solid #4e4433; border-radius: 6px; }
.community-card-tools { display: flex; gap: 7px; }
.favorite-build, .compare-build { min-height: 34px; padding: 6px 10px; background: #302b23; color: #d8cfbf; border: 1px solid #554936; border-radius: 6px; font-weight: 900; cursor: pointer; }
.favorite-build { width: 38px; color: #d48a8f; }
.favorite-build.active { background: #7a2529; color: #fff; border-color: #b7484e; }
.useful-build { min-height: 34px; padding: 6px 10px; display: inline-flex; align-items: center; gap: 6px; background: #302b23; color: #d8cfbf; border: 1px solid #554936; border-radius: 6px; font: inherit; font-weight: 900; cursor: pointer; }
.useful-build strong { color: #f0b83f; }
.useful-build:hover, .useful-build.active { color: #fff; background: #345f42; border-color: #62a66f; }
.useful-build:disabled { opacity: .45; cursor: not-allowed; }
.compare-build.active { background: #79601f; color: #fff5d6; border-color: #e7ad3a; }
.compare-panel { margin-top: 26px; padding: 22px; background: #211d18; border: 1px solid #65563a; border-radius: 13px; }
.compare-panel[hidden] { display: none; }
.compare-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.compare-heading h2 { margin: 0; }
.compare-heading button { padding: 8px 11px; background: #302b23; color: #fff; border: 1px solid #554936; border-radius: 6px; cursor: pointer; }
.compare-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.compare-grid article { padding: 16px; background: #17140f; border: 1px solid #4e4433; border-radius: 9px; }
.compare-grid h3 { margin: 0; }
.compare-grid article > small { color: #bfb5a4; }
.compare-grid ul { margin: 13px 0 0; padding: 0; list-style: none; }
.compare-grid li { padding: 6px 0; display: flex; justify-content: space-between; border-bottom: 1px solid #332d24; }
.compare-grid li strong { color: #e7ad3a; }
.build-utilities { width: min(1500px, calc(100% - 40px)); margin: 22px auto 0; }
.build-validation-card { padding: 20px; background: linear-gradient(145deg, var(--surface), var(--background-secondary)); border: 1px solid var(--border); border-radius: 12px; }
.build-validation-card h2 { margin: 0 0 14px; font-size: 24px; }
.build-validation-card ul { margin: 0; padding: 0; display: grid; gap: 8px; list-style: none; }
.build-validation-card li { padding: 9px 11px; display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 8px; background: var(--background-secondary); border: 1px solid var(--border); border-radius: 7px; font-size: 13px; }
.build-validation-card li span { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; font-weight: 900; }
.validation-success span { background: #28683c; color: #d9ffe5; }.validation-warning span { background: #8b3d2e; color: #fff0e9; }.validation-info span { background: #315f78; color: #e5f7ff; }

.public-builds-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 22px;
}

.public-builds-heading h2 { margin: 4px 0 6px; font-size: 28px; }
.public-builds-heading p { margin: 0; color: #c8c0b2; }
.discord-auth { min-width: 280px; }
.discord-login { min-height: 48px; padding: 11px 17px; display: flex; align-items: center; justify-content: center; gap: 10px; background: #5865f2; color: #fff; border: 1px solid #7289da; border-radius: 8px; font-weight: 900; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.discord-login:hover { background: #6875f5; transform: translateY(-2px); }
.discord-login span { font-size: 20px; }
.discord-user { min-width: 300px; padding: 10px; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 10px; background: #181b22; border: 1px solid #5865f2; border-radius: 9px; }
.discord-user[hidden], .discord-login[hidden] { display: none; }
.discord-user img { width: 42px; height: 42px; object-fit: cover; border-radius: 50%; }
.discord-user span { min-width: 0; display: grid; }
.discord-user strong { overflow: hidden; color: #fff; text-overflow: ellipsis; white-space: nowrap; }
.discord-user small { color: #9da5b4; }
.discord-user button { padding: 7px 9px; background: transparent; color: #d7dbe4; border: 1px solid #4c5260; border-radius: 6px; cursor: pointer; }
.header-discord-auth { position: relative; flex: 0 0 auto; }
.header-login-button, .header-account-toggle { width: 44px; height: 44px; padding: 0; display: grid; place-items: center; overflow: hidden; background-color: color-mix(in srgb, #5865f2 22%, var(--surface)); background-image: url("assets/discord-login.png?v=4"); background-position: center; background-repeat: no-repeat; background-size: cover; color: #fff; border: 1px solid #6673f3; border-radius: 50%; cursor: pointer; transition: border-color .2s ease, transform .2s ease; }
.header-login-button:hover, .header-account-toggle:hover { border-color: #9ca5ff; transform: translateY(-2px); }
.header-login-button span { display: none; }
.header-login-button[hidden], .header-user[hidden], .header-account-menu[hidden] { display: none; }
.header-account-toggle { position: relative; }
.header-account-toggle > span { display: none; }
.header-account-toggle img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.header-account-menu { position: absolute; top: calc(100% + 11px); right: 0; z-index: 160; min-width: 230px; padding: 13px; display: grid; gap: 11px; background: #181b22; border: 1px solid #5865f2; border-radius: 10px; box-shadow: 0 18px 45px rgba(0, 0, 0, .45); }
.header-account-menu::before { content: ""; position: absolute; top: -6px; right: 15px; width: 10px; height: 10px; background: #181b22; border-top: 1px solid #5865f2; border-left: 1px solid #5865f2; transform: rotate(45deg); }
.header-account-menu span { min-width: 0; display: grid; }
.header-account-menu strong { overflow: hidden; color: #fff; text-overflow: ellipsis; white-space: nowrap; }
.header-account-menu small { color: #9da5b4; }
.header-account-menu button { padding: 9px 11px; background: #262a34; color: #fff; border: 1px solid #4c5260; border-radius: 7px; cursor: pointer; }
.build-publish-status { width: min(1500px, calc(100% - 40px)); min-height: 24px; margin: -3px auto 13px; color: #e5c76e; font-size: 13px; font-weight: 800; text-align: right; }
.public-builds-status { color: #e5c76e; font-weight: 800; }
.public-builds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 15px; margin: 18px 0; }
.public-build-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: #25211b;
  border: 1px solid #514632;
  border-radius: 12px;
}
.public-build-card h3 { margin: 0; color: #fff8e9; font-size: 20px; overflow-wrap: anywhere; }
.public-build-card p, .public-build-card small { margin: 0; color: #bfb5a4; }
.public-build-card .build-button { margin-top: 5px; }
.public-build-owner { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 9px; }
.public-build-owner > span { min-width: 0; display: grid; }
.public-build-owner strong { overflow: hidden; color: #fff8e9; text-overflow: ellipsis; white-space: nowrap; }
.public-build-avatar { width: 36px; height: 36px; object-fit: cover; border: 2px solid #5865f2; border-radius: 50%; }
.public-build-actions { display: flex; gap: 8px; }
.public-build-actions .build-button { flex: 1; }
.delete-public-build { background: #7a2529; color: #fff; border: 1px solid #b7484e; }
.delete-public-build:hover { background: #9c3036; }
.public-build-class { color: #e8b928; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.public-build-class span { float: right; color: #d8cfbf; font-size: 12px; }

@media (max-width: 700px) {
  .public-builds-panel { width: calc(100% - 24px); padding: 20px 15px; }
  .public-builds-heading { align-items: stretch; flex-direction: column; }
  .discord-auth, .discord-user { min-width: 0; width: 100%; }
  .community-page { width: calc(100% - 24px); padding-top: 28px; }
  .community-heading { padding: 22px 17px; align-items: stretch; flex-direction: column; }
  .community-heading h1 { font-size: 43px; }
  .community-tools { align-items: stretch; flex-direction: column; }
  .community-tools label { min-width: 0; }
  .community-filter,
  .community-tools > .build-button { width: 100%; min-width: 0; min-height: 44px; margin-left: 0; }
  .build-meta-panel, .build-utilities, .compare-grid { grid-template-columns: 1fr; }
  .build-meta-panel { margin-right: 12px; margin-left: 12px; }
  .build-utilities { width: calc(100% - 24px); }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
