/* Shared fullscreen glass shell for demo PWAs */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  min-height: 100dvh;
  min-height: 100vh;
  height: 100%;
  color: #fff;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.app-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: calc(env(safe-area-inset-top, 0px) + 1rem) 1.25rem 0;
}

.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
}

.glass {
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 0.5px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
}

.bottom-nav {
  flex-shrink: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.375rem 0 calc(0.375rem + env(safe-area-inset-bottom, 0px));
  background: transparent;
  border: none;
}

.bottom-nav a,
.bottom-nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
  min-width: 56px;
  padding: 0.25rem 0.5rem;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font: inherit;
  font-size: 0.625rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.bottom-nav a.active,
.bottom-nav button.active {
  color: #fff;
}

.bottom-nav svg {
  width: 24px;
  height: 24px;
  opacity: 0.55;
}

.bottom-nav a.active svg,
.bottom-nav button.active svg {
  opacity: 1;
}

.page { display: none; flex: 1; flex-direction: column; min-height: 0; }
.page.active { display: flex; }
