/* Page-level styles: layout on phones and desktops, the bottom bar and animations.
   Most element styles are inline in tensao-app.dc.html. */
body{margin:0;background:oklch(0.12 0.01 260);}
/* the page never scrolls: only the content inside the app does */
html,body{height:100%;overflow:hidden;overscroll-behavior:none;}
.app-stage{height:100vh;height:100dvh;min-height:0 !important;overflow:hidden;}
.app-stage [data-om-starter="ios-frame"]{height:min(874px, calc(100vh - 24px)) !important;height:min(874px, calc(100dvh - 24px)) !important;max-width:100%;}
.screen-body{min-height:0;overscroll-behavior:contain;}
/* bottom bar: tabs share the width equally and are easy to tap */
.app-tab{flex:1;min-width:0;min-height:50px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;cursor:pointer;}
.app-tab svg{width:23px;height:21px;}
.app-tab > div:last-child{font-size:clamp(9.5px, 2.85vw, 11px) !important;font-weight:600;white-space:nowrap;}
/* on a phone the app takes the whole screen, without the drawn iPhone around it */
@media (max-width:600px), (max-height:500px) and (pointer:coarse){
  .app-stage{padding:0 !important;}
  .app-stage [data-om-starter="ios-frame"]{width:100% !important;height:100% !important;border-radius:0 !important;box-shadow:none !important;}
  .app-stage [data-om-starter="ios-frame"] > div:nth-child(1),
  .app-stage [data-om-starter="ios-frame"] > div:nth-child(2),
  .app-stage [data-om-starter="ios-frame"] > div:last-child{display:none !important;}
  .app-header{padding-top:calc(14px + env(safe-area-inset-top)) !important;}
  .app-tabbar{padding-bottom:calc(8px + env(safe-area-inset-bottom)) !important;}
  .app-menu{bottom:calc(104px + env(safe-area-inset-bottom)) !important;}
}
a{color:oklch(0.75 0.13 175);text-decoration:none;}
a:hover{color:oklch(0.82 0.13 175);}
::-webkit-scrollbar{display:none}
@keyframes toastIn{from{opacity:0;transform:translate(-50%,12px)}to{opacity:1;transform:translate(-50%,0)}}
@keyframes menuIn{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.plus-halo{position:absolute;inset:-3px;border-radius:50%;border:2px solid oklch(0.88 0.14 90);animation:plusHalo 1.8s ease-out infinite;pointer-events:none;}
.streak-ring{animation:ringFill 1.1s ease-out;}
@keyframes plusHalo{0%{transform:scale(1);opacity:.9}100%{transform:scale(1.55);opacity:0}}
@keyframes ringFill{from{stroke-dasharray:0 440}}
@media (prefers-reduced-motion: reduce){.plus-halo{animation:none}.streak-ring{animation:none}}
@keyframes screenRightA{from{opacity:0;transform:translateX(36px)}to{opacity:1;transform:none}}
@keyframes screenRightB{from{opacity:0;transform:translateX(36px)}to{opacity:1;transform:none}}
@keyframes screenLeftA{from{opacity:0;transform:translateX(-36px)}to{opacity:1;transform:none}}
@keyframes screenLeftB{from{opacity:0;transform:translateX(-36px)}to{opacity:1;transform:none}}
@keyframes screenUpA{from{opacity:0;transform:translateY(26px)}to{opacity:1;transform:none}}
@keyframes screenUpB{from{opacity:0;transform:translateY(26px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion: reduce){.screen-body{animation:none !important}}
