/* ===== Idleroth — design v0.5 : interface sombre moderne (verre dépoli, dégradés, micro-animations) ===== */
@property --ang {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
:root {
  --bg: #080b13;
  --surface: rgba(255, 255, 255, 0.045);
  --surface2: rgba(255, 255, 255, 0.075);
  --surface3: rgba(255, 255, 255, 0.11);
  --line: rgba(255, 255, 255, 0.09);
  --line2: rgba(255, 255, 255, 0.16);
  --text: #eaedf6;
  --muted: #8b93ab;
  --gold: #f0c35a;
  --gold2: #b8862b;
  --accent: var(--faction, #f0c35a);
  --hp: #3ccf5a;
  --hp-m: #e0483a;
  --xp: #8b6cff;
  --pa: #4ea8ff;
  --shield: #7fd8ff;
  --common: #9d9d9d;
  --uncommon: #1eff00;
  --rare: #0a84ff;
  --epic: #b44bf0;
  --legendary: #ff8a1f;
  --r: 14px;
  --font: 'Inter', 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  --faction: #f0c35a;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
}
body {
  background:
    radial-gradient(1200px 700px at 85% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent),
    radial-gradient(900px 600px at -10% 110%, #1a1f4a55, transparent), var(--bg);
  color: var(--text);
  font: 14.5px/1.5 var(--font);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
b {
  font-weight: 650;
}
.muted {
  color: var(--muted);
  font-size: 13px;
}
.small {
  font-size: 12px;
}
h2,
h3 {
  margin: 0 0 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
h3 {
  font-size: 15px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
button {
  font: inherit;
  color: inherit;
}
[hidden] {
  display: none !important;
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-thumb {
  background: #ffffff1f;
  border-radius: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}

/* ---------- structure ---------- */
.app {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
}
.nav {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  background: linear-gradient(180deg, #0d1120ee, #090c16ee);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px 16px;
}
.brand b {
  letter-spacing: 3px;
  font-size: 13px;
  background: linear-gradient(90deg, #fff, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand small {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0;
  margin-top: 2px;
}
.logo {
  font-size: 28px;
  filter: drop-shadow(0 0 10px var(--accent));
}
.navgroup {
  font-size: 10.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 14px 10px 4px;
}
.navbtn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 11px;
  cursor: pointer;
  text-align: left;
  transition:
    background 0.15s,
    transform 0.15s;
}
.navbtn span {
  font-size: 18px;
  width: 24px;
  text-align: center;
}
.navbtn b {
  font-weight: 550;
  font-size: 13.5px;
  color: #cfd5e6;
}
.navbtn:hover {
  background: var(--surface2);
}
.navbtn.active {
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 24%, transparent), var(--surface));
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}
.navbtn.active b {
  color: #fff;
}
.dot {
  position: absolute;
  right: 12px;
  top: 50%;
  margin-top: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5a4a;
  box-shadow: 0 0 10px #ff5a4a;
}
.badge {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--accent);
  color: #0b0d14;
  font-size: 11px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 10px;
  font-style: normal;
}
.navfoot {
  margin-top: auto;
  padding: 14px 8px 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}
.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 10px 22px;
  flex-wrap: wrap;
  background: #0a0e1acc;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.hero {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}
.hero .nm {
  font-weight: 650;
  font-size: 14px;
  line-height: 1.15;
}
.hero .sub {
  font-size: 11.5px;
  color: var(--muted);
}
.hero-bar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}
.lvl {
  white-space: nowrap;
  color: #cfd5e6;
  font-size: 13px;
}
.lvl b {
  font-size: 17px;
  color: #fff;
}
.prestige-chip {
  margin-left: 8px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  background: linear-gradient(90deg, #ff8a1f, #ffcf4a);
  color: #1a1000;
}
.gold {
  font-size: 17px;
  color: var(--gold);
  font-weight: 650;
  white-space: nowrap;
  text-shadow: 0 0 14px #f0c35a55;
}
.view {
  padding: 18px 22px 8px;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  animation: fade 0.25s ease;
}
@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.foot {
  text-align: center;
  color: var(--muted);
  font-size: 11.5px;
  padding: 26px 16px 30px;
  margin-top: auto;
}
.pagehead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.pagehead h2 {
  margin: 0;
  font-size: 22px;
}
.pagehead p {
  margin: 2px 0 0;
  color: var(--muted);
  max-width: 640px;
}
@media (max-width: 900px) {
  .app {
    grid-template-columns: 1fr;
  }
  .nav {
    position: static;
    height: auto;
    flex-direction: row;
    padding: 6px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
  }
  .brand,
  .navfoot,
  .navgroup {
    display: none;
  }
  .navbtn {
    flex-direction: column;
    gap: 2px;
    padding: 6px 10px;
    min-width: 74px;
    text-align: center;
  }
  .navbtn b {
    font-size: 10.5px;
    white-space: nowrap;
  }
  .badge,
  .dot {
    top: 6px;
    right: 6px;
    transform: none;
    margin: 0;
  }
  .view {
    padding: 12px;
  }
}

/* ---------- événements ---------- */
.ticker {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 36px;
  padding: 0 22px;
  background: linear-gradient(90deg, #ffffff08, transparent);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  font-size: 12.5px;
}
.ticker-label {
  flex: none;
  font-size: 10.5px;
  letter-spacing: 1.4px;
  font-weight: 700;
  color: var(--accent);
}
.ticker-track {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.ticker-move {
  display: inline-flex;
  gap: 38px;
  white-space: nowrap;
  animation: scroll var(--dur, 60s) linear infinite;
  padding-left: 100%;
}
.ticker:hover .ticker-move {
  animation-play-state: paused;
}
@keyframes scroll {
  to {
    transform: translateX(-100%);
  }
}
.tev {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #cfd5e6;
}
.tev b {
  color: #fff;
}
.tev .ic {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 1px solid var(--c, #fff3);
  overflow: hidden;
  display: inline-grid;
  place-items: center;
  font-size: 13px;
  background: #0006;
}
.tev .ic img {
  width: 100%;
  height: 100%;
}
.tev .it {
  color: var(--c);
  font-weight: 650;
}
.tev.hot {
  text-shadow: 0 0 12px var(--c);
}

/* ---------- widgets ---------- */
.bar {
  position: relative;
  flex: 1;
  height: 18px;
  background: #04060c;
  border: 1px solid var(--line);
  border-radius: 99px;
  overflow: hidden;
}
.bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--hp-m);
  transition: width 0.3s;
  border-radius: 99px;
}
.bar.xp i {
  background: linear-gradient(90deg, #5b3fe0, var(--xp), #c0a8ff);
  box-shadow: 0 0 12px var(--xp);
}
.bar.hp i {
  background: linear-gradient(90deg, #8e1e14, var(--hp-m));
}
.bar.hp.player i {
  background: linear-gradient(90deg, #1f8a3a, var(--hp));
}
.bar span {
  position: absolute;
  inset: 0;
  text-align: center;
  font-size: 11px;
  line-height: 17px;
  font-weight: 600;
  text-shadow: 0 1px 2px #000;
}
.btn {
  background: var(--surface2);
  border: 1px solid var(--line2);
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition:
    transform 0.12s,
    background 0.12s,
    border-color 0.12s,
    box-shadow 0.12s;
}
.btn:hover:not(:disabled) {
  background: var(--surface3);
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  transform: translateY(-1px);
}
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.btn.small {
  padding: 4px 11px;
  font-size: 12.5px;
  border-radius: 8px;
}
.btn.primary {
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #000));
  border-color: transparent;
  color: #0b0d14;
  font-weight: 700;
  box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 35%, transparent);
}
.btn.primary:hover:not(:disabled) {
  box-shadow: 0 8px 26px color-mix(in srgb, var(--accent) 55%, transparent);
}
.btn.danger {
  background: #8e1e14;
  border-color: transparent;
}
.btn.stop {
  color: #ffb4a8;
  border-color: #8e3a30aa;
}
.link {
  background: none;
  border: none;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  text-align: left;
}
select,
input[type='text'],
input[type='email'],
input[type='password'] {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line2);
  border-radius: 10px;
  padding: 8px 11px;
  font: inherit;
}
input:focus,
select:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent);
  outline-offset: 0;
}
.switch {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 12.5px;
  color: var(--muted);
}
.switch input {
  accent-color: var(--accent);
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px #0006;
}
.grid {
  display: grid;
  gap: 14px;
}
.cols2 {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.spacer {
  margin-left: auto;
}
.error {
  color: #ff6b5e;
  font-size: 13px;
}
.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: #7a1f15;
  color: #fff;
  padding: 10px 18px;
  border-radius: 12px;
  z-index: 60;
  box-shadow: 0 10px 30px #000a;
}
.tabs2 {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.tab2 {
  padding: 7px 15px;
  border-radius: 99px;
  background: var(--surface);
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: 13px;
}
.tab2.on {
  background: color-mix(in srgb, var(--accent) 25%, transparent);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  color: #fff;
}

/* ---------- avatar, ornements, titres ---------- */
.avatar {
  --c1: #5a5f72;
  --c2: #8a90a5;
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  padding: 3px;
  flex: none;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  display: grid;
  place-items: center;
}
.avatar > i {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #2b3350, #121626);
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 22px;
  overflow: hidden;
}
.avatar.lg {
  width: 84px;
  height: 84px;
  padding: 5px;
}
.avatar.lg > i {
  font-size: 40px;
}
.orn-bronze {
  --c1: #8a5a2a;
  --c2: #d99a5a;
}
.orn-silver {
  --c1: #9aa3b5;
  --c2: #f0f4fb;
}
.orn-gold {
  --c1: #b8862b;
  --c2: #ffe08a;
  box-shadow: 0 0 10px #f0c35a66;
}
.orn-emerald {
  --c1: #0f7a4a;
  --c2: #62f0a8;
  box-shadow: 0 0 12px #2ee88a66;
}
.orn-sapphire {
  --c1: #1f4fd0;
  --c2: #7ab4ff;
  box-shadow: 0 0 14px #4a8aff88;
}
.orn-amethyst {
  --c1: #7a2fc8;
  --c2: #d99aff;
  box-shadow: 0 0 14px #b070ff88;
}
.orn-flame,
.orn-frost,
.orn-void,
.orn-sun,
.orn-rainbow,
.orn-crown {
  background: conic-gradient(from var(--ang), var(--c1), var(--c2), var(--c1));
  animation: spin 3.5s linear infinite;
}
.orn-flame {
  --c1: #ff3a1a;
  --c2: #ffd24a;
  box-shadow: 0 0 18px #ff6a2a99;
}
.orn-frost {
  --c1: #3ac8ff;
  --c2: #ffffff;
  box-shadow: 0 0 18px #6ad8ff99;
}
.orn-void {
  --c1: #3a0a7a;
  --c2: #c070ff;
  box-shadow: 0 0 20px #9a50ffaa;
}
.orn-sun {
  --c1: #ff9a1a;
  --c2: #fff2a0;
  box-shadow: 0 0 24px #ffc84acc;
}
.orn-rainbow {
  background: conic-gradient(from var(--ang), #ff4a4a, #ffd24a, #4aff7a, #4ab8ff, #b04aff, #ff4a4a);
  box-shadow: 0 0 22px #ffffff66;
}
.orn-crown {
  background: conic-gradient(from var(--ang), #ffd24a, #fff6c0, #c98a14, #fff6c0, #ffd24a);
  box-shadow: 0 0 28px #ffc84acc;
}
.orn-crown::after {
  content: '👑';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 18px;
  filter: drop-shadow(0 2px 4px #000);
}
.avatar.lg.orn-crown::after {
  top: -18px;
  font-size: 26px;
}
@keyframes spin {
  to {
    --ang: 360deg;
  }
}
.t1 {
  color: #b6bcc9;
}
.t2 {
  color: #5dff5d;
}
.t3 {
  color: #5aa6ff;
}
.t4 {
  color: #c06aff;
}
.t5 {
  color: #ff9a2a;
}
.t4,
.t5 {
  background: linear-gradient(90deg, currentColor, #fff, currentColor);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
.ptitle {
  font-size: 11px;
  font-style: italic;
  margin-top: 1px;
}
.titlechip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 99px;
  background: var(--surface);
  border: 1px solid var(--line2);
  cursor: pointer;
  font-size: 13px;
}
.titlechip.on {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 20%, transparent);
}
.titlechip.locked {
  opacity: 0.35;
  cursor: default;
}

/* ---------- combat ---------- */
.zonebar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.zonebtn {
  font-weight: 650;
}
.prestige-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  margin-bottom: 12px;
  border-radius: var(--r);
  background: linear-gradient(90deg, #ff8a1f33, #ffcf4a22);
  border: 1px solid #ffb04a88;
  flex-wrap: wrap;
}
.arena3d {
  position: relative;
  width: 100%;
  height: clamp(340px, 50vw, 560px);
  border: 1px solid var(--line2);
  border-radius: 18px;
  overflow: hidden;
  background: #0a0f0a;
  box-shadow:
    0 18px 50px #000a,
    inset 0 0 0 1px #ffffff10;
}
.arena3d canvas {
  display: block;
}
.plates {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.plate {
  position: absolute;
  left: 0;
  top: 0;
  width: 190px;
  text-align: center;
  text-shadow: 0 2px 4px #000;
  will-change: transform;
}
.plate .pn {
  font-size: 14px;
  font-weight: 650;
  color: #fff;
  margin-bottom: 3px;
}
.plate .pn small {
  color: #d8dcea;
  font-size: 11px;
  font-weight: 400;
}
.plate.monster .pn {
  color: #ffe0b0;
}
.plate.boss .pn {
  color: #ff7a60;
}
.plate .bar {
  height: 12px;
}
.plate .bar span {
  font-size: 9.5px;
  line-height: 11px;
}
.fxlayer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.fxnum {
  position: absolute;
  font-size: 26px;
  font-weight: 800;
  text-shadow:
    0 2px 4px #000,
    0 0 8px #000a;
  animation: floatup 1.1s forwards;
  white-space: nowrap;
  transform: translateX(-50%);
}
.fxnum.dmg {
  color: #ff6a58;
}
.fxnum.crit {
  color: #ffb347;
  font-size: 36px;
}
.fxnum.heal {
  color: #6dff7a;
}
.fxnum.shield {
  color: var(--shield);
}
.fxnum.gold {
  color: var(--gold);
  font-size: 20px;
}
@keyframes floatup {
  from {
    transform: translate(-50%, 0);
    opacity: 1;
  }
  to {
    transform: translate(-50%, -80px);
    opacity: 0;
  }
}
.rest-banner {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  background: #000b;
  border: 1px solid var(--line2);
  border-radius: 12px;
  padding: 9px 15px;
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 13.5px;
  backdrop-filter: blur(6px);
}
.hud {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 12px 0 8px;
  flex-wrap: wrap;
}
.pa {
  display: flex;
  gap: 5px;
  align-items: center;
  color: var(--pa);
  font-weight: 700;
  font-size: 12px;
}
.pa i {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #0a1730;
  border: 2px solid var(--pa);
  display: inline-block;
}
.pa i.on {
  background: radial-gradient(circle at 35% 35%, #cfe8ff, var(--pa));
  box-shadow: 0 0 9px var(--pa);
}
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 2px 11px;
  font-size: 12px;
}
.spells {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 10px;
}
.spell {
  display: flex;
  gap: 11px;
  align-items: center;
  text-align: left;
  padding: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  transition:
    transform 0.12s,
    border-color 0.12s,
    background 0.12s;
}
.spell:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--accent) 70%, transparent);
  background: var(--surface2);
  transform: translateY(-2px);
}
.spell:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.spell.racial {
  border-color: #7a5fc088;
  background: linear-gradient(160deg, #2a1f4a66, var(--surface));
}
.ico {
  width: 48px;
  height: 48px;
  border: 2px solid #000;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 24px;
  background: #0007;
  flex: none;
  overflow: hidden;
}
.ico img {
  width: 100%;
  height: 100%;
  display: block;
}
.t b {
  display: block;
  color: #fff;
  font-size: 13.5px;
}
.t small {
  color: var(--muted);
  font-size: 12px;
}
.spell .cost {
  position: absolute;
  top: 5px;
  right: 7px;
  background: var(--pa);
  color: #04101f;
  border-radius: 99px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 800;
}
.spell.racial .cost {
  background: #9b7fe0;
}
.spell kbd {
  position: absolute;
  bottom: 4px;
  right: 8px;
  font-size: 10px;
  color: var(--muted);
}
.actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 0;
}
.logbox {
  max-height: 170px;
  overflow-y: auto;
  background: #05070d99;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 12px;
}
.logline {
  font-size: 12.5px;
  padding: 1px 0;
}
.logline.dmg {
  color: #e8c9c3;
}
.logline.hurt {
  color: #ff8e80;
}
.logline.heal {
  color: #8dff98;
}
.logline.shield {
  color: var(--shield);
}
.logline.buff {
  color: #c3b1ff;
}
.logline.kill {
  color: var(--gold);
}
.logline.loot {
  color: #d0a0ff;
}
.logline.level {
  color: #fff;
  font-weight: 700;
}
.logline.death {
  color: #ff4d4d;
}

/* ---------- zones (carte) ---------- */
.zonegrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  text-align: left;
  margin: 14px 0;
}
.zonecard {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  padding: 14px;
  border: 1px solid var(--line2);
  background: linear-gradient(160deg, var(--z1), var(--z2));
  cursor: pointer;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.zonecard::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0000, #000b);
}
.zonecard > * {
  position: relative;
}
.zonecard:hover:not(.locked) {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px #000a;
  border-color: var(--accent);
}
.zonecard.current {
  outline: 2px solid var(--accent);
}
.zonecard.locked {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.6);
}
.zonecard h4 {
  margin: 0 0 2px;
  font-size: 16px;
  color: #fff;
}
.zonecard .lv {
  font-size: 12px;
  color: #d6dae8;
}
.zdrops {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.zdrops .item,
.zdrops .ico {
  width: 34px;
  height: 34px;
  font-size: 16px;
  border-radius: 7px;
}
.zonecard .tag {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 99px;
  background: #000a;
}

/* ---------- objets / rareté ---------- */
.items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  gap: 8px;
}
.item {
  aspect-ratio: 1;
  border: 2px solid var(--c, #444);
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #0008;
  font-size: 24px;
  position: relative;
  overflow: hidden;
}
.item img {
  width: 100%;
  height: 100%;
}
.item.clickable {
  cursor: pointer;
}
.item.clickable:hover {
  filter: brightness(1.3);
  transform: translateY(-2px);
}
.item.locked {
  opacity: 0.22;
  filter: grayscale(1);
}
.item.equipped {
  box-shadow:
    0 0 14px var(--c),
    inset 0 0 8px var(--c);
}
.common {
  --c: var(--common);
}
.uncommon {
  --c: var(--uncommon);
}
.rare {
  --c: var(--rare);
}
.epic {
  --c: var(--epic);
}
.legendary {
  --c: var(--legendary);
}
.poor {
  --c: #777;
}
.rar {
  color: var(--c);
}
.slotrow {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 7px 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 7px;
}
.slotrow .item {
  width: 46px;
  flex: none;
}
.slotrow .t {
  flex: 1;
  min-width: 0;
}
.stat {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid #ffffff10;
}
.stat:last-child {
  border-bottom: 0;
}

/* ---------- compétences ---------- */
.skillbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}
.skillbar b {
  color: var(--accent);
  font-size: 22px;
}
.skillbtns {
  display: flex;
  gap: 8px;
}
.tree-wrap {
  position: relative;
  height: min(70vh, 740px);
  border: 1px solid var(--line2);
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #1b2142, #06070e 78%);
  box-shadow: inset 0 0 80px #000a;
}
.tree-svg {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: grab;
  user-select: none;
}
.tree-svg:active {
  cursor: grabbing;
}
.tree-ring {
  fill: none;
  stroke: #ffffff0d;
  stroke-width: 1;
}
.tree-branch {
  font-size: 34px;
  letter-spacing: 8px;
  opacity: 0.55;
  font-weight: 800;
}
.tree-link {
  stroke: #ffffff1c;
  stroke-width: 3;
}
.tree-link.half {
  stroke: #ffffff44;
}
.tree-link.taken {
  stroke: var(--c, var(--gold));
  stroke-width: 5;
  filter: drop-shadow(0 0 4px var(--c, var(--gold)));
}
.tree-node {
  fill: #121624;
  stroke: var(--c);
  stroke-width: 3;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.15s;
}
.tree-node.root {
  fill: #3a2f10;
  stroke: var(--gold);
  opacity: 1;
}
.tree-node.taken {
  fill: var(--c);
  opacity: 1;
  filter: drop-shadow(0 0 7px var(--c));
}
.tree-node.available {
  opacity: 1;
  stroke-width: 4;
}
.tree-node.can {
  animation: pulse 1.3s infinite;
  stroke: #fff;
}
.tree-node.notable {
  stroke-width: 4;
}
.tree-node.keystone {
  stroke-width: 5;
}
.tree-node.spell {
  stroke: #fff;
  stroke-width: 4;
  fill: #241a45;
}
.tree-node.spell.taken {
  fill: #fff;
  filter: drop-shadow(0 0 12px #b896ff);
}
.tree-glyph {
  fill: #fff;
  font-size: 13px;
  pointer-events: none;
  opacity: 0.85;
}
.tree-glyph.sp {
  font-size: 17px;
  fill: #d9c8ff;
}
@keyframes pulse {
  50% {
    filter: drop-shadow(0 0 12px #fff);
  }
}
.tree-tip {
  position: absolute;
  z-index: 5;
  background: #090c18f4;
  border: 1px solid var(--line2);
  border-radius: 12px;
  padding: 9px 12px;
  pointer-events: none;
  max-width: 250px;
  font-size: 13px;
  backdrop-filter: blur(6px);
}
.tree-tip small {
  color: var(--muted);
}

/* ---------- grimoire / coffres / quêtes / passe ---------- */
.spellcard {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 8px;
  width: 100%;
  text-align: left;
}
button.spellcard {
  cursor: pointer;
}
button.spellcard:hover:not(:disabled) {
  border-color: var(--accent);
}
.spellcard.on {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.spellcard.racial {
  border-color: #7a5fc088;
}
.spellcard.unknown {
  opacity: 0.45;
}
.spellcard .t {
  flex: 1;
  min-width: 0;
}
.rank {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 1px;
}
.src {
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 99px;
  background: var(--surface3);
  color: #cfd5e6;
}
.chestcard {
  text-align: center;
  padding: 16px;
  border-top: 3px solid var(--cc);
}
.chestcard .ico {
  width: 88px;
  height: 88px;
  margin: 0 auto 8px;
  font-size: 48px;
  border-color: var(--cc);
  box-shadow: 0 0 22px color-mix(in srgb, var(--cc) 60%, transparent);
}
.chestcard h3 {
  color: var(--cc);
  justify-content: center;
}
.chestcard .rates {
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0 10px;
}
.qgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 16px;
}
.qcard {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
}
.qcard.done {
  border-color: color-mix(in srgb, var(--hp) 60%, transparent);
  background: color-mix(in srgb, var(--hp) 10%, transparent);
}
.qcard.claimed {
  opacity: 0.5;
}
.qhead {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}
.qhead b {
  font-size: 14px;
}
.rewards {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12px;
}
.rw {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 99px;
  background: var(--surface2);
  border: 1px solid var(--line);
}
.rw .ico {
  width: 18px;
  height: 18px;
  border-width: 1px;
  font-size: 11px;
  border-radius: 4px;
}
.passhead {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  margin-bottom: 14px;
}
.passhead .big {
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
}
.passtrack {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 2px 18px;
  scroll-snap-type: x proximity;
}
.ptier {
  flex: none;
  width: 118px;
  padding: 10px 8px;
  text-align: center;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  scroll-snap-align: start;
  display: grid;
  gap: 6px;
  justify-items: center;
  align-content: start;
  position: relative;
}
.ptier .n {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--muted);
}
.ptier.reached {
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
}
.ptier.claimable {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  box-shadow: 0 0 20px color-mix(in srgb, var(--accent) 40%, transparent);
  animation: glow 2s infinite;
}
.ptier.claimed {
  opacity: 0.5;
}
.ptier .rewards {
  justify-content: center;
}
@keyframes glow {
  50% {
    box-shadow: 0 0 30px color-mix(in srgb, var(--accent) 70%, transparent);
  }
}
.ptier .rw {
  flex-direction: column;
  border-radius: 10px;
  padding: 4px 6px;
  font-size: 11px;
  width: 100%;
}
.achv {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  margin-bottom: 8px;
}
.achv.done {
  border-color: color-mix(in srgb, var(--c) 60%, transparent);
  background: color-mix(in srgb, var(--c) 10%, transparent);
}
.achv .tier {
  width: 10px;
  height: 38px;
  border-radius: 6px;
  background: var(--c);
  box-shadow: 0 0 12px var(--c);
}
.achv .bar {
  height: 9px;
  margin-top: 4px;
}
.achv .bar i {
  background: var(--c);
  border-radius: 99px;
}
.look-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 16px;
}
@media (max-width: 860px) {
  .look-layout {
    grid-template-columns: 1fr;
  }
}
.preview {
  position: relative;
  height: 420px;
  border-radius: 18px;
  border: 1px solid var(--line2);
  background: radial-gradient(circle at 50% 35%, #272f50, #090b15);
  overflow: hidden;
}
.optgroup {
  margin-bottom: 14px;
}
.optgroup > .lbl {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 5px;
}
.swatches {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #0008;
  cursor: pointer;
  transition: transform 0.1s;
}
.swatch:hover {
  transform: scale(1.12);
}
.swatch.on {
  border-color: #fff;
  box-shadow: 0 0 0 2px var(--accent);
}
.chipbtn {
  padding: 5px 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 99px;
  cursor: pointer;
  font-size: 12.5px;
}
.chipbtn.on {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 18%, transparent);
}
.chipbtn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.chipbtn .rar {
  font-size: 11px;
}
.form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0;
}
.formrow {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}
.formrow label {
  font-size: 12px;
  color: var(--muted);
}
table.rank {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
table.rank th {
  text-align: left;
  color: var(--muted);
  font-weight: 500;
  font-size: 12px;
  border-bottom: 1px solid var(--line);
  padding: 8px;
}
table.rank td {
  padding: 8px;
  border-bottom: 1px solid #ffffff0d;
  vertical-align: middle;
}
table.rank tr.me td {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.rankname {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rankname .avatar {
  width: 34px;
  height: 34px;
  padding: 2px;
}
.rankname .avatar > i {
  font-size: 16px;
}
.fdot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  background: #888;
}
.fdot.alliance {
  background: #3b82f6;
}
.fdot.horde {
  background: #dc2626;
}

/* ---------- modales ---------- */
.overlay {
  position: fixed;
  inset: 0;
  background: #02040acc;
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  z-index: 50;
  padding: 16px;
  overflow-y: auto;
}
.modal {
  background: linear-gradient(180deg, #151a2e, #0d1020);
  border: 1px solid var(--line2);
  border-radius: 20px;
  padding: 24px 26px;
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 100px #000;
  animation: pop 0.25s ease;
}
.modal.wide {
  max-width: 980px;
}
.modal h2 {
  margin-top: 0;
  font-size: 22px;
  letter-spacing: 0.5px;
}
.factions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 16px 0;
}
.factioncard {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 24px 16px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--fc) 22%, transparent), var(--surface));
  border: 1px solid var(--fc);
  border-radius: 18px;
  cursor: pointer;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.factioncard:hover {
  box-shadow: 0 0 34px color-mix(in srgb, var(--fc) 55%, transparent);
  transform: translateY(-4px);
}
.factioncard .crest {
  font-size: 72px;
  filter: drop-shadow(0 6px 12px #000a);
}
.factioncard b {
  font-size: 24px;
  letter-spacing: 3px;
  color: var(--fc);
  text-transform: uppercase;
}
.factioncard small {
  color: var(--muted);
}
.races {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.racecard {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--fc);
  border-radius: 12px;
  cursor: pointer;
  transition:
    background 0.12s,
    transform 0.12s;
}
.racecard:hover {
  background: var(--surface3);
  transform: translateY(-2px);
}
.racecard small {
  color: var(--muted);
  font-size: 11px;
}
.rspells {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}
.rspells img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #000;
}
.create {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 18px;
  text-align: left;
}
@media (max-width: 760px) {
  .create {
    grid-template-columns: 1fr;
  }
}
.starters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin: 16px 0;
}
.startercard {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line2);
  border-radius: 16px;
  cursor: pointer;
  text-align: center;
  transition:
    transform 0.15s,
    box-shadow 0.15s,
    border-color 0.15s;
}
.startercard:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 0 26px color-mix(in srgb, var(--accent) 40%, transparent);
}
.startercard .ico {
  width: 70px;
  height: 70px;
  margin: 0 auto 8px;
}
.rlist {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  text-align: left;
}
.rlist li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid #7a5fc088;
  border-radius: 10px;
  padding: 8px;
  margin: 6px 0;
  font-size: 13.5px;
}
.rlist img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  flex: none;
}
.reveal .cards {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin: 18px 0;
}
.rcard {
  width: 152px;
  padding: 14px 8px;
  border: 2px solid var(--c);
  border-radius: 16px;
  background: linear-gradient(#ffffff0a, #0000), #11152a;
  animation: pop 0.5s both;
  box-shadow: 0 0 22px color-mix(in srgb, var(--c) 40%, transparent);
}
.rcard .ico {
  width: 64px;
  height: 64px;
  margin: 0 auto 8px;
  border-color: var(--c);
}
.rcard b {
  display: block;
  font-size: 13px;
  color: var(--c);
}
.rcard small {
  color: var(--muted);
  display: block;
  margin-top: 4px;
}
@keyframes pop {
  from {
    transform: scale(0.3) rotate(-8deg);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.bonuslist {
  text-align: left;
  margin: 12px 0;
  padding-left: 18px;
  color: #cfd5e6;
}
.bonuslist li {
  margin: 4px 0;
}

.zonecard .tag:empty {
  display: none;
}

/* ---------- v0.6 : chat, guildes, défis, boutique ---------- */
.gtag {
  color: #ffd27a;
  font-weight: 700;
  font-size: 0.92em;
}
.pbadge {
  color: #ff9a2a;
  font-weight: 700;
  font-size: 0.85em;
  margin-left: 4px;
}
.chat {
  position: fixed;
  right: 16px;
  bottom: 0;
  width: 340px;
  max-width: calc(100vw - 20px);
  z-index: 20;
  display: flex;
  flex-direction: column;
  background: #0b0f1cf2;
  border: 1px solid var(--line2);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -10px 40px #000a;
  backdrop-filter: blur(10px);
}
.chat.collapsed .chat-tabs,
.chat.collapsed .chat-log,
.chat.collapsed .chat-form {
  display: none;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  cursor: pointer;
}
.chat-toggle {
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
}
.chat-unread {
  background: #ff5a4a;
  color: #fff;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  padding: 0 7px;
}
.chat-tabs {
  display: flex;
  gap: 4px;
  padding: 0 10px 6px;
}
.chat-tabs button {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px;
  cursor: pointer;
  font-size: 12px;
}
.chat-tabs button.on {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 18%, transparent);
}
.chat-log {
  height: 230px;
  overflow-y: auto;
  padding: 4px 12px;
  font-size: 12.5px;
  line-height: 1.45;
}
.cm {
  padding: 1.5px 0;
  word-break: break-word;
}
.cm.mine {
  background: #ffffff0a;
  border-radius: 6px;
}
.ctime {
  color: #6c748c;
  font-size: 10.5px;
}
.cname {
  font-weight: 700;
  color: #cfd5e6;
}
.cname.alliance {
  color: #7ab0ff;
}
.cname.horde {
  color: #ff8a80;
}
.clvl {
  color: #6c748c;
  font-size: 10.5px;
  margin-left: 4px;
}
.chat-form {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  border-top: 1px solid var(--line);
}
.chat-form input {
  flex: 1;
  padding: 6px 10px;
  font-size: 13px;
}
@media (max-width: 900px) {
  .chat {
    right: 6px;
    width: calc(100vw - 12px);
  }
}
.skingrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}
.skincard {
  position: relative;
  text-align: center;
  padding: 14px 10px;
  border-radius: 14px;
  border: 1px solid var(--c);
  background: linear-gradient(#ffffff0a, #0000), var(--surface);
  box-shadow: 0 0 18px color-mix(in srgb, var(--c) 22%, transparent);
  display: grid;
  gap: 4px;
  justify-items: center;
}
.skincard.owned {
  opacity: 0.55;
}
.skincard .ico {
  width: 56px;
  height: 56px;
  border-color: var(--c);
  font-size: 30px;
}
.skincard .sale {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #ff5a4a;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 1px 8px;
  border-radius: 99px;
}
.bigstat {
  display: flex;
  gap: 22px;
  margin: 10px 0;
  flex-wrap: wrap;
}
.bigstat > div {
  display: grid;
}
.bigstat b {
  font-size: 30px;
  color: var(--accent);
  line-height: 1.1;
}
.resultbox {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--surface2);
  border: 1px solid var(--line);
}
.raidboss {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 10px;
}
.rimg {
  width: 110px;
  height: 110px;
  flex: none;
  border-radius: 14px;
  overflow: hidden;
  background: #0007;
  display: grid;
  place-items: center;
  font-size: 56px;
  border: 1px solid var(--line2);
}
.rimg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.toast.ok {
  background: #1c6b3a;
}

/* ---------- v0.7 : combats en direct, présence, signalement ---------- */
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5b6275;
  vertical-align: middle;
  margin-right: 2px;
}
.dot.on {
  background: #3ddc84;
  box-shadow: 0 0 6px #3ddc84aa;
}
.cm .rep {
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  margin-left: 6px;
  opacity: 0;
  padding: 0 2px;
}
.cm:hover .rep,
.cm .rep:focus-visible {
  opacity: 1;
}
.cm .rep:hover {
  color: #ff6b5a;
}
@media (hover: none) {
  .cm .rep {
    opacity: 0.6;
  }
}
.livepanel {
  position: fixed;
  left: 16px;
  bottom: 16px;
  width: 380px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  z-index: 25;
  background: #0b0f1cf5;
  border: 1px solid var(--line2);
  border-radius: 14px;
  box-shadow: 0 14px 50px #000c;
  padding: 12px 14px;
  backdrop-filter: blur(10px);
}
.lp-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.livebadge {
  color: #ff5a4a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  animation: livepulse 1.4s infinite;
}
@keyframes livepulse {
  50% {
    opacity: 0.35;
  }
}
.lp-x {
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 15px;
}
.lp-mon {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}
.lp-mon img,
.lp-mon .glyph {
  width: 52px;
  height: 52px;
  object-fit: contain;
  font-size: 38px;
  text-align: center;
}
.lp-members {
  display: grid;
  gap: 4px;
  margin-bottom: 8px;
}
.lp-m {
  display: grid;
  grid-template-columns: 10px minmax(60px, 1fr) 72px 74px;
  gap: 6px;
  align-items: center;
  font-size: 12px;
}
.lp-m.dead {
  opacity: 0.45;
  text-decoration: line-through;
}
.lp-n {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lp-m small {
  color: var(--muted);
  min-width: 70px;
  text-align: right;
}
.lp-log {
  max-height: 130px;
  overflow-y: auto;
  font-size: 11.5px;
  line-height: 1.45;
  border-top: 1px solid var(--line);
  padding-top: 6px;
}
.ll.dmg {
  color: #ffd479;
}
.ll.hurt {
  color: #ff9a8f;
}
.ll.death {
  color: #ff5a4a;
  font-weight: 700;
}
.ll.kill,
.ll.level {
  color: #6fe3a3;
}
.ll.heal {
  color: #7cc8ff;
}
.lp-res {
  margin-top: 8px;
}
@media (max-width: 900px) {
  .livepanel {
    left: 6px;
    bottom: 56px;
    width: calc(100vw - 12px);
  }
}
#dev-as {
  background: var(--surface);
  color: inherit;
  border: 1px solid var(--line2);
  border-radius: 8px;
  padding: 3px 6px;
}

/* ===== v0.8 : scène de combat 2D (campagne) ===== */
.stage {
  position: relative;
  width: 100%;
  height: clamp(380px, 52vw, 540px);
  border: 1px solid var(--line2);
  border-radius: 18px;
  overflow: hidden;
  background: #0a0f0a;
  box-shadow:
    0 18px 50px #000a,
    inset 0 0 0 1px #ffffff10;
  user-select: none;
}
.st-bg,
.st-fog,
.st-parts {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.st-bg .ly {
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 30%;
  height: 42%;
}
.st-bg .ly svg {
  width: 100%;
  height: 100%;
  display: block;
}
.st-bg .l1 {
  bottom: 33%;
  height: 36%;
  opacity: 0.6;
  filter: blur(0.6px);
}
.st-bg .l2 {
  bottom: 31%;
  height: 34%;
  opacity: 0.85;
}
.st-bg .l3 {
  bottom: 29%;
  height: 24%;
}
.st-bg .ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 31%;
  background:
    radial-gradient(ellipse at 50% 0%, #ffffff14, transparent 60%), repeating-linear-gradient(90deg, #0000 0 38px, #0000000d 38px 40px),
    linear-gradient(180deg, #0000, #0006);
}
.st-fog {
  background: radial-gradient(ellipse at 50% 100%, #0000 40%, #0007 100%), linear-gradient(180deg, #0003, #0000 30%);
}
.st-parts .p {
  position: absolute;
  border-radius: 50%;
  opacity: 0.55;
  animation: pfloat 7s ease-in-out infinite;
}
.st-parts .p.rise {
  animation-name: prise;
}
.st-parts .p.fall {
  animation-name: pfall;
}
.st-parts .p.drift {
  animation-name: pdrift;
}
@keyframes pfloat {
  0%,
  100% {
    transform: translate(0, 0);
    opacity: 0.15;
  }
  50% {
    transform: translate(14px, -18px);
    opacity: 0.7;
  }
}
@keyframes prise {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  50% {
    opacity: 0.8;
  }
  to {
    transform: translateY(-120px);
    opacity: 0;
  }
}
@keyframes pfall {
  from {
    transform: translateY(-60px);
    opacity: 0;
  }
  50% {
    opacity: 0.8;
  }
  to {
    transform: translateY(110px);
    opacity: 0;
  }
}
@keyframes pdrift {
  from {
    transform: translateX(-30px);
    opacity: 0;
  }
  50% {
    opacity: 0.5;
  }
  to {
    transform: translateX(60px);
    opacity: 0;
  }
}

.st-foes {
  position: absolute;
  left: 30%;
  right: 3%;
  bottom: 7%;
  top: 8%;
  display: flex;
  align-items: flex-end;
  justify-content: space-evenly;
  gap: 2%;
}
.foe {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  cursor: pointer;
  animation: spawn 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
  --h: 168px;
  --ar: 1;
  flex: 0 1 auto;
  min-width: 0;
}
.foe-sprite {
  position: relative;
  display: grid;
  place-items: end center;
  height: calc(var(--h) * var(--k, 1));
  width: min(calc(var(--h) * var(--k, 1) * var(--ar)), 34vw);
  max-width: 100%;
  transition: filter 0.15s;
}
.stage {
  --k: 1;
}
@media (max-width: 860px) {
  .stage {
    --k: 0.72;
  }
}
@media (max-width: 560px) {
  .stage {
    --k: 0.55;
  }
  .st-foes {
    left: 6%;
  }
}
.st-foes[data-n='3'] .foe.normal {
  --k: 0.86;
}
.st-foes[data-n='1'] .foe.normal {
  --k: 1.2;
}
.foe-sprite img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 8px 6px #0009);
  opacity: 0;
  transition: opacity 0.25s;
  transform-origin: 50% 100%;
  animation: idle 3s ease-in-out infinite;
}
.foe.ready .foe-sprite img {
  opacity: 1;
}
.foe:nth-child(2) .foe-sprite img {
  animation-delay: -0.8s;
}
.foe:nth-child(3) .foe-sprite img {
  animation-delay: -1.6s;
}
.foe-sprite .shadow {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -5px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(#000b, #0000 70%);
}
.foe.big .foe-sprite::after {
  content: '';
  position: absolute;
  inset: -6% -10% -2%;
  background: radial-gradient(ellipse at 50% 80%, #ff4a3a33, transparent 65%);
  pointer-events: none;
  z-index: -1;
}
.foe.target .foe-sprite::before {
  content: '▼';
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  color: #ffd27a;
  font-size: 18px;
  text-shadow: 0 0 8px #000;
  animation: bobt 1s ease-in-out infinite;
}
.foe.target .foe-sprite img {
  filter: drop-shadow(0 0 10px #ffd27a99) drop-shadow(0 8px 6px #0009);
}
.foe-plate {
  width: clamp(120px, 14vw, 190px);
  margin-top: 8px;
  padding: 6px 9px 7px;
  border-radius: 10px;
  background: linear-gradient(180deg, #151a2ccc, #090c16ee);
  border: 1px solid #ffffff22;
  box-shadow: 0 4px 14px #000a;
  text-align: center;
  backdrop-filter: blur(3px);
}
.foe.boss .foe-plate {
  border-color: #ff9a4a88;
}
.foe.big .foe-plate {
  border-color: #ff4a3aaa;
  box-shadow:
    0 4px 18px #ff3a2a44,
    0 4px 14px #000a;
  width: clamp(150px, 20vw, 250px);
}
.foe-plate .pn {
  font-size: 12.5px;
  font-weight: 650;
  color: #ffe0b0;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.foe.boss .pn {
  color: #ffb070;
}
.foe.big .pn {
  color: #ff7a60;
  font-size: 14px;
}
.foe-plate .pn small {
  color: #c8cde0;
  font-size: 10.5px;
  font-weight: 400;
}
.foe-plate .bar {
  height: 13px;
}
.foe.big .foe-plate .bar {
  height: 17px;
}
.foe-plate .bar span {
  font-size: 9.5px;
  line-height: 12px;
}
.foe.big .foe-plate .bar span {
  line-height: 16px;
  font-size: 11px;
}
.foe.dead {
  cursor: default;
  pointer-events: none;
}
.foe.dead .foe-sprite img {
  filter: grayscale(1) brightness(0.5);
  transform: translateY(8%) scale(0.92) rotate(-6deg);
  opacity: 0.4;
  animation: none;
  transition: all 0.5s;
}
.foe.dead .foe-plate {
  opacity: 0.45;
}
.foe.dying {
  animation: dying 0.7s forwards;
  pointer-events: none;
}
.foe.hit .foe-sprite {
  animation: foehit 0.32s;
}
.foe.hit .foe-sprite img {
  filter: brightness(2.4) saturate(0.4) drop-shadow(0 8px 6px #0009);
}
.foe.lunge .foe-sprite {
  animation: lunge 0.38s;
}
.stunned .foe:not(.dead) .foe-sprite::before {
  content: '💫';
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 22px;
  animation: bobt 0.8s ease-in-out infinite;
}
@keyframes idle {
  0%,
  100% {
    transform: scale(1, 1);
  }
  50% {
    transform: scale(1.012, 1.03);
  }
}
@keyframes spawn {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes dying {
  to {
    opacity: 0;
    transform: translateY(18px) scale(0.85);
    filter: grayscale(1) brightness(0.4);
  }
}
@keyframes foehit {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(8px) skewX(-3deg);
  }
  60% {
    transform: translateX(-5px);
  }
}
@keyframes lunge {
  0%,
  100% {
    transform: translateX(0) scale(1);
  }
  40% {
    transform: translateX(-34px) scale(1.07);
  }
}
@keyframes bobt {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 5px);
  }
}

.st-player {
  position: absolute;
  left: 3%;
  bottom: 6%;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  width: clamp(200px, 24vw, 290px);
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, #151a2cdd, #090c16f0);
  border: 1px solid #ffffff2a;
  box-shadow: 0 6px 20px #000b;
  backdrop-filter: blur(4px);
  transition: box-shadow 0.2s;
}
.st-player .avatar {
  width: 52px;
  height: 52px;
}
.st-player .pi {
  flex: 1;
  min-width: 0;
}
.st-player .pn {
  font-size: 13.5px;
  font-weight: 650;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.st-player .pn small {
  color: #c8cde0;
  font-weight: 400;
  font-size: 11px;
}
.st-player .bar {
  height: 15px;
}
.st-player .bar span {
  line-height: 14px;
  font-size: 10.5px;
}
.st-player .sh {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 0;
  background: var(--shield);
  box-shadow: 0 0 8px var(--shield);
  transition: width 0.3s;
  z-index: 1;
}
.st-player.shielded {
  box-shadow:
    0 0 0 1px #8fdcffaa,
    0 0 22px #8fdcff55,
    0 6px 20px #000b;
}
.st-player.buffed {
  box-shadow:
    0 0 0 1px #ff9a4aaa,
    0 0 22px #ff7a2a55,
    0 6px 20px #000b;
}
.st-player.cast {
  animation: pcast 0.4s;
}
.st-player.hit {
  animation: phit 0.32s;
}
@keyframes pcast {
  40% {
    transform: translateY(-6px) scale(1.04);
  }
}
@keyframes phit {
  20% {
    transform: translateX(-7px);
  }
  60% {
    transform: translateX(5px);
  }
}
.st-hurt {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  box-shadow: inset 0 0 90px 24px #ff1a0a;
}
.st-hurt.on {
  animation: hurt 0.42s;
}
@keyframes hurt {
  0% {
    opacity: 0.55;
  }
  100% {
    opacity: 0;
  }
}
.spark {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  pointer-events: none;
}
.proj {
  position: absolute;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  pointer-events: none;
}
.campbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.campinfo {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.campinfo b {
  font-size: 15px;
}
.campinfo .muted {
  font-size: 12px;
}
.campbar .tag {
  padding: 2px 9px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 650;
  background: #ffffff14;
  border: 1px solid #ffffff22;
}
.campbar .tag.boss {
  background: #ff9a4a22;
  border-color: #ff9a4a88;
  color: #ffb070;
}
.campbar .tag.big {
  background: #ff3a2a2a;
  border-color: #ff4a3a99;
  color: #ff8a70;
}
.camppips {
  display: flex;
  gap: 3px;
}
.camppips i {
  width: 15px;
  height: 8px;
  border-radius: 3px;
  background: #ffffff18;
  border: 1px solid #ffffff22;
}
.camppips i.done {
  background: var(--faction, #e3b95a);
  border-color: transparent;
}
.camppips i.cur {
  outline: 1px solid #fff;
  background: #fff;
}
.camppips i.boss {
  height: 12px;
  margin-top: -2px;
  background: #ff9a4a55;
}
.camppips i.boss.done {
  background: #ff9a4a;
}
.camppips i.big {
  height: 16px;
  margin-top: -4px;
  width: 18px;
  background: #ff3a2a55;
}
.camppips i.big.done {
  background: #ff4a3a;
}
.camp-zone {
  margin: 14px 0 6px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line2);
  background: linear-gradient(120deg, var(--z1), var(--z2));
}
.camp-zone h4 {
  margin: 0 0 8px;
}
.camp-lv {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.camp-lv button {
  min-width: 38px;
  padding: 6px 4px;
  border-radius: 8px;
  border: 1px solid #ffffff33;
  background: #0008;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}
.camp-lv button.boss {
  border-color: #ff9a4a;
  color: #ffb070;
}
.camp-lv button.big {
  border-color: #ff4a3a;
  color: #ff8a70;
}
.camp-lv button.cur {
  outline: 2px solid #fff;
}
.camp-lv button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.camp-lv button:hover:not(:disabled) {
  background: #fff3;
}

/* v0.8.1 : ennemis au centre, PV du joueur en dessous */
.st-foes {
  left: 3%;
  right: 3%;
  bottom: 21%;
  top: 6%;
  justify-content: center;
  gap: clamp(8px, 3vw, 46px);
}
.st-player {
  left: 0;
  right: 0;
  margin: 0 auto;
  bottom: 3.5%;
  width: min(560px, 92%);
}
.st-player .avatar {
  width: 46px;
  height: 46px;
}
.st-player .bar {
  height: 18px;
}
.st-player .bar span {
  line-height: 17px;
  font-size: 11.5px;
}
.st-bg .ground.art {
  height: 24%;
  background: linear-gradient(180deg, #0000, #000a);
}

/* v0.8.1 : icônes SVG + aides */
.ic {
  display: inline-flex;
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.2em;
  flex: none;
}
.ic svg {
  width: 100%;
  height: 100%;
}
.navbtn > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  font-size: 22px;
  border-radius: 9px;
  background: #ffffff0d;
}
.navbtn > span .ic {
  width: 20px;
  height: 20px;
}
.navbtn[data-view='combat'] > span {
  color: #ff8a6a;
}
.navbtn[data-view='challenges'] > span {
  color: #c8a2ff;
}
.navbtn[data-view='gear'] > span {
  color: #7ec8ff;
}
.navbtn[data-view='skills'] > span {
  color: #7be06a;
}
.navbtn[data-view='spells'] > span {
  color: #8fdcff;
}
.navbtn[data-view='chests'] > span {
  color: #ffcf6a;
}
.navbtn[data-view='shop'] > span {
  color: #ffb36a;
}
.navbtn[data-view='quests'] > span {
  color: #e8d9a0;
}
.navbtn[data-view='pass'] > span {
  color: #ffd84a;
}
.navbtn[data-view='guild'] > span {
  color: #9ab4ff;
}
.navbtn[data-view='rank'] > span {
  color: #ffcf4a;
}
.navbtn[data-view='profile'] > span {
  color: #b8c4d8;
}
.navbtn.active > span {
  background: #ffffff1c;
}
.logo {
  display: inline-grid;
  place-items: center;
}
.logo .ic {
  width: 26px;
  height: 26px;
}
.avatar > i .ic {
  width: 62%;
  height: 62%;
}
.help {
  display: inline-grid;
  place-items: center;
  width: 19px;
  height: 19px;
  margin-left: 7px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #ffffff40;
  background: #ffffff10;
  color: #b9c2dd;
  font: 700 12px/1 inherit;
  cursor: help;
  vertical-align: middle;
}
.help:hover,
.help:focus-visible {
  background: var(--faction, #5b8cff);
  color: #fff;
  outline: none;
  border-color: transparent;
}
.helprow {
  margin: 6px 0;
  text-align: right;
}
.helprow .help {
  margin: 0;
}
.help-pop {
  position: fixed;
  z-index: 1000;
  padding: 11px 14px;
  border-radius: 12px;
  background: #0d1222f2;
  border: 1px solid #ffffff2e;
  box-shadow: 0 10px 34px #000c;
  font-size: 13px;
  line-height: 1.5;
  color: #dfe4f5;
  font-weight: 400;
  text-align: left;
  pointer-events: none;
}
.help-pop b {
  color: #fff;
}
.gchat {
  grid-column: 1 / -1;
}
.gchat .chat-log {
  height: 260px;
  overflow-y: auto;
  background: #070a14;
  border-radius: 10px;
  padding: 8px;
  border: 1px solid var(--line);
}
.gchat .chat-form {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.gchat .chat-form input {
  flex: 1;
}
.navbtn > span {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}
.navbtn > span .ic {
  width: 22px;
  height: 22px;
}
.foe-plate .pn {
  white-space: normal;
  line-height: 1.2;
}
.foe-plate .pn small {
  display: block;
}

/* =====================================================================================================
   v0.9 — nouvelle direction artistique : « arcane sombre et or » (verre fumé, filets dorés, typographie à empattements)
   ===================================================================================================== */
:root {
  --bg: #06070d;
  --surface: rgba(255, 255, 255, 0.04);
  --surface2: rgba(255, 255, 255, 0.07);
  --surface3: rgba(255, 255, 255, 0.11);
  --line: rgba(255, 255, 255, 0.075);
  --line2: rgba(255, 255, 255, 0.15);
  --gold: #f1c765;
  --gold2: #b88a2e;
  --text: #eceef6;
  --muted: #8e96ad;
  --r: 16px;
  --display: 'Cinzel', 'Trajan Pro', 'Palatino Linotype', Georgia, serif;
  --faction: #f1c765;
  --accent: #f1c765;
  --common: #9aa0ac;
  --uncommon: #3ddc4a;
  --rare: #3a8dff;
  --epic: #b655f5;
  --legendary: #ff9a2a;
}
body {
  background:
    radial-gradient(1100px 620px at 82% -12%, rgba(241, 199, 101, 0.11), transparent 70%),
    radial-gradient(900px 640px at -12% 105%, rgba(92, 70, 230, 0.14), transparent 70%), linear-gradient(180deg, #080914, #05060b);
  background-attachment: fixed;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 3px);
}
.app,
.main {
  position: relative;
  z-index: 1;
}
h2 {
  font-family: var(--display);
  letter-spacing: 0.07em;
  font-weight: 700;
}
.pagehead h2 {
  font-size: 25px;
  background: linear-gradient(180deg, #fff, #f1d99a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pagehead {
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, rgba(241, 199, 101, 0.45), transparent 70%) 1;
}
h3 {
  font-size: 14px;
  letter-spacing: 0.04em;
  font-weight: 650;
  color: #f3ecd6;
}

/* navigation */
.app {
  grid-template-columns: 252px minmax(0, 1fr);
}
.nav {
  background: linear-gradient(180deg, #0b0d19f2, #07080ff7);
  border-right: 1px solid transparent;
  border-image: linear-gradient(180deg, rgba(241, 199, 101, 0.35), rgba(255, 255, 255, 0.04) 40%, transparent) 1;
  padding: 16px 12px;
  gap: 3px;
}
.brand b {
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.22em;
  background: linear-gradient(90deg, #fff6d6, #f1c765);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.navgroup {
  color: #b99a52;
  font-size: 10px;
  letter-spacing: 0.22em;
  padding: 16px 12px 6px;
}
.navbtn {
  gap: 12px;
  padding: 7px 10px;
  border-radius: 14px;
}
.navbtn > span {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  box-shadow: 0 3px 10px #0007;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.navbtn > span .navimg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.navbtn:hover > span {
  transform: scale(1.06);
}
.navbtn b {
  font-size: 14px;
  font-weight: 560;
  letter-spacing: 0.01em;
}
.navbtn.active {
  background: linear-gradient(90deg, rgba(241, 199, 101, 0.16), rgba(255, 255, 255, 0.02));
  border-color: rgba(241, 199, 101, 0.28);
  box-shadow: inset 3px 0 0 var(--gold);
}
.navbtn.active > span {
  border-color: rgba(241, 199, 101, 0.8);
  box-shadow: 0 0 16px rgba(241, 199, 101, 0.45);
}
.badge {
  background: linear-gradient(180deg, #ffd877, #e0a93a);
}

/* barre du haut */
.topbar {
  background: rgba(8, 9, 18, 0.78);
  border-bottom: 1px solid rgba(241, 199, 101, 0.16);
  padding: 10px 26px;
}
.bar {
  height: 20px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 2px 5px #0009;
}
.bar i {
  border-radius: 99px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.bar.xp i {
  background: linear-gradient(90deg, #6a46f0, #b58cff 60%, #f1c765);
}
.bar.hp i {
  background: linear-gradient(180deg, #ff6a5a, #b32418);
}
.bar.hp.player i {
  background: linear-gradient(180deg, #55e872, #1b9a3c);
}
.gold {
  color: var(--gold);
  font-weight: 700;
  text-shadow: 0 0 16px rgba(241, 199, 101, 0.45);
}

/* cartes, boutons, champs */
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  padding: 18px;
}
.btn {
  border-radius: 12px;
  padding: 9px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-weight: 560;
  letter-spacing: 0.01em;
}
.btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(241, 199, 101, 0.6);
  box-shadow: 0 6px 18px #0008;
}
.btn.primary {
  background: linear-gradient(180deg, #ffdf8a, #e5ad3c);
  color: #1b1305;
  border: 1px solid #ffe9b0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  box-shadow:
    0 8px 22px rgba(229, 173, 60, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.btn.primary:hover:not(:disabled) {
  filter: brightness(1.07);
  box-shadow:
    0 10px 28px rgba(229, 173, 60, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.btn.pulse {
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 0 rgba(241, 199, 101, 0.6),
      0 8px 22px rgba(229, 173, 60, 0.3);
  }
  50% {
    box-shadow:
      0 0 0 9px rgba(241, 199, 101, 0),
      0 8px 26px rgba(229, 173, 60, 0.5);
  }
}
select,
input[type='text'],
input[type='email'],
input[type='password'] {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 9px 12px;
}
.tab2 {
  border-radius: 12px;
  padding: 8px 17px;
  background: rgba(255, 255, 255, 0.04);
}
.tab2.on {
  background: linear-gradient(180deg, rgba(241, 199, 101, 0.22), rgba(241, 199, 101, 0.08));
  border-color: rgba(241, 199, 101, 0.5);
  color: #fff6d6;
}
.tgl {
  position: relative;
  flex: none;
  width: 46px;
  height: 26px;
}
.tgl input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
  margin: 0;
  width: 100%;
  height: 100%;
}
.tgl i {
  position: absolute;
  inset: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: 0.2s;
}
.tgl i::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #cfd5e6;
  transition: 0.2s;
}
.tgl input:checked + i {
  background: linear-gradient(180deg, #ffdf8a, #e5ad3c);
  border-color: #ffe9b0;
}
.tgl input:checked + i::after {
  transform: translateX(20px);
  background: #1b1305;
}
.setrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.setrow small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
  max-width: 480px;
  line-height: 1.4;
}

/* scène de combat */
.stage {
  border: 1px solid rgba(241, 199, 101, 0.32);
  border-radius: 22px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.6),
    0 0 0 4px rgba(0, 0, 0, 0.35),
    0 0 40px rgba(241, 199, 101, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.st-foes {
  bottom: 24%;
  top: 4%;
}
.foe-sprite .shadow {
  left: 2%;
  right: 2%;
  bottom: -10px;
  height: 26px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.35) 45%, transparent 72%);
  filter: blur(1.5px);
  z-index: -1;
}
.foe-sprite {
  overflow: visible;
}
.foe-sprite img {
  position: relative;
  z-index: 1;
}
.foe-plate {
  background: linear-gradient(180deg, rgba(20, 24, 42, 0.9), rgba(8, 10, 20, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  margin-top: 14px;
}
.foe-plate .bar {
  position: relative;
  overflow: hidden;
}
.foe-plate .msh {
  position: absolute;
  left: 0;
  top: 0;
  height: 5px;
  width: 0;
  background: #8fdcff;
  box-shadow: 0 0 8px #8fdcff;
  z-index: 2;
  border-radius: 99px;
  transition: width 0.25s;
}
.foe-chips {
  display: flex;
  gap: 4px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 5px;
  min-height: 0;
}
.foe-chips:empty {
  display: none;
}
.foe-chips .chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 7px;
  font-size: 10.5px;
  font-weight: 650;
  background: rgba(0, 0, 0, 0.5);
}
.foe-chips .chip .ic {
  width: 12px;
  height: 12px;
}
.foe-chips .chip.sh {
  color: #8fdcff;
}
.foe-chips .chip.dot {
  color: #8be05a;
}
.foe-chips .chip.rage {
  color: #ff9a2a;
}
.foe-chips .chip.guard {
  color: #cfd6e0;
}
.intent {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: help;
  color: var(--ic, #cfd6e0);
  background: radial-gradient(circle at 35% 30%, #2b3150, #0b0d19);
  border: 2px solid var(--ic, #cfd6e0);
  box-shadow:
    0 0 14px color-mix(in srgb, var(--ic, #cfd6e0) 55%, transparent),
    0 4px 10px #000a;
  animation: intentin 0.35s cubic-bezier(0.2, 1.4, 0.3, 1);
}
.intent .ic {
  width: 21px;
  height: 21px;
}
.intent.hit {
  --ic: #d7dce8;
}
.intent.heavy {
  --ic: #ff5a4a;
  animation:
    intentin 0.35s cubic-bezier(0.2, 1.4, 0.3, 1),
    heavy 1s ease-in-out 0.35s infinite;
}
.intent.drain {
  --ic: #ff5a9a;
}
.intent.shield {
  --ic: #6fc8ff;
}
.intent.heal {
  --ic: #5aff8a;
}
.intent.rage {
  --ic: #ff9a2a;
}
.intent.guard {
  --ic: #a8b6cc;
}
@keyframes intentin {
  from {
    transform: translateX(-50%) scale(0.2);
    opacity: 0;
  }
}
@keyframes heavy {
  50% {
    box-shadow:
      0 0 24px #ff3a2a,
      0 4px 10px #000a;
  }
}
.st-player {
  background: linear-gradient(180deg, rgba(22, 26, 46, 0.92), rgba(8, 10, 20, 0.96));
  border: 1px solid rgba(241, 199, 101, 0.3);
  border-radius: 16px;
}
.pa {
  gap: 6px;
}
.pa i {
  width: 17px;
  height: 17px;
  transition:
    transform 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}
.pa i.on {
  transform: scale(1.06);
}
.pa .pacount {
  margin-left: 4px;
  color: #cfe8ff;
  font-size: 12.5px;
}
.pa {
  position: relative;
}
.pa-spent {
  position: absolute;
  right: -8px;
  top: -14px;
  font-style: normal;
  color: #ff9a6a;
  font-weight: 800;
  animation: floatup 0.7s forwards;
}
.spell {
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  padding: 10px 11px;
}
.spell.used {
  animation: spellused 0.55s;
}
@keyframes spellused {
  0% {
    box-shadow: 0 0 0 0 rgba(78, 168, 255, 0.9);
    transform: scale(1.04);
  }
  100% {
    box-shadow: 0 0 0 14px rgba(78, 168, 255, 0);
    transform: none;
  }
}
.spell .cost {
  background: linear-gradient(180deg, #7cc2ff, #3b86e0);
}
.spell small {
  display: block;
  line-height: 1.3;
  font-size: 11.5px;
  padding-right: 4px;
}
.spell .stags {
  position: absolute;
  bottom: 5px;
  right: 30px;
  display: flex;
  gap: 4px;
}
.spell .stags .ic {
  width: 13px;
  height: 13px;
}

/* sac & équipement */
.gearcols {
  grid-template-columns: minmax(300px, 400px) 1fr;
}
@media (max-width: 900px) {
  .gearcols {
    grid-template-columns: 1fr;
  }
}
.bagbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.bagbar h3 {
  margin: 0;
}
.sortsel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
}
.sortsel select {
  padding: 5px 9px;
  border-radius: 10px;
}
.bag {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  gap: 7px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  box-shadow: inset 0 3px 12px #0009;
}
.cell {
  --c: #555;
  position: relative;
  aspect-ratio: 1;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 11px;
  border: 2px solid var(--c);
  background: linear-gradient(180deg, #1a1e30, #0c0e1a);
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.12s,
    box-shadow 0.12s;
}
.cell img {
  width: 100%;
  height: 100%;
  display: block;
}
.cell:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 14px color-mix(in srgb, var(--c) 70%, transparent);
}
.cell.sel {
  outline: 2px solid #fff;
  outline-offset: 1px;
}
.cell.common {
  --c: var(--common);
}
.cell.uncommon {
  --c: var(--uncommon);
}
.cell.rare {
  --c: var(--rare);
}
.cell.epic {
  --c: var(--epic);
}
.cell.legendary {
  --c: var(--legendary);
}
.cell .n {
  position: absolute;
  right: 3px;
  bottom: 1px;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  text-shadow:
    0 1px 3px #000,
    0 0 4px #000;
}
.cell.empty {
  border: 2px dashed rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.02);
  cursor: default;
}
.cell.empty:hover {
  transform: none;
  box-shadow: none;
}
.bigico {
  --c: #555;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 12px;
  border: 2px solid var(--c);
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #0b0d19;
}
.bigico img {
  width: 100%;
  height: 100%;
}
.bigico.common {
  --c: var(--common);
}
.bigico.uncommon {
  --c: var(--uncommon);
}
.bigico.rare {
  --c: var(--rare);
}
.bigico.epic {
  --c: var(--epic);
}
.bigico.legendary {
  --c: var(--legendary);
}
.bigico.empty {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.15);
  color: #566;
}
.bagdet {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}
.bagdet .t {
  flex: 1;
  min-width: 180px;
}
.bagdet .t small {
  display: block;
  color: var(--muted);
}
.slotrow {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

/* grimoire */
.sgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 10px;
}
.stile {
  --rc: #8b93ab;
  position: relative;
  display: flex;
  gap: 13px;
  text-align: left;
  padding: 13px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  color: inherit;
  transition:
    transform 0.12s,
    border-color 0.12s,
    box-shadow 0.12s;
}
button.stile {
  cursor: pointer;
}
button.stile:hover {
  transform: translateY(-2px);
  border-color: var(--rc);
}
.stile.on {
  border-color: var(--rc);
  box-shadow:
    0 0 0 1px var(--rc),
    0 0 26px color-mix(in srgb, var(--rc) 28%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 14%, transparent), rgba(255, 255, 255, 0.02));
}
.stile.locked {
  opacity: 0.55;
  filter: saturate(0.5);
}
.stile.empty {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 92px;
  color: var(--muted);
  border-style: dashed;
  text-align: center;
}
.stile.empty small {
  display: block;
  font-size: 11.5px;
}
.stile .ico {
  width: 58px;
  height: 58px;
  flex: none;
  border: 2px solid var(--rc);
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #0b0d19;
  box-shadow: 0 0 14px color-mix(in srgb, var(--rc) 35%, transparent);
}
.stile .ico img {
  width: 100%;
  height: 100%;
}
.stile .body {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 5px;
  align-content: start;
}
.stile .top {
  display: flex;
  gap: 8px;
  align-items: center;
}
.stile .top b {
  font-size: 14.5px;
}
.stile .rank {
  color: #ffd84a;
  font-size: 12px;
  letter-spacing: 1px;
}
.tagrow {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 8px 1px 6px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 650;
  color: var(--tc);
  background: color-mix(in srgb, var(--tc) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--tc) 40%, transparent);
}
.tag .ic {
  width: 12px;
  height: 12px;
}
.stile .fx {
  font-size: 12.5px;
  line-height: 1.45;
  color: #d4d9ea;
}
.stile .meta {
  display: flex;
  gap: 6px 12px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--muted);
}
.stile .meta .cost {
  color: #8fc6ff;
  font-weight: 700;
}
.stile .act {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  color: #cfd5e6;
}
.stile.on .act {
  background: var(--rc);
  color: #07080f;
}
.filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.fchip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: 12.5px;
}
.fchip .ic {
  width: 14px;
  height: 14px;
}
.fchip.on {
  background: rgba(241, 199, 101, 0.16);
  border-color: rgba(241, 199, 101, 0.55);
  color: #fff6d6;
}

/* succès */
.achvsum {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.achvsum b {
  font-size: 30px;
  font-family: var(--display);
  color: var(--gold);
}
.achvsum span {
  color: var(--muted);
}
.agrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 10px;
}
.acard {
  --c: #999;
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  position: relative;
}
.acard .aico {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.45);
  border: 2px solid color-mix(in srgb, var(--c) 55%, transparent);
  color: var(--c);
  opacity: 0.8;
}
.acard .aico .ic {
  width: 24px;
  height: 24px;
}
.acard .abody {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 5px;
}
.atop {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.atier {
  font-size: 11px;
  color: var(--c);
}
.acard .bar i {
  background: var(--c);
}
.arow {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.arew {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.acard.done {
  border-color: var(--c);
  background: linear-gradient(120deg, color-mix(in srgb, var(--c) 18%, transparent), rgba(255, 255, 255, 0.03));
  box-shadow: 0 0 26px color-mix(in srgb, var(--c) 20%, transparent);
}
.acard.done .aico {
  opacity: 1;
  background: linear-gradient(180deg, var(--c), color-mix(in srgb, var(--c) 55%, #000));
  color: #0b0d14;
  border-color: transparent;
  box-shadow: 0 0 18px color-mix(in srgb, var(--c) 60%, transparent);
}
.astate {
  padding: 1px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  background: #1f9a3e;
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* quêtes */
.qcard {
  border-radius: 16px;
  padding: 14px 16px;
  position: relative;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.qcard .qstate {
  font-size: 12px;
  color: var(--muted);
  font-weight: 650;
}
.qcard.ready {
  border-color: rgba(241, 199, 101, 0.7);
  background: linear-gradient(120deg, rgba(241, 199, 101, 0.13), rgba(255, 255, 255, 0.03));
  box-shadow: 0 0 24px rgba(241, 199, 101, 0.18);
}
.qcard.ready .qstate {
  color: #ffdf8a;
}
.qcard.ready .bar i {
  background: linear-gradient(90deg, #e5ad3c, #ffdf8a);
}
.qcard.claimed {
  opacity: 0.72;
  border-color: rgba(61, 220, 74, 0.35);
  background: rgba(61, 220, 74, 0.05);
}
.qcard.claimed .qstate {
  color: #5ae06a;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.qcard.claimed .bar i {
  background: #3ddc4a;
}
.qcard.just {
  animation: justclaimed 1.4s;
}
@keyframes justclaimed {
  0% {
    box-shadow: 0 0 0 0 rgba(90, 224, 106, 0.9);
    transform: scale(1.025);
  }
  100% {
    box-shadow: 0 0 0 26px rgba(90, 224, 106, 0);
    transform: none;
  }
}
#reward-stack {
  position: fixed;
  top: 86px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  display: grid;
  gap: 10px;
  pointer-events: none;
}
.reward-toast {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 320px;
  max-width: 92vw;
  padding: 14px 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, #2b2208, #14110b);
  border: 1px solid var(--gold);
  box-shadow:
    0 16px 44px #000c,
    0 0 34px rgba(241, 199, 101, 0.38);
  animation: rtin 0.5s cubic-bezier(0.2, 1.3, 0.3, 1);
  transition:
    opacity 0.5s,
    transform 0.5s;
}
.reward-toast.out {
  opacity: 0;
  transform: translateY(-14px);
}
.reward-toast b {
  font-family: var(--display);
  letter-spacing: 0.06em;
  color: #ffe39a;
  display: block;
  font-size: 15px;
}
.reward-toast small {
  color: #cfd5e6;
}
.reward-toast div div {
  font-size: 14px;
}
.rt-ic {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #ffdf8a, #e5ad3c);
  color: #1b1305;
}
.rt-ic .ic {
  width: 26px;
  height: 26px;
}
@keyframes rtin {
  from {
    opacity: 0;
    transform: translateY(-26px) scale(0.9);
  }
}

/* coffres */
.rsum {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 4px 0 12px;
}
.rsum span {
  padding: 4px 13px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--c, rgba(255, 255, 255, 0.2));
  color: var(--c, #dfe4f5);
  font-size: 13px;
}
.cards.many {
  max-height: 52vh;
  overflow-y: auto;
  justify-content: center;
  padding: 6px;
}
.cards.many .rcard {
  width: 118px;
  padding: 10px 6px;
}
.cards.many .rcard .ico {
  width: 48px;
  height: 48px;
}
.chestcard {
  border-radius: 20px;
}
.modal {
  border-radius: 24px;
  border: 1px solid rgba(241, 199, 101, 0.22);
  background: linear-gradient(180deg, #151a2e, #0a0c18);
}
.modal.reveal,
#reveal-body {
  max-width: min(1000px, 96vw);
}
.helprow {
  text-align: left;
}

/* v0.10 : fond sans flou parasite, monstres détourés et éclairés, effets qui ne déplacent plus rien */
.stage {
  container-type: size;
}
.st-bg .art {
  position: absolute;
  inset: -2%;
  background-size: cover;
  background-position: center 60%;
  background-repeat: no-repeat;
  filter: brightness(0.62) saturate(1.08) contrast(1.05) blur(1.4px);
}
.st-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.08) 34%, rgba(0, 0, 0, 0.05) 58%, rgba(0, 0, 0, 0.72));
}
.foe-sprite {
  height: min(calc(var(--h) * var(--k, 1)), 50cqh);
  width: min(calc(min(calc(var(--h) * var(--k, 1)), 50cqh) * var(--ar)), 36cqw);
}
.foe-sprite .halo {
  position: absolute;
  left: -14%;
  right: -14%;
  bottom: -6%;
  top: 14%;
  background: radial-gradient(ellipse at 50% 70%, rgba(255, 238, 205, 0.34), rgba(255, 238, 205, 0.12) 42%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}
.foe-sprite img {
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.85)) drop-shadow(0 0 2px rgba(255, 245, 225, 0.55)) drop-shadow(0 0 9px rgba(255, 236, 200, 0.22))
    drop-shadow(0 12px 9px rgba(0, 0, 0, 0.75));
}
.foe.target .foe-sprite img {
  filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 10px rgba(255, 210, 122, 0.7)) drop-shadow(0 12px 9px rgba(0, 0, 0, 0.75));
}
.foe.hit .foe-sprite img {
  filter: brightness(2.2) saturate(0.4) drop-shadow(0 12px 9px rgba(0, 0, 0, 0.75));
}
.foe-plate {
  position: relative;
}
.foe-chips {
  position: absolute;
  left: -6px;
  right: -6px;
  top: 100%;
  margin-top: 4px;
  justify-content: center;
  pointer-events: auto;
}
.intent {
  top: -14px;
}

/* carte de campagne avec illustrations */
.zonelist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 12px;
  margin: 14px 0;
  text-align: left;
}
.camp-zone {
  position: relative;
  margin: 0;
  padding: 14px 16px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.78)),
    var(--art, linear-gradient(120deg, var(--z1), var(--z2))) center / cover;
  box-shadow: 0 10px 28px #0008;
}
.camp-zone.here {
  border-color: var(--gold);
  box-shadow:
    0 0 0 1px var(--gold),
    0 0 28px rgba(241, 199, 101, 0.3);
}
.camp-zone .zhead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}
.camp-zone h4 {
  margin: 0;
  font-family: var(--display);
  letter-spacing: 0.05em;
  font-size: 15px;
  text-shadow: 0 2px 6px #000;
}
.camp-zone .zhead small {
  color: #d8dcea;
  text-shadow: 0 1px 3px #000;
}
.camp-lv button {
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}
.camp-lv button .ic {
  width: 14px;
  height: 14px;
}
.camp-lv button.done:not(.boss):not(.big) {
  border-color: rgba(241, 199, 101, 0.6);
  color: #ffe39a;
}
.camp-zone .zdrops {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.camp-zone .zdrops .item,
.camp-zone .zdrops .ico {
  width: 34px;
  height: 34px;
  aspect-ratio: auto;
  font-size: 17px;
}
#zone-body.modal,
.modal.wide {
  max-width: 1100px;
}

/* ornements supplémentaires */
.orn-laurel {
  --c1: #4f7d1f;
  --c2: #f0e08a;
  box-shadow: 0 0 12px #b8d85a66;
}
.orn-thorn {
  --c1: #6a0a1a;
  --c2: #ff5a72;
  box-shadow: 0 0 12px #ff3a5a66;
}
.orn-rune {
  --c1: #1b2f9a;
  --c2: #86d8ff;
  box-shadow: 0 0 16px #5ab8ff99;
}
.orn-verdant {
  --c1: #17702f;
  --c2: #c2f590;
  box-shadow: 0 0 14px #5aff8a66;
}
.orn-storm,
.orn-blood,
.orn-arcane,
.orn-shadow,
.orn-dawn,
.orn-abyss {
  background: conic-gradient(from var(--ang), var(--c1), var(--c2), var(--c1));
  animation: spin 3.2s linear infinite;
}
.orn-storm {
  --c1: #2a4aff;
  --c2: #eaf4ff;
  box-shadow: 0 0 20px #6a9aff99;
}
.orn-blood {
  --c1: #5a0010;
  --c2: #ff3a4a;
  box-shadow: 0 0 20px #ff1a3a88;
}
.orn-arcane {
  --c1: #5a2af0;
  --c2: #4af0ff;
  box-shadow: 0 0 22px #8a7affaa;
}
.orn-shadow {
  --c1: #05000f;
  --c2: #8a4aff;
  box-shadow: 0 0 22px #6a2affaa;
}
.orn-dawn {
  --c1: #ff7a2a;
  --c2: #fff6c0;
  box-shadow: 0 0 26px #ffb84acc;
}
.orn-abyss {
  --c1: #021a3a;
  --c2: #2af0d0;
  box-shadow: 0 0 26px #2affd088;
}

/* profil : portrait, personnalisation, fiche publique */
.portrait {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}
.pframe {
  position: relative;
  padding: 5px;
  border-radius: 20px;
  width: 190px;
  flex: none;
  background: linear-gradient(135deg, var(--c1, #5a5f72), var(--c2, #8a90a5));
  box-shadow: 0 10px 28px #000a;
}
.pframe.orn-flame,
.pframe.orn-frost,
.pframe.orn-void,
.pframe.orn-sun,
.pframe.orn-rainbow,
.pframe.orn-crown {
  background: conic-gradient(from var(--ang), var(--c1), var(--c2), var(--c1));
  animation: spin 3.5s linear infinite;
}
.pframe .portrait {
  border-radius: 16px;
}
.lookgrid {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 760px) {
  .lookgrid {
    grid-template-columns: 1fr;
  }
  .pframe {
    margin: 0 auto;
  }
}
.lookopts .optgroup {
  margin-bottom: 14px;
}
.lookopts .lbl {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b99a52;
  margin-bottom: 6px;
}
.plink {
  cursor: pointer;
}
.plink:hover {
  text-decoration: underline;
  text-decoration-color: var(--gold);
}
.pcard {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 22px;
  text-align: left;
}
@media (max-width: 720px) {
  .pcard {
    grid-template-columns: 1fr;
  }
}
.pcard .pname {
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: 0.05em;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.pcard .psub {
  color: var(--muted);
  margin: 2px 0 12px;
}
.pgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  margin: 12px 0;
}
.pgrid > div {
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}
.pgrid b {
  display: block;
  font-size: 17px;
}
.pgrid span {
  font-size: 11.5px;
  color: var(--muted);
}
.pstuff {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(62px, 1fr));
  gap: 8px;
}
.pstuff .slot {
  text-align: center;
  font-size: 10.5px;
  color: var(--muted);
}
.pstuff .bigico {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  margin-bottom: 3px;
}
.onl {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3ddc4a;
  box-shadow: 0 0 8px #3ddc4a;
}
.onl.off {
  background: #5a6070;
  box-shadow: none;
}
.avatar > i svg {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
}
.st-bg .art {
  filter: brightness(0.78) saturate(1.1) contrast(1.06) blur(0.5px);
}
.st-bg::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 62%, rgba(0, 0, 0, 0.62));
}
.foe-sprite .shadow {
  height: 30px;
  bottom: -12px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.45) 45%, transparent 74%);
}

/* v0.10.1 : bouclier lisible sur la barre, ennemis vaincus visibles jusqu'à la fin du groupe */
.foe-plate .msh,
.st-player .sh {
  position: absolute;
  top: 0;
  bottom: auto;
  height: 100%;
  width: 0;
  z-index: 1;
  border-radius: 0 99px 99px 0;
  background: linear-gradient(180deg, #c6ecff, #4aa8e8 60%, #2c78c0);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 0 8px rgba(111, 200, 255, 0.6);
  transition:
    left 0.25s,
    width 0.25s;
}
.bar > span {
  z-index: 2;
}
.bar .shn {
  font-style: normal;
  color: #bfeaff;
  font-weight: 800;
  text-shadow:
    0 1px 2px #000,
    0 0 6px #2c78c0;
}
.foe.dead .foe-sprite img {
  opacity: 0.82;
  filter: grayscale(0.8) brightness(0.62) drop-shadow(0 0 1px rgba(255, 255, 255, 0.5)) drop-shadow(0 12px 9px rgba(0, 0, 0, 0.75));
  transform: none;
  transition:
    filter 0.4s,
    opacity 0.4s;
}
.foe.dead .foe-plate {
  opacity: 0.8;
}
.foe.dying,
.foe {
  animation-duration: 0.45s;
}
.foe.dying {
  animation-name: dying;
  animation-fill-mode: forwards;
}

/* v0.10.2 : plus de liseré blanc (il soulignait le moindre défaut du contour) ; ombre portée et halo seulement */
.foe-sprite img {
  filter: drop-shadow(0 0 7px rgba(255, 238, 205, 0.16)) drop-shadow(0 12px 8px rgba(0, 0, 0, 0.72));
}
.foe.target .foe-sprite img {
  filter: drop-shadow(0 0 10px rgba(255, 210, 122, 0.75)) drop-shadow(0 12px 8px rgba(0, 0, 0, 0.72));
}
.foe.dead .foe-sprite img {
  filter: grayscale(0.8) brightness(0.62) drop-shadow(0 12px 8px rgba(0, 0, 0, 0.72));
}

/* v0.10.2 : barre de PV et barre de bouclier jointes, chiffres sur fond noir */
.bars {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.6);
  box-shadow: inset 0 2px 5px #0009;
}
.bars .bar {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.bars .bar.shb {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  height: 14px;
}
.bars .bar.shb i {
  background: linear-gradient(180deg, #c6ecff, #4aa8e8 55%, #2c78c0);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  border-radius: 0;
}
.bars .bar i {
  border-radius: 0;
}
.bar > span.num {
  inset: auto;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  padding: 0 8px;
  line-height: 1.35;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  white-space: nowrap;
  text-shadow: none;
  font-weight: 700;
}
.bars .bar.shb span.num {
  color: #bfeaff;
  font-size: 10px;
}
.foe-plate .bars .bar.hp {
  height: 16px;
}
.foe.big .foe-plate .bars .bar.hp {
  height: 20px;
}
.st-player .bars .bar.hp {
  height: 20px;
}
.st-player .bars .bar.shb {
  height: 16px;
}
.foe-plate .bars .bar span.num {
  font-size: 10.5px;
}
.st-player .bars .bar span.num {
  font-size: 11.5px;
}
.bars .bar {
  flex: none;
  width: 100%;
  position: relative;
}

/* v0.10.3 : barre unique (PV + bouclier collé), chiffres cernés d'un trait noir, sigle d'intention dans la plaque */
.foe-plate {
  display: flex;
  align-items: center;
  gap: 8px;
  width: auto;
  min-width: clamp(130px, 14vw, 200px);
  max-width: 250px;
  text-align: center;
}
.fp-main {
  flex: 1;
  min-width: 0;
}
.foe-plate .intent {
  position: static;
  transform: none;
  flex: none;
  width: 34px;
  height: 34px;
  margin: 0;
  top: auto;
  left: auto;
  animation: none;
}
.foe-plate .intent .ic {
  width: 19px;
  height: 19px;
}
.foe-plate .intent.heavy {
  animation: heavy 1s ease-in-out infinite;
}
.foe-plate .bar.hp,
.st-player .bar.hp {
  position: relative;
  overflow: hidden;
  border-radius: 99px;
}
.foe-plate .bar.hp {
  height: 17px;
}
.foe.big .foe-plate .bar.hp {
  height: 21px;
}
.st-player .bar.hp {
  height: 21px;
}
.bar .shs {
  position: absolute;
  top: 0;
  height: 100%;
  width: 0;
  border-radius: 0 99px 99px 0;
  background: linear-gradient(180deg, #c6ecff, #4aa8e8 55%, #2c78c0);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 0 8px rgba(111, 200, 255, 0.55);
  transition:
    left 0.25s,
    width 0.25s;
}
.bar > span.num {
  position: absolute;
  inset: auto;
  top: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  padding: 0;
  line-height: 1;
  background: none;
  border-radius: 0;
  white-space: nowrap;
  z-index: 3;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.01em;
  -webkit-text-stroke: 3px #000;
  paint-order: stroke fill;
  text-shadow:
    0 0 3px #000,
    0 1px 2px #000;
}
.bar > span.num.shn {
  color: #d4f1ff;
}
.foe-plate .bar span.num {
  font-size: 11px;
}
.st-player .bar span.num {
  font-size: 12px;
}

/* v0.11 : hub « Aujourd'hui » */
.streak {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(255, 138, 31, 0.22), rgba(241, 199, 101, 0.12));
  border: 1px solid rgba(255, 170, 60, 0.5);
  font-size: 14px;
}
.streak b {
  font-size: 20px;
  color: #ffcf6a;
  font-family: var(--display);
}
.streak .ic {
  width: 20px;
  height: 20px;
  color: #ff9a2a;
}
.cal {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
@media (max-width: 760px) {
  .cal {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.cday {
  position: relative;
  min-height: 78px;
  padding: 8px 8px 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cday > b {
  font-size: 12px;
  color: var(--muted);
}
.cday .cr {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}
.cday .rw {
  font-size: 10.5px;
  padding: 1px 6px;
}
.cday .rw .ico {
  width: 15px;
  height: 15px;
}
.cday.big {
  border-color: rgba(241, 199, 101, 0.45);
  background: linear-gradient(180deg, rgba(241, 199, 101, 0.13), rgba(255, 255, 255, 0.03));
}
.cday.done {
  opacity: 0.5;
}
.cday .ck {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #2f9c47;
  display: grid;
  place-items: center;
  font-style: normal;
}
.cday .ck .ic {
  width: 12px;
  height: 12px;
}
.cday.today {
  border-color: var(--gold);
  box-shadow:
    0 0 0 1px var(--gold),
    0 0 20px rgba(241, 199, 101, 0.35);
  animation: pulse 2s infinite;
}
.dgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.ico.big {
  width: 62px;
  height: 62px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
}
.ico.big img {
  width: 100%;
  height: 100%;
}
.ico.big .ic {
  width: 32px;
  height: 32px;
  color: var(--gold);
}
.freechest,
.chalrule,
.restrow,
.wheel {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 6px 0 12px;
}
.restrow > div {
  flex: 1;
}
.wheelrow {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}
.offers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 10px;
}
.offer {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}
.offer .ico {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #0007;
  overflow: hidden;
}
.offer .ico img {
  width: 100%;
  height: 100%;
}
.offer .t {
  flex: 1;
  min-width: 0;
}
.offer small {
  display: block;
  color: var(--muted);
}
.goals {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.goals li {
  display: grid;
  gap: 4px;
}
.goals small {
  color: var(--muted);
}
.spark {
  width: 100%;
  height: 54px;
  display: block;
  margin-bottom: 8px;
}

/* v0.11 vague 2 : éléments, doré, errant */
.elems {
  display: inline-flex;
  gap: 3px;
  margin-left: 5px;
  vertical-align: middle;
}
.elems .el {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding: 0 4px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid color-mix(in srgb, var(--ec) 70%, transparent);
  color: var(--ec);
  cursor: help;
  font-size: 10px;
  font-weight: 800;
}
.elems .el .ic {
  width: 11px;
  height: 11px;
}
.elems .el i {
  font-style: normal;
}
.elems .el.res {
  opacity: 0.8;
}
.tagx {
  font-style: normal;
  font-size: 9.5px;
  padding: 0 6px;
  border-radius: 99px;
  background: rgba(255, 90, 70, 0.25);
  border: 1px solid #ff6a5a;
  color: #ff9a8a;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tagx.gold {
  background: rgba(255, 200, 60, 0.22);
  border-color: #ffc84a;
  color: #ffdf8a;
}
.foe.golden .foe-sprite img {
  filter: sepia(0.55) saturate(2.4) brightness(1.18) drop-shadow(0 0 12px rgba(255, 200, 60, 0.9)) drop-shadow(0 12px 8px rgba(0, 0, 0, 0.72));
}
.foe.golden .foe-plate {
  border-color: #ffc84a;
  box-shadow:
    0 0 18px rgba(255, 200, 60, 0.45),
    0 4px 14px #000a;
}
.foe.golden .foe-sprite::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 240, 160, 0.35), transparent 40%);
  animation: glint 2.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes glint {
  50% {
    opacity: 0.2;
  }
}

/* v0.11 vague 2 : atelier d'objets */
.bagdet.col {
  flex-direction: column;
  align-items: stretch;
}
.upl {
  color: #ffd84a;
  font-weight: 800;
}
.affs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.aff {
  padding: 2px 10px;
  border-radius: 99px;
  background: rgba(111, 200, 255, 0.12);
  border: 1px solid rgba(111, 200, 255, 0.4);
  color: #bfeaff;
  font-size: 12px;
  font-weight: 650;
}
.sockets,
.gempick,
.gemrow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.gemrow {
  margin-top: 10px;
}
.gem {
  position: relative;
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--gc);
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--gc) 55%, #fff), color-mix(in srgb, var(--gc) 45%, #000));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 0 10px color-mix(in srgb, var(--gc) 60%, transparent);
}
.gem .ic {
  width: 18px;
  height: 18px;
}
.gem.t2 {
  box-shadow: 0 0 14px var(--gc);
}
.gem.t3 {
  box-shadow:
    0 0 20px var(--gc),
    inset 0 0 8px #fff8;
}
.gem i {
  position: absolute;
  right: -4px;
  bottom: -4px;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  background: #000c;
  border-radius: 99px;
  padding: 0 5px;
}
.socket {
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.emptysock {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.4);
}
.slotrow[data-eqsel] {
  cursor: pointer;
}
.slotrow.selrow {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}
.setrow2 {
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  margin-bottom: 6px;
}
.setl {
  display: inline-block;
  margin: 3px 6px 0 0;
  font-size: 11.5px;
  color: var(--muted);
}
.setl.on {
  color: #7dff9a;
  font-weight: 700;
}

/* collections */
.bzone {
  margin: 12px 0;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.82)),
    var(--art, none) center / cover;
}
.bzone.done {
  border-color: rgba(241, 199, 101, 0.6);
  box-shadow: 0 0 22px rgba(241, 199, 101, 0.2);
}
.bzone .zhead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.bzone h4 {
  margin: 0;
  font-family: var(--display);
  letter-spacing: 0.05em;
}
.btiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(116px, 1fr));
  gap: 10px;
}
.btile {
  padding: 8px;
  border-radius: 14px;
  background: rgba(8, 10, 20, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  display: grid;
  gap: 5px;
}
.btile .bimg {
  width: 76px;
  height: 76px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: #0a0c14;
  display: grid;
  place-items: center;
}
.btile .bimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  transform: scale(1.5);
}
.btile.unseen .bimg img {
  filter: brightness(0) contrast(1.2);
  opacity: 0.5;
}
.btile b {
  font-size: 11.5px;
  line-height: 1.2;
  min-height: 28px;
  display: grid;
  place-items: center;
}
.btile small {
  color: var(--muted);
}
.stars {
  display: flex;
  justify-content: center;
  gap: 2px;
}
.stars i {
  width: 13px;
  height: 13px;
  color: #3a3f50;
  font-style: normal;
}
.stars i.on {
  color: #ffd84a;
}
.stars .ic {
  width: 13px;
  height: 13px;
}
.items.sets {
  grid-template-columns: repeat(auto-fill, minmax(50px, 56px));
}
.setbonus {
  margin-top: 8px;
}
.btile .bimg .q {
  font-size: 34px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.25);
  font-family: var(--display);
}

/* vague 3 : expéditions et familiers */
.expcard {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}
.exphead {
  display: flex;
  justify-content: space-between;
}
.expkinds,
.exppets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.petchip {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: #0a0c14;
  overflow: hidden;
  cursor: pointer;
}
.petchip.on {
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(241, 199, 101, 0.6);
}
.petchip span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}
.petchip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  transform: scale(1.5);
}

.eggs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.eggcard {
  --rc: #999;
  display: grid;
  gap: 4px;
  justify-items: center;
  width: 150px;
  padding: 12px;
  border-radius: 16px;
  border: 2px solid var(--rc);
  background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 16%, transparent), rgba(0, 0, 0, 0.3));
  text-align: center;
}
.eggcard .egg {
  width: 44px;
  height: 58px;
  border-radius: 50% 50% 46% 46% / 62% 62% 38% 38%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--rc) 55%, #000);
  box-shadow: 0 0 16px var(--rc);
}
.eggcard small {
  color: var(--muted);
}
.ptiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.ptile {
  --rc: #999;
  display: grid;
  gap: 5px;
  justify-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(8, 10, 20, 0.7);
  border: 1px solid color-mix(in srgb, var(--rc) 50%, transparent);
  text-align: center;
}
.ptile.active {
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(241, 199, 101, 0.35);
}
.ptile .bimg {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--rc);
  background: #0a0c14;
  display: grid;
  place-items: center;
}
.ptile .bimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  transform: scale(1.5);
}
.ptile.unseen {
  opacity: 0.55;
}
.ptile b {
  font-size: 12px;
  min-height: 30px;
  display: grid;
  place-items: center;
  line-height: 1.2;
}
.ptile small {
  color: var(--muted);
}
.reprow {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.matrow {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.mat {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: #0a0c14;
  overflow: hidden;
}
.mat.none {
  opacity: 0.4;
}
.mat img {
  width: 100%;
  height: 100%;
}
.mat i {
  position: absolute;
  right: 3px;
  bottom: 1px;
  font-style: normal;
  font-weight: 800;
  font-size: 12px;
  text-shadow:
    0 1px 3px #000,
    0 0 4px #000;
}
.recipe {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.recipe .t {
  flex: 1;
  min-width: 0;
}
.recipe small {
  display: block;
  color: var(--muted);
}
.needs {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
  flex-wrap: wrap;
}
.need {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
}
.need img {
  width: 22px;
  height: 22px;
  border-radius: 5px;
}
.need.ok {
  color: #7dff9a;
}
.need.ko {
  color: #ff8a7a;
}
.qrow {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 6px 0;
}
.qrow .ico {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #0007;
}
.warnbox {
  border-color: rgba(255, 190, 70, 0.5);
  margin-bottom: 12px;
}
.mypet {
  position: absolute;
  left: -14px;
  top: -16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--gold);
  background: #0a0c14;
  box-shadow: 0 0 12px rgba(241, 199, 101, 0.5);
  cursor: help;
}
.mypet img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  transform: scale(1.5);
}
.loadbar {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.loadbar .lbl {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b99a52;
  margin-right: 4px;
}
.eternal {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}
.enode {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}
.enode .t {
  flex: 1;
  min-width: 0;
}
.enode small {
  display: block;
  color: var(--muted);
}
.enode .rk {
  font-family: var(--display);
  color: var(--gold);
  font-size: 17px;
  min-width: 42px;
  text-align: center;
}
.curchips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0 14px;
}
.curchip {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 6px 14px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--line2);
  font-weight: 650;
}
.curchip b {
  color: var(--gold);
}
.storyart {
  height: 150px;
  margin: -24px -26px 16px;
  border-radius: 24px 24px 0 0;
  background: #0a0c14 center / cover;
  mask-image: linear-gradient(180deg, #000 60%, transparent);
}
.storytext {
  font-size: 16px;
  line-height: 1.6;
  color: #e6e9f5;
  font-style: italic;
}
.keyaff,
.keys {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 12px 0;
  align-items: center;
}
.loadslot {
  display: inline-flex;
  gap: 4px;
}

/* v0.11 vague 5 : jour/nuit, météo, bannière, rayons de butin, tutoriel, son */
.st-tint,
.st-weather {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: background 1.2s;
}
.st-tint[data-phase='night'] {
  background: linear-gradient(180deg, rgba(8, 16, 60, 0.55), rgba(10, 20, 70, 0.3));
  mix-blend-mode: multiply;
}
.st-tint[data-phase='dawn'] {
  background: linear-gradient(180deg, rgba(255, 150, 90, 0.22), rgba(255, 190, 120, 0.1));
  mix-blend-mode: soft-light;
}
.st-tint[data-phase='dusk'] {
  background: linear-gradient(180deg, rgba(255, 100, 60, 0.26), rgba(120, 40, 120, 0.2));
  mix-blend-mode: soft-light;
}
.st-weather[data-w='fog'] {
  background:
    radial-gradient(ellipse at 50% 80%, rgba(220, 230, 240, 0.22), transparent 70%),
    linear-gradient(180deg, rgba(200, 210, 225, 0.12), rgba(200, 210, 225, 0.18));
}
.st-weather i {
  position: absolute;
  top: -12%;
  width: 1.5px;
  height: 46px;
  background: linear-gradient(180deg, transparent, rgba(190, 215, 255, 0.6));
  transform: rotate(14deg);
  animation: rain linear infinite;
}
@keyframes rain {
  to {
    transform: translate(-60px, 140vh) rotate(14deg);
  }
}
.st-banner {
  position: absolute;
  left: 50%;
  top: 22%;
  transform: translateX(-50%);
  z-index: 12;
  text-align: center;
  padding: 14px 44px;
  pointer-events: none;
  animation: bannerin 3.2s forwards;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.75) 20%, rgba(0, 0, 0, 0.75) 80%, transparent);
}
.st-banner b {
  display: block;
  font-family: var(--display);
  font-size: clamp(22px, 4vw, 38px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff6c8, #f1c765 60%, #b8862e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 14px rgba(241, 199, 101, 0.6));
}
.st-banner span {
  color: #dfe4f5;
  font-size: 14px;
  letter-spacing: 0.08em;
}
@keyframes bannerin {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.7);
  }
  12% {
    opacity: 1;
    transform: translateX(-50%) scale(1.06);
  }
  20% {
    transform: translateX(-50%) scale(1);
  }
  85% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-14px);
  }
}
.rcard {
  position: relative;
  overflow: hidden;
}
.rcard::before {
  content: '';
  position: absolute;
  inset: -60%;
  background: conic-gradient(
    from 0deg,
    transparent,
    color-mix(in srgb, var(--c) 55%, transparent),
    transparent 30%,
    color-mix(in srgb, var(--c) 40%, transparent) 55%,
    transparent 80%
  );
  opacity: 0;
  animation: spin 4s linear infinite;
  z-index: 0;
  pointer-events: none;
}
.rcard[style*='--c:#a335ee']::before,
.rcard[style*='--c:#ff8000']::before {
  opacity: 0.75;
}
.rcard > * {
  position: relative;
  z-index: 1;
}
.iconbtn {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line2);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-size: 17px;
}
.iconbtn.off {
  opacity: 0.55;
}
.iconbtn:hover {
  border-color: var(--gold);
}
.tuto {
  position: fixed;
  inset: 0;
  z-index: 200;
}
.tuto-hole {
  position: fixed;
  border-radius: 14px;
  box-shadow:
    0 0 0 9999px rgba(2, 4, 10, 0.78),
    0 0 0 3px var(--gold),
    0 0 30px rgba(241, 199, 101, 0.6);
  pointer-events: none;
  transition: all 0.35s;
}
.tuto-card {
  position: fixed;
  width: 320px;
  max-width: calc(100vw - 24px);
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #171c33, #0b0d1a);
  border: 1px solid rgba(241, 199, 101, 0.5);
  box-shadow: 0 18px 50px #000c;
  animation: fade 0.3s;
}
.tuto-card h3 {
  margin: 4px 0 6px;
  font-family: var(--display);
}
.tuto-card p {
  margin: 0 0 12px;
  color: #d4d9ea;
  font-size: 13.5px;
  line-height: 1.5;
}
.tuto-card small {
  color: var(--muted);
}
.tuto-card .row {
  justify-content: flex-end;
}

/* ---- social v2 ---- */
.chat-item {
  max-width: 74px;
  background: var(--surface);
  color: var(--text, #ddd);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 11px;
}
.ilink {
  cursor: help;
  font-weight: 600;
}
.mention {
  color: #8ec7ff;
  font-weight: 600;
}
.mention.me {
  background: rgba(255, 210, 90, 0.22);
  color: #ffd35a;
  border-radius: 4px;
  padding: 0 3px;
}
#view-community .card {
  margin-bottom: 12px;
}
#view-community .row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
#view-community .bagrid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
#view-community .bagrid .item.sel {
  outline: 2px solid var(--accent);
}
.pshow {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

/* ---- calme : plus de clignotements ni de sursauts ---- */
.btn.pulse,
.cday.today,
.tree-node.can,
.intent.heavy,
.foe-plate .intent.heavy,
.livebadge,
.view {
  animation: none !important;
}
.btn.pulse {
  box-shadow:
    0 0 0 2px rgba(241, 199, 101, 0.6),
    0 4px 14px rgba(229, 173, 60, 0.3);
}
.tree-node.can {
  stroke: #fff;
  stroke-width: 4;
}
.intent.heavy {
  box-shadow: 0 0 10px 2px color-mix(in srgb, var(--ic) 60%, transparent);
}
.spell.used,
.qcard.just {
  animation: none !important;
}
.btn:hover,
.tab2:hover,
.spell:hover,
button.stile:hover,
.slotrow:hover,
.card:hover,
.navbtn:hover,
.chestcard:hover,
.fchip:hover {
  transform: none !important;
}
.spell,
.stile,
.btn,
.tab2,
.fchip {
  transition:
    border-color 0.15s,
    background-color 0.15s,
    color 0.15s !important;
}
.spell:disabled {
  transition: none !important;
}

/* ---- compact : moins de défilement ---- */
.view {
  max-width: 1680px;
  padding: 10px 16px 6px;
}
.pagehead {
  margin-bottom: 10px;
  padding-bottom: 8px;
}
.pagehead h2 {
  font-size: 21px;
}
.pagehead p {
  display: none;
}
#view-guild .pagehead p {
  display: block;
}
.card {
  padding: 12px 14px;
  border-radius: 14px;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 15px;
}
.grid {
  gap: 10px;
}
.cols2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.slotrow {
  padding: 4px 8px;
  margin-bottom: 4px;
  gap: 8px;
}
.tabs2 {
  margin-bottom: 10px;
}
.dgrid {
  margin-top: 10px;
  gap: 10px;
}
.agrid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 8px;
}
.acard {
  padding: 8px 10px;
  gap: 10px;
}
.acard .aico {
  width: 36px;
  height: 36px;
}
.acard .aico .ic {
  width: 20px;
  height: 20px;
}
.acard .abody {
  gap: 3px;
}
.pager {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
  justify-content: center;
}
.sgrid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 8px;
}
.stile {
  padding: 8px 10px;
  gap: 10px;
  border-radius: 12px;
}
.stile .ico {
  width: 44px;
  height: 44px;
}
.stile .fx {
  font-size: 12px;
  line-height: 1.35;
}
.stile .body {
  gap: 3px;
}
#view-collections {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
  gap: 10px;
  align-items: start;
}
#view-collections > :not(.bzone) {
  grid-column: 1 / -1;
}
#view-collections .bzone {
  margin: 0;
  padding: 10px 12px;
}
table.rank td {
  padding: 4px 8px;
}
table.rank th {
  padding: 4px 8px;
}
.logline {
  padding: 1px 0;
}
.dgrid .card,
#view-daily .card {
  margin-bottom: 0;
}
.reward-line {
  gap: 6px;
}

/* ---- compact : combat, listes, accordéons ---- */
.stage {
  height: clamp(300px, calc(100vh - 500px), 540px);
}
.spell .t b {
  padding-right: 44px;
  display: block;
}
.gearcols .slotrow {
  padding: 3px 8px;
  margin-bottom: 3px;
}
.gearcols .slotrow .item {
  width: 34px;
  height: 34px;
}
.gearcols .card {
  padding: 10px 12px;
}
.spells {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}
.spell {
  padding: 6px 8px;
  gap: 8px;
}
.spell small {
  font-size: 11px;
  line-height: 1.25;
}
.hud {
  margin: 8px 0 6px;
}
.actions {
  margin: 8px 0;
}
.log {
  max-height: 96px;
  overflow: auto;
}
.bzone .zhead {
  cursor: pointer;
  margin-bottom: 8px;
}
.bzone .zhead h4::before {
  content: '\25BE  ';
  color: var(--gold);
}
.bzone.closed .zhead {
  margin-bottom: 0;
}
.bzone.closed .zhead h4::before {
  content: '\25B8  ';
}
.bzone.closed > :not(.zhead) {
  display: none;
}
details.more > summary {
  cursor: pointer;
  font-weight: 600;
  padding: 6px 2px;
  list-style: none;
}
details.more > summary::before {
  content: '\25B8  ';
  color: var(--gold);
}
details.more[open] > summary::before {
  content: '\25BE  ';
}

.bag {
  max-height: calc(100vh - 300px);
  overflow: auto;
}
#shop-body .card,
#view-rank .card {
  max-height: calc(100vh - 210px);
  overflow: auto;
}
#view-rank table.rank th {
  position: sticky;
  top: 0;
  background: #11152a;
  z-index: 1;
}
#view-guild .gchat .chat-log {
  height: 130px;
}
#view-guild .grid.cols2 .card {
  max-height: calc(100vh - 230px);
  overflow: auto;
}

/* ---- boutons : style unifié, survol doré (jamais noir) ---- */
.btn,
.tab2,
.fchip,
.iconbtn,
.camp-lv button,
.chat-tabs button {
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
}
.btn {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.btn:hover:not(:disabled),
.tab2:hover,
.fchip:hover,
.iconbtn:hover,
.camp-lv button:hover:not(:disabled),
.chat-tabs button:hover {
  background: linear-gradient(180deg, rgba(241, 199, 101, 0.24), rgba(241, 199, 101, 0.12)) !important;
  border-color: rgba(241, 199, 101, 0.75) !important;
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(241, 199, 101, 0.25),
    0 4px 14px rgba(0, 0, 0, 0.35);
}
.btn:active:not(:disabled),
.tab2:active,
.fchip:active {
  background: linear-gradient(180deg, rgba(241, 199, 101, 0.34), rgba(241, 199, 101, 0.18)) !important;
}
.btn.primary {
  background: linear-gradient(180deg, #ffdf8a, #e5ad3c) !important;
  color: #1b1305;
}
.btn.primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #ffe8a6, #f0b947) !important;
  color: #1b1305;
  border-color: #fff1c4 !important;
  box-shadow:
    0 0 0 2px rgba(255, 223, 138, 0.35),
    0 8px 22px rgba(229, 173, 60, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.btn.danger:hover:not(:disabled) {
  background: #b22a1d !important;
  border-color: #ff8a7a !important;
}
.btn.stop:hover:not(:disabled) {
  background: rgba(255, 120, 100, 0.2) !important;
  border-color: #ff8a7a !important;
  color: #ffd0c8;
}
.tab2.on,
.fchip.on {
  color: #fff;
}
.btn:focus-visible,
.tab2:focus-visible,
.fchip:focus-visible,
.navbtn:focus-visible,
.hero:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.navbtn:hover {
  background: rgba(241, 199, 101, 0.12);
}

/* ---- profil en haut à droite ---- */
.hero {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line2);
  border-radius: 14px;
  padding: 4px 14px 4px 6px;
  cursor: pointer;
  color: var(--text);
  text-align: left;
  min-width: 0;
  order: 9;
  margin-left: auto;
}
.hero:hover {
  background: rgba(241, 199, 101, 0.14);
  border-color: rgba(241, 199, 101, 0.7);
}
.topbar {
  gap: 14px;
}
.hero-bar {
  order: 1;
}
.topbar .iconbtn {
  order: 2;
}
.topbar .gold {
  order: 3;
}

/* ---- responsive ---- */
.card,
.pcard,
.modal {
  min-width: 0;
}
.cols2,
.dgrid,
.sgrid,
.agrid,
.grid[style*='auto-fit'] {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
#view-collections {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr));
}
table.rank {
  min-width: 420px;
}
#view-rank .card,
#view-community .card:has(table) {
  overflow-x: auto;
}
@media (max-width: 1100px) {
  .view {
    padding: 10px 12px 6px;
  }
  .gearcols {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .app {
    padding-bottom: 66px;
    grid-template-columns: minmax(0, 1fr);
  }
  .nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 30;
    border-top: 1px solid var(--line2);
    border-bottom: 0;
    background: #0a0e1af5;
    backdrop-filter: blur(12px);
    padding: 4px 6px calc(4px + env(safe-area-inset-bottom, 0px));
  }
  .navbtn {
    min-width: 64px;
    padding: 4px 6px;
  }
  .navbtn > span {
    width: 26px;
    height: 26px;
  }
  .navbtn b {
    font-size: 10px;
  }
  .topbar {
    padding: 8px 12px;
    gap: 8px 10px;
  }
  .hero {
    order: 3;
    margin-left: 0;
  }
  .topbar .iconbtn {
    margin-left: auto;
  }
  .hero-bar {
    min-width: 0;
    flex: 1 1 100%;
    order: 5;
  }
  .hero .sub {
    display: none;
  }
  .ticker {
    display: none;
  }
  .chat {
    bottom: 66px;
  }
  .livepanel {
    bottom: 120px;
  }
  .zonebar {
    flex-wrap: wrap;
    gap: 6px;
  }
  .hud {
    gap: 8px;
  }
  #view-daily {
    column-count: 1;
  }
  #view-guild .grid.cols2 .card,
  #shop-body .card,
  #view-rank .card {
    max-height: none;
  }
  .pagehead {
    align-items: flex-start;
  }
}
@media (max-width: 600px) {
  .hero .nm {
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .hero {
    padding-right: 8px;
  }
  .gold {
    font-size: 15px;
  }
  .pagehead h2 {
    font-size: 19px;
  }
  .stage {
    height: clamp(260px, 52vh, 360px);
  }
  .spells {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .spell small {
    display: none;
  }
  .btn {
    padding: 8px 12px;
  }
  .actions {
    flex-wrap: wrap;
  }
  .tabs2,
  .filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }
  .tab2,
  .fchip {
    flex: none;
  }
  .modal {
    padding: 16px;
    border-radius: 16px;
    max-height: 92vh;
    overflow: auto;
  }
  .reward-toast {
    min-width: 0;
    width: 92vw;
  }
}
@media (max-width: 380px) {
  .navbtn {
    min-width: 56px;
  }
  .spells {
    grid-template-columns: 1fr;
  }
}

/* ---- choix de zone intégré au combat ---- */
.zonepick .zp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.zonepick h2 {
  margin: 0;
  font-size: 20px;
}
.zonepick .tabs2 {
  margin: 0;
  align-items: center;
}
.zp-sep {
  width: 14px;
}
.zonepick .zonelist {
  margin: 10px 0;
}
.zp-bg {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--muted);
}
#view-combat.picking .zonebar {
  display: none;
}

/* ---- Aujourd'hui : liste « à faire » ---- */
#view-daily {
  column-count: 1 !important;
}
.todos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 8px;
}
.todo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.todo .t {
  flex: 1;
  min-width: 0;
  display: grid;
}
.todo .t small {
  color: var(--muted);
  font-size: 12px;
}
.todo .ico.big {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--muted);
}
.todo .ico .ic {
  width: 22px;
  height: 22px;
}
.todo.ready {
  border-color: rgba(241, 199, 101, 0.5);
  background: linear-gradient(90deg, rgba(241, 199, 101, 0.13), rgba(255, 255, 255, 0.03));
}
.todo.ready .ico.big {
  color: var(--gold);
}
.todo.idle {
  opacity: 0.72;
}
.lsec {
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.025);
}
.lsec > summary {
  cursor: pointer;
  font-weight: 650;
  padding: 4px 0;
  list-style: none;
}
.lsec > summary::before {
  content: '\25B8  ';
  color: var(--gold);
}
.lsec[open] > summary::before {
  content: '\25BE  ';
}

/* ---- marque ---- */
.brand img.logo {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 0 10px rgba(241, 199, 101, 0.45));
}
.brand .brand-sub {
  display: block;
  font-family: var(--display);
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-top: 1px;
}
.brand small {
  font-size: 10px;
  opacity: 0.7;
}
.sel {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  border: 1px solid var(--line2);
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
}
.sel option,
.sel optgroup {
  background: #12162a;
  color: #eaedf6;
}

/* ---- guerre des factions ---- */
.war-head {
  display: grid;
  grid-template-columns: 1fr minmax(160px, 2fr) 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.war-side {
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--line2);
  text-align: center;
  display: grid;
  gap: 2px;
}
.war-side.alliance {
  background: linear-gradient(180deg, rgba(60, 120, 255, 0.28), rgba(20, 40, 110, 0.25));
  border-color: rgba(90, 150, 255, 0.5);
}
.war-side.horde {
  background: linear-gradient(180deg, rgba(230, 70, 55, 0.28), rgba(110, 20, 16, 0.25));
  border-color: rgba(240, 100, 85, 0.5);
}
.war-side.lead {
  box-shadow: 0 0 26px rgba(241, 199, 101, 0.35);
  border-color: var(--gold);
}
.war-name {
  font-family: var(--display);
  letter-spacing: 0.1em;
  font-size: 15px;
}
.war-pts {
  font-size: 26px;
  color: #fff;
}
.war-crown {
  font-size: 11px;
  color: var(--gold);
}
.war-vs {
  text-align: center;
}
.war-bar {
  height: 16px;
  border-radius: 99px;
  background: linear-gradient(90deg, #e5483a, #8a1f17);
  overflow: hidden;
  margin-bottom: 6px;
  border: 1px solid var(--line2);
}
.war-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #4f8cff, #2a58c8);
}
.war-src {
  display: grid;
  grid-template-columns: minmax(120px, 1.2fr) 2fr minmax(90px, auto);
  gap: 8px;
  align-items: center;
  padding: 3px 0;
  font-size: 13px;
}
.war-bars {
  display: grid;
  gap: 2px;
}
.war-bars i {
  display: block;
  height: 5px;
  border-radius: 3px;
}
.war-bars .a {
  background: #4f8cff;
}
.war-bars .h {
  background: #e5483a;
}
.a {
  color: #7aa8ff;
}
.h {
  color: #ff7a6a;
}
.war-nums {
  text-align: right;
  font-size: 12px;
}
.war-tag {
  font-size: 10.5px;
  padding: 1px 7px;
  border-radius: 99px;
}
.war-tag.alliance {
  background: rgba(79, 140, 255, 0.25);
  color: #9cc0ff;
}
.war-tag.horde {
  background: rgba(229, 72, 58, 0.25);
  color: #ff9a8c;
}
@media (max-width: 700px) {
  .war-head {
    grid-template-columns: 1fr 1fr;
  }
  .war-vs {
    grid-column: 1 / -1;
    order: 3;
  }
  .war-src {
    grid-template-columns: 1fr;
  }
}
.orn-warchamp,
.pframe.orn-warchamp {
  background: conic-gradient(from var(--ang), #4f8cff, #fff6c0, #e5483a, #fff6c0, #4f8cff);
  animation: spin 4s linear infinite;
  box-shadow: 0 0 24px #ffd24acc;
}
.site-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 7px 14px;
  background: linear-gradient(90deg, rgba(79, 140, 255, 0.25), rgba(229, 72, 58, 0.25));
  border-bottom: 1px solid var(--line2);
  font-weight: 600;
}
.site-banner button {
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
}

/* ================= REFONTE : hubs, sous-onglets, mobile ================= */
.navbtn {
  padding: 10px 12px;
  margin-bottom: 4px;
}
.navbtn b {
  font-size: 15px;
}
.navbtn .dot {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}
.subnav {
  position: sticky;
  top: var(--tb, 64px);
  z-index: 5;
  display: flex;
  gap: 6px;
  padding: 8px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  background: rgba(8, 11, 19, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.subnav::-webkit-scrollbar {
  display: none;
}
.subnav[hidden] {
  display: none;
}
.subtab {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px 6px 8px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  white-space: nowrap;
}
.subtab > span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
  font-size: 14px;
}
.subtab > span .ic {
  width: 15px;
  height: 15px;
}
.subtab > span .navimg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.subtab b {
  font-weight: 560;
  font-size: 13.5px;
}
.subtab:hover {
  background: rgba(241, 199, 101, 0.15);
  border-color: rgba(241, 199, 101, 0.7);
}
.subtab.active {
  background: linear-gradient(180deg, rgba(241, 199, 101, 0.28), rgba(241, 199, 101, 0.1));
  border-color: var(--gold);
  color: #fff;
}
.subtab .badge,
.subtab .dot {
  position: static;
  transform: none;
  margin-left: 2px;
  padding: 0 6px;
  font-size: 10.5px;
}
.subtab .dot {
  width: 8px;
  height: 8px;
  padding: 0;
}
.view {
  scroll-margin-top: 120px;
}
@media (max-width: 900px) {
  .nav {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px));
    overflow: visible;
  }
  .navbtn {
    min-width: 0;
    margin: 0;
    padding: 4px 2px;
    border-radius: 12px;
    border: 0;
    align-items: center;
  }
  .navbtn b {
    font-size: 10.5px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .navbtn > span {
    width: 30px;
    height: 30px;
  }
  .navbtn .dot {
    right: calc(50% - 22px);
    top: 6px;
    transform: none;
  }
  .navbtn.active {
    background: rgba(241, 199, 101, 0.14);
  }
  .subnav {
    padding: 6px 10px;
    gap: 5px;
  }
  .subtab {
    padding: 4px 11px 4px 5px;
  }
  .subtab b {
    font-size: 12.5px;
  }
  .brand {
    display: none;
  }
}
@media (max-width: 600px) {
  .subtab > span {
    width: 20px;
    height: 20px;
  }
}

/* mobile : onglets de cartes, densité, barre du haut compacte */
.mtabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 0 8px;
  grid-column: 1 / -1;
}
.mtabs::-webkit-scrollbar {
  display: none;
}
.mtabs .tab2 {
  flex: none;
  padding: 5px 13px;
}
.m-off {
  display: none !important;
}
@media (max-width: 700px) {
  body {
    font-size: 13.5px;
  }
  .topbar {
    flex-wrap: wrap;
    padding: 6px 10px;
    gap: 4px 8px;
  }
  .hero {
    padding: 2px 8px 2px 4px;
  }
  .hero .nm {
    display: none;
  }
  .hero-bar {
    flex: 1 1 100%;
    gap: 8px;
    min-width: 0;
    order: 5;
  }
  .hero-bar .bar {
    height: 14px;
  }
  .topbar .iconbtn {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }
  .view {
    padding: 8px 10px 4px;
  }
  .pagehead {
    margin-bottom: 6px;
    padding-bottom: 4px;
  }
  .pagehead h2 {
    font-size: 17px;
  }
  .card {
    padding: 9px 10px;
    border-radius: 12px;
  }
  .card h3 {
    font-size: 14px;
    margin-bottom: 6px;
  }
  .grid,
  .dgrid {
    gap: 8px;
  }
  .chat.collapsed {
    left: auto;
    right: 8px;
    bottom: 72px;
    width: auto;
    border-radius: 99px;
    border: 1px solid var(--line2);
  }
  .chat.collapsed .chat-head {
    padding: 7px 12px;
  }
  .chat.collapsed .chat-toggle {
    display: none;
  }
  .todo {
    padding: 6px 8px;
    gap: 8px;
  }
  .todo .ico.big {
    width: 32px;
    height: 32px;
  }
  .todo .t small {
    font-size: 11px;
  }
  .acard {
    padding: 7px 8px;
  }
  .acard .arew,
  .acard .muted {
    font-size: 11px;
  }
  .sgrid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .stile {
    padding: 6px 7px;
    gap: 7px;
  }
  .stile .ico {
    width: 36px;
    height: 36px;
  }
  .stile .fx {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 11px;
  }
  .stile .tagrow,
  .stile .meta {
    display: none;
  }
  .stile .act {
    top: 4px;
    right: 4px;
    font-size: 9.5px;
    padding: 0 6px;
  }
  #view-collections {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  #view-collections .bzone:not(.closed) {
    grid-column: 1 / -1;
  }
  .chestcard {
    padding: 8px;
  }
  .chestcard .rates {
    display: none;
  }
  .qcard {
    padding: 8px 10px;
  }
  .rewards .rw,
  .rewards .chip {
    font-size: 11px;
  }
  table.rank {
    min-width: 0;
    font-size: 12.5px;
  }
  table.rank td,
  table.rank th {
    padding: 4px 5px;
  }
  .rankname .ptitle,
  .rankname .muted {
    display: none;
  }
  .bag {
    max-height: calc(100vh - 340px);
  }
  .war-pts {
    font-size: 20px;
  }
  .war-side {
    padding: 8px;
  }
}

/* messages privés */
.dm {
  display: grid;
  grid-template-columns: minmax(200px, 300px) 1fr;
  gap: 12px;
}
@media (max-width: 700px) {
  .dm {
    grid-template-columns: 1fr;
  }
}
.dm-thread {
  display: grid;
  width: 100%;
  text-align: left;
  position: relative;
  padding: 8px 10px;
  margin-top: 6px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  font: inherit;
}
.dm-thread.on,
.dm-thread:hover {
  border-color: var(--gold);
  background: rgba(241, 199, 101, 0.1);
}
.dm-thread small {
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dm-thread .badge {
  position: absolute;
  right: 8px;
  top: 8px;
}
.dm-log {
  height: min(46vh, 380px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 2px 8px;
}
.dmm {
  max-width: 80%;
  padding: 6px 10px;
  border-radius: 12px 12px 12px 3px;
  background: rgba(255, 255, 255, 0.08);
  align-self: flex-start;
  display: grid;
}
.dmm.mine {
  align-self: flex-end;
  border-radius: 12px 12px 3px 12px;
  background: rgba(241, 199, 101, 0.2);
}
.dmm small {
  font-size: 10px;
  color: var(--muted);
  text-align: right;
}
input:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='submit']) {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--line2);
  border-radius: 9px;
  padding: 7px 10px;
  font: inherit;
  max-width: 100%;
}
input:not([type='checkbox']):not([type='radio']):not([type='range']):focus {
  outline: 2px solid rgba(241, 199, 101, 0.55);
  outline-offset: 1px;
}
input::placeholder {
  color: var(--muted);
}

/* portrait animé : respiration, léger balancement de la tête, clignement des yeux, pulsation de l'aura */
.portrait.anim .p-bust {
  animation: pBreath 4.2s ease-in-out infinite;
  transform-origin: 100px 240px;
}
.portrait.anim .p-head {
  animation: pSway 6s ease-in-out infinite;
  transform-origin: 100px 172px;
}
.portrait.anim .p-eyes {
  animation: pBlink 5.5s infinite;
  transform-origin: 100px 106px;
  transform-box: view-box;
}
.portrait.anim .p-aura {
  animation: pAura 3.4s ease-in-out infinite;
  transform-origin: 100px 118px;
}
@keyframes pBreath {
  0%,
  100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(1.012);
  }
}
@keyframes pSway {
  0%,
  100% {
    transform: rotate(-0.8deg) translateY(0);
  }
  50% {
    transform: rotate(0.8deg) translateY(-1.2px);
  }
}
@keyframes pBlink {
  0%,
  93%,
  100% {
    transform: scaleY(1);
  }
  96% {
    transform: scaleY(0.08);
  }
}
@keyframes pAura {
  0%,
  100% {
    opacity: 0.75;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}
@media (prefers-reduced-motion: reduce) {
  .portrait.anim * {
    animation: none !important;
  }
}

/* saison et ligues */
.season-me {
  display: flex;
  gap: 16px;
  align-items: center;
  border-color: var(--lc);
  box-shadow: 0 0 24px color-mix(in srgb, var(--lc) 25%, transparent);
  margin-bottom: 12px;
}
.season-me > div:last-child {
  flex: 1;
  min-width: 0;
}
.season-badge {
  font-family: var(--display);
  font-size: 20px;
  padding: 14px 18px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--lc) 22%, transparent);
  border: 1px solid var(--lc);
  color: var(--lc);
  text-align: center;
  min-width: 110px;
}
.league-bar {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0 10px;
  overflow: hidden;
  align-self: center;
}
.league-bar i {
  display: block;
  height: 100%;
}
.stat.me {
  background: rgba(241, 199, 101, 0.1);
}
.orn-season,
.pframe.orn-season {
  background: conic-gradient(from var(--ang), #b070ff, #f1c765, #4fe0d0, #f1c765, #b070ff);
  animation: spin 5s linear infinite;
  box-shadow: 0 0 22px #b070ffaa;
}
@media (max-width: 700px) {
  .season-me {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}

/* =====================================================================================================
   DA v2 : l'esprit des interfaces de WoW (cadres bronze et or, parchemin, bleu nuit) en plus doux pour l'oeil
   ===================================================================================================== */
:root {
  --bg: #0d1322;
  --surface: rgba(255, 238, 200, 0.045);
  --surface2: rgba(255, 238, 200, 0.08);
  --surface3: rgba(255, 238, 200, 0.13);
  --line: rgba(222, 186, 118, 0.16);
  --line2: rgba(222, 186, 118, 0.3);
  --text: #efe8d6;
  --muted: #a29b88;
  --gold: #eec878;
  --gold2: #b98c3c;
  --accent: #eec878;
  --faction: #eec878;
  --r: 18px;
  --frame: linear-gradient(180deg, rgba(40, 50, 78, 0.78), rgba(22, 29, 50, 0.82));
}
html {
  color-scheme: dark;
}
body {
  background:
    radial-gradient(1100px 520px at 50% -140px, rgba(238, 200, 120, 0.13), transparent 70%),
    radial-gradient(800px 600px at 8% 105%, rgba(70, 110, 220, 0.14), transparent 70%),
    radial-gradient(800px 600px at 96% 100%, rgba(210, 80, 70, 0.1), transparent 70%),
    linear-gradient(180deg, #121a30 0%, #0d1322 55%, #0a0f1c 100%) fixed;
  color: var(--text);
}
::selection {
  background: rgba(238, 200, 120, 0.35);
}
h1,
h2,
h3,
.pagehead h2 {
  font-family: var(--display);
}
.card {
  background: var(--frame);
  border: 1px solid var(--line2);
  border-radius: var(--r);
  padding: 16px 18px;
  backdrop-filter: blur(10px);
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 190, 0.09),
    inset 0 0 0 1px rgba(0, 0, 0, 0.18),
    0 12px 30px rgba(3, 6, 14, 0.42);
}
.card h3 {
  color: #f6e9c4;
  letter-spacing: 0.02em;
  font-size: 15.5px;
  margin: 0 0 12px;
}
.pagehead h2 {
  font-size: 24px;
  letter-spacing: 0.06em;
  background: linear-gradient(180deg, #fff6d8, #e6bd68);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}
.pagehead {
  border-image: linear-gradient(90deg, rgba(238, 200, 120, 0.55), rgba(238, 200, 120, 0.08) 70%, transparent) 1;
  padding-bottom: 12px;
  margin-bottom: 18px;
}
.topbar {
  background: linear-gradient(180deg, rgba(20, 28, 48, 0.92), rgba(14, 20, 36, 0.88));
  border-bottom: 1px solid var(--line2);
  box-shadow: 0 6px 24px rgba(3, 6, 14, 0.35);
}
.ticker {
  background: rgba(14, 20, 36, 0.7);
  border-bottom: 1px solid var(--line);
}
.bar {
  background: rgba(8, 12, 24, 0.7);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}
.bar.xp i {
  background: linear-gradient(90deg, #7b5cf0, #c9a0ff 55%, #f3d58f);
}
.slotrow,
.todo,
.stat {
  border-color: var(--line);
}
.tab2,
.fchip {
  background: rgba(255, 238, 200, 0.05);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.tab2.on,
.fchip.on {
  background: linear-gradient(180deg, rgba(238, 200, 120, 0.3), rgba(238, 200, 120, 0.12));
  border-color: rgba(238, 200, 120, 0.75);
  color: #fff6dc;
  box-shadow:
    0 0 0 1px rgba(238, 200, 120, 0.15),
    0 4px 14px rgba(0, 0, 0, 0.3);
}
input:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='submit']),
.sel,
select {
  background: rgba(8, 12, 24, 0.55);
  border: 1px solid var(--line2);
}

/* boutons : métal bronze, relief doux, halo doré au survol */
.btn {
  background: linear-gradient(180deg, rgba(86, 98, 132, 0.55), rgba(44, 54, 84, 0.62));
  border: 1px solid rgba(214, 176, 106, 0.42);
  border-radius: 12px;
  padding: 9px 18px;
  color: #f4ecd8;
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 200, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25),
    0 3px 10px rgba(3, 6, 14, 0.35);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
}
.btn.small {
  padding: 5px 13px;
  border-radius: 10px;
}
.btn:hover:not(:disabled),
.tab2:hover,
.fchip:hover,
.iconbtn:hover {
  background: linear-gradient(180deg, rgba(238, 200, 120, 0.34), rgba(238, 200, 120, 0.16)) !important;
  border-color: rgba(246, 214, 140, 0.85) !important;
  color: #fff8e4;
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 210, 0.3),
    0 0 0 1px rgba(238, 200, 120, 0.22),
    0 6px 18px rgba(0, 0, 0, 0.38) !important;
}
.btn.primary {
  background: linear-gradient(180deg, #f8dc98, #d6a24a) !important;
  border: 1px solid #fff0bd;
  color: #2a1c05;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -2px 0 rgba(120, 76, 10, 0.25),
    0 6px 18px rgba(214, 162, 74, 0.3);
}
.btn.primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #ffe8ae, #e2b058) !important;
  color: #2a1c05;
}
.btn:disabled {
  opacity: 0.45;
}

/* aération des boutons */
.row {
  gap: 10px 12px;
  margin: 12px 0;
}
.row:first-child {
  margin-top: 0;
}
.card > .btn,
.card > button.btn {
  margin-top: 12px;
}
.card > .btn:first-child {
  margin-top: 0;
}
.btn + .btn {
  margin-left: 10px;
}
.row .btn + .btn,
.tabs2 .tab2 + .tab2,
.todo .btn + .btn {
  margin-left: 0;
}
.slotrow .btn,
.todo .btn,
.offer .btn {
  margin-left: 10px;
  flex: none;
}
.slotrow > .row .btn {
  margin-left: 0;
}
p + .btn,
.muted + .btn,
.formrow + .btn,
table + .btn {
  margin-top: 12px;
}
.tabs2 {
  gap: 8px 10px;
  margin-bottom: 16px;
}
.pagehead .btn,
.zonebar .btn {
  margin-left: 4px;
}
.actions {
  gap: 16px;
  margin: 16px 0;
}
.formrow {
  margin-bottom: 12px;
}
.spells {
  gap: 10px;
}
.stile {
  padding-bottom: 12px;
}
.stile .act {
  top: 10px;
  right: 10px;
}

/* « ? » d'aide : cercle parfait, glyphe centré, aligné à droite du titre qu'il suit */
.help {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 21px;
  height: 21px;
  min-width: 21px;
  margin: 0 0 0 8px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(238, 200, 120, 0.55);
  background: rgba(238, 200, 120, 0.12);
  color: #f3dba0 !important;
  -webkit-text-fill-color: #f3dba0;
  font-family: var(--display), Georgia, serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
  text-shadow: none;
  letter-spacing: 0;
  text-transform: none;
}
.help:hover,
.help:focus-visible {
  background: rgba(238, 200, 120, 0.9);
  color: #2a1c05 !important;
  -webkit-text-fill-color: #2a1c05;
  border-color: transparent;
}
h2:has(> .help),
h3:has(> .help),
h4:has(> .help) {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
}
h2 > .help,
h3 > .help,
h4 > .help {
  margin-left: 2px;
}
.helprow {
  display: flex;
  justify-content: flex-end;
  margin: 8px 0;
}
.helprow .help {
  margin: 0;
}
.pagehead h2 > .help {
  -webkit-text-fill-color: #f3dba0;
  background-clip: border-box;
}

/* menu : groupes dépliables, sous-pages visibles dans la barre latérale */
.nav {
  background: linear-gradient(180deg, #151d34 0%, #0e1526 100%);
  border-right: 1px solid var(--line2);
  padding: 16px 12px;
  gap: 2px;
  box-shadow: 6px 0 24px rgba(3, 6, 14, 0.35);
}
.brand {
  padding: 4px 8px 18px;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}
.brand b {
  font-size: 19px;
  letter-spacing: 0.28em;
}
.brand .brand-sub {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #cdb27a;
  margin-top: 3px;
  text-transform: none;
}
.brand small {
  display: none;
}
.hubgroup {
  border-radius: 16px;
  margin-bottom: 4px;
  border: 1px solid transparent;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.hubgroup.open {
  background: rgba(255, 238, 200, 0.045);
  border-color: var(--line);
}
.hubgroup > .navbtn {
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  background: transparent;
  border-color: transparent;
}
.hubgroup > .navbtn:hover {
  background: rgba(238, 200, 120, 0.1);
}
.hubgroup > .navbtn.active {
  background: linear-gradient(90deg, rgba(238, 200, 120, 0.22), rgba(238, 200, 120, 0.04));
  border-color: rgba(238, 200, 120, 0.5);
}
.navbtn b {
  font-size: 15px;
  font-weight: 600;
  color: #f1e8d0;
}
.navbtn.active b {
  color: #fff6dc;
}
.navbtn .chev {
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid #b9ab86;
  border-bottom: 2px solid #b9ab86;
  transform: rotate(-45deg);
  transition: transform 0.2s;
  flex: none;
}
.hubgroup.open .navbtn .chev {
  transform: rotate(45deg);
}
.navbtn .dot {
  right: 34px;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(238, 200, 120, 0.8);
}
.navsub {
  display: none;
  position: relative;
  padding: 2px 8px 10px 30px;
}
.hubgroup.open .navsub {
  display: grid;
  gap: 3px;
}
.navsub::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 4px;
  bottom: 14px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(238, 200, 120, 0.55), rgba(238, 200, 120, 0.05));
}
.navsub .subtab {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 6px 10px 6px 8px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #d9d0b8;
  text-align: left;
}
.navsub .subtab > span {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  flex: none;
}
.navsub .subtab b {
  font-size: 14px;
  font-weight: 520;
}
.navsub .subtab:hover {
  background: rgba(238, 200, 120, 0.1);
  border-color: transparent;
}
.navsub .subtab.active {
  background: linear-gradient(90deg, rgba(238, 200, 120, 0.22), rgba(238, 200, 120, 0.04));
  border-color: rgba(238, 200, 120, 0.4);
  color: #fff6dc;
}
.navsub .subtab .badge,
.navsub .subtab .dot {
  margin-left: auto;
  position: static;
  transform: none;
}
.navfoot {
  border-top: 1px solid var(--line);
  margin-top: auto;
  padding-top: 12px;
}

@media (max-width: 900px) {
  .hubgroup {
    border: 0;
    margin: 0;
    background: none !important;
  }
  .hubgroup > .navbtn {
    padding: 4px 2px;
    border-radius: 12px;
  }
  .hubgroup > .navbtn .chev {
    display: none;
  }
  .hubgroup > .navbtn .dot {
    right: calc(50% - 22px);
    top: 6px;
  }
  .navsub {
    display: none !important;
  }
  .hubgroup.open .navsub {
    display: flex !important;
    position: fixed;
    left: 0;
    right: 0;
    top: var(--tb, 64px);
    z-index: 25;
    padding: 7px 10px;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    background: rgba(13, 19, 34, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line2);
  }
  .hubgroup.open .navsub::before {
    display: none;
  }
  .hubgroup.open .navsub::-webkit-scrollbar {
    display: none;
  }
  .navsub .subtab {
    width: auto;
    flex: none;
    padding: 5px 13px 5px 6px;
    border: 1px solid var(--line);
    border-radius: 99px;
    background: rgba(255, 238, 200, 0.05);
    white-space: nowrap;
  }
  .navsub .subtab.active {
    background: linear-gradient(180deg, rgba(238, 200, 120, 0.3), rgba(238, 200, 120, 0.12));
    border-color: var(--gold);
  }
  .nav {
    box-shadow: 0 -6px 24px rgba(3, 6, 14, 0.4);
    border-top: 1px solid var(--line2);
    background: linear-gradient(180deg, #151d34, #0d1424);
  }
  .main {
    padding-top: 0;
  }
  .view {
    padding-top: 10px;
  }
}
@media (max-width: 900px) {
  body.hassub .view {
    margin-top: 50px;
  }
}

/* onglet Race et camp */
.campnow {
  display: flex;
  align-items: center;
  gap: 14px;
  border-color: var(--fc);
  box-shadow: 0 0 22px color-mix(in srgb, var(--fc) 22%, transparent);
}
.campbadge {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-size: 24px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--fc) 24%, transparent);
  border: 1px solid var(--fc);
}
.racecol.alliance h3 {
  color: #8fb4ff;
}
.racecol.horde h3 {
  color: #ff9a8c;
}
.races {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}
.racecard {
  position: relative;
  display: grid;
  gap: 4px;
  justify-items: start;
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 238, 200, 0.04);
  color: var(--text);
  cursor: pointer;
  font: inherit;
}
.racecard:hover {
  border-color: var(--fc, var(--gold));
  background: color-mix(in srgb, var(--fc, #eec878) 14%, transparent);
}
.racecard.on {
  border-color: var(--fc, var(--gold));
  box-shadow:
    0 0 0 1px var(--fc, var(--gold)),
    0 0 18px color-mix(in srgb, var(--fc, #eec878) 30%, transparent);
  background: color-mix(in srgb, var(--fc, #eec878) 18%, transparent);
}
.racecard.cur::after {
  content: '✓';
  position: absolute;
  top: 8px;
  right: 10px;
  color: var(--gold);
}
.racecard small {
  color: var(--muted);
}
.racecard .rspells {
  display: flex;
  gap: 4px;
  margin-top: 2px;
}
.racecard .rspells .ico,
.racecard .rspells img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}
.racebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  position: sticky;
  bottom: 8px;
}
.lookgrid {
  grid-template-columns: minmax(240px, 320px) 1fr;
}
.lookgrid > div:first-child {
  position: sticky;
  top: calc(var(--tb, 64px) + 14px);
  align-self: start;
}
.lookgrid .pframe {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}
@media (max-width: 760px) {
  .lookgrid {
    grid-template-columns: 1fr;
  }
  .lookgrid > div:first-child {
    position: static;
  }
  .lookgrid .pframe {
    max-width: 200px;
  }
}
@media (max-width: 900px) {
  .nav {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transform: none !important;
    filter: none !important;
  }
  .hubgroup > .navbtn b {
    font-size: 10.5px;
    font-weight: 600;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .hubgroup > .navbtn > span {
    width: 30px;
    height: 30px;
  }
}
@media (max-width: 700px) {
  .stile .act {
    display: none;
  }
  .stile .top b {
    padding-right: 0;
  }
}

/* =================== COMBAT v3 : barre unique PV + bouclier, sigles, PA visibles, décors vectoriels =================== */
.st-bg .scene {
  position: absolute;
  inset: 0;
}
.st-bg .scene svg {
  width: 100%;
  height: 100%;
  display: block;
}
.st-bg .art,
.st-bg .ground {
  display: none;
}
.st-player .bar.hp,
.foe-plate .bar.hp {
  position: relative;
  height: 20px;
  border-radius: 99px;
  overflow: hidden;
  background: linear-gradient(180deg, #04060d, #0e1426);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.8),
    0 1px 0 rgba(255, 255, 255, 0.07);
}
.foe.big .foe-plate .bar.hp,
.st-player .bar.hp {
  height: 23px;
}
.bar.hp > i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  height: 100%;
  border-radius: 99px;
  transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  background: linear-gradient(180deg, #ff8d7a 0%, #dc3a2a 46%, #9a1b12 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 3px rgba(0, 0, 0, 0.3);
}
.bar.hp.player > i {
  background: linear-gradient(180deg, #86f7a2 0%, #28b44c 48%, #16802f 100%);
}
.bar.hp > i::after {
  content: '';
  position: absolute;
  left: 6px;
  right: 6px;
  top: 2px;
  height: 28%;
  border-radius: 99px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
}
.bar.hp .shs {
  position: absolute;
  top: 0;
  bottom: 0;
  height: 100%;
  z-index: 2;
  border-radius: 99px;
  border-right: 2px solid #eefaff;
  background: repeating-linear-gradient(135deg, rgba(196, 238, 255, 0.72) 0 6px, rgba(110, 196, 250, 0.58) 6px 12px);
  box-shadow:
    0 0 10px rgba(143, 220, 255, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition:
    width 0.3s,
    left 0.3s;
}
.bar.hp .shs[hidden] {
  display: none;
}
.bar.hp > span.num {
  position: absolute;
  left: 50% !important;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: auto;
  padding: 0;
  background: none;
  border-radius: 0;
  white-space: nowrap;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow:
    0 1px 2px #000,
    0 0 4px #000,
    0 0 8px rgba(0, 0, 0, 0.85);
}
.foe-plate .bar.hp > span.num {
  font-size: 10.5px;
}
.st-player .bar.hp > span.num {
  font-size: 12px;
}
.bar.hp .num .shv {
  font-style: normal;
  color: #c9f0ff;
  margin-left: 5px;
}
.bar.hp .shn {
  display: none !important;
}

.intent {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  background: radial-gradient(circle at 35% 28%, #2e3558, #0a0c18 72%);
  border: 2px solid var(--ic, #cfd6e0);
  box-shadow:
    0 0 12px color-mix(in srgb, var(--ic, #cfd6e0) 50%, transparent),
    inset 0 0 9px rgba(0, 0, 0, 0.7),
    0 3px 8px rgba(0, 0, 0, 0.5);
}
.intent .sigil {
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.65));
}
.intent.hit {
  --ic: #c9d3e6;
}
.intent.heavy {
  --ic: #ff6a4a;
}
.intent.drain {
  --ic: #ff7ac0;
}
.intent.shield {
  --ic: #6fc6ff;
}
.intent.heal {
  --ic: #6fe08a;
}
.intent.rage {
  --ic: #ffa13a;
}
.intent.guard {
  --ic: #e0b068;
}
.foe-plate .intent {
  width: 38px;
  height: 38px;
}

.pa i {
  transition:
    transform 0.25s,
    background 0.25s,
    box-shadow 0.25s,
    opacity 0.25s;
}
.pa i.burn {
  background: radial-gradient(circle at 35% 35%, #ffd0c8, #ff5a4a);
  border-color: #ff7a6a;
  box-shadow: 0 0 10px #ff6a5a;
  transform: scale(0.7);
  opacity: 0.85;
}
.castlog {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  min-height: 26px;
  margin-left: 6px;
}
.cast-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px 2px 3px;
  border-radius: 99px;
  background: rgba(40, 62, 118, 0.6);
  border: 1px solid rgba(130, 186, 255, 0.5);
  font-size: 12px;
  animation: chipin 0.3s ease-out;
}
.cast-chip .ico {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.cast-chip .ico img {
  width: 100%;
  height: 100%;
}
.cast-chip b {
  font-weight: 600;
}
.cast-chip em {
  font-style: normal;
  color: #9fd0ff;
  font-weight: 700;
}
@keyframes chipin {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.cast-toast {
  position: absolute;
  bottom: 24%;
  z-index: 14;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px 4px 5px;
  border-radius: 99px;
  pointer-events: none;
  background: rgba(14, 22, 48, 0.88);
  border: 1px solid rgba(130, 186, 255, 0.65);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  animation: castUp 1.5s ease-out forwards;
}
.cast-toast .ico {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.cast-toast .ico img {
  width: 100%;
  height: 100%;
}
.cast-toast b {
  font-size: 14px;
}
.cast-toast em {
  font-style: normal;
  color: #8fc6ff;
  font-weight: 800;
}
@keyframes castUp {
  0% {
    opacity: 0;
    transform: translate(-50%, 14px) scale(0.9);
  }
  15% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
  75% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -42px);
  }
}
.st-player .avatar {
  overflow: hidden;
}
.st-player .avatar i {
  width: 100%;
  height: 100%;
  display: block;
}
.st-player .avatar i svg {
  width: 100%;
  height: 100%;
  display: block;
}
@media (max-width: 700px) {
  .castlog {
    display: none;
  }
  .cast-toast {
    bottom: 34%;
  }
}

/* =================== cases à cocher et interrupteurs (tout le site) =================== */
input[type='checkbox']:not(.tgl input) {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 21px;
  height: 21px;
  margin: 0;
  display: inline-grid;
  place-content: center;
  vertical-align: middle;
  cursor: pointer;
  border-radius: 7px;
  border: 1.5px solid rgba(238, 200, 120, 0.55);
  background: rgba(8, 12, 24, 0.6);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.55);
  transition:
    background 0.15s,
    border-color 0.15s,
    box-shadow 0.15s,
    transform 0.1s;
}
input[type='checkbox']:not(.tgl input)::after {
  content: '';
  width: 11px;
  height: 6px;
  margin-top: -2px;
  border-left: 2.6px solid #2a1c05;
  border-bottom: 2.6px solid #2a1c05;
  border-radius: 1px;
  transform: rotate(-45deg) scale(0);
  transition: transform 0.15s cubic-bezier(0.3, 1.6, 0.5, 1);
}
input[type='checkbox']:not(.tgl input):hover {
  border-color: #f6d68c;
  box-shadow:
    inset 0 1px 3px rgba(0, 0, 0, 0.55),
    0 0 0 3px rgba(238, 200, 120, 0.15);
}
input[type='checkbox']:not(.tgl input):checked {
  background: linear-gradient(180deg, #fbe2a0, #d9a64c);
  border-color: #fff0bd;
  box-shadow: 0 2px 8px rgba(214, 162, 74, 0.4);
}
input[type='checkbox']:not(.tgl input):checked::after {
  transform: rotate(-45deg) scale(1);
}
input[type='checkbox']:not(.tgl input):focus-visible,
input[type='radio']:focus-visible {
  outline: 2px solid rgba(238, 200, 120, 0.8);
  outline-offset: 2px;
}
input[type='checkbox']:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
input[type='radio'] {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 21px;
  height: 21px;
  margin: 0;
  border-radius: 50%;
  cursor: pointer;
  border: 1.5px solid rgba(238, 200, 120, 0.55);
  background: rgba(8, 12, 24, 0.6);
  display: inline-grid;
  place-content: center;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.55);
}
input[type='radio']::after {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fbe2a0, #d9a64c);
  transform: scale(0);
  transition: transform 0.15s;
}
input[type='radio']:checked {
  border-color: #fff0bd;
}
input[type='radio']:checked::after {
  transform: scale(1);
}
/* « Combat auto », « Niveau suivant auto »… : vrais interrupteurs */
.switch {
  gap: 10px;
  color: var(--text);
  font-size: 13px;
}
.switch input[type='checkbox'] {
  width: 42px;
  height: 24px;
  border-radius: 99px;
  place-content: center start;
  padding: 0 3px;
  background: rgba(8, 12, 24, 0.7);
  border: 1.5px solid rgba(238, 200, 120, 0.4);
}
.switch input[type='checkbox']::after {
  width: 16px;
  height: 16px;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, #f4ecd8, #b9ae94);
  transform: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  transition:
    transform 0.2s cubic-bezier(0.3, 1.4, 0.5, 1),
    background 0.2s;
}
.switch input[type='checkbox']:checked {
  background: linear-gradient(180deg, #fbe2a0, #d9a64c);
  border-color: #fff0bd;
}
.switch input[type='checkbox']:checked::after {
  transform: translateX(18px);
  background: linear-gradient(180deg, #fff, #f3e6c4);
}
input[type='range'] {
  accent-color: #e8b84a;
  height: 6px;
  cursor: pointer;
}
/* disposition : la plaque du joueur ne recouvre plus les plaques des ennemis */
.stage {
  height: clamp(350px, calc(100vh - 470px), 580px);
}
.st-foes {
  bottom: 98px !important;
  top: 6px !important;
}
.st-player {
  bottom: 10px !important;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: min(520px, 94%);
}
@media (max-width: 700px) {
  .stage {
    height: clamp(330px, 56vh, 420px);
  }
  .st-foes {
    bottom: 92px !important;
  }
}
@media (max-width: 700px) {
  .st-foes {
    left: 1% !important;
    right: 1% !important;
    gap: 4px !important;
    justify-content: space-around !important;
  }
  .foe-plate {
    min-width: 0 !important;
    max-width: 46vw !important;
    padding: 5px 6px !important;
    gap: 5px !important;
  }
  .foe-plate .intent {
    width: 30px;
    height: 30px;
  }
  .foe-plate .intent .sigil {
    width: 20px;
    height: 20px;
  }
  .foe-plate .pn {
    font-size: 11px !important;
  }
  .foe-plate .bar.hp {
    height: 16px !important;
  }
  .foe-plate .bar.hp > span.num {
    font-size: 9.5px;
  }
}

/* fonds officiels : image nette (2400×1200), aucun flou, légère mise en valeur ; le décor vectoriel reste dessous en secours */
.st-bg .art {
  display: block !important;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  opacity: 0;
  filter: saturate(1.06) contrast(1.04) brightness(0.92);
  transition: opacity 0.6s;
  image-rendering: auto;
}
.st-bg .art.ready {
  opacity: 1;
}
.st-bg::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 28%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.55)) !important;
}
/* groupe précédent (couche fantôme), apparition différée du suivant, invocations plus petites */
.st-foes.ghosts {
  z-index: 1;
  pointer-events: none;
}
.st-foes {
  z-index: 2;
}
.foe {
  animation-fill-mode: both;
}
.foe.wait {
  pointer-events: none;
}
.foe.summon {
  --k: 0.62;
}
.foe.summon .foe-plate {
  min-width: 0;
  max-width: 150px;
  padding: 4px 6px;
}
.foe.summon .pn {
  font-size: 10.5px !important;
}
.foe.summon .foe-plate .bar.hp {
  height: 14px;
}
.foe.summon .foe-plate .intent {
  width: 28px;
  height: 28px;
}
.tagx.sum {
  background: rgba(120, 160, 255, 0.25);
  color: #a8c4ff;
  border: 1px solid rgba(140, 180, 255, 0.45);
  border-radius: 99px;
  padding: 0 6px;
  font-style: normal;
  font-size: 9.5px;
}

/* stabilité : rien ne bouge sous la souris quand le combat tourne en arrière-plan (hauteurs réservées, pas de retour à la ligne variable) */
.zonebar {
  flex-wrap: nowrap !important;
  min-height: 56px;
  gap: 12px;
  align-items: center;
}
.zonebar > * {
  flex: none;
}
.zonebar #zone-progress {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
}
.zonebar #zone-progress .campinfo {
  display: block;
  overflow: hidden;
}
.zonebar #zone-progress .campinfo > * {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.zonebar .camppips {
  min-width: 84px;
}
.zonebar .spacer {
  flex: 0 0 4px;
}
@media (max-width: 700px) {
  .zonebar {
    flex-wrap: wrap !important;
    min-height: 112px;
    align-content: flex-start;
  }
  .zonebar #zone-progress {
    flex: 1 1 40%;
  }
}
#chips {
  min-height: 32px;
}
.hud {
  min-height: 34px;
}
.castlog {
  flex-wrap: nowrap;
  overflow: hidden;
  max-width: 60%;
}
.foe-chips {
  min-height: 22px;
}
.foe-plate .intent[hidden] {
  display: grid !important;
  visibility: hidden;
}
.foe-sprite,
.foe-sprite img,
.stage {
  contain: layout;
}
.foe:hover .foe-sprite {
  animation: none;
}
#log {
  min-height: 96px;
}
.logbox {
  height: 96px;
  overflow: hidden;
}
.topbar .gold {
  min-width: 118px;
  text-align: right;
  display: inline-block;
  font-variant-numeric: tabular-nums;
}
/* texte de la barre d'XP : contour noir net */
#xp-text,
.bar.xp > span {
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
  -webkit-text-stroke: 3.5px #000;
  paint-order: stroke fill;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.9),
    0 0 5px rgba(0, 0, 0, 0.8);
}
.orn-discord,
.pframe.orn-discord {
  background: conic-gradient(from var(--ang), #5865f2, #ffffff, #7983f5, #5865f2);
  animation: spin 5s linear infinite;
  box-shadow: 0 0 22px #5865f2aa;
}

/* fenêtre « Nouveautés » */
.pn {
  list-style: none;
  margin: 8px 0 14px;
  padding: 0;
  display: grid;
  gap: 7px;
}
.pn li {
  line-height: 1.4;
}
.pn .chip {
  margin-right: 6px;
  font-size: 11px;
}
.pn-new {
  color: #9be3a0;
}
.pn-imp {
  color: #8fc4ff;
}
.pn-fix {
  color: #f0c987;
}
#news-body {
  max-height: 80vh;
  overflow-y: auto;
}

.legal-link {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  opacity: 0.7;
  text-decoration: none;
}
.legal-link:hover {
  opacity: 1;
  text-decoration: underline;
}
