:root {
  --red: #970c11;
  --gold: #ffc822;
  --ink: #222222;
  --wash: #fff0f0;
  --char: #1c2024;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  font-family: Poppins, system-ui, sans-serif;
  background: #1c2024;
  color: #fff;
}
#scene {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
}
.top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  pointer-events: none;
}
.top[hidden] { display: none !important; }
.top a, .top button { pointer-events: auto; }
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}
.brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--red);
}
.brand span {
  font-family: Lobster, cursive;
  font-size: 22px;
  text-shadow: 0 2px 10px #0008;
}
.top-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font: 600 13px/1 Poppins, sans-serif;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-ghost { background: #ffffff22; color: #fff; backdrop-filter: blur(8px); }

#nav {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 6px;
  padding: 8px;
  background: #1c2024e6;
  border-radius: 999px;
  max-width: calc(100% - 16px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
#nav[hidden] { display: none !important; }
#nav button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: 600 12px/1 Poppins, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
#nav button.is-on { background: var(--red); }

#panel {
  position: fixed;
  z-index: 3;
  top: 80px;
  left: 16px;
  width: min(360px, calc(100% - 32px));
  padding: 20px 22px 22px;
  background: linear-gradient(180deg, #fff0f0f2, #fffffff2);
  color: var(--ink);
  border-radius: 18px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: 0.35s ease;
  box-shadow: 0 16px 40px #0004;
}
#panel.is-show { opacity: 1; transform: none; pointer-events: auto; }
.eyebrow {
  margin: 0 0 6px;
  color: var(--red);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
#panel h1 {
  font-family: Lobster, cursive;
  font-size: 32px;
  font-weight: 400;
  margin: 0 0 10px;
  color: var(--ink);
}
#panel p { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: #444; }
.phones a { color: var(--red); font-weight: 600; text-decoration: none; }
.cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 18px;
  background: var(--red);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
}

#hint {
  position: fixed;
  z-index: 3;
  bottom: 78px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

#dish-card {
  position: fixed;
  z-index: 5;
  right: 16px;
  bottom: 88px;
  width: min(320px, calc(100% - 32px));
  padding: 18px 20px;
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
  box-shadow: 0 12px 40px #0005;
}
#dish-card h2 { font-family: Lobster, cursive; margin: 0 0 8px; font-size: 26px; }
#dish-card .close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
}

#loading {
  position: fixed;
  inset: 0;
  z-index: 9;
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff;
  text-align: center;
  transition: opacity 0.5s ease;
}
#loading.is-done {
  opacity: 0;
  pointer-events: none;
}
#loading img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
}
#loading p { font-family: Lobster, cursive; font-size: 28px; margin: 12px 0 0; }

@media (max-width: 800px) {
  #panel {
    top: auto;
    bottom: 76px;
    left: 10px;
    right: 10px;
    width: auto;
    max-height: 34vh;
    overflow: auto;
  }
  #dish-card { bottom: 72px; }
  .brand span { font-size: 18px; }
}
