.menu-page {
  background: #fffcf7;
}

.menu-screen {
  background: #fffcf7;
  color: #000;
  transition: opacity .32s ease, filter .32s ease;
}

.menu-screen.is-loading,
.menu-screen.is-changing {
  opacity: 0;
  filter: blur(8px);
}

.menu-header {
  position: absolute;
  inset: 0 0 auto;
  height: 262px;
  background: #fffcf7;
}

.menu-back {
  position: absolute;
  top: 48px;
  left: 80px;
  width: 372px;
  height: 68px;
  animation: menu-fade-in .65s ease both;
}

.menu-back svg {
  position: relative;
  top: 5px;
}

.menu-header h1 {
  position: absolute;
  top: 150px;
  left: 80px;
  width: 924px;
  height: 63px;
  margin: 0;
  font-size: 55px;
  font-weight: 400;
  line-height: 1;
  animation: menu-rise-in .75s .12s ease both;
}

.menu-screen.is-listing .menu-header h1 {
  left: 73px;
  width: 566px;
  height: 84px;
  font-size: 73px;
  text-align: center;
}

.menu-next {
  position: absolute;
  top: 172px;
  right: 85px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: #d9d9d9;
  font-size: 50px;
  line-height: 1;
  transition: color .3s ease;
}

.menu-next svg {
  flex: none;
  width: 34px;
  height: 20px;
  transition: transform .3s ease;
}

.menu-next:hover,
.menu-next:focus-visible {
  color: #777;
}

.menu-next:hover svg,
.menu-next:focus-visible svg {
  transform: translateX(7px);
}

.menu-zones {
  position: absolute;
  top: 262px;
  left: 0;
  display: grid;
  width: 1920px;
  height: 493px;
  grid-template-columns: repeat(3, 640px);
}

.menu-zone {
  position: relative;
  display: block;
  width: 640px;
  height: 493px;
  overflow: hidden;
  border: 2px solid #fff;
  padding: 0;
  background: #52545a;
  color: #fff;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  animation: menu-card-in .85s calc(.22s + var(--zone-order) * .15s) cubic-bezier(.2,.7,.2,1) both;
}

.menu-zone__image-track {
  position: absolute;
  inset: 0;
  display: block;
  animation: menu-image-drift var(--drift-duration) ease-in-out infinite alternate;
}

.menu-zone__image-track img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .8s ease;
}

.menu-zone:hover img,
.menu-zone:focus-visible img,
.menu-zone.is-selected img {
  filter: brightness(1.18);
  transform: scale(1.08);
}

.menu-zone__label {
  position: absolute;
  top: 64px;
  left: 78px;
  z-index: 1;
  display: block;
  width: 337px;
  font-size: 60px;
  font-weight: 400;
  line-height: 1;
  transition: transform .5s ease, text-shadow .5s ease;
}

.menu-zone:hover .menu-zone__label,
.menu-zone:focus-visible .menu-zone__label,
.menu-zone.is-selected .menu-zone__label {
  transform: translateY(-7px);
  text-shadow: 0 4px 18px rgb(0 0 0 / 55%);
}

.menu-zone::after {
  position: absolute;
  inset: 0;
  border: 6px solid #fff;
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}

.menu-zone.is-selected::after,
.menu-zone:focus-visible::after {
  opacity: 1;
}

.menu-zones.is-place-list {
  display: block;
  overflow: hidden;
}

.place-list__track {
  display: flex;
  width: 1920px;
  height: 493px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-x;
}

.place-list__track::-webkit-scrollbar {
  display: none;
}

.place-card {
  position: relative;
  flex: 0 0 calc(1920px / var(--visible-count));
  height: 493px;
  overflow: hidden;
  border: 2px solid #fff;
  padding: 0;
  background: #52545a;
  color: #fff;
  text-align: left;
  cursor: pointer;
  scroll-snap-align: start;
  touch-action: manipulation;
  animation: menu-card-in .8s calc(.08s + var(--card-order) * .11s) cubic-bezier(.2,.7,.2,1) both;
}

.place-card__image-track {
  position: absolute;
  inset: 0;
  display: block;
  animation: menu-image-drift 17s ease-in-out infinite alternate;
}

.place-card__image-track img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .8s ease;
}

.place-card:hover img,
.place-card:focus-visible img,
.place-card.is-selected img {
  filter: brightness(1.18);
  transform: scale(1.08);
}

.place-card__label {
  position: absolute;
  top: 64px;
  left: 78px;
  z-index: 1;
  display: block;
  width: 331px;
  font-size: 50px;
  font-weight: 400;
  line-height: 1;
  transition: transform .5s ease, text-shadow .5s ease;
}

.place-card__label-line {
  display: block;
  white-space: nowrap;
}

.place-card:hover .place-card__label,
.place-card:focus-visible .place-card__label,
.place-card.is-selected .place-card__label {
  transform: translateY(-7px);
  text-shadow: 0 4px 18px rgb(0 0 0 / 55%);
}

.place-card::after {
  position: absolute;
  inset: 0;
  border: 6px solid #fff;
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}

.place-card.is-selected::after,
.place-card:focus-visible::after {
  opacity: 1;
}

.place-list__scroll {
  position: absolute;
  top: 210px;
  z-index: 2;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 65%);
  border-radius: 50%;
  background: rgb(0 0 0 / 50%);
  color: #fff;
  font-size: 58px;
  line-height: 1;
  cursor: pointer;
  transition: background .3s ease, transform .3s ease;
}

.place-list__scroll:hover,
.place-list__scroll:focus-visible {
  background: rgb(0 0 0 / 75%);
  transform: scale(1.08);
}

.place-list__scroll--prev { left: 24px; }
.place-list__scroll--next { right: 24px; }

.place-list__empty {
  margin: 80px;
  font-size: 38px;
}

.place-list__retry {
  margin-left: 80px;
  border: 1px solid #fff;
  padding: 16px 24px;
  background: #000;
  color: #fff;
  font: inherit;
  font-size: 30px;
  cursor: pointer;
}

.menu-register {
  position: absolute;
  inset: 756px 0 0;
  background: #000;
  color: #fff;
  animation: menu-footer-in .85s .65s ease both;
}

.menu-register__question {
  position: absolute;
  top: 75px;
  left: 80px;
  width: 820px;
  height: 114px;
  margin: 0;
  font-size: 50px;
  font-weight: 400;
  line-height: 1;
}

.menu-register__detail {
  position: absolute;
  top: 207px;
  left: 80px;
  width: 1328px;
  height: 46px;
  margin: 0;
  font-size: 40px;
  font-weight: 300;
  line-height: 1;
}

.menu-register__cta {
  position: absolute;
  top: 178px;
  left: 1482px;
  display: grid;
  width: 353px;
  height: 75px;
  place-items: center;
  border-radius: 10px;
  background: #fff;
  color: #000;
  font-size: 35px;
  font-weight: 400;
  line-height: 1;
  animation: menu-cta-glow 3.6s 1.5s ease-in-out infinite;
}

.menu-register__cta:focus-visible {
  outline-color: #000;
  outline-offset: -6px;
}

.menu-screen.is-detail,
.place-detail {
  background: #000;
  color: #fff;
}

.place-detail,
.place-detail__body {
  position: absolute;
  inset: 0;
}

.place-detail__back {
  position: absolute;
  top: 65px;
  left: 80px;
  width: 372px;
  height: 34px;
}

.place-detail__navigation svg {
  flex: none;
  width: 85px;
  height: 16px;
  transition: transform .3s ease;
}

.place-detail__previous:not(:disabled):hover svg,
.place-detail__previous:focus-visible svg {
  transform: translateX(-8px);
}

.place-detail__next:not(:disabled):hover svg,
.place-detail__next:focus-visible svg {
  transform: translateX(8px);
}

.place-detail__panel {
  position: absolute;
  top: 161px;
  left: 80px;
  display: flex;
  width: 1757px;
  height: 740px;
  overflow: hidden;
  background: #fff;
  color: #000;
  animation: menu-card-in .65s ease both;
}

.place-detail__image {
  display: block;
  flex: 0 0 612px;
  width: 612px;
  height: 740px;
  object-fit: cover;
}

.place-detail__article {
  position: relative;
  flex: 1;
  min-width: 0;
  background: #fff;
}

.place-detail__title {
  position: absolute;
  top: 47px;
  left: 68px;
  right: 30px;
  margin: 0;
  font-size: 60px;
  font-weight: 400;
  line-height: 1;
}

.place-detail__state {
  position: absolute;
  top: 136px;
  left: 68px;
  right: 30px;
  margin: 0;
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
}

.place-detail__description {
  position: absolute;
  top: 215px;
  right: 23px;
  bottom: 25px;
  left: 68px;
  overflow: auto;
  padding-right: 30px;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.17;
  scrollbar-color: #c7c7c7 transparent;
  scrollbar-width: thin;
  overscroll-behavior: contain;
}

.place-detail__description p {
  margin: 0 0 30px;
  text-align: justify;
}

.place-detail__description p:last-child {
  margin-bottom: 0;
}

.place-detail__term {
  display: inline;
  border: 1px solid #ff12d4;
  border-radius: 6px;
  padding: 0 2px;
  background: none;
  color: #000;
  font: inherit;
  line-height: inherit;
  cursor: pointer;
  transition: background .25s ease, box-shadow .25s ease;
}

.place-detail__term:hover,
.place-detail__term:focus-visible {
  background: #ffb8eb;
  box-shadow: 0 0 0 3px rgb(255 18 212 / 20%);
}

.place-detail__term.is-active {
  background: transparent;
  color: #ff12d4;
  box-shadow: none;
}

.place-detail__navigation {
  position: absolute;
  top: 960px;
  left: 588px;
  display: flex;
  width: 744px;
  height: 34px;
}

.place-detail__navigation button {
  display: flex;
  width: 372px;
  height: 34px;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 35px;
  line-height: 1;
  cursor: pointer;
}

.place-detail__navigation button:disabled {
  opacity: .4;
  cursor: default;
}

.place-detail__navigation .place-detail__next {
  justify-content: flex-end;
}

.glossary-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  animation: menu-fade-in .25s ease both;
}

.glossary-cutout {
  position: absolute;
  border-radius: 6px;
  box-shadow: 0 0 0 2000px rgb(0 0 0 / 60%);
  pointer-events: none;
}

.glossary-popup {
  position: absolute;
  top: 0;
  left: 0;
  width: 428px;
  max-height: calc(100% - 48px);
  overflow: auto;
  border: 1px solid #ffb8eb;
  border-radius: 8px;
  padding: 48px 26px 26px;
  background: #fff;
  color: #000;
  box-shadow: 0 20px 60px rgb(0 0 0 / 25%);
  animation: menu-rise-in .28s ease both;
}

.glossary-popup h3 {
  margin: 0 0 16px;
  font-size: 35px;
  font-weight: 400;
  line-height: 1;
}

.glossary-popup p {
  margin: 0;
  font-size: 27px;
  line-height: 1.13;
}

.glossary-popup__close {
  position: absolute;
  top: 17px;
  right: 19px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #000;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}

.glossary-popup__close span {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}

@keyframes menu-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes menu-rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes menu-card-in {
  from { opacity: 0; transform: translateY(35px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes menu-image-drift {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

@keyframes menu-footer-in {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes menu-cta-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgb(255 255 255 / 0%); }
  50% { box-shadow: 0 0 0 8px rgb(255 255 255 / 12%); }
}

@media (prefers-reduced-motion: reduce) {
  .menu-screen {
    transition: none;
  }

  .menu-back,
  .menu-header h1,
  .menu-zone,
  .menu-zone__image-track,
  .place-card,
  .place-card__image-track,
  .menu-register,
  .menu-register__cta,
  .place-detail__panel,
  .glossary-overlay,
  .glossary-popup {
    animation: none;
  }

  .menu-back svg,
  .menu-next,
  .menu-next svg,
  .menu-zone__image-track img,
  .menu-zone__label,
  .menu-zone::after,
  .place-card__image-track img,
  .place-card__label,
  .place-card::after,
  .place-list__scroll,
  .place-detail__back svg,
  .place-detail__navigation svg,
  .place-detail__term {
    transition: none;
  }
}
