/* ============================================================
   Digital Menu — Clear · Attractive · Calm motion
   ============================================================ */

:root {
  --ink: #14201A;
  --soft: #5A6B63;
  --line: #D5E3DC;
  --bg: #EEF5F1;
  --bg-glow: #D8EEE4;
  --card: #FFFFFF;
  --accent: #0D7A5F;
  --accent-deep: #095C47;
  --accent-soft: #D4F0E5;
  --accent-glow: rgba(13, 122, 95, 0.22);

  --space: clamp(1rem, 2.5vw, 1.75rem);
  --gap: 1rem;
  --radius: 22px;
  --radius-sm: 14px;

  --font: "IBM Plex Sans Arabic", "Outfit", "Segoe UI", Tahoma, sans-serif;
  --display: "Outfit", "IBM Plex Sans Arabic", sans-serif;

  --name-size: 1.35rem;
  --name-secondary-size: 1rem;
  --price-size: 1.35rem;
  --tile-min: 178px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 6px 20px rgba(20, 32, 26, 0.07);
  --shadow-lift: 0 14px 32px rgba(13, 122, 95, 0.14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, var(--bg-glow), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(13, 122, 95, 0.06), transparent 50%),
    var(--bg);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.4;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.app {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
}

/* ---------- Header ---------- */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem var(--space) 0.35rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand__logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--ink);
  flex-shrink: 0;
  object-fit: cover;
  display: block;
  box-shadow: 0 8px 20px var(--accent-glow);
}

.brand__name {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.6vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.install-req-btn {
  min-height: 40px;
  padding: 0 1rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(145deg, var(--accent), var(--accent-deep));
  color: #fff;
  font-family: var(--display);
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 4px 14px var(--accent-glow);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.install-req-btn:active {
  transform: scale(0.96);
}

.install-req-btn[hidden] {
  display: none !important;
}

.lang-switch {
  display: flex;
  padding: 4px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: 999px;
  flex-shrink: 0;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.lang-btn {
  min-height: 40px;
  min-width: 88px;
  padding: 0 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--soft);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.2s var(--ease);
}

.lang-btn.is-active {
  background: linear-gradient(145deg, var(--accent), var(--accent-deep));
  color: #fff;
  box-shadow: 0 4px 14px var(--accent-glow);
}

/* ---------- Categories — creative clear chips ---------- */

.categories {
  display: flex;
  gap: 0.75rem;
  margin: 0 var(--space);
  padding: 0.85rem 0.85rem 1rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  flex-shrink: 0;
  scroll-snap-type: x mandatory;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(213, 227, 220, 0.9);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.categories::-webkit-scrollbar {
  display: none;
}

.category-btn {
  flex: 0 0 auto;
  min-height: 52px;
  padding: 0 1.45rem;
  border-radius: 999px;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.92);
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--ink);
  box-shadow: var(--shadow);
  scroll-snap-align: start;
  transition:
    background 0.28s var(--ease),
    color 0.28s var(--ease),
    border-color 0.28s var(--ease),
    transform 0.22s var(--ease),
    box-shadow 0.28s var(--ease);
}

.category-btn:active {
  transform: scale(0.96);
}

.category-btn.is-active {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow:
    0 8px 22px var(--accent-glow),
    0 0 0 4px rgba(13, 122, 95, 0.12);
}

/* ---------- Square tiles ---------- */

.main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0 var(--space) 0.75rem;
}

.menu-list {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.products-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--tile-min), 1fr));
  gap: var(--gap);
  align-content: start;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: auto;
  touch-action: pan-y;
  padding: 0.2rem 0 1.4rem;
  scrollbar-width: thin;
  scrollbar-color: #A8C4B8 transparent;
}

.products-grid::-webkit-scrollbar {
  width: 5px;
}

.products-grid::-webkit-scrollbar-thumb {
  background: #A8C4B8;
  border-radius: 999px;
}

.products-grid[hidden] {
  display: none !important;
}

.product-tile {
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  padding: 0;
  text-align: center;
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--line) 90%, var(--ink) 10%);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
  min-height: 0;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}

.product-tile::before {
  display: none;
}

@media (hover: hover) {
  .product-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
    border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  }
}

.product-tile:active {
  transform: scale(0.98);
}

.product-tile__media {
  flex: 0 0 58%;
  width: 100%;
  min-height: 0;
  position: relative;
  overflow: hidden;
  background: var(--fallback, #E9E5DF);
}

.product-tile__media.is-fallback::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--fallback, #E9E5DF);
}

.product-tile__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-tile__body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 0.65rem 0.7rem;
}

.product-tile__names {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-width: 0;
  width: 100%;
}

.product-tile__name-primary {
  font-family: var(--display);
  font-size: var(--name-size);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
}

.product-tile__name-secondary {
  font-size: var(--name-secondary-size);
  font-weight: 600;
  line-height: 1.2;
  color: var(--soft);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  word-break: break-word;
}

.product-tile__price {
  flex-shrink: 0;
  margin: 0;
  width: 100%;
  max-width: 100%;
  padding: 0.4rem 0.35rem;
  border-radius: 12px;
  background: var(--accent-soft);
  font-family: var(--display);
  font-size: var(--price-size);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--accent-deep);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.empty-state,
.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 40vh;
  padding: 2rem var(--space);
  text-align: center;
  color: var(--soft);
}

.empty-state[hidden],
.error-state[hidden] {
  display: none;
}

.error-state__retry {
  min-height: 48px;
  padding: 0 1.5rem;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--accent), var(--accent-deep));
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 8px 20px var(--accent-glow);
  transition: transform 0.2s var(--ease);
}

.error-state__retry:active {
  transform: scale(0.97);
}

.is-loading .menu-list {
  opacity: 0.55;
  pointer-events: none;
}

/* ---------- Breakpoints ---------- */

@media (max-width: 599px) {
  :root {
    --tile-min: 158px;
    --gap: 0.85rem;
    --name-size: 1.2rem;
    --name-secondary-size: 0.9rem;
    --price-size: 1.18rem;
  }

  .category-btn {
    min-height: 50px;
    font-size: 1.02rem;
  }
}

@media (min-width: 600px) {
  :root {
    --tile-min: 200px;
    --gap: 1.2rem;
    --name-size: 1.48rem;
    --name-secondary-size: 1.05rem;
    --price-size: 1.45rem;
  }

  .category-btn {
    min-height: 58px;
    font-size: 1.18rem;
    padding: 0 1.75rem;
  }
}

@media (min-width: 900px) {
  :root {
    --tile-min: 210px;
    --gap: 1.3rem;
    --name-size: 1.55rem;
    --name-secondary-size: 1.08rem;
    --price-size: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-tile,
  .category-btn,
  .lang-btn,
  .error-state__retry,
  .gallery,
  .gallery__panel,
  .gallery__img,
  .gallery__thumb {
    transition: none !important;
    animation: none !important;
  }

  .product-tile:hover {
    transform: none;
  }
}

/* ---------- Product gallery — true fullscreen + tablet lock ---------- */

.gallery {
  --gallery-thumbs-h: 7.5rem;
  --gallery-pad: 0.5rem;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10000;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  width: 100%;
  width: 100vw;
  width: 100dvw;
  height: 100%;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
  background: #0a100e;
}

.gallery[hidden] {
  display: none !important;
  pointer-events: none !important;
}

.gallery__backdrop {
  position: absolute;
  inset: 0;
  background: #0a100e;
}

.gallery__panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: minmax(0, 1fr) var(--gallery-thumbs-h);
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding:
    max(var(--gallery-pad), env(safe-area-inset-top, 0px))
    max(var(--gallery-pad), env(safe-area-inset-right, 0px))
    max(0.35rem, env(safe-area-inset-bottom, 0px))
    max(var(--gallery-pad), env(safe-area-inset-left, 0px));
  gap: 0.45rem;
  overflow: hidden;
  box-sizing: border-box;
}

.gallery__close {
  position: absolute;
  top: max(0.55rem, env(safe-area-inset-top, 0px));
  inset-inline-end: max(0.55rem, env(safe-area-inset-right, 0px));
  z-index: 5;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(20, 32, 26, 0.72);
  color: #fff;
  font-size: 1.9rem;
  line-height: 1;
  font-weight: 500;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.gallery__close:active {
  transform: scale(0.94);
}

.gallery__stage {
  grid-row: 1;
  min-width: 0;
  min-height: 0;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(15, 22, 19, 0.62);
  color: #fff;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.gallery__nav--prev {
  inset-inline-start: 0.5rem;
}

.gallery__nav--next {
  inset-inline-end: 0.5rem;
}

.gallery__nav:active {
  transform: translateY(-50%) scale(0.94);
}

.gallery__nav:disabled {
  opacity: 0.22;
  cursor: default;
  pointer-events: none;
}

.gallery__main {
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  background: var(--card);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
}

.gallery__media {
  min-height: 0;
  position: relative;
  background: #0f1613;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.gallery__media.is-fallback {
  background: var(--fallback, #E9E5DF);
}

.gallery__media.is-fallback::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.35), transparent 55%),
    var(--fallback, #E9E5DF);
}

.gallery__img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #0f1613;
  display: block;
  pointer-events: none;
}

.gallery__img[hidden] {
  display: none !important;
}

.gallery__info {
  flex: 0 0 auto;
  padding: 0.65rem 1rem 0.8rem;
  display: grid;
  gap: 0.12rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--card) 92%, var(--accent-soft)), var(--card));
  border-top: 1px solid color-mix(in srgb, var(--line) 85%, var(--ink) 15%);
  text-align: center;
}

.gallery__title {
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.4vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.gallery__subtitle {
  color: var(--soft);
  font-size: clamp(0.9rem, 1.6vw, 1.1rem);
  font-weight: 600;
}

.gallery__subtitle:empty {
  display: none;
}

.gallery__price {
  margin-top: 0.2rem;
  display: inline-flex;
  justify-self: center;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 800;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.gallery__thumbs {
  grid-row: 2;
  align-self: stretch;
  box-sizing: border-box;
  height: var(--gallery-thumbs-h);
  min-height: var(--gallery-thumbs-h);
  max-height: var(--gallery-thumbs-h);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.4rem 0.35rem 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: auto;
  touch-action: pan-x;
  scrollbar-width: thin;
  flex-shrink: 0;
}

.gallery__thumb {
  flex: 0 0 auto;
  width: 92px;
  height: 92px;
  border-radius: 16px;
  border: 2px solid transparent;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: var(--fallback, #E9E5DF);
  position: relative;
  scroll-snap-align: center;
  opacity: 0.78;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.gallery__thumb.is-fallback::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--fallback, #E9E5DF);
}

.gallery__thumb.is-active {
  opacity: 1;
  border-color: #fff;
  box-shadow: 0 0 0 3px var(--accent), 0 10px 24px rgba(0, 0, 0, 0.28);
}

.gallery__thumb.is-next {
  opacity: 1;
  border-color: color-mix(in srgb, #fff 70%, var(--accent));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

html.gallery-open,
body.gallery-open {
  overflow: hidden !important;
  overscroll-behavior: none;
  height: 100%;
}

body.gallery-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}

body.gallery-open .app {
  pointer-events: none;
  user-select: none;
}

body.gallery-open .gallery {
  pointer-events: auto;
  touch-action: manipulation;
}

body.gallery-open .gallery__thumbs {
  touch-action: pan-x;
}

@media (max-width: 599px) {
  .gallery {
    --gallery-thumbs-h: 6.6rem;
    --gallery-pad: 0.35rem;
  }

  .gallery__nav {
    width: 44px;
    height: 44px;
    font-size: 1.55rem;
  }

  .gallery__close {
    width: 46px;
    height: 46px;
  }

  .gallery__thumb {
    width: 74px;
    height: 74px;
  }

  .gallery__main {
    border-radius: 14px;
  }
}

@media (min-width: 600px) {
  .gallery {
    --gallery-thumbs-h: 8.25rem;
    --gallery-pad: 0.55rem;
  }

  .gallery__panel {
    width: 100%;
    height: 100%;
  }

  .gallery__main {
    border-radius: 20px;
  }

  .gallery__thumb {
    width: 100px;
    height: 100px;
    border-radius: 18px;
  }

  .gallery__thumbs {
    gap: 0.9rem;
  }

  .gallery__nav {
    width: 56px;
    height: 56px;
  }

  .gallery__close {
    width: 56px;
    height: 56px;
  }
}

@media (max-height: 700px) and (orientation: landscape) {
  .gallery {
    --gallery-thumbs-h: 6.5rem;
    --gallery-pad: 0.3rem;
  }

  .gallery__info {
    padding: 0.4rem 0.75rem 0.5rem;
  }

  .gallery__title {
    font-size: 1.1rem;
  }

  .gallery__subtitle {
    font-size: 0.82rem;
  }

  .gallery__price {
    font-size: 0.95rem;
    padding: 0.18rem 0.65rem;
  }

  .gallery__thumb {
    width: 68px;
    height: 68px;
  }
}

/* ---------- Optional install banner + toast + fullscreen cue ---------- */

.install-banner {
  position: fixed;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 90;
  width: min(calc(100% - 1.5rem), 480px);
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: #151210;
  color: #fff;
  box-shadow: 0 14px 36px rgba(21, 18, 16, 0.28);
}

.install-banner[hidden] {
  display: none !important;
}

.install-banner__inner {
  display: grid;
  gap: 0.75rem;
}

.install-banner__copy {
  display: grid;
  gap: 0.2rem;
}

.install-banner__copy strong {
  font-size: 0.98rem;
  font-weight: 800;
}

.install-banner__copy span {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.4;
}

.install-banner__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.install-banner__btn {
  min-height: 42px;
  padding: 0 1.15rem;
  border-radius: 999px;
  border: none;
  background: #fff;
  color: #151210;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
}

.install-banner__skip {
  min-height: 42px;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.install-banner__btn:active,
.install-banner__skip:active {
  transform: scale(0.97);
}

.install-banner__ios {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

.install-banner__ios[hidden] {
  display: none !important;
}

.install-banner__ios li + li {
  margin-top: 0.35rem;
}

.pwa-toast {
  position: fixed;
  left: 50%;
  bottom: max(5.5rem, calc(env(safe-area-inset-bottom) + 5rem));
  transform: translateX(-50%);
  z-index: 120;
  max-width: 92vw;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  background: #fff;
  color: #151210;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.pwa-toast[hidden] {
  display: none !important;
}

.fs-cue {
  position: fixed;
  top: max(0.75rem, env(safe-area-inset-top));
  inset-inline-end: 0.75rem;
  z-index: 40;
  min-height: 40px;
  padding: 0 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.fs-cue[hidden] {
  display: none !important;
}

html.is-app-mode .app {
  padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
}

body.has-install-banner .app {
  padding-bottom: max(7.5rem, calc(env(safe-area-inset-bottom) + 6.5rem));
}

/* Hide legacy gate / bar if leftover in cache */
.install-gate,
.pwa-bar {
  display: none !important;
}
