/* ============================================================================
   Les Réussites du Manoir — habillage.
   Même grammaire que les autres salons (barre, arène, message), pour qu'on
   ne réapprenne pas l'interface en changeant de jeu.
   ========================================================================== */
:root{
  --pan:rgba(24,19,38,.72); --fg:#efe9f7; --bord:#4a3f66;
  --gold:#e7c96b; --dim:#b9aecd;
}
/*  ═══ CE QUI GROSSIT LES CARTES, C'EST CE QU'ON LEUR LAISSE ═══
 *  Le rendu adapte la table à la boîte : agrandir les cartes dans le monde
 *  Phaser ne change donc RIEN à l'écran, tout est remis à l'échelle. Le seul
 *  levier réel est l'habillage — titre, sous-titre, barre, message. Chaque
 *  pixel repris ici va aux cartes.  */
body{margin:0;padding:4px 8px 8px;min-height:100vh;box-sizing:border-box;
  font-family:Georgia,'Times New Roman',serif;color:var(--fg);
  display:flex;flex-direction:column;align-items:center}
h1{margin:2px 0 0;font-size:18px;letter-spacing:.01em;text-align:center;opacity:.92}
.sub{margin:0;font-size:12px;color:var(--dim);text-align:center;opacity:.8}
/* Sur un écran bas, le décoratif s'efface devant le jouable. */
@media(max-height:760px){ h1{font-size:15px;margin:0} .sub{display:none} }

.bar{display:flex;gap:5px;align-items:center;flex-wrap:wrap;justify-content:center;
  margin:4px 0 2px;max-width:1200px}
select,button{background:var(--pan);color:var(--fg);border:1px solid var(--bord);
  border-radius:8px;padding:5px 10px;font-size:13px;cursor:pointer;
  font-family:inherit;transition:.15s}
select:hover,button:hover{border-color:var(--gold);transform:translateY(-1px)}
button.gold{background:linear-gradient(var(--gold),#c9a13f);color:#241c04;font-weight:bold;border:0}

#score{font-size:14px;color:var(--dim);min-width:150px;text-align:center}
#score b{color:var(--gold)}
.pil{display:inline-block;padding:2px 9px;border-radius:9px;background:var(--pan);
  border:1px solid var(--bord);font-size:12px;color:var(--dim);margin:0 3px}
.pil-jour{border-color:var(--gold);color:var(--gold)}

.arena{display:flex;justify-content:center;width:100%;margin-top:4px}

/*  ═══ LA TABLE PREND LA HAUTEUR DISPONIBLE, ET GARDE SON FORMAT ═══
 *  Le format change d'une réussite à l'autre — la Pyramide est large et
 *  basse, le Spider haut et étroit. `--tb-ar` est posé par le rendu à chaque
 *  donne : la feuille n'a donc jamais à connaître un seul nom de jeu.  */
#bd{width:min(99vw, calc(var(--plateau, calc(100dvh - 132px)) * var(--tb-rn, 1.4)));
  aspect-ratio:var(--tb-ar, 7/5);
  border-radius:14px;overflow:hidden;
  box-shadow:0 14px 40px rgba(0,0,0,.5), 0 0 0 2px var(--bord)}

/*  Le message tient sur une ligne et ne pousse pas la table vers le haut :
    une zone de texte qui grandit fait rétrécir les cartes en pleine partie. */
#msg{margin-top:6px;font-size:13.5px;color:var(--dim);height:20px;line-height:20px;
  text-align:center;max-width:min(96vw,860px);overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap}
#msg b{color:var(--fg)}
button.lien{background:none;border:0;color:var(--gold);text-decoration:underline;
  padding:0 4px;font-size:14px;font-family:inherit;cursor:pointer}
button.lien:hover{transform:none;color:#fff}

@media(max-width:700px){
  h1{font-size:19px}
  .bar{gap:5px}
  select,button{padding:6px 9px;font-size:12.5px}
  #score{min-width:0;width:100%}
}
