:root {
  color-scheme: light;
  --phone-width: min(390px, 100vw);
  --poi-width: var(--phone-width);
  --poi-nav-height: calc(var(--phone-width) * 91 / 390);
  --tab-height: 44px;
  --menu-subnav-height: calc(var(--phone-width) * 48 / 390);
  --footer-height: calc(var(--phone-width) * 64 / 390);
  --content-height: 2295;
  --content-offset: -473;
  --actions-asset: url("./assets/place-actions.png");
  --asset: url("./assets/overview.png");
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, #4a4948 0, #272727 48%, #171717 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button {
  font: inherit;
}

.phone {
  position: relative;
  width: var(--phone-width);
  height: min(100svh, 844px);
  overflow: hidden;
  isolation: isolate;
  background: #fff;
  border-radius: 36px;
  box-shadow: 0 24px 80px rgb(0 0 0 / 45%);
}

.prototype {
  position: relative;
  height: 100%;
  opacity: 0;
  transition: opacity 180ms ease-out;
}

.prototype.is-ready {
  opacity: 1;
}

.image-crop {
  position: relative;
  width: 100%;
  background-image: var(--asset);
  background-repeat: no-repeat;
  background-size: 100% auto;
}

.tab-crop {
  position: sticky;
  top: var(--poi-nav-height);
  width: 100%;
  height: var(--tab-height);
  margin: 0;
  padding: 0;
  border-radius: 0;
  background-color: #81745f;
  overflow: hidden;
  z-index: 4;
}

.tab-crop .tabs-viewport {
  border-radius: 16px 16px 0 0;
}

.prototype.is-actions-docked .tab-crop .tabs-viewport {
  border-radius: 0;
}

.menu-subnav {
  position: sticky;
  top: calc(var(--poi-nav-height) + var(--tab-height));
  z-index: 2;
  display: none;
  align-items: flex-start;
  gap: calc(var(--phone-width) * 8 / 390);
  width: 100%;
  height: var(--menu-subnav-height);
  margin: 0;
  padding: calc(var(--phone-width) * 8 / 390) calc(var(--phone-width) * 16 / 390);
  overflow-x: auto;
  overflow-y: hidden;
  border: 0;
  background: #fff;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  touch-action: pan-x pan-y pinch-zoom;
  -webkit-overflow-scrolling: touch;
  user-select: none;
  -webkit-user-select: none;
}

.menu-subnav::-webkit-scrollbar {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .menu-subnav { cursor: grab; }
  .menu-subnav.is-dragging,
  .menu-subnav.is-dragging .menu-category { cursor: grabbing; }
}

.prototype[data-tab="menu"] .menu-subnav {
  display: flex;
  border-radius: 0;
}

.menu-category {
  flex: 0 0 auto;
  height: calc(var(--phone-width) * 32 / 390);
  min-height: 32px;
  padding: 0 calc(var(--phone-width) * 12 / 390);
  border: 0.5px solid rgb(0 0 0 / 17%);
  border-radius: 999px;
  color: #000;
  background: #fff;
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.menu-category[aria-selected="true"] {
  border: 1.3px solid #000;
}

.menu-category:focus-visible {
  outline: 2px solid #fe2c55;
  outline-offset: 2px;
}

.page-scroll {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

.page-scroll::-webkit-scrollbar {
  display: none;
}

.content-art {
  height: calc(var(--phone-width) * var(--content-height) / 390);
  min-height: calc(var(--phone-width) * 680 / 390);
  overflow: hidden;
  background-color: #fff;
  background-position: center calc(var(--phone-width) * var(--content-offset) / 390);
}

.prototype[data-tab="menu"] .content-art {
  height: auto;
  background-image: none;
}

.prototype[data-tab="recommendations"] .content-art {
  display: none;
}

.recommendations {
  position: relative;
  display: none;
  width: 100%;
  background: #fff;
}

.prototype[data-tab="overview"] .recommendations,
.prototype[data-tab="recommendations"] .recommendations {
  display: block;
}

.recommendations-art {
  display: block;
  width: 100%;
  height: auto;
}

.menu-catalog[hidden] {
  display: none !important;
}

.prototype:not([data-tab="menu"]) .menu-catalog {
  display: none;
}

.menu-catalog {
  display: block;
  min-height: calc(var(--phone-width) * 1452 / 390);
  padding: 0;
  color: #000;
  background: #fff;
}

.menu-catalog-art {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.menu-community {
  display: flex;
  align-items: center;
  width: calc(100% - 30px);
  height: 36px;
  margin: 0 15px 12px;
  padding: 8px 4px 8px 8px;
  color: rgb(0 0 0 / 65%);
  background: linear-gradient(90deg, #fff 18%, #f8f8f8 100%);
  font-size: 14px;
  line-height: 18px;
  white-space: nowrap;
}

.community-avatars {
  display: flex;
  flex: 0 0 auto;
  width: 56px;
  margin-right: 4px;
}

.community-avatars img {
  width: 56px;
  height: 20px;
  border: 0;
  object-fit: contain;
}

.menu-featured-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 16px;
}

.menu-featured {
  position: relative;
  height: 228px;
  color: #ffeded;
}

.menu-featured:nth-child(2) {
  color: #fff8e1;
}

.menu-featured:nth-child(3) {
  color: #fff0e2;
}

.menu-featured:nth-child(4) {
  color: #f2f7eb;
}

.menu-featured-shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  color: inherit;
}

.menu-featured-rank {
  position: absolute;
  top: 17px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 1px;
  color: #a34c54;
  font-size: 15px;
  font-weight: 600;
  line-height: 15px;
}

.menu-featured:nth-child(2) .menu-featured-rank {
  color: #6e5303;
}

.menu-featured:nth-child(3) .menu-featured-rank {
  color: #92480f;
}

.menu-featured:nth-child(4) .menu-featured-rank {
  color: #50783b;
}

.rank-flame {
  width: 13px;
  height: 13px;
  color: #fe8a00;
  fill: currentColor;
}

.menu-featured-media {
  position: absolute;
  top: 2px;
  right: -9px;
  z-index: 1;
  width: 124px;
  height: 124px;
  overflow: hidden;
  border-radius: 999px;
  box-shadow: inset 0 0 0 0.5px rgb(0 0 0 / 5%);
  clip-path: circle(50% at 50% 50%);
  isolation: isolate;
}

.menu-featured-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.menu-featured-media.needs-inset-crop img {
  transform: scale(1.45);
}

.menu-featured-copy {
  position: absolute;
  top: 127px;
  right: 12px;
  left: 12px;
  z-index: 2;
}

.menu-featured h3,
.menu-row h3 {
  overflow: hidden;
  margin: 0;
  color: #000;
  font-size: 15px;
  font-weight: 600;
  line-height: 19.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-featured p,
.menu-row p {
  display: -webkit-box;
  overflow: hidden;
  margin: 2px 0 0;
  color: rgb(0 0 0 / 65%);
  font-size: 12px;
  line-height: 15.6px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.dish-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}

.dish-price {
  color: #000;
  font-size: 15px;
  font-weight: 600;
  line-height: 19.5px;
}

.dish-likes {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: rgb(0 0 0 / 48%);
  font-size: 13px;
  line-height: 17px;
  white-space: nowrap;
}

.like-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.menu-list {
  display: grid;
  gap: 16px;
  margin-top: 20px;
  padding: 0 16px;
}

.menu-row {
  display: grid;
  grid-template-columns: 106px minmax(0, 1fr);
  gap: 16px;
  height: 106px;
}

.menu-row-media {
  position: relative;
  width: 106px;
  height: 106px;
}

.menu-row-media img {
  width: 106px;
  height: 106px;
  border-radius: 12px;
  object-fit: cover;
}

.menu-photo-count {
  position: absolute;
  right: 4px;
  bottom: 4px;
  min-width: 25px;
  height: 18px;
  padding: 2px 6px;
  border-radius: 6px;
  color: #fff;
  background: rgb(0 0 0 / 48%);
  font-size: 11px;
  font-weight: 600;
  line-height: 14px;
  text-align: center;
}

.menu-row-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 7px 0 8px;
}

.menu-row .dish-meta {
  margin-top: auto;
}

.footer-crop {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: var(--footer-height);
  visibility: hidden;
  background-color: #fff;
  background-image: var(--actions-asset);
  background-position:
    calc(var(--phone-width) * 16 / 390)
    calc(var(--phone-width) * 8 / 390);
  background-size:
    calc(var(--phone-width) * 604 / 390)
    calc(var(--phone-width) * 32 / 390);
  pointer-events: none;
  transform: translateY(100%);
  transition:
    visibility 0s linear 180ms,
    transform 180ms ease-out;
  z-index: 3;
}

.prototype.is-actions-docked .footer-crop {
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}

.footer-clearance {
  height: var(--footer-height);
  background: #fff;
}

.hit-area {
  position: absolute;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: transparent;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.hit-area:focus-visible {
  outline: 2px solid #fe2c55;
  outline-offset: -3px;
}

.hit-area:active {
  background: rgb(255 255 255 / 8%);
}

.back-hit {
  top: calc(var(--phone-width) * 48 / 390);
  left: 0;
  width: calc(var(--phone-width) * 64 / 390);
  height: calc(var(--phone-width) * 58 / 390);
}

.section-hit {
  left: 0;
  width: 100%;
  display: none;
}

.prototype[data-tab="overview"] .section-hit {
  display: block;
}

.menu-section-hit {
  top: 0;
  height: calc(var(--phone-width) * 245 / 390);
}

.deals-section-hit {
  top: calc(var(--phone-width) * 660 / 390);
  height: calc(var(--phone-width) * 294 / 390);
}

.people-section-hit {
  top: calc(var(--phone-width) * 954 / 390);
  height: calc(var(--phone-width) * 774 / 390);
}

.recommendations-section-hit {
  inset: 0;
  height: 100%;
  z-index: 1;
}

.loading,
.error-state {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 32px;
  text-align: center;
  color: #343434;
  background: #fff;
  font-size: 14px;
  line-height: 1.5;
}

.loading {
  z-index: 10;
}

.error-state {
  z-index: 11;
}

.loading[hidden],
.error-state[hidden] {
  display: none;
}

@media (max-width: 390px) {
  .phone {
    height: 100svh;
    border-radius: 0;
    box-shadow: none;
  }

}

@media (prefers-reduced-motion: reduce) {
  .prototype,
  .footer-crop {
    transition: none;
  }
}
