/* ELIE v5.1.82 — book archive, living UFO manual and MYRA-aligned archive headings */

/* BOOK — long-form twelve-language reading archive */
.book-screen .book-copy.book-copy-v5182{
  top:18.5%!important;
  right:5.4%!important;
  bottom:15.5%!important;
  width:min(47vw,850px)!important;
  height:auto!important;
  text-align:center!important;
  color:#2ef13a!important;
  white-space:normal!important;
  overflow:hidden!important;
}
.book-screen .book-scroll-frame{
  width:100%;
  height:100%;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:clamp(20px,2.1vw,38px) clamp(18px,2.4vw,44px) clamp(42px,4vw,76px);
  box-sizing:border-box;
  scrollbar-width:thin;
  scrollbar-color:#2ef13a rgba(7,55,14,.4);
  -webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 7%,#000 92%,transparent 100%);
  mask-image:linear-gradient(to bottom,transparent 0,#000 7%,#000 92%,transparent 100%);
}
.book-screen .book-scroll-frame::-webkit-scrollbar{width:7px}
.book-screen .book-scroll-frame::-webkit-scrollbar-track{background:rgba(7,55,14,.34)}
.book-screen .book-scroll-frame::-webkit-scrollbar-thumb{background:#2ef13a;border:2px solid #001804}
.book-screen .book-copy-v5182 p{
  margin:0 auto clamp(16px,1.35vw,26px)!important;
  color:#2ef13a!important;
  text-transform:uppercase!important;
  letter-spacing:.035em;
  overflow-wrap:anywhere;
}
.book-screen .book-copy-v5182 .lead{
  width:100%!important;
  font-size:calc(var(--u)*1.42)!important;
  line-height:1.08!important;
  font-weight:650;
}
.book-screen .book-copy-v5182 .book-body-paragraph{
  width:90%!important;
  font-size:calc(var(--u)*.78)!important;
  line-height:1.42!important;
  font-weight:560;
}
.book-screen .book-copy-v5182 .book-body-paragraph:nth-child(3){
  width:100%!important;
  margin-block:clamp(20px,2vw,36px)!important;
  font-size:calc(var(--u)*1.02)!important;
  letter-spacing:.13em;
  color:#fff!important;
}
.book-screen .book-download-signal{
  position:absolute!important;
  left:auto!important;
  right:18.1%!important;
  top:auto!important;
  bottom:5.4%!important;
  width:clamp(168px,13.6vw,250px)!important;
  min-width:0!important;
  height:clamp(46px,4.15vw,68px)!important;
  transform:none!important;
  margin:0!important;
  text-decoration:none!important;
  z-index:8!important;
}
.book-screen .book-download-signal:hover,
.book-screen .book-download-signal:focus-visible{transform:scale(1.012)!important}
.book-screen .book-download-signal .home-start-signal-label{font-size:clamp(12px,.92vw,17px)!important;letter-spacing:.18em!important}
.book-screen .book-art{z-index:2}
html[dir="rtl"] .book-screen .book-copy-v5182{text-align:right!important;direction:rtl}
html[dir="rtl"] .book-screen .book-copy-v5182 .book-body-paragraph{margin-inline:0 auto!important}

/* FIRST FLIGHT — C key and mobile bomb control */
.tutorial-key-stack{display:flex;gap:calc(var(--u)*.48);align-items:center}
.tutorial-key-bomb{border-color:#fff!important;color:#fff!important}
.tutorial-mobile-actions{display:flex;align-items:center;gap:calc(var(--u)*.5)}
.tutorial-bomb-dial,.tutorial-laser-dial{position:relative;display:grid;place-items:center}
.tutorial-bomb-dial{width:calc(var(--u)*3.65);height:calc(var(--u)*3.65)}
.tutorial-bomb-dial img{width:100%;height:100%;object-fit:contain;filter:none!important}
.tutorial-bomb-dial b{position:absolute;inset:0;display:grid;place-items:center;color:#42e63e;font-size:calc(var(--u)*.9);line-height:1}
.tutorial-bomb-copy{color:#fff!important}

/* HOW TO PLAY — clean controls, larger bomb, separate systems */
.how-control-key-stack{display:flex;flex-direction:column;gap:7px}
.how-c-key{border-color:#fff!important;color:#fff!important}
.how-control-bomb-copy{margin-top:9px!important;color:#2ef13a!important;font-weight:700}
.how-mobile-action-stack{display:flex;align-items:center;gap:8px}
.how-laser-mini,.how-bomb-mini{position:relative;display:grid;place-items:center}
.how-laser-mini{width:74px;height:74px}
.how-bomb-mini{width:62px;height:76px}
.how-laser-mini img,.how-bomb-mini img{width:100%;height:100%;object-fit:contain;filter:none!important}
.how-laser-mini b,.how-bomb-mini b{position:absolute;inset:0;display:grid;place-items:center;color:#2ef13a;font-size:15px;line-height:1}
.how-bomb-manual-visual{min-width:150px!important;min-height:205px!important}
.how-bomb-manual-visual img{width:112px!important;height:172px!important;filter:none!important;box-shadow:none!important}
.how-bomb-manual-visual b{left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;font-size:25px!important;line-height:1!important}
.how-boundary-visual{width:100%;height:100%;display:grid;grid-template-rows:4px 1fr 4px;align-items:center;gap:12px;padding:8px 0;box-sizing:border-box}
.how-boundary-visual i{display:block;width:100%;height:2px;background:linear-gradient(90deg,transparent,#2ef13a,transparent)}
.how-boundary-visual img{width:80%;max-height:92px;object-fit:contain;justify-self:center}
.how-refresh-system-card{
  position:relative;
  display:grid;
  grid-template-columns:minmax(260px,34%) minmax(0,1fr);
  min-height:225px;
  border:1px solid rgba(46,241,58,.26);
  background:linear-gradient(110deg,rgba(3,27,8,.78),rgba(0,0,0,.9));
  overflow:hidden;
}
.how-refresh-system-card:after{content:"RFS-01";position:absolute;right:12px;top:10px;color:rgba(46,241,58,.22);font-size:10px;letter-spacing:.18em}
.how-refresh-system-visual{display:grid;place-items:center;padding:20px;border-right:1px solid rgba(46,241,58,.16)}
.how-refresh-system-visual img{width:100%;max-width:380px;max-height:175px;object-fit:contain;filter:none!important}
.how-refresh-system-copy{display:flex;flex-direction:column;justify-content:center;padding:28px 34px;text-align:left}
.how-refresh-system-copy small,.how-command-living>header p{color:rgba(190,255,199,.55);font-size:10px;letter-spacing:.15em}
.how-refresh-system-copy strong{margin:9px 0;color:#2ef13a;font-size:clamp(20px,1.5vw,29px);letter-spacing:.06em}
.how-refresh-system-copy p{margin:0;color:rgba(234,255,237,.83);font-size:clamp(13px,.84vw,16px);line-height:1.5}
.how-command-living>header{align-items:start!important}
.how-command-living>header p{margin:8px 0 0;max-width:860px;line-height:1.45;letter-spacing:.04em;color:rgba(220,255,225,.66)}
.how-living-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(12px,1.1vw,20px)}
.how-living-grid .how-system-card{min-height:250px!important}
.how-living-motion,.how-living-response{width:100%;height:100%;display:grid;grid-template-columns:repeat(2,1fr);gap:6px;align-items:center;justify-items:center}
.how-living-motion img,.how-living-response img{width:92%;max-height:72px;object-fit:contain}
.how-living-ufo-image{width:88%;max-height:128px;object-fit:contain}

/* MYRA publication-center heading language for Badges and Eternal Stone */
.signal-archive-heading{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(180px,34%)!important;
  align-items:center!important;
  gap:24px!important;
  text-align:left!important;
  border-bottom:1px solid rgba(46,241,58,.18)!important;
}
.signal-archive-heading-copy{min-width:0}
.signal-archive-heading-copy small{
  display:block!important;
  color:rgba(69,140,76,.9)!important;
  font-size:clamp(7px,.55vw,10px)!important;
  line-height:1!important;
  letter-spacing:.18em!important;
}
.signal-archive-heading-copy h1,
.signal-archive-heading-copy h2{
  margin:.28em 0 .18em!important;
  color:#eaffec!important;
  font-size:clamp(25px,2.15vw,39px)!important;
  line-height:.98!important;
  letter-spacing:.035em!important;
  text-align:left!important;
  max-width:calc(100% - 20px)!important;
}
.signal-archive-heading-copy p{
  margin:0!important;
  max-width:900px!important;
  color:rgba(75,152,83,.9)!important;
  font-size:clamp(8px,.62vw,11px)!important;
  line-height:1.45!important;
  letter-spacing:.075em!important;
  text-align:left!important;
}
.signal-archive-heading-status{display:flex;align-items:center;justify-content:flex-end;gap:24px;padding-right:48px}
.signal-archive-heading-status>strong{color:#2ef13a!important;font-size:clamp(19px,1.45vw,28px)!important;white-space:nowrap}
.signal-archive-heading-wave{height:52px;display:flex;align-items:center;justify-content:flex-end;gap:5px}
.signal-archive-heading-wave i{display:block;width:3px;height:var(--h);background:linear-gradient(180deg,rgba(46,241,58,.08),#2ef13a,rgba(46,241,58,.08));opacity:.78}
.badge-gallery-window .badge-gallery-header{padding:24px 74px 20px 30px!important;min-height:118px!important;height:auto!important}
.badge-gallery-window .badge-scroll-mask{top:154px!important}
.kadim-stone-window .kadim-stone-header{left:4.2%!important;right:4.2%!important;top:4.2%!important;height:auto!important;min-height:116px!important;padding:0 54px 18px 0!important}
.kadim-stone-window .kadim-stone-list-frame{top:22%!important}
html[dir="rtl"] .signal-archive-heading{text-align:right!important}
html[dir="rtl"] .signal-archive-heading-copy h1,
html[dir="rtl"] .signal-archive-heading-copy h2,
html[dir="rtl"] .signal-archive-heading-copy p{text-align:right!important}
html[dir="rtl"] .signal-archive-heading-status{justify-content:flex-start;padding-right:0;padding-left:48px}

@media (max-width:1100px){
  .book-screen .book-copy.book-copy-v5182{right:4%!important;width:52vw!important}
  .book-screen .book-download-signal{right:20%!important}
  .how-refresh-system-card{grid-template-columns:32% 1fr}
  .signal-archive-heading{grid-template-columns:1fr 28%!important}
  .signal-archive-heading-wave{gap:3px}
}

@media (orientation:landscape) and (pointer:coarse), (max-height:760px){
  .book-screen .book-copy.book-copy-v5182{left:38%!important;right:3%!important;top:13.5%!important;bottom:17%!important;width:auto!important}
  .book-screen .book-scroll-frame{padding:18px 22px 44px}
  .book-screen .book-copy-v5182 .lead{font-size:clamp(13px,3.15vh,18px)!important;line-height:1.16!important}
  .book-screen .book-copy-v5182 .book-body-paragraph{font-size:clamp(9px,2.05vh,12px)!important;line-height:1.4!important;width:96%!important}
  .book-screen .book-copy-v5182 .book-body-paragraph:nth-child(3){font-size:clamp(12px,2.7vh,16px)!important}
  .book-screen .book-download-signal{right:17%!important;bottom:2.8%!important;width:clamp(132px,19vw,190px)!important;height:clamp(38px,6.5vh,50px)!important}
  .book-screen .book-art{left:18%!important;bottom:3%!important;top:auto!important;width:clamp(90px,14vw,145px)!important}
  .tutorial-key-stack{gap:5px}.tutorial-bomb-dial{width:44px;height:44px}.tutorial-bomb-dial b{font-size:12px}
  .how-control-key-stack{gap:5px}.how-mobile-action-stack{gap:5px}.how-laser-mini{width:52px;height:52px}.how-bomb-mini{width:46px;height:54px}.how-laser-mini b,.how-bomb-mini b{font-size:11px}
  .how-bomb-manual-visual{min-width:104px!important;min-height:145px!important}.how-bomb-manual-visual img{width:78px!important;height:120px!important}.how-bomb-manual-visual b{font-size:18px!important}
  .how-refresh-system-card{grid-template-columns:30% 1fr;min-height:150px}.how-refresh-system-visual{padding:10px}.how-refresh-system-visual img{max-height:110px}.how-refresh-system-copy{padding:17px 20px}.how-refresh-system-copy strong{font-size:17px}.how-refresh-system-copy p{font-size:11px}
  .how-living-grid{gap:10px}.how-living-grid .how-system-card{min-height:195px!important}.how-living-motion img,.how-living-response img{max-height:52px}.how-living-ufo-image{max-height:92px}
  .badge-gallery-window .badge-gallery-header{padding:12px 52px 10px 16px!important;min-height:75px!important}
  .badge-gallery-window .badge-scroll-mask{top:96px!important}
  .kadim-stone-window .kadim-stone-header{left:15px!important;right:52px!important;top:10px!important;min-height:70px!important;padding:0 0 9px!important}
  .kadim-stone-window .kadim-stone-list-frame{top:102px!important}
  .signal-archive-heading{grid-template-columns:1fr 24%!important;gap:10px!important}
  .signal-archive-heading-copy small{font-size:5px!important}.signal-archive-heading-copy h1,.signal-archive-heading-copy h2{font-size:clamp(16px,4.3vh,24px)!important}.signal-archive-heading-copy p{font-size:clamp(5px,1.5vh,8px)!important;line-height:1.3!important}
  .signal-archive-heading-status{gap:8px;padding-right:0}.signal-archive-heading-status>strong{font-size:14px!important}.signal-archive-heading-wave{height:32px;gap:2px}.signal-archive-heading-wave i{width:2px;max-height:28px}
}

@media (max-width:680px) and (orientation:portrait){
  .book-screen .book-copy.book-copy-v5182{left:5%!important;right:5%!important;top:16%!important;bottom:14%!important;width:auto!important}
  .book-screen .book-art{display:none!important}
  .book-screen .book-download-signal{left:50%!important;right:auto!important;bottom:3%!important;transform:translateX(-50%)!important}
  .book-screen .book-download-signal:hover,.book-screen .book-download-signal:focus-visible{transform:translateX(-50%) scale(1.012)!important}
  .how-refresh-system-card{grid-template-columns:1fr}.how-refresh-system-visual{border-right:0;border-bottom:1px solid rgba(46,241,58,.16)}
  .how-living-grid{grid-template-columns:1fr}
  .signal-archive-heading{grid-template-columns:1fr!important}.signal-archive-heading-status{display:none!important}
}

@media (prefers-reduced-motion:reduce){.signal-archive-heading-wave i{animation:none!important}}
