/* =====================================================================
   Thème LE PHARE — granit, embruns, ciré jaune
   Tout est préfixé par body[data-universe="phare"] ou par une classe .ph-…
   ===================================================================== */

/* Interface du jeu */
body[data-universe="phare"] #screen-game { background: #04080c; }
body[data-universe="phare"] .hud, body[data-universe="phare"] .dock { background: #0b151d; border-color: #1f3444; }
body[data-universe="phare"] .timer { color: #ffc933; text-shadow: 0 0 10px rgba(255, 201, 51, .45); }
body[data-universe="phare"] .timer.danger { color: #ff5a4a; text-shadow: 0 0 12px rgba(255, 90, 74, .6); }
body[data-universe="phare"] .transition { background: radial-gradient(ellipse at 50% 30%, #13222e 0%, #04080c 70%); }
body[data-universe="phare"] .transition h2 {
  color: #ffc933; letter-spacing: 2px;
  animation: ph-sweep 4s ease-in-out infinite;
}
body[data-universe="phare"] .hotspot:hover { border-color: #ffc933; background: rgba(255, 201, 51, .08); }
body[data-universe="phare"] .modal-card { border-color: #2a4658; }

@keyframes ph-sweep {
  0%, 100% { text-shadow: 0 0 4px rgba(255, 233, 160, .2); }
  45% { text-shadow: 0 0 26px rgba(255, 233, 160, .9), 0 0 60px rgba(255, 201, 51, .5); }
}

/* Carnet de bord : papier ligné, encre bleue */
.ph-log.paper {
  background: #f3ecd9 repeating-linear-gradient(transparent 0 25px, rgba(47, 74, 122, .18) 25px 26px);
  color: #1f3358; border-left: 6px solid #22384a;
  box-shadow: inset 0 0 30px rgba(90, 70, 30, .25);
}
.ph-log.paper td { border-bottom-color: rgba(31, 51, 88, .25); }

/* Carte marine / lexique / livres : papier jauni, encre sépia */
.ph-chart.paper {
  background: linear-gradient(160deg, #efe2bd, #e2d2a3);
  color: #2d2216; border: 1px solid #b59c62;
  box-shadow: inset 0 0 45px rgba(140, 100, 40, .35);
}
.ph-chart.paper td { padding: 4px 6px; }

/* Plaque en laiton */
.ph-brass.paper {
  background: linear-gradient(135deg, #f1d27a, #b8862b 55%, #8c6420);
  color: #2a1a05; border: 3px solid #6e4c12;
  font-family: Georgia, 'Times New Roman', serif; letter-spacing: .5px;
  box-shadow: inset 0 0 0 2px rgba(255, 240, 190, .5), inset 0 0 30px rgba(60, 35, 0, .45);
  text-shadow: 0 1px 0 rgba(255, 240, 190, .5);
}
.ph-brass.paper .big { font-size: 22px; font-weight: bold; }

/* Petits éléments communs */
.ph-title { font-weight: bold; text-transform: uppercase; letter-spacing: 1px; font-size: 15px; border-bottom: 2px solid currentColor; padding-bottom: 4px; }
.ph-center { text-align: center; }
.ph-clock {
  width: 150px; margin: 8px auto 0; padding: 14px 0; border-radius: 50%;
  border: 5px solid #6e4c12; background: #f4ecd6; color: #2d2216;
  text-align: center; font-size: 28px; font-weight: bold;
}
.ph-rhythm { font-size: 22px; letter-spacing: 3px; white-space: nowrap; text-align: right; color: #7a2e2e; }

/* Pavillons du code */
.ph-flag { display: block; border-radius: 2px; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.ph-flagrow { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 10px; }
.ph-flagrow span { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ph-flagrow small { font-weight: bold; color: #6b6a72; }
.ph-flagbook { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-top: 8px; }
.ph-flagbook span { display: flex; align-items: center; gap: 6px; }
.ph-flagbook b { font-size: 22px; }
