/* OverLife: structural inspiration from rounded poster cards and compact mobile
   chrome. Original copy/media/handlers and all visibility rules stay owned by
   the existing app. No imported reference assets, fonts or runtime packages. */
:root{
 --interface-night:#100d15;
 --interface-plum:#251725;
 --interface-ember:#e14e3e;
 --interface-amber:#efad68;
 --interface-paper:#fff6ec;
 --interface-line:rgb(245 191 158 / .30);
 --interface-panel-radius:28px;
 --interface-control-radius:16px;
}
/* The wallpaper remains edge-to-edge. Only the foreground chrome is shaped. */
body.rgb-theme .main>.topbar{
 border-bottom-color:rgb(245 191 158 / .14);
 box-shadow:0 6px 18px rgb(0 0 0 / .10);
}
body[data-page='home'] .main>.topbar{
 box-shadow:none;
}
body.rgb-theme .nav{
 --readable-panel:rgb(16 12 22 / .94);
 border:1px solid var(--interface-line);
 border-radius:25px;
 box-shadow:0 12px 28px rgb(0 0 0 / .28),inset 0 1px 0 rgb(255 238 220 / .05);
}
body.rgb-theme .nav button{
 border-radius:18px;
 letter-spacing:.01em;
}
body.rgb-theme .nav button.active{
 background:linear-gradient(135deg,rgb(113 35 48 / .90),rgb(62 32 45 / .94))!important;
 color:var(--interface-paper)!important;
 box-shadow:inset 0 0 0 1px rgb(255 172 129 / .32);
}
body.rgb-theme .nav button:focus-visible{
 outline:2px solid #fff0d5!important;
 outline-offset:1px;
}
body .app-back{
 border-radius:var(--interface-control-radius);
 box-shadow:inset 0 1px 0 rgb(255 255 255 / .07);
}
/* Existing home actions become small framed tiles, leaving the full mascot,
   its smoke and title unobstructed. The LIVE diameter is exactly90% ofv12. */
body[data-page='home'] #home.chill-home{
 --home-live-size:115.2px;
 --home-mascot-size:min(clamp(188.552px,35.672dvh,321.048px),calc(100vw - 20px));
 justify-content:safe center;
}
body[data-page='home'] #home .chill-actions>.chill-action:not([data-live-choice]){
 border-radius:18px;
 border:1px solid rgb(245 191 158 / .42)!important;
 box-shadow:0 8px 18px rgb(0 0 0 / .18),inset 0 1px 0 rgb(255 241 224 / .07);
}
body[data-page='home'] #home .chill-actions>.chill-action:not([data-live-choice])>.action-icon{
 border-radius:10px;
 background:rgb(255 184 145 / .09);
}
body[data-page='home'] #home .chill-actions>.chill-action[data-live-choice]{
 left:0;
 box-shadow:inset 0 1px 0 #ffc44322,0 0 0 3px #e2392810,0 0 20px #e2392842,0 8px 22px #09030470!important;
}
body[data-page='home'] #home .overlive-download-home #downloadApplication{
 border-radius:18px;
 border:1px solid rgb(245 191 158 / .42)!important;
 box-shadow:0 8px 20px rgb(0 0 0 / .22),inset 0 1px 0 rgb(255 241 224 / .07);
}
body[data-page='home'] #home .overlive-download-home #showAppQrCode{
 border-radius:15px;
}
@media(max-height:680px){
 body[data-page='home'] #home.chill-home{--home-mascot-size:173.264px;}
}
@media(max-width:360px){
 body[data-page='home'] #home.chill-home{--home-live-size:108px;}
}
@media(max-height:500px) and (min-width:550px){
 body[data-page='home'] #home.chill-home{
  --home-live-size:clamp(86.4px,14.4vw,100.8px);
  --home-mascot-size:173.264px;
  align-content:safe center;
 }
}
/* In landscape the original two-column composition centers the action by
   offsetting its own radius; remove the earlier10px optical shift. */
@media(max-height:500px) and (min-width:550px){
 body[data-page='home'] #home .chill-actions>.chill-action[data-live-choice]{
  left:calc(var(--home-live-size) * .5 + 12px);
 }
}
/* Keep the larger home illustration and the last action inside the scroll
   viewport. Native touch/wheel scrolling remains available without a bright rail. */
body[data-page='home'] #home.chill-home{
 scrollbar-width:none;
 padding-block:8px 16px;
}
body[data-page='home'] #home.chill-home::-webkit-scrollbar{display:none;}
body[data-page='home'] #home.chill-home .chill-mascot.overlive-logo-scene{
 margin-block:10px 18px;
}
@media(max-width:360px){
 body[data-page='home'] #home .chill-mascot .mascot-orbit{
  width:108%;height:108%;left:-4%;top:-4%;
 }
 body[data-page='home'] #home .chill-mascot .overlive-logo-smoke{inset:-8%;}
 body[data-page='home'] #home .chill-mascot .overlive-logo-smoke.crimson{inset:-10%;}
}
/* Existing animation pause/reduced-motion behavior remains untouched. */
@media(prefers-reduced-motion:reduce){
 body.rgb-theme .nav button{transition:none;}
}

/* In short landscape, recover vertical space from gaps, never from the
   requested mascot size or the44px touch targets. */
@media(max-height:500px) and (min-width:550px){
 body[data-page='home'] #home.chill-home{row-gap:0;padding-block:0;align-content:safe center;}
 body[data-page='home'] #home.chill-home .chill-mascot.overlive-logo-scene{margin-block:0;}
 body[data-page='home'] #home.chill-home .chill-actions{grid-template-rows:44px 44px 0;gap:4px 12px;}
 body[data-page='home'] #home .chill-actions>.chill-action:not([data-live-choice]){min-height:44px;padding-block:6px;}
}
