/* Accueil (ciel étoilé) et pages de chapitre */
#screen-home {
  background: radial-gradient(ellipse at 50% 20%, var(--epl-sky-2), var(--epl-sky) 75%);
  color: #fff; overflow-y: auto; -webkit-overflow-scrolling: touch; display: block;
  padding: max(12px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
}
.home-top { display: flex; justify-content: flex-end; gap: 10px; }
.home-top .btn-round { width: 48px; height: 48px; color: var(--epl-sky); }
.home-title { text-align: center; margin: 0; font: 700 clamp(30px, 9vw, 46px)/1.05 var(--epl-title); color: #ffe58a; text-shadow: 0 3px 0 rgba(0,0,0,.25); }
.home-sub { text-align: center; margin: 6px 0 0; font-size: 17px; opacity: .92; }
.home-mascots { display: flex; justify-content: center; align-items: flex-end; gap: 4px; margin: 10px auto 0; max-width: 340px; }
.home-mascots svg { width: 25%; height: auto; aspect-ratio: 1; animation: epl-bounce 3s infinite; }
.home-mascots svg:nth-child(2) { animation-delay: .4s; } .home-mascots svg:nth-child(3) { animation-delay: .8s; } .home-mascots svg:nth-child(4) { animation-delay: 1.2s; }
.home-score { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 14px 0 6px; font: 600 24px var(--epl-title); color: #ffe58a; }
.home-score svg { width: 34px; height: 34px; }
.home-cta { display: flex; justify-content: center; margin: 8px 0 16px; }
.chap-list { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 12px; max-width: 520px; }
.chap-card {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left;
  background: var(--bg); color: var(--c); border-radius: 30px; padding: 8px 14px 8px 8px;
  box-shadow: 0 4px 0 rgba(0,0,0,.18); min-height: 72px; transition: transform var(--epl-ease);
}
.chap-card:active { transform: scale(.97); }
.chap-num { width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--c); color: #fff; font: 700 28px/52px var(--epl-title); text-align: center; }
.chap-ico { width: 44px; height: 44px; flex: none; }
.chap-name { flex: 1; font: 700 19px/1.15 var(--epl-body); color: var(--epl-ink); }
.chap-stars { display: flex; gap: 2px; }
.chap-stars svg { width: 18px; height: 18px; }
.home-foot { text-align: center; margin: 22px 0 6px; font-size: 14px; opacity: .8; }
.home-foot a { color: #ffe58a; }
.sky-map { max-width: 520px; margin: 20px auto 0; padding: 14px; border-radius: 22px; background: rgba(255,255,255,.08); }
.sky-map h2 { margin: 0 0 8px; font: 600 22px var(--epl-title); text-align: center; color: #ffe58a; }
.sky-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; }
.sky-grid svg { width: 100%; aspect-ratio: 1; opacity: .9; }
.sky-grid .off { opacity: .28; }

/* Chapitre */
#screen-chapter { background: var(--epl-bg); color: var(--epl-ink); overflow-y: auto; display: block;
  padding: max(12px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom)); }
.chap-head { display: flex; align-items: center; gap: 12px; }
.chap-head .btn-round { color: var(--epl-c); }
.chap-head h1 { margin: 0; flex: 1; font: 700 clamp(24px, 7vw, 34px)/1.1 var(--epl-title); color: var(--epl-c); }
.chap-art { width: 100%; max-width: 420px; margin: 6px auto 0; display: block; max-height: 34vh; }
.chap-quote { text-align: center; font: italic 17px/1.35 var(--epl-body); margin: 4px 8px 14px; }
.chap-quote b { display: block; font: 600 16px var(--epl-title); color: var(--epl-c); font-style: normal; margin-top: 2px; }
.ex-grid { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 420px; }
.ex-tile { width: 100%; aspect-ratio: 1; border-radius: 26px; background: #fff; border: 4px solid var(--epl-c); color: var(--epl-c);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; box-shadow: 0 4px 0 rgba(0,0,0,.14); }
.ex-tile:active { transform: scale(.95); }
.ex-tile .n { font: 700 34px/1 var(--epl-title); }
.ex-tile .lv { display: flex; gap: 1px; } .ex-tile .lv svg { width: 17px; height: 17px; }
.ex-tile.done { background: var(--epl-c); color: #fff; }
.ex-tile .tick { position: absolute; }
