/* Bandeau de la régénération planifiée (regeneration-ui.mjs, étape 2, tâche 12 b ; brief docs/etapes/02-regeneration-brief.md § 7-8,
   forme A choisie par l'utilisateur : la languette de la pile). Verre sombre, filet turquoise (avis) ou or (de l'approche à la fin), sans
   pulsation : il ne se confond pas avec le bandeau de liaison. Caché à l'entrée, au film, au combat et en vue épurée ; montré dans les
   intérieurs. Elle repousse le tchat de --regen-h (chat.css, mobile-hud.css). */
.regen-notice { --stage: #e2bc7e; position: fixed; z-index: 9; box-sizing: border-box; color: var(--ui-text);
  border: 1px solid var(--ui-glass-line); background: rgb(12 26 25 / 78%); box-shadow: var(--ui-glass-shadow);
  backdrop-filter: var(--ui-glass-blur); -webkit-backdrop-filter: var(--ui-glass-blur); transition: opacity .2s ease-out; }
.regen-notice[data-stage="notice"] { --stage: #8fe3f5; }
.regen-notice[hidden] { display: none; }
.halo-preview:is(.entry-open, .auth-open, .intro-open, .combat-open, .clean-view, .creator-open) .regen-notice { visibility: hidden; pointer-events: none; }
/* Annulée : fondu de 200 ms, le temps que l'annonce soit dite. */
.regen-notice[data-stage="cancelled"] { opacity: 0; pointer-events: none; }
.regen-notice.regen-notice-in { animation: regen-notice-in .2s ease-out; }
@keyframes regen-notice-in { from { opacity: 0; translate: 0 -6px; } to { opacity: 1; translate: 0 0; } }
.regen-notice button { margin: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.regen-notice button:focus-visible { outline: 2px solid #add3be; outline-offset: -3px; }
.regen-notice-main { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: center; gap: 10px; box-sizing: border-box; width: 100%; min-height: 44px; padding: 8px 6px 8px 11px; }
.regen-notice-main:hover { background: var(--ui-control-hover); }
.regen-notice-mark { color: var(--stage); font-size: 20px; line-height: 1; text-align: center; }
.regen-notice-copy { display: grid; gap: 2px; min-width: 0; }
.regen-notice-title { color: var(--ui-text); font-size: 13px; font-weight: 600; line-height: 1.3; }
.regen-notice-detail { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; color: var(--ui-text-muted); font-size: 12px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.regen-notice-detail > [hidden] { display: none; }
.regen-notice-when { flex-basis: 100%; }
.regen-notice-date { white-space: nowrap; }
.regen-notice-link { color: var(--stage); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.regen-notice-close { display: grid; place-items: center; width: 44px; min-width: 44px; min-height: 44px; color: var(--ui-text-muted); font-size: 20px; line-height: 1; }
.regen-notice .regen-notice-close { text-align: center; }
.regen-notice-close:hover { color: var(--ui-text); background: var(--ui-control-hover); }
.regen-notice-close[hidden] { display: none; }
/* Le filet de cendre : le temps restant de la dernière heure (approche) ou de la retenue. */
.regen-notice-ash { position: absolute; left: 0; bottom: 0; width: calc(var(--left, 0) * 100%); height: 2px; background: var(--stage); pointer-events: none; transition: width 1s linear; }
.regen-notice-ash[hidden] { display: none; }
/* Sous l'écran de fin, ni bandeau de liaison ni pastille des fichiers. */
body.regen-open .link-banner { display: none; }
body.regen-open .files-progress { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .regen-notice, .regen-notice-ash { animation: none; transition: none; } }

/* ---- La languette : sous la barre de vie, dans sa colonne ; elle repousse le tchat, l'ordinateur de bord et la dernière transmission de
   --regen-h (mesurée par le module, 60 px à défaut). */
.regen-notice { left: var(--edge); top: calc(var(--vitals-top) + var(--vitals-height) + 8px); width: var(--left-hud-width); min-height: 52px;
  display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; border-left: 3px solid var(--stage); border-radius: 5px; overflow: hidden; }
.regen-notice:is([data-stage="hold"], [data-stage="running"], [data-stage="cancelled"]) { grid-template-columns: minmax(0, 1fr); }
.regen-notice .regen-notice-main { min-height: 50px; }
body.regen-notice-open { --regen-h: 60px; }
/* Cachée par la feuille (entrée, film, combat, vue épurée, créateur), elle ne repousse rien : la hauteur mesurée cède (revue du 18/10). */
body.regen-notice-open:is(.entry-open, .auth-open, .intro-open, .combat-open, .clean-view, .creator-open) { --regen-h: 0px !important; }
/* La jauge des fichiers du jeu, centrée au même endroit qu'elle au téléphone, descend sous elle (le bandeau de liaison la couvre, voulu). */
body.regen-notice-open .files-progress { top: calc(max(132px, calc(env(safe-area-inset-top) + 122px)) + var(--regen-h, 0px)); }
@media (max-height: 560px) and (orientation: landscape) {
  /* Paysage bas : une ligne de 44 px. */
  .regen-notice { min-height: 44px; }
  .regen-notice .regen-notice-main { min-height: 42px; padding-top: 4px; padding-bottom: 4px; }
  .regen-notice .regen-notice-copy { display: flex; align-items: baseline; gap: 10px; overflow: hidden; white-space: nowrap; }
  .regen-notice .regen-notice-detail { flex-wrap: nowrap; overflow: hidden; }
  .regen-notice .regen-notice-when { flex-basis: auto; }
}
