/* ---- Polices auto-hébergées (sous-ensemble latin, pas de CDN) ----
 * Un seul fichier par famille couvre toute la plage de graisses (les anciens
 * fichiers par poids étaient byte-identiques : 4 téléchargements pour rien). */
@font-face { font-family: 'Baloo 2'; font-style: normal; font-weight: 500 800; font-display: swap; src: url('fonts/baloo2.woff2') format('woff2'); }
@font-face { font-family: 'Fredoka'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('fonts/fredoka.woff2') format('woff2'); }

:root {
  /* Identité Mawa : récif violet / magenta (distincte du turquoise de Bacar) */
  --sea:        #6a5ae0;
  --sea-deep:   #4a36b0;
  --sea-night:  #241452;
  --sand:       #fbe3a2;
  --sand-deep:  #f3cf78;
  --coral:      #ff5cc8;
  --coral-deep: #d63ba3;
  --sun:        #ffd23d;
  --ink:        #2e2452;
  --ink-soft:   #6a5f8e;
  --paper:      #fffdf6;
  --radius:     22px;
}

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

html, body {
  height: 100%;
  font-family: 'Fredoka', system-ui, sans-serif;
  color: var(--ink);
  background: var(--sea-night);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  overflow: hidden;
}

/* ---- Scène plein écran : le canvas Phaser remplit tout ---- */
#game-stage {
  position: fixed;
  top: 0; left: 0; right: 0;
  /* Hauteur visible réelle : `dvh` suit l'apparition/disparition des barres du
     navigateur mobile pour que le canvas ne déborde jamais sous l'interface. */
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: linear-gradient(180deg, #8f7ff0 0%, var(--sea) 35%, var(--sea-deep) 75%, var(--sea-night) 100%);
}
#game-container { position: absolute; inset: 0; }
#game-container canvas { display: block; touch-action: none; }

/* Tous les éléments d'interface flottent par-dessus le canvas */
.overlay { position: absolute; z-index: 5; }

/* ---- Topbar ---- */
.topbar {
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  /* Respecte les encoches / barres système (iPhone, etc.) */
  padding-top: max(clamp(8px, 2vh, 16px), env(safe-area-inset-top));
  padding-bottom: clamp(8px, 2vh, 16px);
  padding-left: max(clamp(10px, 3vw, 22px), env(safe-area-inset-left));
  padding-right: max(clamp(10px, 3vw, 22px), env(safe-area-inset-right));
}

.back-link {
  flex: none;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--paper);
  border-radius: 14px;
  box-shadow: 0 4px 0 rgba(0,0,0,.14);
  color: var(--ink);
  font-size: 30px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1;
  padding-bottom: 4px;
}
.back-link:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,.14); }

.brand { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }

.brand-badge {
  flex: none;
  width: 46px; height: 46px;
  background: var(--paper);
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 4px 0 rgba(0,0,0,.12);
}
.brand-badge svg { width: 34px; height: 34px; display: block; }

/* icônes SVG génériques */
.hud-ico { display: inline-flex; }
.hud-ico svg { width: 16px; height: 16px; display: block; }
.lives { display: inline-flex; gap: 3px; }
.lives svg { width: 18px; height: 18px; display: block; }
.hud-stats { gap: 7px; }
.hud-sep {
  width: 2px;
  align-self: stretch;
  margin: 1px 0;
  border-radius: 2px;
  background: rgba(0,0,0,.14);
}
.icon-btn svg { width: 22px; height: 22px; display: block; }
.ico-inline { display: inline-flex; vertical-align: -3px; }
.ico-inline svg { width: 18px; height: 18px; }
.screen-fish svg { width: 96px; height: 64px; display: block; }

.brand-text { min-width: 0; }
.brand-text h1 {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: clamp(16px, 3.4vw, 24px);
  color: var(--paper);
  line-height: 1;
  text-shadow: 0 3px 0 rgba(0,0,0,.15);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-text p {
  font-size: clamp(11px, 2vw, 14px);
  font-weight: 500;
  color: #e3dbff;
}

.topbar-right { display: flex; align-items: center; gap: 8px; flex: none; }

.hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--paper);
  border-radius: 999px;
  padding: 6px 12px;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: var(--ink);
  box-shadow: 0 4px 0 rgba(0,0,0,.12);
  line-height: 1;
}
.hud-ico { font-size: 15px; }

.icon-btn {
  flex: none;
  width: 42px; height: 42px;
  border: none;
  background: var(--paper);
  border-radius: 14px;
  box-shadow: 0 4px 0 rgba(0,0,0,.14);
  font-size: 20px;
  cursor: pointer;
  display: grid; place-items: center;
  color: var(--ink);
}
.icon-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,.14); }
.icon-btn[hidden] { display: none; }

/* ---- Goal bar ---- */
.goal-bar {
  top: clamp(58px, 9vh, 78px);
  left: 50%;
  transform: translateX(-50%);
  width: min(92vw, 640px);
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--paper);
  border-radius: 16px;
  padding: 8px 14px;
  box-shadow: 0 5px 0 rgba(0,0,0,.12);
  font-weight: 600;
  font-size: clamp(14px, 2.6vw, 18px);
  transition: opacity .3s ease, transform .3s ease;
}
.goal-bar[hidden] { display: none; }
.goal-bar b { font-family: 'Baloo 2', sans-serif; font-weight: 800; }
.goal-dot {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.18), 0 0 0 3px rgba(255,255,255,.6);
  background: #e23b3b;
}
.goal-text { flex: 1; }
.goal-count {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: clamp(16px, 3vw, 20px);
  color: var(--coral-deep);
  background: #ffe6f6;
  padding: 3px 12px;
  border-radius: 999px;
}
.goals-remaining {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}
.goals-remaining b {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  color: var(--coral-deep);
}

/* ---- Joystick virtuel (mobile / tablette) ---- */
.joystick {
  left: max(18px, env(safe-area-inset-left));
  right: auto;
  bottom: max(18px, env(safe-area-inset-bottom));
  width: 130px;
  height: 130px;
  z-index: 6;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
.joystick[hidden] { display: none; }
.joystick.joy-right { left: auto; right: max(18px, env(safe-area-inset-right)); }
.joy-base {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(255,255,255,.28), rgba(255,255,255,.10));
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.35), 0 6px 16px rgba(0,0,0,.25);
  backdrop-filter: blur(2px);
}
.joy-knob {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff, #ece6ff 60%, #b9a8ff);
  box-shadow: 0 4px 10px rgba(0,0,0,.35), inset 0 0 0 2px rgba(255,255,255,.6);
  transition: transform .04s linear;
  will-change: transform;
}
.joystick.dragging .joy-knob { transition: none; }

/* Choix gauche / droite (sur l'écran d'accueil, tactile seulement) */
.hand-select {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.hand-select[hidden] { display: none; }
.hand-label { font-weight: 600; opacity: .9; }
.hand-btn {
  font-family: inherit;
  font-size: .95rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.45);
  background: rgba(255,255,255,.12);
  color: #fff;
  cursor: pointer;
}
.hand-btn.active {
  background: #fff;
  color: var(--sea-deep);
  border-color: #fff;
}

/* ---- Screens (start / pause / level complete / game over) ---- */
/* Transitions douces : fondu + léger zoom (pilotés par la classe .is-open) */
.screen {
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* `safe center` : centré quand ça tient, mais sans rogner le haut quand le
     contenu dépasse — le scroll prend alors le relais (paysage sur petit écran). */
  justify-content: safe center;
  overflow-y: auto;
  text-align: center;
  gap: 12px;
  padding: 24px;
  background: rgba(36, 20, 82, .55);
  backdrop-filter: blur(3px);
  color: var(--paper);
  opacity: 0;
  visibility: hidden;
  transform: scale(1.03);
  pointer-events: none;
  transition: opacity .32s ease, transform .32s ease, visibility .32s;
}
.screen.is-open {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
}

.screen-fish {
  font-size: 72px;
  filter: drop-shadow(0 8px 0 rgba(0,0,0,.2));
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob {
  0%,100% { transform: translateY(-6px) rotate(-3deg); }
  50%     { transform: translateY(6px) rotate(3deg); }
}

.screen h2 {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 6vw, 40px);
  text-shadow: 0 4px 0 rgba(0,0,0,.2);
}
.screen p {
  font-size: clamp(15px, 3vw, 19px);
  font-weight: 500;
  line-height: 1.5;
  max-width: 420px;
}
.screen b { font-weight: 700; color: var(--sun); }

/* Astuce iOS « ajouter à l'écran d'accueil » (affichée par JS uniquement sur iOS) */
.ios-fs-hint {
  font-size: clamp(12px, 2.6vw, 14px) !important;
  font-weight: 600;
  opacity: .85;
  margin-top: 6px;
  padding: 8px 16px;
  background: rgba(255,255,255,.12);
  border-radius: 14px;
  max-width: 340px;
}

.over-score {
  font-size: clamp(16px, 3vw, 20px);
  background: rgba(255,255,255,.18);
  padding: 8px 20px;
  border-radius: 999px;
}
.over-score b { font-family: 'Baloo 2', sans-serif; font-weight: 800; color: var(--sun); font-size: 1.3em; }

.btn {
  border: none;
  cursor: pointer;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  border-radius: 16px;
  padding: 14px 34px;
  font-size: clamp(18px, 4vw, 22px);
  transition: transform .08s ease;
}
.btn-play {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 6px 0 var(--coral-deep);
}
.btn-play:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--coral-deep); }

.start-user-line { font-size: clamp(16px,3vw,20px) !important; margin-bottom: -4px; }
.start-level-line {
  font-size: clamp(14px,2.5vw,17px) !important;
  background: rgba(255,255,255,.15);
  padding: 5px 16px;
  border-radius: 999px;
  font-weight: 600;
}
.start-actions, .over-btns { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.btn-profile {
  background: rgba(255,255,255,.22);
  color: var(--paper);
  box-shadow: none;
  font-size: clamp(14px,3vw,17px);
  padding: 9px 22px;
}

.screen-pause { gap: 18px; }
.pause-btns { display: flex; flex-direction: column; align-items: center; gap: 12px; }

.screen-lc { gap: 14px; }
.lc-stars { display: flex; gap: 8px; }
.lc-stars svg { width: 44px; height: 44px; filter: drop-shadow(0 4px 0 rgba(0,0,0,.2)); }

/* ---- Level badge ---- */
.level-pill {
  background: var(--coral);
  color: #fff;
  font-size: 13px;
  padding: 5px 10px;
  box-shadow: 0 4px 0 var(--coral-deep);
}

/* ---- Barre du haut compacte sur mobile ---- */
@media (max-width: 560px) {
  .topbar { gap: 7px; }
  .back-link { width: 38px; height: 38px; font-size: 26px; border-radius: 12px; }
  .brand { gap: 7px; }
  .brand-badge { width: 38px; height: 38px; }
  .brand-badge svg { width: 28px; height: 28px; }
  .brand-text { display: none; }
  .topbar-right { gap: 6px; }
  .hud-pill { padding: 5px 9px; font-size: 14px; }
  .hud-ico svg { width: 14px; height: 14px; }
  .lives svg { width: 15px; height: 15px; }
  .hud-stats { gap: 5px; }
  .level-pill { font-size: 12px; padding: 4px 8px; }
  .icon-btn { width: 38px; height: 38px; }
  .icon-btn svg { width: 19px; height: 19px; }
}

/* ---- Modale profil ---- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10,40,50,.72);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay[hidden] { display: none; }

.modal-box {
  position: relative;
  background: var(--paper);
  border-radius: 28px;
  padding: 28px 24px 24px;
  width: 100%; max-width: 360px;
  box-shadow: 0 16px 0 rgba(0,0,0,.25);
  display: flex; flex-direction: column; gap: 14px;
}
.modal-title {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800; font-size: 22px;
  color: var(--ink); text-align: center;
}
.profile-list { display: flex; flex-direction: column; gap: 8px; }
.profile-item {
  display: flex; align-items: center; gap: 10px;
  background: rgba(106,90,224,.1);
  border-radius: 14px; padding: 10px 14px; cursor: pointer;
}
.profile-item:hover { background: rgba(106,90,224,.2); }
.profile-avatar { display: inline-flex; }
.profile-avatar svg { width: 26px; height: 20px; display: block; }
/* Icône SVG dans les boutons (Carte / Légende) */
.btn-ico { display: inline-flex; vertical-align: -3px; margin-right: 6px; }
.btn-ico svg { width: 18px; height: 18px; display: block; }
.profile-item-name { flex: 1; font-weight: 700; font-size: 16px; color: var(--ink); }
.profile-del {
  border: none; background: rgba(220,60,60,.12);
  color: #cc4444; border-radius: 8px; padding: 5px 7px;
  cursor: pointer; display: inline-flex;
}
.profile-del svg { width: 13px; height: 13px; display: block; }
.modal-divider {
  text-align: center; font-size: 13px; font-weight: 600; color: var(--ink-soft);
  position: relative;
}
.modal-divider::before, .modal-divider::after {
  content: ''; position: absolute; top: 50%; width: 28%; height: 1px;
  background: rgba(0,0,0,.12);
}
.modal-divider::before { left: 0; }
.modal-divider::after  { right: 0; }
.create-form { display: flex; flex-direction: column; gap: 10px; }
.name-input {
  width: 100%; border: 2.5px solid rgba(106,90,224,.35);
  border-radius: 14px; padding: 11px 16px;
  font-family: 'Fredoka', sans-serif; font-size: 18px; font-weight: 600;
  color: var(--ink); background: var(--paper); outline: none;
}
.name-input:focus { border-color: var(--sea); }
.name-input.shake { animation: shake .4s ease; border-color: #e23b3b; }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-8px); }
  40%      { transform: translateX(8px); }
  60%      { transform: translateX(-5px); }
  80%      { transform: translateX(5px); }
}
.modal-close {
  position: absolute; top: 14px; right: 14px;
  border: none; background: rgba(0,0,0,.08); color: var(--ink-soft);
  border-radius: 999px; width: 30px; height: 30px;
  cursor: pointer; display: grid; place-items: center;
}
.modal-close svg { width: 15px; height: 15px; }

/* ---- Pulse du HUD (feedback quand Mawa gobe / atteint un objectif) ---- */
#scoreNum.pulse {
  display: inline-block;
  animation: hud-pop .35s ease;
}
@keyframes hud-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.45); }
  100% { transform: scale(1); }
}
.goal-bar.flash { animation: goal-flash .55s ease; }
@keyframes goal-flash {
  0%, 100% { box-shadow: 0 5px 0 rgba(0,0,0,.12); }
  50%      { box-shadow: 0 5px 0 rgba(0,0,0,.12), 0 0 0 4px var(--sun); }
}

/* ---- Indice « mode paysage » (mobile/tablette en portrait, tactile) ---- */
#rotate-hint {
  position: absolute;
  inset: 0;
  z-index: 150;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background: var(--sea-night);
}
.rotate-card { color: var(--paper); max-width: 320px; }
.rotate-emoji { color: var(--paper); animation: rotate-wobble 2s ease-in-out infinite; }
.rotate-emoji svg { width: 64px; height: 64px; display: block; margin: 0 auto; }
.rotate-card p { font-size: 18px; font-weight: 600; margin-top: 14px; line-height: 1.4; }
.rotate-card b { color: var(--sun); }
@keyframes rotate-wobble {
  0%, 100% { transform: rotate(-12deg); }
  50%      { transform: rotate(12deg); }
}
@media (orientation: portrait) and (pointer: coarse) and (max-width: 820px) {
  #rotate-hint { display: flex; }
}

/* ====================== RÉCIT — légende du lagon ====================== */
/* Lore sur l'écran d'accueil */
.start-guardian {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: clamp(14px, 2.6vw, 18px) !important;
  color: var(--coral);
  margin-top: -2px;
}
.start-lore {
  font-style: italic;
  font-size: clamp(13px, 2.4vw, 16px) !important;
  color: #e7defc;
  max-width: 440px;
  opacity: .92;
}
.start-howto { font-size: clamp(13px, 2.4vw, 16px) !important; opacity: .85; }
.start-actions-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.start-actions-row .btn-profile { padding: 8px 16px; font-size: clamp(13px,2.6vw,15px); }

/* Paysage sur petit écran (téléphone) : on compacte fortement l'accueil pour que
   tout tienne sans rogner — le gros poisson décoratif est masqué, textes/boutons
   resserrés. Le scroll reste en secours si besoin. */
@media (orientation: landscape) and (max-height: 480px) {
  .screen { gap: 5px; padding: 8px 16px; }
  .screen-fish { display: none; }
  .screen h2 { font-size: clamp(19px, 4.6vw, 26px); }
  .screen p { line-height: 1.3; }
  .start-user-line { font-size: clamp(13px,2.6vw,16px) !important; margin-bottom: 0; }
  .start-level-line { font-size: clamp(12px,2.2vw,14px) !important; padding: 3px 12px; }
  .start-guardian { font-size: clamp(12px,2.4vw,15px) !important; margin-top: 0; }
  .start-lore { font-size: clamp(11px,2vw,13px) !important; }
  .start-howto { font-size: clamp(11px,2vw,13px) !important; }
  .start-actions { gap: 6px; }
  .btn { padding: 9px 24px; font-size: clamp(15px,3.4vw,18px); }
  .ios-fs-hint { margin-top: 2px; padding: 6px 14px; }
}

/* Écran récit (Fundi conte) */
.story-portrait {
  width: clamp(96px, 22vw, 140px);
  filter: drop-shadow(0 6px 0 rgba(0,0,0,.22));
  animation: bob 3s ease-in-out infinite;
}
.story-portrait svg { width: 100%; height: auto; display: block; }
.story-name {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: clamp(16px, 3vw, 20px);
  color: var(--sun);
  letter-spacing: .3px;
}
.story-text {
  font-size: clamp(16px, 3.2vw, 21px) !important;
  line-height: 1.5;
  max-width: 480px;
  min-height: 4.5em;
}
.story-text b { color: var(--sun); font-weight: 700; }
.story-dots { display: flex; gap: 8px; }
.story-dots span {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,.3);
  transition: background .2s, transform .2s;
}
.story-dots span.on { background: var(--sun); transform: scale(1.25); }

/* Carte du lagon */
.map-screen h2 { margin-bottom: -4px; }
.map-sub { font-style: italic; opacity: .85; font-size: clamp(13px,2.6vw,16px) !important; }
.reef-map {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(92vw, 460px);
  max-height: 56vh;
  overflow-y: auto;
  padding: 4px;
}
.reef-node {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,.08);
  border: 2px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 10px 14px;
  text-align: left;
}
.reef-node.lit {
  background: rgba(255,210,61,.14);
  border-color: rgba(255,210,61,.5);
}
.reef-node.current {
  border-color: var(--coral);
  box-shadow: 0 0 0 2px rgba(255,92,200,.35);
}
.reef-dot {
  flex: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.25);
}
.reef-node.lit .reef-dot {
  background: var(--sun);
  box-shadow: 0 0 10px var(--sun), inset 0 0 0 2px #fff;
}
.reef-node.current .reef-dot { background: var(--coral); box-shadow: 0 0 8px var(--coral); }
.reef-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.reef-info b { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: clamp(13px,2.6vw,16px); }
.reef-info i { font-style: italic; font-size: clamp(11px,2.2vw,13px); opacity: .8; }
.reef-check { color: var(--sun); flex: none; display: inline-flex; }
.reef-check svg { width: 20px; height: 20px; display: block; }
.reef-here { color: var(--coral); font-weight: 700; font-size: 12px; flex: none; }

/* Mots de Fundi sur l'écran de fin de niveau */
.lc-fundi { font-style: italic; font-size: .8em; opacity: .8; color: var(--sun); }
#lcMsg { max-width: 460px; font-style: italic; }

/* ---- Barre de vie du Gardien (phase boss) — net, HTML/CSS ---- */
.boss-bar {
  top: clamp(58px, 9vh, 78px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  background: rgba(36, 20, 82, .62);
  backdrop-filter: blur(3px);
  border: 2px solid rgba(255, 92, 200, .5);
  border-radius: 16px;
  padding: 8px 22px;
  box-shadow: 0 5px 0 rgba(0,0,0,.18);
  z-index: 5;
}
.boss-bar[hidden] { display: none; }
.boss-name {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: clamp(15px, 3vw, 20px);
  color: #fff;
  text-shadow: 0 2px 0 rgba(0,0,0,.25);
  white-space: nowrap;
}
.boss-pips { display: inline-flex; gap: 8px; }
.boss-pip {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: inset 0 -3px 0 var(--coral-deep), 0 0 7px rgba(255,92,200,.7);
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.boss-pip.lost {
  background: rgba(255,255,255,.16);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.2);
  transform: scale(.82);
}
