/* ELIE v5.3.8 — result composition, book crop and readability refinements. */

/* RESULT / GAME OVER REPORT ------------------------------------------------ */
.game-modal .result-card.advanced-result{
  width:min(1480px,94vw)!important;
  min-height:0!important;
  height:auto!important;
  max-width:94vw!important;
  max-height:94vh!important;
  padding:clamp(17px,2.15vh,28px) clamp(24px,2.35vw,40px) clamp(15px,1.8vh,24px)!important;
  border-radius:clamp(20px,2vw,30px)!important;
  overflow-y:auto!important;
  transform:none!important;
  justify-content:flex-start!important;
}
.result-card.advanced-result .v31-result-mission,
.result-card.advanced-result .result-protocols{display:none!important}
.advanced-result .result-heading{width:min(780px,66%);text-align:center!important;margin:0 auto!important}
.advanced-result .result-heading.single-title small{
  color:#fff!important;opacity:1!important;font-size:clamp(20px,2.1vw,34px)!important;line-height:1!important;letter-spacing:.055em!important
}
.advanced-result .result-heading:not(.single-title) small{font-size:clamp(10px,.8vw,14px)!important}
.advanced-result .result-heading h2{font-size:clamp(28px,2.9vw,48px)!important;margin:4px 0 5px!important;line-height:.96!important}
.advanced-result .result-heading p{font-size:clamp(10px,.74vw,13px)!important;min-height:0!important;margin-top:5px!important}
.advanced-result .result-grade{left:clamp(22px,2.2vw,36px)!important;top:clamp(18px,2.1vh,30px)!important;width:clamp(72px,6.3vw,106px)!important;height:clamp(72px,6.3vw,106px)!important}
.advanced-result .result-grade small{font-size:clamp(8px,.55vw,11px)!important}.advanced-result .result-grade strong{font-size:clamp(30px,2.65vw,46px)!important}
.advanced-result .result-stars{top:clamp(-25px,-1.4vh,-10px)!important;font-size:clamp(32px,2.8vw,48px)!important}
.advanced-result .result-main-score{font-size:clamp(34px,3vw,52px)!important;margin:clamp(8px,1vh,12px) 0 8px!important}
.advanced-result .performance-bar{width:min(880px,72%)!important;height:clamp(18px,1.8vh,25px)!important;margin-bottom:clamp(9px,1.1vh,14px)!important}
.advanced-result .performance-bar b{font-size:clamp(9px,.62vw,12px)!important}
.advanced-result .flight-report{
  width:100%!important;grid-template-columns:repeat(8,minmax(0,1fr))!important;
  gap:clamp(6px,.65vw,10px)!important;margin-bottom:clamp(8px,1vh,13px)!important
}
.advanced-result .flight-report article{min-height:clamp(62px,7.2vh,82px)!important;border-radius:12px!important;padding:7px 5px!important}
.advanced-result .flight-report strong{font-size:clamp(16px,1.25vw,23px)!important}.advanced-result .flight-report span{font-size:clamp(7.5px,.55vw,10px)!important;line-height:1.12!important;margin-top:5px!important}
.advanced-result .result-pickups{height:auto!important;min-height:44px!important;gap:clamp(14px,1.6vw,28px)!important;margin:0 0 7px!important;flex-wrap:wrap!important}
.advanced-result .result-pickups img{height:clamp(28px,3.6vh,42px)!important}.advanced-result .result-pickups span{font-size:clamp(10px,.68vw,13px)!important}
.advanced-result .result-crystal-award{margin-block:5px!important}
.advanced-result .result-submit{width:min(760px,80%)!important;gap:8px!important;margin-top:5px!important;flex-wrap:nowrap!important}
.advanced-result .result-submit input{height:42px!important;min-height:42px!important;width:auto!important;flex:1 1 0!important;font-size:12px!important}
.advanced-result .result-submit .score-badge-trigger,.advanced-result .result-submit .action-btn{height:42px!important;min-height:42px!important}
.advanced-result .result-actions{width:100%!important;display:flex!important;justify-content:center!important;align-items:center!important;flex-wrap:wrap!important;gap:8px!important;margin-top:9px!important;padding:0!important;background:none!important;position:static!important}
.advanced-result .result-actions .action-btn{height:42px!important;min-height:42px!important;min-width:clamp(130px,10vw,178px)!important;width:auto!important;font-size:clamp(10px,.67vw,12px)!important;padding-inline:16px!important}

@media (max-width:1180px){
  .advanced-result .flight-report{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .advanced-result .result-heading{width:min(680px,72%)!important}
}
@media (orientation:landscape) and (pointer:coarse){
  .game-modal .result-card.advanced-result{width:calc(100% - 10px)!important;height:calc(100% - 8px)!important;max-width:none!important;max-height:none!important;padding:10px 12px 9px!important;border-radius:16px!important}
  .advanced-result .result-grade{left:12px!important;top:10px!important;width:58px!important;height:58px!important}
  .advanced-result .result-grade strong{font-size:25px!important}.advanced-result .result-grade small{font-size:7px!important}
  .advanced-result .result-heading{width:70%!important}.advanced-result .result-heading.single-title small{font-size:clamp(17px,4.5vh,25px)!important}
  .advanced-result .result-heading h2{font-size:clamp(19px,5vh,28px)!important}
  .advanced-result .result-main-score{font-size:clamp(25px,6vh,36px)!important;margin:5px 0!important}
  .advanced-result .performance-bar{width:68%!important;height:18px!important;margin-bottom:6px!important}
  .advanced-result .flight-report{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:5px!important;margin-bottom:6px!important}
  .advanced-result .flight-report article{min-height:47px!important;padding:4px!important}.advanced-result .flight-report strong{font-size:clamp(12px,3vh,16px)!important}.advanced-result .flight-report span{font-size:clamp(7px,1.65vh,9px)!important}
  .advanced-result .result-pickups{min-height:34px!important;gap:12px!important}.advanced-result .result-pickups img{height:29px!important}
  .advanced-result .result-submit{width:min(620px,88%)!important;margin-top:2px!important}.advanced-result .result-submit input,.advanced-result .result-submit .score-badge-trigger,.advanced-result .result-submit .action-btn{height:36px!important;min-height:36px!important}
  .advanced-result .result-actions{gap:5px!important;margin-top:5px!important}.advanced-result .result-actions .action-btn{height:36px!important;min-height:36px!important;min-width:112px!important;font-size:9px!important;padding-inline:8px!important}
}

/* BOOK: shrink the right reading block another 30 px from its top edge. */
@media (hover:hover) and (pointer:fine){
  .book-screen .book-copy.book-copy-v5182{top:calc(20% + 130px)!important}
}
@media (orientation:landscape) and (pointer:coarse) and (min-width:900px){
  .book-screen .book-copy.book-copy-v5182{top:calc(17% + 130px)!important}
}

/* ACHIEVEMENTS ------------------------------------------------------------- */
.achievements-wrap .stat-box strong{font-size:calc(var(--u)*1.2)!important}.achievements-wrap .stat-box span{font-size:calc(var(--u)*.54)!important}
.achievement h3{font-size:calc(var(--u)*.67)!important;line-height:1.08!important}.achievement p,.achievement .status{font-size:calc(var(--u)*.47)!important;line-height:1.3!important}.achievement .badge{font-size:calc(var(--u)*.72)!important}

/* UPGRADE / EVOLUTION ------------------------------------------------------ */
.evolution-header small{font-size:calc(var(--u)*.86)!important}.evolution-categories button span{font-size:calc(var(--u)*.98)!important}.evolution-categories button b{font-size:calc(var(--u)*.82)!important}
.evolution-slots>small{font-size:calc(var(--u)*.8)!important}.evolution-auto-summary strong{font-size:calc(var(--u)*.76)!important}.evolution-auto-summary small{font-size:calc(var(--u)*.56)!important;line-height:1.22!important}.evolution-auto-protocols span,.evolution-auto-protocols em{font-size:calc(var(--u)*.57)!important}
.evolution-info small{font-size:calc(var(--u)*.76)!important}.evolution-info strong{font-size:calc(var(--u)*1.13)!important}.evolution-values small{font-size:calc(var(--u)*.69)!important}.evolution-values b{font-size:calc(var(--u)*.96)!important}
.evolution-branch strong{font-size:calc(var(--u)*.79)!important}.evolution-branch small{font-size:calc(var(--u)*.64)!important;line-height:1.31!important}.evolution-branch b,.evolution-activate{font-size:calc(var(--u)*.66)!important}
.evolution-detail-window .upgrade-detail-copy>small{font-size:calc(var(--u)*.83)!important}.evolution-detail-window .upgrade-detail-copy>p{font-size:calc(var(--u)*1.08)!important;line-height:1.42!important}.evolution-detail-protocols p{font-size:calc(var(--u)*.72)!important}

/* MYRA / SIGNAL CENTER ----------------------------------------------------- */
.myra-header small{font-size:clamp(10px,.68vw,12px)!important}.myra-header p{font-size:clamp(11px,.76vw,13px)!important}
.myra-section-title,.myra-section-title b{font-size:clamp(9px,.64vw,11px)!important}.myra-world-filters button{font-size:clamp(9px,.62vw,11px)!important}
.myra-record>span{font-size:clamp(9px,.64vw,11px)!important}.myra-record strong{font-size:clamp(10px,.72vw,12px)!important}.myra-record small{font-size:clamp(8px,.56vw,10px)!important}
.myra-message-meta,.myra-message-meta b{font-size:clamp(8px,.56vw,10px)!important}.myra-message h3{font-size:clamp(21px,1.8vw,32px)!important}.myra-message p{font-size:clamp(13px,.92vw,16px)!important;line-height:1.52!important}.myra-message blockquote{font-size:clamp(10px,.76vw,13px)!important}.myra-message blockquote small{font-size:clamp(8px,.53vw,10px)!important}
.myra-telemetry-card small,.myra-telemetry dt{font-size:clamp(9px,.62vw,11px)!important}.myra-telemetry-card strong{font-size:clamp(15px,1.08vw,20px)!important}.myra-telemetry dd{font-size:clamp(11px,.76vw,14px)!important}.myra-listen{font-size:clamp(10px,.7vw,12px)!important}.myra-record-nav span{font-size:clamp(9px,.63vw,11px)!important}.myra-footer{font-size:clamp(7px,.48vw,9px)!important}

/* Home badge launcher: remove the green count bubble beneath/right of the orb. */
.home-badge-launch b{display:none!important}

@media (orientation:landscape) and (pointer:coarse){
  .achievement h3{font-size:max(11px,calc(var(--u)*.67))!important}.achievement p,.achievement .status{font-size:max(9px,calc(var(--u)*.47))!important}
  .evolution-header small{font-size:max(10.5px,calc(var(--u)*.86))!important}.evolution-categories button span{font-size:max(11.5px,calc(var(--u)*.98))!important}.evolution-categories button b{font-size:max(10px,calc(var(--u)*.82))!important}
  .evolution-info small,.evolution-values small{font-size:max(10px,calc(var(--u)*.72))!important}.evolution-info strong{font-size:max(13.5px,calc(var(--u)*1.13))!important}.evolution-branch strong{font-size:max(11px,calc(var(--u)*.79))!important}.evolution-branch small{font-size:max(9.5px,calc(var(--u)*.64))!important}
  .myra-header small,.myra-header p,.myra-section-title,.myra-section-title b,.myra-world-filters button,.myra-record small,.myra-message-meta,.myra-message-meta b,.myra-message blockquote small,.myra-telemetry-card small,.myra-telemetry dt,.myra-record-nav span{font-size:clamp(8px,2vh,10px)!important}
  .myra-record strong{font-size:clamp(9px,2.2vh,11px)!important}.myra-message h3{font-size:clamp(15px,3.7vh,21px)!important}.myra-message p{font-size:clamp(9.5px,2.35vh,12px)!important}.myra-message blockquote{font-size:clamp(8.5px,2.05vh,10.5px)!important}.myra-telemetry-card strong{font-size:clamp(10px,2.45vh,13px)!important}.myra-telemetry dd,.myra-listen{font-size:clamp(8.5px,2.05vh,10.5px)!important}
}
