/*
 * Quintessence · /jeu : le site présenté comme l'écran du jeu.
 * Textures de l'interface de World of Warcraft (assets/img/wow/, propriété de Blizzard Entertainment),
 * icônes servies par Wowhead. Pensé d'abord pour le téléphone, puis élargi pour l'ordinateur.
 */
@font-face { font-family: "Marcellus"; src: url("../fonts/marcellus.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Archivo Narrow"; src: url("../fonts/archivo-narrow.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --gold: #ffd100;
  --gold-soft: #f8e4a4;
  --parch-ink: #2b1a08;
  --text: #f2eee4;
  --muted: #a8a191;
  --red: #ff2020;
  --guild: #40ff40;
  --officer: #40c040;
  --trade: #ffc0c0;
  --system: #ffff00;
  --whisper: #ff80ff;
  --title: "Marcellus", "Palatino Linotype", Palatino, Georgia, serif;
  --ui: "Archivo Narrow", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  --gl: max(10px, env(safe-area-inset-left, 0px));
  --gr: max(10px, env(safe-area-inset-right, 0px));
  --gt: max(8px, env(safe-area-inset-top, 0px));
  --gb: max(6px, env(safe-area-inset-bottom, 0px));
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: #07060c; color: var(--text); font: 14px/1.4 var(--ui); overflow: hidden; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
a { color: var(--gold); }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
img { max-width: 100%; }

.q0 { color: #9d9d9d; } .q1 { color: #ffffff; } .q2 { color: #1eff00; } .q3 { color: #0070dd; } .q4 { color: #a335ee; } .q5 { color: #ff8000; }
.cls-warrior { color: #c69b6d; } .cls-paladin { color: #f48cba; } .cls-hunter { color: #aad372; } .cls-rogue { color: #fff468; }
.cls-priest { color: #ffffff; } .cls-mage { color: #3fc7eb; } .cls-warlock { color: #8788ee; } .cls-druid { color: #ff7c0a; }

/* ------------------------------------------------------------------ Décor */
#game { position: fixed; inset: 0; overflow: hidden; }
#scene { position: absolute; inset: 0; background: #0b0a14; overflow: hidden; }
/* La scène garde les proportions de l'image (16:9), agrandie de 35 % : la porte (70 % de l'image) tombe à 60 % de
   l'écran, au-dessus des barres d'action, et le bas de l'image touche le bas de l'écran. Lanternes et passants suivent. */
.stage { position: absolute; left: 50%; top: calc(60vh - .7 * max(135vh, 75.94vw)); width: max(240vh, 135vw); height: max(135vh, 75.94vw); translate: -50% 0; background: var(--bg) 0 0 / 100% 100%; transform-origin: 50% 70%; animation: drift 60s ease-in-out infinite alternate; }
.lantern { position: absolute; width: calc(7% * var(--size)); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 214, 140, .6), rgba(255, 170, 60, .2) 38%, transparent 70%); mix-blend-mode: screen; animation: flicker 2.6s ease-in-out infinite; pointer-events: none; }
.lantern:nth-child(2) { animation-delay: -.7s; animation-duration: 3.1s; } .lantern:nth-child(3) { animation-delay: -1.3s; } .lantern:nth-child(4) { animation-delay: -2s; animation-duration: 2.2s; } .lantern:nth-child(5) { animation-delay: -.4s; } .lantern:nth-child(6) { animation-delay: -1.7s; animation-duration: 3.4s; }
@keyframes flicker { 0%, 100% { opacity: .85; scale: 1; } 20% { opacity: .65; scale: .96; } 45% { opacity: 1; scale: 1.04; } 70% { opacity: .75; scale: .98; } }
.sunrays { position: absolute; left: 50%; top: 22%; width: 60%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 244, 210, .35), rgba(255, 230, 170, .08) 45%, transparent 70%); mix-blend-mode: screen; animation: glow 9s ease-in-out infinite alternate; pointer-events: none; }
@keyframes glow { from { opacity: .6; scale: .95; } to { opacity: 1; scale: 1.08; } }
/* Les danseurs : 3 nains qui se balancent en sautillant, 2 gnomes qui sautent en tournant, sur place */
.dancer { position: absolute; translate: -50% -100%; pointer-events: none; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .55)) saturate(.92) brightness(.95); }
.dancer img { height: 100%; display: block; transform-origin: 50% 100%; animation: .84s ease-in-out var(--delay, 0s) infinite; }
.dancer::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: -4%; height: 9%; z-index: -1; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(0, 0, 0, .55), transparent 70%); animation: .84s ease-in-out var(--delay, 0s) infinite; }
.dance-a img { animation-name: dance-a; }
.dance-a::after { animation-name: shadow-a; }
.dance-b img { animation-name: dance-b; animation-duration: 1.1s; }
.dance-b::after { animation-name: shadow-b; animation-duration: 1.1s; }
@keyframes dance-a { 0%, 100% { translate: 0 0; rotate: -7deg; } 25% { translate: 0 -9%; rotate: 0deg; } 50% { translate: 0 0; rotate: 7deg; } 75% { translate: 0 -9%; rotate: 0deg; } }
@keyframes shadow-a { 0%, 50%, 100% { scale: 1; opacity: 1; } 25%, 75% { scale: .8; opacity: .7; } }
@keyframes dance-b { 0%, 100% { translate: 0 0; scale: 1 1; } 20% { translate: 0 -16%; scale: 1 1.04; } 45% { translate: 0 0; scale: -1 .94; } 70% { translate: 0 -16%; scale: -1 1.04; } 90% { translate: 0 0; scale: 1 .96; } }
@keyframes shadow-b { 0%, 45%, 90%, 100% { scale: 1; opacity: 1; } 20%, 70% { scale: .65; opacity: .6; } }
#scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 4, 10, .55), rgba(4, 4, 10, 0) 22%, rgba(4, 4, 10, 0) 62%, rgba(4, 4, 10, .8)), radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .55)); }
@keyframes drift { from { scale: 1; } to { scale: 1.05; } }
#hud { position: absolute; inset: 0; padding: var(--gt) var(--gr) var(--gb) var(--gl); }

#zone { position: absolute; left: 0; right: 0; top: 30%; text-align: center; pointer-events: none; transition: opacity 1.5s; }
#zone h1 { margin: 0; font: 400 clamp(34px, 9vw, 72px)/1 var(--title); color: var(--gold); text-shadow: 0 2px 0 #000, 0 0 3px #000, 0 0 18px rgba(0, 0, 0, .8); }
#zone p { margin: 6px 0 0; font: 400 clamp(14px, 3.6vw, 20px) var(--title); color: var(--gold-soft); text-shadow: 0 1px 0 #000, 0 0 8px #000; }
#msgs { position: absolute; left: 0; right: 0; top: 18%; z-index: 60; display: grid; gap: 2px; justify-items: center; pointer-events: none; padding: 0 16px; text-align: center; }
#msgs div { font: 700 17px var(--ui); text-shadow: 0 1px 0 #000, 0 0 5px #000; animation: fade 3.6s forwards; }
#msgs .err { color: var(--red); }
#msgs .info { color: var(--system); }
#center { position: absolute; left: 0; right: 0; top: 40%; z-index: 12; display: flex; justify-content: center; pointer-events: none; }
#center .wbtn { pointer-events: auto; }
.wbtn.big { min-height: 38px; padding: 6px 34px; font-size: 17px; }
.popup { position: absolute; left: 50%; top: 30%; z-index: 80; width: min(390px, calc(100vw - 32px)); transform: translateX(-50%); padding: 14px 18px 12px; text-align: center; border: 11px solid transparent; border-image: url("../img/wow/cadre.png") 32 / 32px / 3px round; background: url("../img/wow/fond-cadre.png"), rgba(6, 6, 10, .92); background-clip: padding-box; box-shadow: 0 10px 40px rgba(0, 0, 0, .7); }
.popup p { margin: 0 0 8px; font-size: 16px; color: var(--gold-soft); text-shadow: 0 1px 0 #000; }
.popup .count { color: var(--muted); font-size: 14px; }
.popup .count b { color: var(--gold); }
.popup .row { justify-content: center; gap: 14px; margin-top: 6px; }
#levelup { position: absolute; left: 0; right: 0; top: 40%; z-index: 70; text-align: center; padding: 0 16px; font: 400 clamp(24px, 6vw, 42px) var(--title); color: var(--gold); text-shadow: 0 2px 0 #000, 0 0 20px rgba(255, 209, 0, .6); pointer-events: none; animation: fade 3.6s forwards; }
@keyframes fade { 0%, 75% { opacity: 1; } 100% { opacity: 0; } }

/* ------------------------------------------------------------------ Cadres joueur et cible (texture 256 × 128) */
.unit { position: absolute; width: 256px; height: 128px; transform-origin: top left; transform: scale(var(--s, .72)); color: inherit; text-decoration: none; display: block; }
.unit .frame { position: absolute; left: 0; top: 0; width: 256px; height: 128px; z-index: 2; pointer-events: none; }
.unit .portrait { position: absolute; left: 155px; top: 20px; width: 52px; height: 51px; border-radius: 50%; object-fit: cover; z-index: 1; background: #000; }
.unit .name { position: absolute; left: 33px; top: 25px; width: 112px; height: 14px; z-index: 3; font: 700 11px/14px var(--ui); text-align: center; color: var(--gold); text-shadow: 0 1px 0 #000; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; background: rgba(0, 0, 0, .55); }
.unit .bar { position: absolute; left: 32px; width: 114px; z-index: 1; background: rgba(0, 0, 0, .7); }
.unit .bar.hp { top: 41px; height: 11px; --c: #00c000; }
.unit .bar.mp { top: 52px; height: 11px; --c: #0050ff; }
.unit .bar.red { --c: #c00000; }
.unit .bar.yellow { --c: #e0b000; }
.unit .bar::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v, 100%); background: url("../img/wow/barre.png") 0 0 / 100% 100%, var(--c); background-blend-mode: multiply; }
.unit .bar em { position: absolute; inset: 0; z-index: 3; font: 600 9px/11px var(--ui); font-style: normal; text-align: center; color: #fff; text-shadow: 0 1px 0 #000, 0 0 2px #000; }
.unit .lvl { position: absolute; left: 192px; top: 58px; width: 20px; height: 20px; z-index: 3; font: 700 10px/20px var(--ui); text-align: center; color: var(--gold); text-shadow: 0 1px 0 #000; }
.unit.player { left: calc(var(--gl) - 20px); top: var(--gt); }
.unit.player .frame { transform: scaleX(-1); }
.unit.player .portrait { left: 49px; }
.unit.player .name, .unit.player .bar { left: 110px; }
.unit.player .lvl { left: 34px; top: 56px; width: 22px; height: 22px; border-radius: 50%; background: #1b140a; border: 1px solid #c8a24a; line-height: 20px; }
.unit.target { left: calc(var(--gl) - 20px); top: calc(var(--gt) + 80px); }

/* ------------------------------------------------------------------ Minicarte (texture recadrée 174 × 182) et améliorations */
#minimap { position: absolute; right: calc(var(--gr) - 6px); top: calc(var(--gt) - 2px); width: 174px; height: 200px; transform-origin: top right; transform: scale(var(--s, .62)); }
#minimap .map { position: absolute; left: 23px; top: 42px; width: 126px; height: 126px; border-radius: 50%; object-fit: cover; }
#minimap .border { position: absolute; left: 0; top: 0; width: 174px; height: 182px; pointer-events: none; }
#minimap .zone-name { position: absolute; left: 6px; top: 4px; width: 162px; text-align: center; font: 600 12px/16px var(--ui); color: var(--gold); text-shadow: 0 1px 0 #000; }
#minimap .mm-btn { position: absolute; width: 32px; height: 32px; border-radius: 50%; border: 2px solid #a08446; background: #15110a; color: var(--gold); font: 700 13px var(--ui); padding: 0; cursor: pointer; box-shadow: 0 2px 4px rgba(0, 0, 0, .7); }
#minimap .mm-btn.cal { right: 0; top: 42px; }
#minimap .mm-btn.mail { left: 2px; top: 140px; overflow: visible; }
#minimap .mm-btn.mail img { width: 100%; height: 100%; border-radius: 50%; display: block; }
#minimap .mm-btn i { position: absolute; right: -5px; top: -5px; min-width: 16px; height: 16px; border-radius: 8px; background: #b80000; border: 1px solid #000; color: #fff; font: 700 10px/14px var(--ui); font-style: normal; }
#clock { position: absolute; left: 0; right: 0; top: 176px; text-align: center; font: 600 13px var(--ui); color: var(--text); text-shadow: 0 1px 0 #000, 0 0 3px #000; }
#buffs { display: none; }
.buff { width: 32px; text-align: center; font: 600 10px var(--ui); color: var(--text); text-shadow: 0 1px 0 #000; }
.buff img { display: block; width: 32px; height: 32px; border: 1px solid #000; border-radius: 3px; }
.buff.debuff img { border-color: #c00000; }

/* ------------------------------------------------------------------ Barre d'action */
#bar { position: absolute; left: var(--gl); right: var(--gr); bottom: calc(var(--gb) + 18px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 6px 4px 4px; border: 11px solid transparent; border-image: url("../img/wow/cadre.png") 32 / 32px / 3px round; background: url("../img/wow/fond-cadre.png"); background-clip: padding-box; }
.slot { position: relative; display: grid; justify-items: center; gap: 2px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--gold-soft); }
.slot img { width: 52px; height: 52px; border: 1px solid #000; border-radius: 3px; box-shadow: 0 0 0 1px #6b5a35, 0 2px 4px rgba(0, 0, 0, .7); display: block; }
.slot::after { content: ""; position: absolute; left: 50%; top: 0; width: 54px; height: 54px; transform: translateX(-50%); background: url("../img/wow/emplacement-survol.png") center / 100% 100%; mix-blend-mode: screen; opacity: 0; transition: opacity .1s; pointer-events: none; }
.slot:hover::after, .slot:focus-visible::after { opacity: .9; }
.slot:active img { transform: translateY(1px); filter: brightness(.85); }
.slot kbd { position: absolute; top: 1px; right: calc(50% - 25px); font: 700 10px var(--ui); color: #fff; text-shadow: 0 1px 0 #000, 0 0 2px #000; }
.slot .label { font: 600 11px var(--ui); text-shadow: 0 1px 0 #000; white-space: nowrap; }
.gryphon { display: none; }
a.slot { text-decoration: none; }
#bar2 { display: none; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 12px 6px; margin-bottom: 6px; }
.menu-grid .slot .label { display: block; white-space: normal; text-align: center; line-height: 1.15; }
#chat-toggle { position: absolute; right: var(--gr); bottom: calc(var(--gb) + 200px); font: 700 12px var(--ui); color: var(--gold); padding: 5px 14px; border: 8px solid transparent; border-image: url("../img/wow/bouton-up.png") 2 10 3 10 fill / 2px 10px 3px 10px stretch; background: none; cursor: pointer; text-shadow: 0 1px 0 #000; }

#xp { position: absolute; left: var(--gl); right: var(--gr); bottom: var(--gb); height: 12px; background: #000; border: 1px solid #3a2e14; overflow: hidden; }
#xp span { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(180deg, #9a5cff, #4b0fa8); }
#xp::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(5% - 1px), rgba(0, 0, 0, .85) calc(5% - 1px) 5%); pointer-events: none; }
#xp em { position: absolute; inset: 0; z-index: 1; font: 600 10px/11px var(--ui); font-style: normal; text-align: center; color: #fff; text-shadow: 0 1px 0 #000, 0 0 2px #000; }

/* ------------------------------------------------------------------ Chat */
#chat { position: absolute; left: var(--gl); right: var(--gr); bottom: calc(var(--gb) + 236px); z-index: 15; background: rgba(0, 0, 0, .7); border-radius: 3px; padding: 4px 6px 6px; }
#chat.closed { display: none; }
.chat-tabs { display: flex; gap: 12px; padding: 0 4px 3px; }
.chat-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); font: 600 12px var(--ui); padding: 1px 0; cursor: pointer; }
.chat-tabs button[aria-selected="true"] { color: var(--gold); border-bottom-color: var(--gold); }
#log { height: 30vh; max-height: 220px; overflow-y: auto; padding: 2px 4px; font-size: 13.5px; line-height: 1.45; text-shadow: 0 1px 0 #000; overflow-wrap: anywhere; }
#chatin { width: 100%; margin-top: 4px; background: rgba(0, 0, 0, .85); color: var(--text); border: 1px solid #5c4a24; border-radius: 2px; padding: 7px 9px; font: 15px var(--ui); }

/* ------------------------------------------------------------------ Fenêtres (bordure du jeu en 9 morceaux) */
.win { position: fixed; z-index: 30; inset: calc(var(--gt) + 22px) var(--gr) var(--gb) var(--gl); display: flex; flex-direction: column; border: 11px solid transparent; border-image: url("../img/wow/cadre.png") 32 / 32px / 3px round; background: url("../img/wow/fond-cadre.png"), rgba(6, 6, 10, .9); background-clip: padding-box; box-shadow: 0 10px 40px rgba(0, 0, 0, .7); }
.win.gold { border-image-source: url("../img/wow/cadre-or.png"); }
.win-head { position: relative; display: flex; justify-content: center; margin: -32px 0 6px; flex: none; }
.win-head h2 { margin: 0; min-width: 210px; max-width: calc(100% - 50px); height: 46px; padding: 12px 26px 0; background: url("../img/wow/entete.png") center / 100% 100% no-repeat; font: 400 16px/1.2 var(--title); color: var(--gold); text-align: center; text-shadow: 0 1px 0 #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-close { position: absolute; right: -10px; top: 20px; width: 32px; height: 32px; border: 0; padding: 0; cursor: pointer; background: url("../img/wow/fermer-up.png") center / 100% 100%; }
.win-close:hover { background-image: url("../img/wow/fermer-highlight.png"), url("../img/wow/fermer-up.png"); }
.win-close:active { background-image: url("../img/wow/fermer-down.png"); }
.win-body { overflow-y: auto; min-height: 0; padding: 4px 6px 8px; overscroll-behavior: contain; }
.win .dragon { display: none; }
.win-body.frame { flex: 1; overflow: hidden; padding: 0; display: flex; }
.win-body.frame iframe { flex: 1; width: 100%; height: 100%; border: 0; background: transparent; color-scheme: dark; }
.locked { color: var(--red); font: 700 16px var(--ui); text-align: center; text-shadow: 0 1px 0 #000; margin: 10px 0; }
.center { text-align: center; }
.hint { color: var(--muted); font-size: 13px; text-align: center; margin: 10px 0 0; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.split { justify-content: space-between; margin-top: 10px; }

.parch { background: url("../img/wow/parchemin.png") center / 100% 100%; color: var(--parch-ink); padding: 18px 20px 20px; font-size: 15px; line-height: 1.5; margin: 0 0 8px; }
.parch h3 { margin: 0 0 6px; font: 400 20px/1.2 var(--title); color: #1b0f02; }
.parch h4 { margin: 12px 0 4px; font: 400 16px var(--title); color: #4a2a06; }
.parch p { margin: 0 0 6px; }
.parch .meta { color: #6b4a22; font-size: 13px; }
.parch a { color: #7a1a00; }
.quest .needs, .quest .rewards { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.quest .needs span, .quest .rewards span { display: inline-flex; align-items: center; gap: 6px; }
.quest .needs img, .quest .rewards img { width: 28px; height: 28px; border: 1px solid #000; border-radius: 3px; }
.quest .rewards img { width: 36px; height: 36px; }
.quest .needs small { color: #6b4a22; }
.apply label { display: grid; gap: 3px; margin-bottom: 8px; font: 700 13px var(--ui); color: #3b2306; }
.apply input, .apply select, .apply textarea { width: 100%; font: 15px var(--ui); color: #1b0f02; background: rgba(255, 250, 235, .85); border: 1px solid #8a6a3a; border-radius: 2px; padding: 7px 8px; }
.apply .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.form-err { color: #a00; font-weight: 700; min-height: 18px; margin: 0; }

.wbtn { display: inline-flex; align-items: center; justify-content: center; min-height: 28px; padding: 3px 14px; border: 8px solid transparent; border-width: 2px 10px 3px; border-image: url("../img/wow/bouton-up.png") 2 10 3 10 fill / 2px 10px 3px 10px stretch; background: none; color: var(--gold); font: 700 13px var(--ui); text-decoration: none; text-shadow: 0 1px 0 #000; cursor: pointer; white-space: nowrap; }
.wbtn:hover { filter: brightness(1.2); }
.wbtn:active { border-image-source: url("../img/wow/bouton-down.png"); }
.wbtn.small { min-height: 24px; font-size: 12px; }

.tabs { display: flex; gap: 4px; margin: 0 0 8px; }
.tabs button { flex: 1; padding: 6px 10px; font: 700 13px var(--ui); color: var(--muted); background: rgba(0, 0, 0, .5); border: 1px solid #5c4a24; border-radius: 4px 4px 0 0; cursor: pointer; }
.tabs button span { color: var(--muted); font-weight: 400; }
.tabs button[aria-selected="true"] { color: var(--gold); background: rgba(60, 45, 15, .6); border-color: #a08446; }

.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.events a { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 6px 8px; background: rgba(0, 0, 0, .45); border: 1px solid rgba(160, 132, 70, .35); border-radius: 3px; color: var(--text); text-decoration: none; }
.events a:hover { background: rgba(80, 60, 20, .45); border-color: #a08446; }
.events img { grid-row: span 2; width: 36px; height: 36px; border: 1px solid #000; border-radius: 3px; }
.ev-main { display: grid; min-width: 0; }
.ev-main b { color: var(--gold); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-main small { color: var(--muted); }
.ev-count { color: var(--text); font-weight: 700; }
.ev-me { grid-column: 3; font-size: 12px; text-align: right; }
.ev-me.present, .ev-me.late { color: var(--guild); } .ev-me.tentative { color: var(--system); } .ev-me.absent { color: var(--red); } .ev-me.none { color: var(--muted); }
.events .empty, .addons .empty { color: var(--muted); padding: 8px; text-align: center; }

.comp { display: flex; flex-wrap: wrap; gap: 6px 10px; justify-content: center; margin: 0 0 10px; }
.comp span { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.comp img { width: 26px; height: 26px; border: 1px solid #000; border-radius: 3px; }
.scroll-x { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.list th { text-align: left; padding: 4px 6px; color: var(--gold); font-weight: 700; border-bottom: 1px solid #5c4a24; white-space: nowrap; }
table.list td { padding: 4px 6px; white-space: nowrap; }
table.list tbody tr:nth-child(odd) td { background: rgba(255, 255, 255, .035); }
table.list tbody tr { cursor: pointer; }
table.list tbody tr:hover td { background: rgba(255, 209, 0, .1); }
table.list a { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.ci { width: 18px; height: 18px; border: 1px solid #000; border-radius: 2px; }

.bag { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 5px; }
.bag a { display: block; aspect-ratio: 1; border: 2px solid currentColor; border-radius: 4px; background: #000 url("../img/wow/emplacement.png") center / 140%; overflow: hidden; }
.bag img { width: 100%; height: 100%; display: block; }
.journal { list-style: none; margin: 10px 0 0; padding: 0; font-size: 13.5px; line-height: 1.7; }
.journal a { text-decoration: none; }
.journal .when { color: var(--muted); }

.addons { list-style: none; margin: 0 0 10px; padding: 0; }
.addons li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 2px; border-bottom: 1px solid rgba(160, 132, 70, .25); }
.check { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.check input { accent-color: var(--gold); width: 16px; height: 16px; }
.check small { color: var(--muted); }
.menu { display: grid; gap: 8px; }
.menu form { display: grid; }
.menu .legal { color: var(--muted); font-size: 11.5px; text-align: center; margin: 6px 0 0; }
.letter { margin-bottom: 10px; }

/* ------------------------------------------------------------------ Infobulle (bordure du jeu) et écran de chargement */
#tip { position: fixed; z-index: 100; max-width: 260px; padding: 4px 7px; border: 5px solid transparent; border-image: url("../img/wow/infobulle.png") 16 / 16px / 1px stretch; background: rgba(5, 6, 18, .93); background-clip: padding-box; font-size: 13px; line-height: 1.4; pointer-events: none; }
#tip .t { color: #fff; font-weight: 700; font-size: 14px; }
#tip .g { color: var(--guild); }
#loading { position: absolute; inset: 0; z-index: 90; background: #000 var(--load) center / cover; display: flex; align-items: flex-end; justify-content: center; padding: 0 var(--gr) calc(var(--gb) + 30px) var(--gl); }
.load-inner { width: min(620px, 100%); text-align: center; }
.load-inner p { margin: 0 0 10px; color: var(--gold-soft); font: 400 16px var(--title); text-shadow: 0 1px 0 #000, 0 0 6px #000; }
.lbar { height: 18px; padding: 3px; background: #000; border: 2px solid #8a7444; border-radius: 3px; }
.lbar span { display: block; height: 100%; width: 0; background: linear-gradient(180deg, #ffd977, #b07010); transition: width 1.4s ease-in; }
#toast { position: absolute; left: 50%; bottom: 40%; transform: translateX(-50%); z-index: 50; width: min(360px, calc(100vw - 32px)); padding: 8px 12px; border: 11px solid transparent; border-image: url("../img/wow/cadre-or.png") 32 / 32px / 3px round; background: url("../img/wow/fond-cadre.png"), rgba(10, 8, 4, .92); background-clip: padding-box; display: flex; gap: 10px; align-items: center; animation: fade 4.4s forwards; }
#toast img { width: 40px; height: 40px; border: 1px solid #000; border-radius: 3px; }
#toast b { color: var(--gold); display: block; }

/* ------------------------------------------------------------------ Ordinateur */
@media (min-width: 761px) {
  .unit { --s: 1.4; }
  .unit.player { left: calc(var(--gl) - 44px); top: calc(var(--gt) - 4px); }
  .unit.target { left: calc(var(--gl) + 270px); top: calc(var(--gt) - 4px); }
  #minimap { --s: 1; }
  #buffs { position: absolute; right: calc(var(--gr) + 186px); top: calc(var(--gt) + 10px); display: flex; gap: 6px; }
  #zone { top: 22%; }
  #center { top: calc(22% + 128px); }
  #bar { left: 50%; right: auto; transform: translateX(-50%); bottom: calc(var(--gb) + 20px); display: flex; gap: 6px; padding: 6px 10px; }
  #bar .slot .label, #bar2 .slot .label { display: none; }
  .slot img { width: 50px; height: 50px; }
  #bar2 { display: flex; position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(var(--gb) + 98px); gap: 5px; padding: 4px 8px; border: 11px solid transparent; border-image: url("../img/wow/cadre.png") 32 / 32px / 3px round; background: url("../img/wow/fond-cadre.png"); background-clip: padding-box; }
  #bar2 .slot img { width: 40px; height: 40px; }
  #bar2 .slot::after { width: 42px; height: 42px; }
  .win.page { width: min(1000px, calc(100vw - 60px)); height: calc(100vh - 230px); max-height: none; }
  .gryphon { display: block; position: absolute; bottom: -22px; width: 124px; pointer-events: none; }
  .gryphon.left { right: calc(100% + 2px); }
  .gryphon.right { left: calc(100% + 2px); transform: scaleX(-1); }
  #chat-toggle { display: none; }
  #chat, #chat.closed { display: block; left: var(--gl); right: auto; bottom: calc(var(--gb) + 24px); width: min(400px, 30vw); background: linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .2)); }
  #log { height: 160px; font-size: 13px; }
  #chatin { font-size: 13px; padding: 5px 8px; }
  .win { inset: auto; width: min(560px, calc(100vw - 40px)); max-height: calc(100vh - 230px); top: 130px; left: calc(50% - 280px); }
  .win.small { width: 300px; }
  .win.gold .dragon { display: block; position: absolute; left: -58px; top: -54px; width: 128px; pointer-events: none; z-index: 2; }
  .win-head { cursor: move; touch-action: none; user-select: none; }
}
@media (min-width: 761px) and (max-width: 1180px) {
  #chat, #chat.closed { width: 260px; }
  #log { height: 120px; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .unit { --s: 1.1; }
  .unit.target { left: calc(var(--gl) + 200px); }
}
@media (min-width: 761px) and (max-width: 980px) {
  #buffs { display: none; }
  .gryphon { display: none; }
}
@media (max-height: 640px) and (min-width: 761px) {
  #zone { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .stage { animation: none; }
  .dancer img, .dancer::after { animation: none; }
  * { transition: none !important; animation-duration: .01s !important; }
}
