/* How the app sits inside the website (loaded after app/app.css, which comes from the app repo).
   Phones: the app fills the screen exactly as designed for iPhone.
   Wide screens: the map fills the window and the controls float over it as glass panels. */
[hidden]{display:none!important}
:root{
  --display:"Outfit",ui-rounded,system-ui,sans-serif;
  --body:"DM Sans",ui-sans-serif,system-ui,-apple-system,sans-serif;
  color-scheme:light;
}
html,body.app-page{height:100%;margin:0;padding:0;overflow:hidden;background:#FFFFFF;overscroll-behavior:none}
body.app-page main{position:fixed;inset:0}
.app{position:absolute;inset:0;border-radius:0;
  padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}

/* way back to the home page */
.homebtn{flex:none;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--white);text-decoration:none}
.homebtn img{width:26px;height:26px;display:block}
.homebtn:focus-visible{outline:2px solid var(--pdeep);outline-offset:2px}
.homebtn--row{background:var(--g1)}
.homebtn--float{position:absolute;z-index:6;top:calc(env(safe-area-inset-top,0px) + 10px);right:14px;display:none;box-shadow:0 2px 8px rgba(0,0,0,.14)}
.top[hidden]~.homebtn--float,.homebtn--float:has(~.top[hidden]){display:grid}

@media (min-width:900px){
  .app{display:block;padding:0}
  .main{position:absolute;inset:0}

  .top,.filters,.tabs{position:absolute;z-index:9;left:50%;transform:translateX(-50%);
    border:1px solid rgba(255,255,255,.72);background:rgba(255,255,255,.66);
    box-shadow:0 20px 60px rgba(101,57,49,.14),inset 0 1px 0 rgba(255,255,255,.78);
    -webkit-backdrop-filter:blur(24px) saturate(1.15);backdrop-filter:blur(24px) saturate(1.15)}
  .top{top:20px;width:min(600px,calc(100% - 420px));min-width:440px;border-radius:26px;padding:14px 16px 12px}
  .filters{bottom:100px;max-width:calc(100% - 48px);border-radius:999px;padding:8px}
  .tabs{bottom:20px;border-radius:25px;padding:4px;overflow:hidden}
  .tabs button{padding:9px 0 8px;border-radius:20px}
  .tabs button[aria-current="true"]{background:rgba(255,255,255,.6)}
  .top .modes,.top .day,.top .scanbtn,.top .homebtn--row{background:rgba(255,255,255,.7)}
  .top .day[aria-pressed="true"]{background:var(--p1)}

  .homebtn--row{display:none}
  .homebtn--float,.top[hidden]~.homebtn--float{display:grid;top:20px;left:20px;right:auto;width:58px;height:58px;z-index:9;
    border:1px solid rgba(255,255,255,.72);background:rgba(255,255,255,.66);box-shadow:0 20px 60px rgba(101,57,49,.14);
    -webkit-backdrop-filter:blur(24px) saturate(1.15);backdrop-filter:blur(24px) saturate(1.15)}
  .homebtn--float img{width:34px;height:34px}

  .floatbar{top:28px;left:94px;right:20px}
  .zoom{top:84px;right:20px}
  .credit{left:20px;bottom:20px;font-size:11px}
  .sparko{right:20px;bottom:168px}
  .sparko img{width:92px}
  .bubble{max-width:240px;font-size:13.5px}

  /* event details: a card at the side instead of a bottom sheet */
  .sheet{z-index:12;left:20px;right:auto;bottom:20px;width:400px;max-height:calc(100% - 120px);border-radius:24px;
    padding:18px 20px 18px;box-shadow:0 20px 60px rgba(101,57,49,.22)}
  .sheet .grab{display:none}
  .recs{z-index:10;top:206px;left:50%;right:auto;transform:translateX(-50%);width:min(600px,calc(100% - 420px));min-width:440px;max-height:calc(100% - 420px)}

  /* list, My Events, Settings: one readable column */
  .panel{padding:36px max(24px,calc(50% - 300px)) 210px}
  #list{padding-top:190px}
  #shuffle{padding:36px max(24px,calc(50% - 230px)) 96px}
  .tabs{width:min(520px,calc(100% - 48px))}
  .panel h3{font-size:26px;margin-bottom:14px}
  .scan{padding:24px max(0px,calc(50% - 300px)) 40px}
  .splash{padding:72px 24px 40px}
  .splash .poster img{max-height:min(100%,62vh)}
}
