html,
body {
  width: 100%;
  height: calc(var(--vh, 1vh) * 100);
  overflow: hidden;
  background: #F2EDE6;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
}

/* LOADER */
.loader-pizza {
  width: 88px;
  height: 88px;
}

.loader-bar {
  width: 152px;
}

/* MOBILE STAGE */
#stage {
  height: calc(var(--vh, 1vh) * 100);
  overflow: hidden;
  background: #F2EDE6;
}

#img-wrap {
  top: 72px;
  bottom: 150px;
  left: 0;
  right: 0;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scene-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  transform: scale(1.30);
  transform-origin: center center;
  transition:
    opacity 1.15s cubic-bezier(0.25, 1, 0.5, 1),
    transform 1.15s cubic-bezier(0.25, 1, 0.5, 1);
}

.scene-img.active {
  opacity: 1;
  transform: scale(1.24);
}

/* TOP FADE */
#stage::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 132px;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(242,237,230,0.98) 0%,
    rgba(242,237,230,0.84) 46%,
    rgba(242,237,230,0.00) 100%
  );
}

/* BOTTOM FADE */
#stage::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 245px;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(242,237,230,1) 0%,
    rgba(242,237,230,0.96) 38%,
    rgba(242,237,230,0.68) 70%,
    rgba(242,237,230,0.00) 100%
  );
}

/* BRAND */
#corner {
  left: 22px;
  right: 22px;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 230;
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}

.logo-slogan {
  margin-bottom: 7px;
  padding-left: 2px;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: rgba(26,24,20,0.72);
}

.logo-mesk {
  font-size: 52px;
  letter-spacing: 0.072em;
  line-height: 0.86;
}

#btns {
  margin-top: 18px;
  gap: 7px;
}

#btns button {
  height: 38px;
  min-width: 0;
  flex: 1;
  font-size: 10px;
  letter-spacing: 0.21em;
}

/* HOURS */
#hours {
  right: 20px;
  top: calc(20px + env(safe-area-inset-top));
  z-index: 230;
}

#hours .days {
  font-size: 9px;
  letter-spacing: 0.21em;
  margin-bottom: 4px;
  color: rgba(26,24,20,0.48);
}

#hours .time {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(26,24,20,0.72);
}

/* HIDE DESKTOP EXTRAS */
#socials,
#scene-note,
#scroll-bar {
  display: none;
}

#scroll-hint {
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  gap: 8px;
  z-index: 230;
}

#scroll-hint span {
  font-size: 8px;
  letter-spacing: 0.28em;
}

.hint-line {
  height: 28px;
}

/* MOBILE SCENE CLEANUP */
body.menu-open #corner,
body.about-open #corner,
body.contact-open #corner {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

body.menu-open #hours,
body.about-open #hours,
body.contact-open #hours,
body.menu-open #scroll-hint,
body.about-open #scroll-hint,
body.contact-open #scroll-hint {
  opacity: 0;
  pointer-events: none;
}

/* MENU BOTTOM SHEET */
#menu-card {
  left: 14px;
  right: 14px;
  top: auto;
  bottom: calc(14px + env(safe-area-inset-bottom));
  width: auto;
  max-height: 76vh;
  overflow-y: auto;
  padding: 30px 24px 28px;
  z-index: 260;
  transform: translateY(36px) rotate(0deg);
  border-radius: 0;
  -webkit-overflow-scrolling: touch;
}

#menu-card.visible {
  transform: translateY(0) rotate(0deg);
}

#menu-card::before {
  inset: 9px;
}

.menu-head {
  display: block;
  margin-bottom: 22px;
}

.menu-kicker {
  font-size: 9px;
  letter-spacing: 0.28em;
  margin-bottom: 8px;
}

.menu-title {
  font-size: 42px;
  letter-spacing: 0.075em;
}

.menu-short-note {
  margin-top: 11px;
  font-size: 12px;
}

.compact-menu-list {
  gap: 15px;
}

.compact-section-title {
  font-size: 9px;
  letter-spacing: 0.24em;
  margin-bottom: 7px;
}

.compact-menu-row {
  padding: 7px 0 8px;
}

.compact-menu-row strong {
  font-size: 17px;
}

.compact-menu-row span {
  font-size: 12px;
}

.compact-menu-row em {
  font-size: 14px;
}

.compact-menu-foot {
  margin-top: 16px;
  padding-top: 13px;
  font-size: 10px;
}

/* ABOUT BOTTOM SHEET */
#about-card {
  left: 14px;
  right: 14px;
  top: auto;
  bottom: calc(14px + env(safe-area-inset-bottom));
  width: auto;
  max-height: 76vh;
  overflow-y: auto;
  z-index: 260;
  padding: 30px 24px 28px;
  transform: translateY(36px) rotate(0deg);
  border-left: 3px solid rgba(160,91,63,0.78);
  -webkit-overflow-scrolling: touch;
}

#about-card.visible {
  transform: translateY(0) rotate(0deg);
}

#about-card::before {
  inset: 9px;
}

.about-kicker {
  font-size: 9px;
  letter-spacing: 0.28em;
  margin-bottom: 8px;
}

.about-title {
  font-size: 38px;
  letter-spacing: 0.045em;
  margin-bottom: 22px;
}

.about-copy p {
  font-size: 17px;
  line-height: 1.38;
  margin-bottom: 13px;
}

/* CONTACT BOTTOM SHEET */
#contact-card {
  left: 14px;
  right: 14px;
  top: auto;
  bottom: calc(14px + env(safe-area-inset-bottom));
  width: auto;
  max-height: 78vh;
  overflow-y: auto;
  z-index: 260;
  padding: 30px 24px 28px;
  transform: translateY(36px);
  -webkit-overflow-scrolling: touch;
}

#contact-card.visible {
  transform: translateY(0);
}

#contact-card::before {
  inset: 9px;
}

.contact-kicker {
  font-size: 9px;
  letter-spacing: 0.28em;
  margin-bottom: 8px;
}

.contact-title {
  font-size: 40px;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}

.contact-list {
  gap: 14px;
  margin-bottom: 22px;
}

.contact-list div {
  padding-bottom: 13px;
}

.contact-list span {
  font-size: 9px;
  letter-spacing: 0.24em;
}

.contact-list strong {
  font-size: 17px;
}

.contact-actions {
  gap: 7px;
  margin-bottom: 18px;
}

.contact-actions a {
  flex: 1;
  height: 39px;
  min-width: 0;
  padding: 0 12px;
  font-size: 10px;
  letter-spacing: 0.18em;
}

.contact-socials {
  flex-wrap: wrap;
  gap: 7px;
  font-size: 9px;
  letter-spacing: 0.18em;
  line-height: 1.6;
}

.site-credit {
  margin-top: 14px;
  font-size: 9px;
  letter-spacing: 0.18em;
}

/* SMALL PHONES */
@media (max-width: 380px) {
  #img-wrap {
    top: 66px;
    bottom: 144px;
  }

  .scene-img {
    transform: scale(1.26);
  }

  .scene-img.active {
    transform: scale(1.20);
  }

  #stage::after {
    height: 232px;
  }

  .logo-mesk {
    font-size: 46px;
  }

  .logo-slogan {
    font-size: 12px;
  }

  #btns button {
    height: 36px;
    font-size: 9px;
    letter-spacing: 0.18em;
  }

  .menu-title,
  .contact-title {
    font-size: 36px;
  }

  .about-title {
    font-size: 34px;
  }

  .about-copy p,
  .contact-list strong {
    font-size: 16px;
  }
}

/* SHORT SCREENS */
@media (max-height: 720px) and (max-width: 768px) {
  #img-wrap {
    top: 60px;
    bottom: 136px;
  }

  .scene-img {
    transform: scale(1.22);
  }

  .scene-img.active {
    transform: scale(1.16);
  }

  #stage::after {
    height: 218px;
  }

  #corner {
    bottom: calc(18px + env(safe-area-inset-bottom));
  }

  .logo-mesk {
    font-size: 46px;
  }

  #btns {
    margin-top: 14px;
  }

  #btns button {
    height: 36px;
  }

  #menu-card,
  #about-card,
  #contact-card {
    max-height: 82vh;
  }
}

/* LANDSCAPE MOBILE */
@media (max-width: 768px) and (orientation: landscape) {
  #img-wrap {
    top: 0;
    bottom: 0;
    left: 126px;
    right: 0;
  }

  .scene-img {
    object-fit: contain;
    object-position: center center;
    transform: scale(1.04);
  }

  .scene-img.active {
    transform: scale(1);
  }

  #stage::after {
    width: 40%;
    height: 100%;
    right: auto;
    top: 0;
    background: linear-gradient(
      to right,
      rgba(242,237,230,0.98) 0%,
      rgba(242,237,230,0.82) 54%,
      rgba(242,237,230,0.00) 100%
    );
  }

  #stage::before {
    height: 82px;
  }

  #corner {
    left: 20px;
    right: auto;
    bottom: 20px;
    width: 142px;
  }

  .logo-mesk {
    font-size: 38px;
  }

  .logo-slogan {
    font-size: 11px;
  }

  #btns {
    flex-direction: column;
    margin-top: 14px;
  }

  #btns button {
    width: 132px;
    flex: none;
  }

  #hours {
    top: 18px;
    right: 20px;
  }

  #menu-card,
  #about-card,
  #contact-card {
    left: auto;
    right: 20px;
    bottom: 18px;
    top: 18px;
    width: 420px;
    max-height: none;
  }
}