@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #1c110b;
  --panel: #2b1a11;
  --panel-2: #3d2417;
  --gold: #e2c48f;
  --gold-soft: #eedcb8;
  --text: #f7eedf;
  --muted: #c2ab8f;
  --border: #4d3121;
  --accent: #8a4229;
  --danger: #c44536;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  min-height: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(138,66,41,.35), transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(61,36,23,.9), transparent 45%),
    linear-gradient(180deg, #170e09 0%, #1c110b 40%, #21140d 100%);
  background-attachment: fixed;
}

.menu-app {
  max-width: 768px;
  width: 100%;
  margin: 0 auto;
  padding: 0 12px 40px;
  min-height: 100vh;
}

.header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 16px 18px;
  margin: 12px 0 14px;
  min-height: 140px;
  background:
    linear-gradient(135deg, rgba(61,36,23,.95), rgba(28,17,11,.92)),
    repeating-linear-gradient(45deg, transparent, transparent 8px, rgba(226,196,143,.04) 8px, rgba(226,196,143,.04) 16px);
  border: 1px solid var(--border);
  overflow: hidden;
}

.header::before,
.header::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.header::before {
  inset: 8px;
  border: 1px solid rgba(226,196,143,.35);
}

.header::after {
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15), transparent 40%, rgba(0,0,0,.25));
}

.logo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 340px;
}

.logo img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.6));
  animation: logoIn .8s ease both;
}

@keyframes logoIn {
  from { opacity: 0; transform: translateY(-8px) scale(.96); }
  to { opacity: 1; transform: none; }
}

.notice {
  position: relative;
  z-index: 1;
  text-align: center;
  color: rgba(247,238,223,.8);
  font-size: 11px;
  line-height: 1.45;
  margin-top: 12px;
  max-width: 420px;
  letter-spacing: .2px;
}

.menu-container {
  display: flex;
  overflow-x: clip;
  width: 100%;
  position: relative;
}

.back-btn {
  position: absolute;
  z-index: 5;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Outfit', sans-serif;
  display: none;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 6px 10px;
  background: rgba(0,0,0,.35);
  border: 1px solid var(--border);
  transition: color .2s, border-color .2s;
}

.back-btn.visible { display: flex; }
.back-btn:hover { color: var(--gold); border-color: var(--gold); }
.back-btn img { width: 16px; height: 16px; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 100%;
  min-width: 100%;
  padding-bottom: 24px;
  transform: translateX(0);
  transition: transform .32s ease;
}

.cat-grid.away { transform: translateX(-110%); }

.cat-card {
  position: relative;
  min-height: 130px;
  cursor: pointer;
  background:
    linear-gradient(160deg, var(--panel-2), var(--panel)),
    repeating-linear-gradient(90deg, transparent, transparent 12px, rgba(226,196,143,.04) 12px, rgba(226,196,143,.04) 13px);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s ease, border-color .25s, box-shadow .25s;
  animation: cardIn .5s ease both;
}

.cat-card:nth-child(1) { animation-delay: .02s; grid-column: 1 / -1; min-height: 200px; }
.cat-card:nth-child(2) { animation-delay: .06s; }
.cat-card:nth-child(3) { animation-delay: .1s; }
.cat-card:nth-child(4) { animation-delay: .14s; }
.cat-card:nth-child(5) { animation-delay: .18s; }
.cat-card:nth-child(n+6) { animation-delay: .22s; }
.cat-card:last-child:nth-child(even) { grid-column: 1 / -1; min-height: 110px; }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.cat-card::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(226,196,143,.25);
  pointer-events: none;
  transition: border-color .25s;
}

.cat-card:hover,
.cat-card:active {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.cat-card:hover::before { border-color: rgba(226,196,143,.55); }

.cat-card span {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 12px;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(15px, 3.8vw, 20px);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-soft);
  text-shadow: 0 2px 18px rgba(0,0,0,.8);
  line-height: 1.25;
}

.panel {
  width: 100%;
  min-width: 100%;
  padding: 0 4px 24px;
}

.panel.away { transform: translateX(-110%); }
.panel.hidden { display: none; }

.list-title {
  position: sticky;
  top: 0;
  z-index: 3;
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(16px, 4vw, 22px);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(122,58,37,.95);
  border: 1px solid var(--border);
  border-top: none;
  padding: 14px 92px;
  margin-bottom: 12px;
  backdrop-filter: blur(8px);
}

.dish {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(61,36,23,.6), rgba(28,17,11,.45));
  margin-bottom: 10px;
  padding: 14px 16px;
  transition: border-color .2s, background .2s;
  animation: dishIn .35s ease both;
}

@keyframes dishIn {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: none; }
}

.dish:hover { border-color: rgba(226,196,143,.4); }

.dish h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: clamp(16px, 3.5vw, 22px);
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.2;
}

.dish p {
  font-size: 12px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.45;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dish p:empty { display: none; }

.prices {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: baseline;
}

.prices li {
  font-size: 13px;
  color: var(--muted);
}

.prices .amount {
  color: var(--gold);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .3px;
}

.sub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.sub-card {
  position: relative;
  min-height: 100px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border);
  padding: 12px;
  transition: border-color .2s, transform .2s;
}

.sub-card::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(226,196,143,.2);
  pointer-events: none;
}

.sub-card:hover { border-color: var(--gold); transform: translateY(-1px); }

.sub-card span {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold-soft);
  line-height: 1.3;
}

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  letter-spacing: 2px;
  text-transform: uppercase;
}

  @media (max-width: 480px) {
  .logo img { height: 90px; }
  .header { min-height: 110px; padding: 18px 12px 14px; margin-top: 8px; }
  .cat-card { min-height: 120px; }
  .cat-card:nth-child(1) { min-height: 170px; }
}

/* --- Photos --- */
.cat-card.has-img,
.sub-card.has-img {
  background-size: cover !important;
  background-position: center !important;
}

.cat-card.has-img span,
.sub-card.has-img span {
  text-shadow: 0 2px 20px rgba(0,0,0,.95), 0 0 8px rgba(0,0,0,.8);
}

.dish {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0;
  min-height: 110px;
  overflow: hidden;
}

.dish.has-img .dish-img {
  width: 120px;
  min-width: 120px;
  height: auto;
  min-height: 110px;
  contain: size;
  object-fit: cover;
  display: block;
  background: #111;
}

.dish-body {
  flex: 1;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.dish:not(.has-img) .dish-body {
  padding: 14px 16px;
}

@media (max-width: 480px) {
  .dish.has-img .dish-img {
    width: 100px;
    min-width: 100px;
  }
}

.footer {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px 0 4px;
  font-size: 12px;
  color: var(--muted);
}

.footer a { color: var(--gold); text-decoration: none; }

.footer-credits {
  text-align: center;
  padding-bottom: 12px;
  font-size: 10px;
}

.footer-credits a { color: var(--muted); text-decoration: none; }

.credits-intro {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 4px 12px;
}

.credit {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(61,36,23,.6), rgba(28,17,11,.45));
  padding: 8px;
  margin-bottom: 8px;
}

.credit img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  flex-shrink: 0;
}

.credit div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11px;
  color: var(--muted);
  min-width: 0;
  overflow-wrap: anywhere;
}

.credit strong {
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  color: var(--text);
}

.credit a { color: var(--gold); text-decoration: none; }
