/* Darkorado Cloud: the Windows app's styles, made to work in a browser and on phones. */
body.web { zoom: var(--web-zoom, 1); }
body.web .wc, body.web .winctl { display: none !important; }
.web-tabs, .web-shade { display: none; }

@media (max-width: 860px) {
  body.web { display: block; --tb: 0px; height: 100dvh; }
  body.web #titlebar { display: none; }
  /* the sidebar becomes a menu that slides in */
  body.web .rail { position: fixed; z-index: 60; top: 0; left: 0; bottom: 0; width: min(300px, 84vw); height: 100dvh; transform: translateX(-105%); transition: transform .3s cubic-bezier(.2, .75, .2, 1); box-shadow: 30px 0 80px rgba(0, 0, 0, .55); padding-top: calc(18px + env(safe-area-inset-top, 0px)); background: rgba(var(--surf-lo), .97); }
  body.web.nav-open .rail { transform: none; }
  body.web .web-shade { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(3, 2, 8, .55); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .25s; }
  body.web.nav-open .web-shade { opacity: 1; pointer-events: auto; }
  body.web main { height: 100dvh; min-width: 0; }
  /* top bar: page name on the left, Start sniping on the right */
  body.web .topbar { padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px; gap: 10px; flex-wrap: nowrap; }
  body.web .title-wrap { min-width: 0; flex: 1; }
  body.web #pageTitle { font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body.web .page-sub, body.web .save-state, body.web #acctPills, body.web .acct-pills, body.web #discordBtn, body.web .update-chip { display: none !important; }
  body.web .topbar-right { gap: 8px; flex: none; }
  body.web #armBtn.arm { height: 40px; padding: 0 14px 0 12px; font-size: 13px; }
  body.web #armBtn.arm[data-state='armed'] { padding: 0 6px 0 12px; }
  body.web #armBtn .arm-time { display: none !important; }
  body.web .view { padding: 16px 14px calc(92px + env(safe-area-inset-bottom, 0px)); -webkit-overflow-scrolling: touch; }
  /* the tab bar at the bottom */
  body.web .web-tabs { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px)); background: rgba(var(--surf-lo), .94); backdrop-filter: blur(18px) saturate(140%); border-top: 1px solid var(--seam); }
  body.web .web-tabs button { display: grid; justify-items: center; gap: 3px; padding: 7px 0 5px; border: 0; border-radius: 12px; background: none; color: var(--dust); font: 500 11px var(--body); cursor: pointer; }
  body.web .web-tabs svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  body.web .web-tabs button[aria-current="page"] { color: var(--text); }
  body.web .web-tabs button[aria-current="page"] svg { color: var(--violet-hi); filter: drop-shadow(0 0 8px rgba(var(--a1), .6)); }
  /* content: one column */
  body.web .page > * + * { margin-top: 14px; }
  body.web .panel { padding: 16px; border-radius: 16px; }
  body.web .form-grid { grid-template-columns: 1fr !important; }
  body.web .row { flex-wrap: wrap; }
  body.web .spread { flex-wrap: wrap; gap: 10px; }
  body.web .rule-inner { grid-template-columns: 1fr !important; }
  body.web .master { flex-direction: column; align-items: stretch; gap: 12px; }
  body.web .sheet { width: 100% !important; max-width: 100% !important; max-height: 92dvh; border-radius: 22px 22px 0 0; margin-top: auto; }
  body.web .sheet-ov { align-items: flex-end; padding: 0; }
  body.web .tipcard { display: none !important; }
  body.web input, body.web select, body.web textarea { font-size: 16px; } /* no zoom-in on iPhone */
  body.web .live-head { flex-wrap: wrap; gap: 12px; }
  body.web .live-head > div[style] { min-width: calc(100% - 60px); }
  body.web .live-counts { width: 100%; justify-content: space-around; }
  body.web .support-card { flex-wrap: wrap; }
  body.web .support-card > div { flex: 1 1 200px; }
  body.web .support-card .btn { width: 100%; }
  body.web .news-card, body.web .intro-card { width: calc(100vw - 24px) !important; max-width: none !important; }
}
body:has(.intro) .web-tabs, body:has(.intro) .web-shade { display: none !important; }
