/* Fever — habillage du site d'origine (ère muxxu) reconstruit depuis www/img.
   Gabarit 900px : bandeau head.jpg, nav sur bande brune, contenu sur motifs
   chocolat (maintop dents + maincontent répété + mainbottom), pied rouge. */

* { margin:0; padding:0; box-sizing:border-box; }

body {
  background:#feba2b;
  font-family:Verdana, Geneva, sans-serif;
  font-size:11px;
  color:#e8d5c0;
}

#fv-page {
  width:900px;
  margin:0 auto;
}

/* ===== bandeau ===== */
#fv-head {
  width:900px;
  height:170px;
  background:url(../img/site/head.jpg) no-repeat;
  position:relative;
}
#fv-head a.home {
  position:absolute;
  left:280px; top:10px;
  width:340px; height:110px;
  /* zone cliquable sur le logo FEVER */
}

/* badge de jetons, identique aux portages Snake et Intrusion : les jetons sont la
   monnaie commune du compte. Il porte aussi les pages réservées à l'admin, qui n'ont
   pas leur place dans la barre d'époque. */
#tokens-badge {
  position:absolute;
  top:0; right:26px;
  z-index:5;
  display:flex; align-items:center; gap:6px;
  padding:6px 12px 7px;
  background:#1a1e26;
  color:#fff;
  font-size:12px; font-weight:bold;
  border-radius:0 0 6px 6px;
  box-shadow:0 1px 4px rgba(0,0,0,0.35);
}
/* le display:flex l'emporterait sur l'attribut hidden */
#tokens-badge[hidden] { display:none; }
#tokens-badge img { display:block; width:12px; height:12px; image-rendering:pixelated; }
#tokens-badge a {
  color:#cfe3ff; text-decoration:none; font-weight:bold;
}
#tokens-badge a:hover { color:#fff; text-decoration:underline; }
#tokens-badge a.on { color:#feba2b; }

/* ===== navigation : les liens vivent DANS la bannière (capture d'époque) ===== */
#fv-nav { display:none; }
.head-nav {
  position:absolute;
  left:18px; right:18px; bottom:14px;
  display:flex;
  align-items:center;
  gap:22px;
}
.head-nav a {
  color:#f5a623;
  text-decoration:none;
  font-weight:bold;
  font-size:12px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  text-shadow:1px 1px 0 #1d100c;
}
.head-nav a:hover, .head-nav a.on { color:#ffd95e; }
.head-nav a.off { color:#8a6a55; cursor:default; }
.head-nav .grow { flex:1; }
.head-nav .who { color:#c49a76; font-size:10px; }
.head-nav .who b { color:#ffd9a0; }
.head-nav .who a { font-size:10px; }

/* ===== contenu ===== */
#fv-top {
  width:900px;
  height:189px;
  background:url(../img/site/maintop.gif) no-repeat;
  margin-top:-155px;      /* les dents chocolat mordent le bas du bandeau */
  position:relative;
  z-index:-1;
}
/* variante simple : contenu directement sous la nav */
#fv-main {
  background:url(../img/site/maincontent.gif) repeat-y;
  min-height:520px;
  padding:24px 0 32px;
  text-align:center;
}
#fv-main h2 {
  color:#feba2b;
  font-size:15px;
  margin-bottom:14px;
  text-shadow:1px 1px 0 #1d100c;
}
#fv-bottom {
  width:900px;
  height:13px;
  background:url(../img/site/mainbottom.gif) no-repeat;
}

/* colonnes du contenu : cadre de jeu à gauche, texte à droite (layout muxxu) */
.fv-cols {
  display:flex;
  align-items:flex-start;
  gap:20px;
  padding:0 24px;
  text-align:left;
}
.fv-cols > div:first-child { flex:0 0 412px; }
.fv-cols .fv-side { flex:1 1 0; min-width:0; max-width:420px; }
.fv-cols .fv-side .fv-panel { display:block; max-width:none; margin:0 0 14px; }
#fv-status { text-align:left; }

/* zone jeu */
#fv-gamebox {
  display:inline-block;
  background:#1d100c;
  padding:6px;
  border-radius:6px;
  box-shadow:0 4px 18px rgba(0,0,0,0.5);
}
#fv-gamebox canvas {
  display:block;
  width:400px; height:436px;
  /* avant le premier rendu, le canvas est vide : on y peint déjà l'écran de
     chargement du jeu (fond orange + barre) au lieu d'un grand carré blanc */
  background:#c07716 url('../img/site/loading_bar.png') center no-repeat;
  background-size:120px auto;
  image-rendering:pixelated;
  cursor:crosshair;
}
#fv-status { margin-top:10px; color:#c49a76; }
#fv-main .note { color:#8a6a55; font-size:10px; margin-top:10px; }

/* ===== panneaux (connexion, fiche, classement) ===== */
.fv-panel {
  display:inline-block;
  text-align:left;
  background:#2f1a14;
  border:2px solid #1d100c;
  border-radius:8px;
  padding:18px 24px;
  min-width:280px;
  max-width:640px;
  box-shadow:0 4px 18px rgba(0,0,0,0.4);
  margin:0 auto 16px;
  vertical-align:top;
}
.fv-panel h2 { margin:0 0 10px; }
.fv-panel p { margin:6px 0; color:#e8d5c0; line-height:1.5; }
.fv-input {
  background:#1d100c;
  border:1px solid #5a382a;
  border-radius:4px;
  color:#ffd9a0;
  font:inherit;
  padding:6px 8px;
}
.fv-input:focus { outline:1px solid #feba2b; }
.fv-btn {
  display:inline-block;
  background:#feba2b;
  color:#44271f;
  border:0;
  border-radius:5px;
  font:inherit;
  font-weight:bold;
  padding:7px 16px;
  cursor:pointer;
  text-decoration:none;
}
.fv-btn:hover { background:#ffd05e; }
.fv-btn:disabled { opacity:0.5; cursor:default; }
.fv-btn.alt { background:#5a382a; color:#f0b97e; }
.fv-btn.alt:hover { background:#6d4634; }
.fv-table { border-collapse:collapse; width:100%; }
.fv-table th, .fv-table td { padding:5px 10px; text-align:left; }
.fv-table th { color:#feba2b; border-bottom:2px solid #5a382a; }
.fv-table tr:nth-child(even) td { background:#3a211a; }
.fv-table td { color:#e8d5c0; }
.fv-table .self td { background:#54301f; color:#ffd9a0; }
.fv-err { color:#feba2b; min-height:14px; }
.fv-stat { display:inline-block; margin:4px 14px 4px 0; }
.fv-stat b { color:#feba2b; font-size:14px; }

/* stock de l'onglet « + de parties » */
.gl-stock { display:flex; gap:18px; justify-content:center; margin:10px 0; }
.gl-stock .it { text-align:center; }
.gl-stock .ic {
  display:flex;
  align-items:center;
  justify-content:center;
  height:26px;
  margin-bottom:4px;
}
.gl-stock img { image-rendering:pixelated; display:block; margin:0 auto; }
.gl-stock b { color:#feba2b; font-size:14px; }
.gl-stock span { color:#c49a76; font-size:9px; }

/* ===== Ma fiche : cartes à icônes ===== */
.fv-fiche { min-width:520px; }
.fv-fiche-head {
  display:flex;
  align-items:center;
  gap:14px;
  padding-bottom:12px;
  border-bottom:1px solid #5a382a;
}
.fv-fiche-head img { image-rendering:pixelated; }
.fv-fiche-head h2 { margin:0; }
.fv-fiche-sub { color:#c49a76; margin:4px 0 0; display:flex; align-items:center; gap:6px; }
.fv-fiche-sub b { color:#feba2b; }
.fv-fiche-score {
  margin-left:auto;
  text-align:center;
  background:#1d100c;
  border:1px solid #5a382a;
  border-radius:8px;
  padding:8px 18px;
}
.fv-fiche-score b { display:block; color:#feba2b; font-size:20px; }
.fv-fiche-score span { color:#c49a76; font-size:10px; }
.fv-fiche-score em { display:block; color:#f0b97e; font-style:normal; font-size:10px; margin-top:2px; }
.fv-fiche-t {
  color:#feba2b;
  font-size:12px;
  margin:14px 0 8px;
  display:flex;
  align-items:center;
  gap:6px;
}
.fv-fiche-t img { image-rendering:pixelated; }
.fv-statgrid {
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:8px;
}
.fv-scard {
  background:#3a211a;
  border:1px solid #1d100c;
  border-radius:6px;
  padding:8px 6px 7px;
  text-align:center;
}
.fv-scard .ic {
  display:flex;
  align-items:center;
  justify-content:center;
  height:30px;
  margin-bottom:4px;
}
.fv-scard img { image-rendering:pixelated; display:block; }
.fv-scard b { display:block; color:#feba2b; font-size:15px; }
.fv-scard span { color:#c49a76; font-size:9.5px; }
.fv-fiche-save { color:#8a6a55; font-size:10px; margin-top:12px; }
.fv-itemgrid {
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:6px;
}
.fv-item {
  display:flex;
  align-items:center;
  gap:8px;
  background:#3a211a;
  border:1px solid #1d100c;
  border-radius:6px;
  padding:5px 8px;
}
.fv-item img { image-rendering:pixelated; flex:none; }
.fv-item span { color:#e8d5c0; font-size:10px; line-height:1.2; }

/* ===== pied ===== */
#fv-foot {
  background:#b62816 url(../img/site/bottom_bg.gif) repeat-x;
  height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#ffd0b0;
  font-size:10px;
}
#fv-foot a { color:#ffe8a0; }

/* ===== polices du jeu (extraites de runResources.swf) ===== */
@font-face { font-family:'fv-nokia'; src:url(../fonts/nokia.ttf) format('truetype'); }
@font-face { font-family:'fv-04b03'; src:url(../fonts/04b03.ttf) format('truetype'); }
@font-face { font-family:'fv-upheaval'; src:url(../fonts/upheaval.ttf) format('truetype'); }

/* ===== colonne droite façon capture d'époque : onglets + panneau + illus ===== */
.fv-tabs {
  display:flex;
  background:#000;
  padding:4px 6px;
  gap:2px;
  border-radius:4px 4px 0 0;
}
.fv-tabs a {
  color:#feba2b;
  font-weight:bold;
  font-size:11px;
  text-decoration:none;
  padding:3px 8px;
  display:inline-flex;
  align-items:center;
  gap:5px;
  cursor:pointer;
}
.fv-tabs a img { image-rendering:pixelated; }
.fv-tabs a.on, .fv-tabs a:hover { color:#8f6; }
.fv-sidebox {
  /* dégradé sombre en tête pour la lisibilité, illustration d'époque en fond */
  background:
    linear-gradient(180deg, rgba(32,17,12,0.95) 0%, rgba(32,17,12,0.85) 40%, rgba(32,17,12,0.25) 70%, rgba(32,17,12,0) 100%),
    #2c1712 url(../img/site/pousty_aide_400x436.jpg) no-repeat bottom center;
  background-size:100% 100%, 100% auto;
  border:2px solid #1d100c;
  border-top:0;
  padding:12px 14px;
  line-height:1.5;
  height:425px;              /* aligné sur le cadre de jeu (448 avec les onglets) */
  overflow:hidden;
}
/* la colonne droite de la page de jeu fait la hauteur exacte du cadre (448) ;
   le fond ancré en bas n'est jamais rogné par le bas */
.fv-side-game { height:448px; display:flex; flex-direction:column; }
.fv-side-game .fv-tabs { flex:none; }
.fv-side-game .fv-sidebox { flex:1 1 0; height:auto; min-height:0; }

/* classement inline de l'onglet */
.fv-ranktable { width:100%; border-collapse:collapse; margin-top:4px; }
.fv-ranktable td { padding:2px 6px; border-bottom:1px solid rgba(255,255,255,0.08); font-size:11px; }
.fv-ranktable td.r { color:#c49a76; width:20px; }
.fv-ranktable td.s { text-align:right; color:#feba2b; font-weight:bold; }
.fv-ranktable tr.self td { color:#ffd9a0; background:rgba(254,186,43,0.12); }

/* chaque onglet a son illustration d'époque en fond (pousty_*_400x436.jpg) */
#tab-histoire {
  background-image:
    linear-gradient(180deg, rgba(32,17,12,0.95) 0%, rgba(32,17,12,0.85) 40%, rgba(32,17,12,0.25) 70%, rgba(32,17,12,0) 100%),
    url(../img/site/pousty_histoire_400x436.jpg);
}
#tab-parties {
  background-image:
    linear-gradient(180deg, rgba(32,17,12,0.95) 0%, rgba(32,17,12,0.88) 45%, rgba(32,17,12,0.35) 72%, rgba(32,17,12,0) 100%),
    url(../img/site/pousty_boutique_400x436.jpg);
}
.fv-sidebox h3 { color:#feba2b; font-size:12px; margin:10px 0 2px; }
.fv-sidebox p { margin:4px 0; }
.fv-sidebox .small { color:#c49a76; font-style:italic; font-size:10px; }
.fv-sidebox img.inline { image-rendering:pixelated; vertical-align:middle; }
.fv-sidebox b { color:#feba2b; }

/* ===== formulaire de connexion / inscription ===== */
.fv-panel.fv-login {
  position:relative;
  overflow:hidden;
  /* le panneau reprend les dimensions natives de l'illustration (537x344),
     affichée en entier (contain) : ni rognage latéral, ni coupe en bas */
  /* dimensions natives de l'illustration : elle remplit exactement le cadre,
     ni rognée ni bordée de bandes (les textes sont assez courts pour que le
     formulaire, e-mail compris, tienne dans cette hauteur) */
  width:537px;
  max-width:100%;
  height:344px;
  background:#2f1a14 url("../img/site/pousty_intro.jpg") center / contain no-repeat;
  /* le bloc du formulaire est centré dans les deux axes */
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
}
.fv-panel.fv-login p { width:auto; }
/* voile pour garder le texte lisible sur l'illustration */
.fv-panel.fv-login::before {
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(30,16,12,0.45), rgba(30,16,12,0.78));
}
.fv-panel.fv-login > * { position:relative; }
.fv-panel.fv-login h2, .fv-panel.fv-login p { text-shadow:0 1px 3px rgba(0,0,0,0.9); }
/* les deux boutons du formulaire ont la même largeur */
.fv-btn.lg-b { width:230px; text-align:center; }

/* ===== page d'administration ===== */
/* le panneau occupe la largeur utile du cadre, sans coller aux bords de bois
   (#fv-main fait 900px, son décor mord d'une trentaine de pixels de chaque côté) */
.adm-panel { display:block; max-width:none; width:820px; margin:0 auto 16px; }
.adm-table { margin-top:12px; }
.adm-table .adm-num { text-align:right; white-space:nowrap; }
.adm-table th.adm-num { text-align:right; }
/* colonnes repérées par une icône : le pictogramme et son compte sont centrés
   sous lui, contrairement aux nombres alignés à droite (score, jetons) */
.adm-table .adm-mid { text-align:center; white-space:nowrap; }
.adm-table th.adm-act, .adm-table td.adm-act { text-align:right; width:112px; }
.adm-none { color:#8a6a55; }
/* carte Développement : le sélecteur prend la place restante à côté du bouton */
.adm-devline { display:flex; gap:10px; align-items:center; margin-top:12px; }
.adm-devline .fv-input { flex:1; min-width:0; }
.adm-devdesc { color:#c49a76; font-style:italic; margin-top:8px; }
.adm-search { display:flex; gap:10px; align-items:center; margin:10px 0 0; }
.adm-search .fv-input { width:220px; }
.adm-search span { color:#c49a76; font-size:11px; }
/* pagination : masquée tant que la liste tient sur une page */
.adm-pager { display:flex; gap:12px; align-items:center; justify-content:center; margin-top:12px; }
.adm-pager span { color:#c49a76; font-size:11px; }
.adm-pager .fv-btn { padding:3px 12px; }
.adm-table .tok-ico { margin-left:5px; vertical-align:-2px; image-rendering:pixelated; }
/* les jetons ressortent en jaune, comme sur le portage Snake */
.adm-table td.tok { color:#feba2b; font-weight:bold; }
/* un seul bouton « Actions ▾ » par ligne, qui déplie les autres */
.adm-dd { position:relative; display:inline-block; }
.adm-dd .fv-btn { padding:4px 10px; font-size:11px; }
.adm-menu {
  position:absolute; top:100%; right:0; z-index:30; display:none;
  min-width:165px; padding:4px;
  background:#2f1a14; border:2px solid #1d100c; border-radius:6px;
  box-shadow:0 4px 14px rgba(0,0,0,0.5);
}
.adm-dd.open .adm-menu { display:block; }
.adm-menu .fv-btn { display:block; width:100%; margin-bottom:3px; text-align:left; white-space:nowrap; }
/* icône de glaçon dans le libellé du bouton */
.adm-menu .fv-btn img { vertical-align:middle; margin-left:2px; image-rendering:pixelated; }
.adm-menu .fv-btn:last-child { margin-bottom:0; }
.adm-msg {
  margin-top:12px; padding:7px 10px; border-radius:5px;
  background:#5a382a; color:#ffd9a0;
  opacity:0; transition:opacity .3s;
}
.adm-msg.on { opacity:1; }
.adm-msg.err { background:#7a3325; color:#ffd0c0; }
/* réglages du jeu : petits groupes de champs sous la liste des joueurs */
.adm-set-grid { display:flex; flex-wrap:wrap; gap:10px; align-items:stretch; margin-top:12px; }
.adm-set-grid fieldset {
  margin:0; padding:6px 10px 8px;
  background:#3b2318; border:1px solid #1d100c; border-radius:6px;
}
.adm-set-grid legend { color:#feba2b; padding:0 5px; }
.adm-set-grid legend img { vertical-align:middle; image-rendering:pixelated; }
.adm-set-grid label { display:block; margin:5px 0; }
.adm-set-grid label img { vertical-align:middle; image-rendering:pixelated; }
.adm-set-grid .fv-input.adm-setin { width:70px; margin:0 2px 0 6px; }
/* la carte des poids prend toute la place restante de sa rangée */
.adm-set-grid fieldset.adm-set-grow { flex:1 1 auto; }
/* glacières de la boutique : les trois lignes se répartissent équitablement sur
   toute la hauteur de la carte (étirée à celle de la rangée) */
.adm-set-grid fieldset.adm-set-even { display:flex; flex-direction:column; justify-content:space-evenly; }
.adm-set-grid fieldset.adm-set-even label { margin:0; }
.adm-set-weights { display:flex; gap:12px; justify-content:center; }
.adm-set-weights label { margin:0; }
/* champ + suffixe % accolé à droite (façon input-group) */
.adm-set-group { display:inline-flex; margin-left:4px; vertical-align:middle; }
.adm-set-group .fv-input.adm-set-wval {
  width:42px; margin:0; text-align:right;   /* « 100 » tient sans être rogné */
  border-top-right-radius:0; border-bottom-right-radius:0;
}
.adm-set-suffix {
  display:flex; align-items:center; padding:0 7px;
  background:#2f1a14; border:1px solid #5a382a; border-left:0;
  border-radius:0 4px 4px 0; color:#c49a76;
}
/* compteur des poids restants ; passe en rouge quand le total dépasse 100 */
.adm-set-wleft.bad { color:#e2603c; }
/* barème par monstre : une vignette (découpée de l'atlas) au-dessus de chaque champ.
   La carte vit à droite des glacières de la boutique et prend la place restante ;
   espacements serrés pour que les 14 monstres tiennent sur deux rangées. */
.adm-set-wide { flex-basis:100%; }
/* base flexible : sans elle, la largeur naturelle des 14 cellules ferait passer la
   carte à la ligne au lieu de rester à droite des glacières de la boutique */
.adm-set-grid fieldset.adm-set-fit { flex:1 1 0; min-width:0; }
.adm-set-monsters { display:flex; flex-wrap:wrap; gap:2px 4px; justify-content:center; }
/* plus spécifique que « .adm-set-grid label » (display:block), sinon le centrage
   flex de la case ne s'applique pas et le champ reste calé à gauche */
.adm-set-grid label.adm-set-mon { display:flex; flex-direction:column; align-items:center; gap:2px; width:56px; margin:0; }
/* le sprite est affiché à 1,5× sa taille d'atlas (dimensions posées au chargement) ;
   la boîte colle au plus grand sprite (24×36 -> 36px), pas de vide au-dessus */
.adm-set-monico {
  display:flex; align-items:flex-end; justify-content:center;
  height:38px; font-size:9px; text-align:center; color:#c49a76; overflow:hidden;
}
.adm-set-monico img { image-rendering:pixelated; }
.adm-set-mon .fv-input.adm-setin { width:52px; margin:0; text-align:center; }
.adm-set-act { margin:12px 0 0; }
/* retour d'enregistrement, en ligne à côté du bouton */
.adm-msg.adm-set-msg { display:inline-block; margin:0 0 0 10px; padding:4px 10px; vertical-align:middle; }
/* saisie et confirmation */
.fv-modal {
  position:fixed; inset:0; z-index:60;
  display:flex; align-items:center; justify-content:center;
  padding:20px;
  background:rgba(0,0,0,0.6);
}
.fv-modal-box {
  width:360px; max-width:100%; max-height:90vh; overflow-y:auto;
  padding:18px 20px;
  background:#2f1a14; border:2px solid #1d100c; border-radius:8px;
  box-shadow:0 6px 24px rgba(0,0,0,0.6);
  color:#e8d5c0;
}
.fv-modal-box h2 { margin:0 0 8px; }
.fv-modal-box p { margin:6px 0; line-height:1.5; }
.adm-input { width:100%; margin:8px 0 2px; }
.adm-input.bad { border-color:#e2603c; }
.adm-sub, .adm-hint { color:#c49a76; font-size:11px; }
.adm-warn { color:#feba2b; }
.adm-list { margin:6px 0 6px 18px; }
.adm-list li { margin-bottom:4px; line-height:1.45; }
.adm-acts { margin-top:14px; text-align:right; }
.adm-acts .fv-btn { margin-left:6px; }

/* Crédits en fin de page d'aide : volontairement plus sobre que les .fv-panel —
   fond plus sombre, pas d'angles arrondis, un simple liseré ambre à gauche. */
.fv-credits {
  max-width: 840px;
  margin: 0;
  padding: 10px 16px;
  text-align: left;
  background: #241310;
  border: 1px solid #5a382a;
  border-left: 3px solid #feba2b;
}
.fv-credits p { margin: 3px 0; color: #bfa892; font-size: 12px; line-height: 1.5; }
.fv-credits a { color: #feba2b; }

/* ===== classement : deux lignes par joueur, avatar à gauche ===== */
.fk-list { margin:0; padding:0; list-style:none; }
.fk-row {
  display:grid;
  grid-template-columns:34px 48px 1fr auto;
  grid-template-areas:'pos ava name score' 'pos ava sub stats';
  align-items:center;
  column-gap:10px;
  padding:8px 4px;
  border-bottom:1px solid #3a211a;
}
.fk-row:last-child { border-bottom:0; }
.fk-row.me { background:#3a211a; }
.fk-pos { grid-area:pos; text-align:right; color:#8a6e5c; font-weight:bold; font-size:15px; }
.fk-row.me .fk-pos { color:#feba2b; }
.fk-ava {
  object-fit:cover;
  grid-area:ava; width:48px; height:48px;
  image-rendering:pixelated; background:transparent; border:2px solid #5a382a; border-radius:4px;
}
.fk-name { grid-area:name; color:#feba2b; font-weight:bold; font-size:15px; }
/* le score partage sa colonne avec la ligne de statistiques, plus large : sans
   justify-self il resterait collé au pseudo au lieu de longer le bord droit */
.fk-score { grid-area:score; justify-self:end; color:#ffd05e; font-weight:bold; white-space:nowrap; }
.fk-score small { color:#8a6e5c; font-size:11px; font-weight:normal; }
.fk-sub { grid-area:sub; color:#e8d5c0; font-size:12px; }
.fk-stats { grid-area:stats; color:#bfa892; font-size:11px; text-align:right; white-space:nowrap; }

/* statistiques du classement : icône + valeur. Les icônes n'ont pas les mêmes
   proportions (la statue est haute et étroite) : une boîte de hauteur fixe les
   centre toutes sur la même ligne, quelle que soit leur forme. */
.fk-stat { display:inline-flex; align-items:center; gap:4px; margin-left:12px; vertical-align:middle; }
.fk-stat img {
  height:18px; width:auto; max-width:20px;
  image-rendering:pixelated; display:block;
}

/* administration : les deux cartes du bas se partagent la largeur */
/* les cartes du bas s'empilent, centrées et de la même largeur que la liste
   des joueurs (.adm-panel) */
.adm-cols { width:820px; margin:0 auto; }
.adm-cols .adm-panel { width:auto; margin:0 0 16px; }
.adm-mapbox { margin:8px 0; text-align:center; background:#1d100c; border:2px solid #5a382a; border-radius:4px; padding:6px; }
.adm-mapbox canvas { max-width:100%; height:auto; display:block; margin:0 auto; cursor:grab; }
.adm-mapbox canvas:active { cursor:grabbing; }
.adm-legend { display:flex; flex-wrap:wrap; gap:10px; color:#bfa892; font-size:11px; }
.adm-legend span { display:inline-flex; align-items:center; gap:4px; }
.adm-legend i { width:10px; height:10px; display:inline-block; border:1px solid #1d100c; }

/* carte du monde : la vue et son panneau de repères côte à côte */
/* la carte et son panneau ne font qu'un bloc : ils partagent la même bordure */
.adm-maprow { display:flex; gap:0; align-items:stretch; }
.adm-maprow .adm-mapbox { flex:1 1 auto; min-width:0; margin:8px 0;
  border-right:0; border-radius:4px 0 0 4px; }
.adm-mapside { flex:0 0 240px; margin:8px 0; padding:10px 12px; background:#241310;
  border:2px solid #5a382a; border-radius:0 4px 4px 0; }
.adm-mapttl { margin:0 0 6px; color:#feba2b; font-weight:bold; font-size:12px; text-transform:uppercase; }
.adm-mapbtns { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 10px; }
.adm-mapbtns .fv-btn { padding:3px 8px; font-size:11px; }
/* repère actif : le bouton s'allume */
.adm-mapbtns .fv-btn.on { background:#feba2b; color:#3a211a; }
.adm-mapcell { border-top:1px solid #5a382a; padding-top:8px; }
.adm-cellttl { margin:0 0 6px; color:#ffd05e; font-weight:bold; font-size:13px; }
.adm-cellttl2 { margin:10px 0 3px; color:#bfa892; font-size:11px; text-transform:uppercase; }
.adm-cellrow { margin:0 0 3px; color:#e8d5c0; font-size:12px; line-height:1.45; }
@media (max-width: 900px) {
  .adm-maprow { flex-direction:column; }
  /* empilés, les deux blocs se referment chacun sur leur bordure */
  .adm-maprow .adm-mapbox { border-right:2px solid #5a382a; border-radius:4px 4px 0 0; margin-bottom:0; }
  .adm-mapside { flex:1 1 auto; width:auto; border-top:0; border-radius:0 0 4px 4px; margin-top:0; }
}

/* repères hors carte : le lien mène à l'île quand elle est visible */
.adm-mark { text-decoration:none; border-bottom:1px dotted currentColor; }
.adm-mark:hover { border-bottom-style:solid; }
#map-marks .adm-cellrow i { font-style:normal; color:#8f7a68; font-size:11px; }

/* téléportation : saisie des coordonnées, puis les repères de l'archipel */
.adm-tpxy { display:flex; gap:14px; margin:10px 0 4px; }
.adm-tpxy label { display:flex; align-items:center; gap:6px; color:#bfa892; font-size:12px; }
.adm-tpxy .adm-input { width:88px; }
.adm-tp-list { max-height:210px; overflow-y:auto; margin:10px 0 4px;
  border-top:1px solid #5a382a; border-bottom:1px solid #5a382a; padding:8px 0; }
.adm-tpttl { margin:6px 0 4px; color:#bfa892; font-size:11px; text-transform:uppercase; }
.adm-tpttl:first-child { margin-top:0; }
.adm-tprow { display:flex; flex-wrap:wrap; gap:5px; margin:0; }
.adm-tp { padding:2px 8px; font-size:11px; }
/* le raccourci retenu reste visible : il ne fait que remplir les champs */
.adm-tp.on { background:#feba2b; color:#3a211a; }

/* monstres du panneau : vignette du jeu collée à son nom */
.adm-mon { display:inline-flex; align-items:center; gap:4px; margin:0 8px 4px 0; }
.adm-mon img { height:18px; width:auto; image-rendering:pixelated; }

/* onglet « + de parties » : jetons offerts et glacières */
.fv-bonus-btns { display:flex; gap:8px; margin:12px 0 4px; }
.fv-bonus-btn { flex:1 1 0; display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:7px 6px; font-size:11px; }
.fv-bonus-btn img { image-rendering:pixelated; }
.fv-modal-box.fv-bonus { position:relative; text-align:center; }
.fv-modal-box.fv-bonus.wide { width:400px; }
.fv-modal-box.fv-bonus h2 { color:#feba2b; font-size:15px; }
.fv-modal-box.fv-bonus h3 { color:#feba2b; font-size:12px; margin:12px 0 4px; }
.fv-bonus-x { position:absolute; top:8px; right:12px; color:#c49a76; cursor:pointer; font-weight:bold; }
.fv-bonus-x:hover { color:#feba2b; }
.fv-bonus-big img { image-rendering:pixelated; margin:6px 0 2px; }
.fv-bonus-act { margin-top:10px; }
.fv-bonus-gain { font-size:26px; font-weight:bold; color:#feba2b; margin:8px 0; }
.fv-bonus-gain img { image-rendering:pixelated; vertical-align:middle; }
.fv-bonus-gain.pop { animation:fv-pop .6s ease-out; }
@keyframes fv-pop { 0% { transform:scale(0.4); opacity:0; } 60% { transform:scale(1.5); opacity:1; } 100% { transform:scale(1); } }
.fv-bonus-sub { color:#c49a76; font-size:11px; }
.fv-bonus-foot { color:#c49a76; font-size:11px; margin-top:12px; border-top:1px solid rgba(255,255,255,0.08); padding-top:8px; }
.fv-bonus canvas { display:block; margin:4px auto; max-width:100%; }
.fv-bonus-tiers { display:flex; gap:8px; justify-content:center; }
.fv-bonus-tier { flex:1 1 0; background:rgba(0,0,0,0.25); border:1px solid #1d100c; border-radius:6px; padding:8px 4px; font-size:11px; }
.fv-bonus-tier .ic { display:flex; align-items:center; justify-content:center; gap:4px; height:34px; margin-bottom:4px; }
.fv-bonus-tier .ic img { image-rendering:pixelated; }
.fv-bonus-tier .ic b { color:#feba2b; font-size:13px; }
.fv-bonus-tier .fv-btn { margin-top:6px; padding:5px 6px; font-size:11px; white-space:nowrap; }
.fv-bonus-tier .fv-btn img { image-rendering:pixelated; vertical-align:middle; }

/* ===== Barre Twinoid (commune aux trois jeux — même bloc dans chaque CSS) =====
   Bandeau gris sombre pleine largeur en haut de page, comme la barre Twinoid de
   l'époque : dégradé anthracite, filet clair en haut, menus déroulants sombres. */
#tidbar {
  position: relative; z-index: 50;
  height: 30px;
  /* même règle que le pied de page : la barre ne doit jamais être plus courte que
     la page (900 px), sinon elle s'arrête au bord de l'écran dès qu'on fait
     défiler horizontalement sur mobile */
  min-width: 900px;
  background: linear-gradient(#4b4b4b, #2c2c2c);
  border-bottom: 1px solid #111;
  box-shadow: inset 0 1px 0 #6a6a6a, 0 1px 3px rgba(0,0,0,.4);
  font: bold 12px/30px Arial, Helvetica, sans-serif;
  color: #ddd;
  image-rendering: auto;
}
#tidbar .tid-in { display: flex; justify-content: space-between; padding: 0 8px; }
#tidbar .tid-right { display: flex; }
#tidbar .tid-menu { position: relative; }
#tidbar .tid-btn {
  display: flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px;
  color: #eee; text-decoration: none; white-space: nowrap;
  border-left: 1px solid #222; border-right: 1px solid #5c5c5c;
  cursor: pointer;
}
#tidbar .tid-btn:hover, #tidbar .tid-menu.open .tid-btn {
  background: linear-gradient(#606060, #383838); color: #fff;
}
#tidbar .caret {
  width: 0; height: 0; margin-top: 2px;
  border: 4px solid transparent; border-top-color: #bbb; border-bottom: 0;
}
#tidbar .tid-drop {
  display: none; position: absolute; top: 30px; left: 0; min-width: 150px;
  background: #2b2b2b; border: 1px solid #111; border-top: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,.55);
}
#tidbar .tid-user .tid-drop { left: auto; right: 0; }
#tidbar .tid-menu.open .tid-drop { display: block; }
#tidbar .tid-drop a, #tidbar .tid-drop span {
  display: flex; align-items: center; gap: 8px; padding: 0 14px; line-height: 28px;
  color: #cfcfcf; font-weight: normal; text-decoration: none;
  border-top: 1px solid #3a3a3a; border-bottom: 1px solid #1a1a1a;
}
#tidbar .tid-drop img { width: 16px; height: 16px; image-rendering: auto; }
#tidbar .tid-drop a:hover { background: #454545; color: #fff; }
/* jeu courant : mis en avant, et pas un lien (on y est déjà) */
#tidbar .tid-drop span.on {
  color: #fff; font-weight: bold; background: #3a3a3a; cursor: default;
  box-shadow: inset 3px 0 0 #e8a317;
}
#tidbar .tid-drop a.off { color: #777; cursor: default; }
#tidbar .tid-drop a.off:hover { background: none; color: #777; }
#tidbar .tid-tokens {
  display: flex; align-items: center; gap: 5px; padding: 0 12px;
  color: #f4d35e; border-left: 1px solid #222; border-right: 1px solid #5c5c5c;
}
#tidbar .tid-tokens img { width: 12px; height: 12px; image-rendering: pixelated; }
#tidbar .tid-avatar { width: 20px; height: 20px; border: 1px solid #777; background: transparent; object-fit: cover; }
#tidbar [hidden] { display: none !important; }

/* modale « Paramètres du compte » (barre Twinoid) */
#tid-modal { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; }
#tid-modal .tid-box { position: relative; width: 440px; max-width: 94vw; background: #2b2b2b; border: 1px solid #111; box-shadow: 0 0 0 1px #555 inset, 0 8px 24px rgba(0,0,0,.6); padding: 18px 22px 20px; color: #ddd; font: 13px/1.5 Arial, Helvetica, sans-serif; text-align: left; }
#tid-modal h2 { margin: 0 0 12px; font: bold 16px Arial, sans-serif; color: #fff; border-bottom: 1px solid #444; padding-bottom: 8px; }
#tid-modal h3 { margin: 0 0 6px; font: bold 13px Arial, sans-serif; color: #f08a8a; }
#tid-modal .tid-x { position: absolute; top: 8px; right: 12px; color: #999; text-decoration: none; font-size: 16px; }
#tid-modal .tid-x:hover { color: #fff; }
#tid-modal .tid-row { display: flex; align-items: center; gap: 10px; margin: 8px 0 4px; }
#tid-modal .tid-row label { width: 96px; color: #999; }
#tid-modal .tid-val { flex: 1; color: #fff; font-weight: bold; }
#tid-modal .tid-edit { display: flex; gap: 6px; margin: 0 0 8px 106px; }
#tid-modal .tid-edit[hidden], #tid-modal [hidden] { display: none; }
#tid-modal input { flex: 1; min-width: 0; padding: 5px 7px; background: #1c1c1c; border: 1px solid #555; color: #fff; font: 13px Arial, sans-serif; }
#tid-modal .tid-b { padding: 4px 10px; background: linear-gradient(#5a5a5a, #3a3a3a); border: 1px solid #222; color: #eee; font: bold 12px Arial, sans-serif; cursor: pointer; }
#tid-modal .tid-b:hover { background: linear-gradient(#6a6a6a, #444); }
#tid-modal .tid-b:disabled { opacity: .45; cursor: default; }
#tid-modal .tid-b.alt { background: #333; font-weight: normal; }
#tid-modal .tid-b.danger { background: linear-gradient(#9a3030, #6a1e1e); border-color: #4a1010; }
#tid-modal .tid-b.danger:hover { background: linear-gradient(#b03838, #7a2424); }
/* compte portant au moins un droit : le bouton « Droits » vire au doré */
#tid-modal .tid-b.gold { background: linear-gradient(#d4a72c, #96721a); border-color: #5f4a0d; color: #fffbe8; text-shadow: 0 1px 0 rgba(0,0,0,.35); }
#tid-modal .tid-b.gold:hover { background: linear-gradient(#eabd3c, #ab8320); }
#tid-modal .tid-msg { min-height: 18px; margin: 6px 0; color: #9ad46b; }
#tid-modal .tid-msg.err { color: #f08a8a; }
#tid-modal .tid-danger { margin-top: 14px; padding-top: 12px; border-top: 1px solid #444; }
#tid-modal .tid-danger p { margin: 0 0 8px; color: #bbb; }
#tid-modal #del-confirm { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
#tid-modal #del-confirm[hidden] { display: none; }
#tid-modal #del-confirm p { width: 100%; }
#tid-modal #del-confirm input { width: 100%; flex: none; }
#tid-modal .tid-avrow { align-items: flex-start; }
#tid-modal .tid-avbig { width: 54px; height: 54px; border: 1px solid #666; background: transparent; object-fit: cover; }
#tid-modal .tid-avbtns { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; flex: 1; }
#tid-modal .tid-edit-pw { flex-direction: column; align-items: stretch; }
#tid-modal .tid-edit-pw span { display: flex; gap: 6px; }

/* ===== barre : bouton et modale « Administration » (admins globaux) ===== */
#tidbar .tid-left { display: flex; }
#tid-modal .tid-adm-box { width: 640px; }
#tid-modal .tid-adm-top { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; }
#tid-modal .tid-adm-top h3 { margin: 0; color: #ddd; }
#tid-modal .tid-adm-top input { flex: 1; }
#tid-modal .tid-adm-count { color: #999; }
#tid-modal .tid-adm-list { max-height: 52vh; overflow-y: auto; border-top: 1px solid #444; }
#tid-modal .tid-adm-row { display: flex; align-items: center; gap: 10px; padding: 6px 2px; border-bottom: 1px solid #3a3a3a; }
#tid-modal .tid-adm-login { width: 140px; font-weight: bold; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#tid-modal .tid-adm-login i { color: #f0c05a; font-style: normal; }
#tid-modal .tid-adm-email { flex: 1; color: #bbb; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#tid-modal .tid-adm-email i { color: #777; }
#tid-modal .tid-adm-acts { display: flex; gap: 4px; flex: none; }
#tid-modal .tid-adm-perma { color: #f0c05a; font-style: italic; }
#tid-modal .tid-adm-edit { display: flex; align-items: center; gap: 6px; padding: 8px 2px 10px; border-bottom: 1px solid #3a3a3a; background: #242424; }
#tid-modal .tid-adm-edit p { margin: 0; flex: 1; color: #bbb; }
#tid-modal .tid-adm-rights { flex-wrap: wrap; }
#tid-modal .tid-adm-rights label { display: inline-flex; align-items: center; gap: 5px; margin-right: 10px; color: #ddd; }
#tid-modal .tid-adm-rights input { flex: none; }
#tid-modal .tid-adm-none { color: #999; padding: 10px 0; }

/* blocs de page par langue (pages Aide statiques) : html[lang] est posé par tidbar.js */
html[lang="en"] [data-lang="fr"], html[lang="fr"] [data-lang="en"] { display: none !important; }
/* lien de changement de langue sous « C'est quoi Fever ? » */
.fv-login .lg-lang { margin-top:8px; }
.fv-login .lg-lang a { color:#feba2b; }
