/* Recovered CSS section 16: 16-singapore-last-visual-override.css */

#singaporeRoot #sg-modal .sg-modal-card{box-sizing:border-box;width:min(1160px,96vw)!important;max-height:94vh!important;overflow:auto!important;padding:16px 20px 15px!important}
#singaporeRoot #sg-modal .sg-modal-card .sg-cinematic{height:auto!important;max-height:none!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;border-radius:22px!important}
#singaporeRoot #sg-modal .sg-modal-card .sg-stage{display:block!important;position:relative!important;height:clamp(285px,44vh,405px)!important;flex:0 0 auto!important;overflow:hidden!important}
#singaporeRoot #sg-modal .sg-modal-card .sg-caption{position:relative!important;left:auto!important;right:auto!important;bottom:auto!important;inset:auto!important;width:100%!important;box-sizing:border-box!important;padding:11px 20px 16px!important;border:0!important;border-top:2px solid #edc79b!important;border-radius:0!important;box-shadow:none!important;backdrop-filter:none!important;background:#fff8ed!important}
#singaporeRoot #sg-modal .sg-modal-card .sg-name{display:inline-block!important;transform:none!important;margin:0 0 8px!important;box-shadow:0 3px 0 #bf9651!important;border-radius:999px!important;padding:6px 16px!important;font-size:clamp(19px,2.1vw,26px)!important}
#singaporeRoot #sg-modal .sg-modal-card .sg-caption p{margin:0 25px 0 0!important;font-size:clamp(17px,1.65vw,21px)!important;line-height:1.32!important;color:#372b45!important}
#singaporeRoot #sg-modal .sg-modal-card .sg-actions{margin:10px 4px 0!important}
#singaporeRoot #sg-modal .sg-modal-card.boss-intro .sg-cine-vibey{left:9%!important;right:auto!important;top:auto!important;bottom:1%!important;height:82%!important;max-height:82%!important}
#singaporeRoot #sg-modal .sg-modal-card.boss-intro .sg-prop-character.boss-guardian{right:8%!important;top:auto!important;bottom:0!important;height:90%!important;max-height:90%!important}
@media(max-height:760px){#singaporeRoot #sg-modal .sg-modal-card .sg-stage{height:clamp(235px,37vh,320px)!important}#singaporeRoot #sg-modal .sg-modal-card .sg-caption p{font-size:17px!important;line-height:1.25!important}}
@media(max-width:720px){#singaporeRoot #sg-modal .sg-modal-card .sg-stage{height:clamp(190px,35vh,285px)!important}#singaporeRoot #sg-modal .sg-modal-card .sg-caption p{font-size:15px!important}#singaporeRoot #sg-modal .sg-modal-card{padding:9px 11px!important}}


/* Recovered CSS section 17: 17-singapore-mobile-play.css */

/* Retina canvas stays undistorted. Maintain a clear landscape view for platforming. */
#singaporeRoot #singaporeCanvas{object-fit:contain!important;object-position:center!important;background:#15364e;image-rendering:auto;}
#singaporeRoot .sg-top{z-index:4;}
#singaporeRoot .sg-quest{z-index:3;}
#singaporeRoot .sg-mobile{z-index:5;align-items:center;}
#singaporeRoot .sg-mobile button{touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;}
#singaporeRoot .sg-mobile button.active{background:linear-gradient(145deg,#edab75,#ad5872);border-color:#fff3be;transform:translateY(2px);}
#singaporeRoot #sg-modal .sg-modal-card.rush-retry{width:min(930px,96vw)!important;}
#singaporeRoot #sg-modal .sg-modal-card.rush-retry .sg-scene-art{object-fit:contain!important;object-position:center!important;}
#singaporeRoot #sg-modal .sg-modal-card.rush-retry .sg-stage{
 height:auto!important;aspect-ratio:1295/596!important;min-height:0!important;
 background:#4467a5!important;
}
#singaporeRoot #sg-modal .sg-modal-card.rush-retry .sg-caption{padding:12px 18px 15px!important;}
#singaporeRoot #sg-modal .sg-modal-card.rush-retry .sg-caption p{font-size:clamp(15px,1.65vw,21px)!important;}
.sg-orientation-tip{display:none;position:absolute;inset:0;z-index:12;place-items:center;background:#132443ea;padding:20px;backdrop-filter:blur(8px);}
.sg-orientation-card{background:#fff7e5;color:#503b55;border:2px solid #ffdea8;border-radius:24px;box-shadow:0 12px 40px #07182d9c;text-align:center;padding:24px 19px;max-width:min(360px,95vw);}
.sg-orientation-card strong{font:900 23px Georgia,serif;color:#723d61;display:block;}
.sg-orientation-card p{font-size:13px;line-height:1.4;margin:12px 0 16px;color:#755b6b;}
.sg-orientation-icon{font-size:45px;line-height:1.25;color:#c56f63;}
.sg-orientation-actions{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;}
.sg-orientation-actions button{font-size:13px;border-radius:12px;padding:10px 12px;border:1px solid #d7a678;background:#654364;color:white;font-weight:900;}
.sg-orientation-actions button:first-child{background:linear-gradient(135deg,#f6bc74,#df7486);color:#50334b;}
@media (pointer:coarse){
  #singaporeRoot{overscroll-behavior:none;touch-action:none;}
  #singaporeRoot .sg-hint{display:none!important;}
  #singaporeRoot .sg-mobile button{min-width:50px;min-height:52px;padding:7px 10px;font-size:18px;}
  #singaporeRoot .sg-mobile-right button:last-child{min-width:76px;}
  #singaporeRoot .sg-mobile-left{left:max(11px,env(safe-area-inset-left));gap:8px;}
  #singaporeRoot .sg-mobile-right{right:max(11px,env(safe-area-inset-right));gap:8px;}
}
@media (pointer:coarse) and (orientation:landscape) and (max-height:570px){
  #singaporeRoot .sg-top{top:5px;left:max(10px,env(safe-area-inset-left));right:max(10px,env(safe-area-inset-right));align-items:center;}
  #singaporeRoot .sg-brand{font-size:15px;line-height:1.1;}
  #singaporeRoot .sg-brand small{font-size:8px;letter-spacing:.6px;}
  #singaporeRoot .sg-topbuttons{gap:4px;}
  #singaporeRoot .sg-topbuttons button{padding:6px 7px!important;font-size:9px!important;border-radius:10px;box-shadow:none;min-height:31px;}
  #singaporeRoot .sg-quest{top:46px;left:max(10px,env(safe-area-inset-left));width:min(320px,40vw);padding:7px 10px;border-radius:11px;background:#17384dbb;backdrop-filter:blur(4px);}
  #singaporeRoot .sg-quest>b{font-size:9px;letter-spacing:.7px;}
  #singaporeRoot .sg-quest>strong{font-size:11px;margin:3px 0;line-height:1.15;}
  #singaporeRoot .sg-stats{gap:3px;font-size:9px;}
  #singaporeRoot .sg-stats>span{padding:2px 5px;}
  #singaporeRoot .sg-timeline{height:4px;margin-top:5px;}
  #singaporeRoot .sg-quest #sg-boss-hud{font-size:9px;margin-top:4px;}
  #singaporeRoot .sg-mobile{bottom:max(7px,env(safe-area-inset-bottom));}
  #singaporeRoot .sg-mobile button{min-width:clamp(42px,6.4vw,54px);min-height:clamp(42px,10vh,53px);font-size:17px;padding:5px 8px;border-radius:11px;}
  #singaporeRoot .sg-mobile-right button:last-child{min-width:clamp(62px,9vw,82px);}
  #singaporeRoot #sg-toast{font-size:11px;padding:8px 10px;top:26%;max-width:68%;text-align:center;}
  #singaporeRoot #sg-modal{padding:4px!important;}
  #singaporeRoot #sg-modal .sg-modal-card{width:min(880px,98vw)!important;max-height:calc(100dvh - 8px)!important;overflow:auto!important;padding:6px 10px!important;border-radius:14px;}
  #singaporeRoot #sg-modal .sg-modal-card .sg-overline{font-size:8px;letter-spacing:1px;}
  #singaporeRoot #sg-modal .sg-modal-card .sg-stage{height:clamp(110px,30dvh,165px)!important;}
  #singaporeRoot #sg-modal .sg-modal-card .sg-caption{padding:6px 10px 8px!important;}
  #singaporeRoot #sg-modal .sg-modal-card .sg-name{font-size:13px!important;padding:3px 9px!important;margin-bottom:4px!important;}
  #singaporeRoot #sg-modal .sg-modal-card .sg-caption p{font-size:12px!important;line-height:1.19!important;}
  #singaporeRoot #sg-modal .sg-modal-card .sg-actions{margin:6px 3px 1px!important;gap:6px;}
  #singaporeRoot #sg-modal .sg-modal-card .sg-button{font-size:11px;padding:6px 9px;min-height:32px;border-radius:9px;box-shadow:0 2px #527d61;}
  #singaporeRoot #sg-modal .sg-modal-card.rush-retry .sg-cinematic{display:grid!important;grid-template-columns:58% 42%!important;align-items:stretch;}
  #singaporeRoot #sg-modal .sg-modal-card.rush-retry .sg-stage{aspect-ratio:auto!important;height:clamp(154px,53dvh,230px)!important;grid-column:1;}
  #singaporeRoot #sg-modal .sg-modal-card.rush-retry .sg-scene-art{object-fit:cover!important;object-position:center 53%!important;}
  #singaporeRoot #sg-modal .sg-modal-card.rush-retry .sg-caption{grid-column:2;display:flex;flex-direction:column;justify-content:center;}
  #singaporeRoot #sg-modal .sg-modal-card.rush-retry .sg-caption p{font-size:clamp(10px,1.35vw,13px)!important;line-height:1.25!important;}
  #singaporeRoot #sg-modal .sg-modal-card.rush-retry .sg-dialog-next{display:none;}
  #singaporeRoot .sg-pause,.sg-modal{padding:4px;}
  #singaporeRoot .sg-panel{padding:12px;max-height:96dvh;}
  #singaporeRoot .sg-panel h2{font-size:23px;}
}
@media (pointer:coarse) and (orientation:portrait) and (max-width:820px){
  #singaporeRoot.sg-mobile-rotate-pause:not(:has(#sg-modal:not([hidden]))):not(:has(#sg-pause:not([hidden]))) .sg-orientation-tip{display:grid;}
  #singaporeRoot.sg-portrait-continue #singaporeCanvas{object-fit:cover!important;object-position:26% center!important;}
  #singaporeRoot .sg-top{left:8px;right:8px;top:10px;flex-direction:column;gap:5px;}
  #singaporeRoot .sg-brand{font-size:15px;}
  #singaporeRoot .sg-brand small{font-size:8px;letter-spacing:.8px;}
  #singaporeRoot .sg-topbuttons{gap:4px;}
  #singaporeRoot .sg-topbuttons button{padding:6px 7px!important;font-size:10px!important;box-shadow:none;border-radius:9px;}
  #singaporeRoot .sg-quest{top:103px;left:8px;right:8px;width:auto;padding:7px 9px;border-radius:10px;}
  #singaporeRoot .sg-quest>b{font-size:9px;}
  #singaporeRoot .sg-quest>strong{font-size:12px;margin:3px 0;}
  #singaporeRoot .sg-stats{gap:4px;font-size:10px;}
  #singaporeRoot .sg-stats>span{padding:3px 6px;}
  #singaporeRoot .sg-timeline{margin-top:5px;height:5px;}
  #singaporeRoot .sg-mobile{bottom:max(13px,env(safe-area-inset-bottom));}
  #singaporeRoot .sg-mobile-left{left:max(5px,env(safe-area-inset-left));gap:5px;}
  #singaporeRoot .sg-mobile-right{right:max(5px,env(safe-area-inset-right));gap:5px;}
  #singaporeRoot .sg-mobile button{min-height:49px;min-width:43px;font-size:17px;padding:5px 7px;}
  #singaporeRoot .sg-mobile-right button:last-child{min-width:59px;font-size:12px;}
  #singaporeRoot .sg-orientation-tip{padding:12px;}
  #singaporeRoot #sg-modal .sg-modal-card{width:98vw!important;max-height:calc(100dvh - 16px)!important;}
  #singaporeRoot #sg-modal .sg-modal-card.rush-retry .sg-stage{height:auto!important;aspect-ratio:1295/596!important;}
  #singaporeRoot #sg-modal .sg-modal-card.rush-retry .sg-scene-art{object-fit:contain!important;}
}


