/* TicketRadar app feel: safe areas, install sheet, push nudge, standalone tab bar */
html{-webkit-tap-highlight-color:transparent}
body{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}
.cnote{margin-bottom:env(safe-area-inset-bottom)}
/* install / notification sheet */
.apsheet{position:fixed;left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom));z-index:70;max-width:460px;margin:0 auto;
 background:#16214a;color:#fff;border-radius:20px;box-shadow:0 18px 44px rgba(22,33,74,.35);padding:16px 16px 14px;font-size:14px;line-height:1.45;
 border-top:3px solid var(--gold,#fdb913);transform:translateY(130%);transition:transform .45s cubic-bezier(.2,1.2,.3,1)}
.apsheet.on{transform:none}
.apsheet .ah{display:flex;gap:12px;align-items:center;margin-bottom:8px}
.apsheet .ah img{width:46px;height:46px;border-radius:12px;flex:none;box-shadow:0 4px 12px rgba(0,0,0,.25)}
.apsheet .ah b{display:block;font-size:16px;line-height:1.2}.apsheet .ah small{color:#c9cfe6;font-size:12.5px}
.apsheet p{margin:0 0 10px;color:#e6e9f5}.apsheet p b{color:#fdb913}
.apsheet .x{position:absolute;top:8px;right:10px;background:none;border:0;color:#c9cfe6;font-size:22px;line-height:1;padding:6px;cursor:pointer}
.apsheet .acts{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.apsheet .btn{padding:11px 18px;font-size:15px;box-shadow:0 8px 20px rgba(224,20,30,.35)}
.apsheet .later{background:none;border:0;color:#c9cfe6;font:inherit;font-size:13.5px;text-decoration:underline;cursor:pointer;padding:8px}
.apsheet ol{margin:0 0 10px;padding:0;list-style:none;counter-reset:s}
.apsheet ol li{counter-increment:s;display:flex;gap:10px;align-items:center;margin:6px 0}
.apsheet ol li:before{content:counter(s);flex:none;width:22px;height:22px;border-radius:50%;background:#fdb913;color:#16214a;font-weight:800;font-size:12px;display:grid;place-items:center}
.apsheet .shr{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:6px;background:#fff;color:#0a64d8;vertical-align:middle;margin:0 2px}
.apsheet .arrow{position:absolute;left:50%;bottom:-9px;width:18px;height:18px;background:#16214a;transform:translateX(-50%) rotate(45deg)}
@media (min-width:821px){.apsheet{display:none}}
@media (prefers-reduced-motion:reduce){.apsheet{transition:none}}
/* standalone (installed app) */
.tabbar{display:none}
@media (display-mode:standalone){html,body{overscroll-behavior-y:none}}
html.standalone,html.standalone body{overscroll-behavior-y:none}
html.standalone nav.top{padding-top:env(safe-area-inset-top)}
html.standalone a,html.standalone button{-webkit-touch-callout:none;touch-action:manipulation}
@media (max-width:820px){
 html.standalone .tabbar{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;left:0;right:0;bottom:0;z-index:65;
  background:rgba(255,255,255,.96);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-top:1px solid var(--line,#f1e3d3);
  padding:6px env(safe-area-inset-right) calc(6px + env(safe-area-inset-bottom)) env(safe-area-inset-left);box-shadow:0 -6px 20px rgba(120,60,20,.08);user-select:none;-webkit-user-select:none}
 html.standalone .tabbar a{display:flex;flex-direction:column;align-items:center;gap:2px;text-decoration:none;color:#6b6470;font-size:11px;font-weight:600;padding:4px 0;position:relative}
 html.standalone .tabbar a svg{width:24px;height:24px}
 html.standalone .tabbar a.on{color:var(--red,#e0141e)}
 html.standalone .tabbar a.on:after{content:"";position:absolute;top:-6px;width:26px;height:3px;border-radius:0 0 3px 3px;background:var(--gold,#fdb913)}
 html.standalone body{padding-bottom:calc(64px + env(safe-area-inset-bottom))}
 html.standalone .apsheet{bottom:calc(74px + env(safe-area-inset-bottom))}
 html.standalone .toast{bottom:calc(84px + env(safe-area-inset-bottom))}
 html.standalone .cnote{bottom:calc(74px + env(safe-area-inset-bottom))}
 html.standalone .burger{display:none}
 html.standalone nav.top .wrap{height:56px}html.standalone nav.top .lockup{height:44px;width:auto}
}
