@font-face {
  font-family: "Kaiten Serif";
  src: url("assets/fonts/headline.ttf") format("truetype");
}
@font-face {
  font-family: "Kaiten Brush";
  src: url("assets/fonts/brand.ttf") format("truetype");
  font-style: italic;
}
@font-face {
  font-family: "Kaiten Sans";
  src: url("assets/fonts/sans.ttf") format("truetype");
  font-weight: 100 1000;
}
* { box-sizing: border-box; }
html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #1c2431;
  overscroll-behavior: none;
}
body {
  display: grid;
  place-items: center;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  font-family: "Kaiten Sans", sans-serif;
}
#orientation {
  margin: 24px;
  max-width: 280px;
  color: #f6e7c9;
  text-align: center;
}
#orientation h1 { font: 700 25px "Kaiten Sans", sans-serif; margin: 22px 0 8px; }
#orientation p { font-size: 16px; line-height: 1.45; margin: 0; }
.rotate-glyph {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 36px;
  border: 2px solid #c8bca6;
  border-radius: 8px;
  color: #78b9ac;
  font: 27px/1 Georgia, serif;
  transform: rotate(-12deg);
}
#stage {
  position: relative;
  width: min(100%, calc((100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom)) * 16 / 9));
  aspect-ratio: 16 / 9;
  overflow: hidden;
  isolation: isolate;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  container-type: size;
}
#scene, #targets {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
#targets { pointer-events: none; }
#showroom-search {
  position: absolute;
  z-index: 2;
  min-width: 0;
  padding: 0 1.1cqw 0 3.26cqw;
  margin: 0;
  border: 0;
  border-radius: .82cqw;
  outline-offset: -2px;
  background: transparent;
  appearance: none;
  color: #162e43;
  font: 690 clamp(9px, 1.43cqw, 20px)/1.15 "Kaiten Sans", sans-serif;
  user-select: text;
  -webkit-user-select: text;
}
#showroom-search::placeholder { color: #3d4d57; opacity: 1; }
#showroom-search:focus-visible { outline: 2px solid #294e69; }
/* Each target belongs to the painted object beneath it. Its outline is drawn in
   the scene for keyboard focus. Native semantics also work with a screen reader. */
#targets button {
  position: absolute;
  pointer-events: auto;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  appearance: none;
  outline: 0;
  cursor: pointer;
  touch-action: manipulation;
}
#targets button[aria-disabled="true"] { cursor: default; }
#targets input[type="range"] {
  position: absolute;
  pointer-events: auto;
  opacity: 0;
  appearance: none;
  margin: 0;
  padding: 0;
  cursor: pointer;
  touch-action: none;
}
#targets input[type="range"]::-webkit-slider-thumb { appearance: none; width: 1px; height: 40px; }
#targets input[type="range"]::-moz-range-thumb { width: 1px; border: 0; }
#targets button[data-zone^="remove-portion-"] { clip-path: inset(0 round .55cqw); }
/* Contorno de la tinta de recipe-cover.webp con dos unidades de margen.
   La esquina superior izquierda comparte espacio con el auricular. */
#targets button[data-zone="book"] {
  clip-path: polygon(3% 13%, 5.5% 8%, 10% 6%, 25% 4%, 52% 2.5%, 67% 2.5%, 69% 7%, 98% 78%, 98% 85%, 96% 91%, 88% 96%, 25% 97%, 23% 91%, 8% 41%, 3% 23%);
}
#loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 50% 40%,#334a4c 4%,#22383d 62%,#1b2d34);
  color: #302f31;
  z-index: 3;
}
#loading::before, #loading::after {
  content: '';
  position: absolute;
  inset: 2.3% 1.5%;
  border: 1px solid #8f8f74;
  pointer-events: none;
}
#loading::after { inset: 3.1% 2%; border-color: #657774; }
.opening-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 35%;
  height: 82%;
  background: radial-gradient(ellipse at 43% 28%,#fff3d9,#f4ddb0);
  box-shadow: 0 1cqh 2cqh #14232d80;
  border: 2px solid #cba87c;
  border-radius: 1.1cqh;
}
.opening-brand { font: italic 6.1cqw/1 "Kaiten Brush", Georgia, serif; color:#294b4e; }
.opening-chef { height: 44%; width: 76%; margin: 2cqh auto; object-fit: contain; }
#load-caption { margin: 1.1cqh 6% 2.2cqh; text-align: center; font: 650 2cqw/1.12 "Kaiten Sans",sans-serif; }
#load-progress { width: 65%; height: 1.4cqh; border: 0; border-radius: 5px; overflow: hidden; appearance: none; color:#40766f; background:#cbb68f; }
#load-progress::-webkit-progress-bar { background:#cbb68f; }
#load-progress::-webkit-progress-value { background:#40766f; }
#load-progress::-moz-progress-bar { background:#40766f; }
#load-retry {
  padding: 1.65cqh 3.3cqw 1.65cqh 2.8cqw;
  background: transparent url("assets/menu-v5/action-ticket.webp") center / 100% 100% no-repeat;
  border: 0;
  color: #fff2d6;
  font: 680 1.9cqw "Kaiten Sans",sans-serif;
  cursor: pointer;
}
#load-retry:focus-visible { outline: 3px solid #b65f32; outline-offset: 3px; }
noscript {
  position: absolute;
  top: 48%;
  left: 0;
  width: 100%;
  text-align: center;
  color: #f4e7c4;
  font: italic 26px Georgia, serif;
  pointer-events: none;
}
[hidden] { display: none !important; }
@media (orientation: portrait) {
  #stage { display: none; }
  #orientation[hidden] { display: block !important; }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
