:root {
  --bg: #101013;
  --bg-soft: #17171c;
  --bg-me: #262117;
  --line: #2a2a32;
  --cream: #f0e9d8;
  --muted: #9a9485;
  --gold: #c9a45c;
  --gold-soft: rgba(201, 164, 92, 0.14);
}

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

[hidden] { display: none !important; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

.wrap {
  max-width: 620px;
  margin: 0 auto;
  padding: 48px 20px 40px;
}

/* Hero */
.hero { text-align: center; margin-bottom: 40px; }
.kicker {
  font-size: 12px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(34px, 6.5vw, 50px);
  font-weight: 700;
  line-height: 1.1;
}
.sub {
  margin-top: 10px;
  color: var(--muted);
  font-style: italic;
  font-family: "Playfair Display", serif;
  font-size: 17px;
}

.ig-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 10px 20px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s;
}
.ig-link:hover { background: var(--gold-soft); }
.ig-link svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }

/* Chat */
#chat { display: flex; flex-direction: column; gap: 12px; min-height: 120px; }

.msg {
  max-width: 85%;
  padding: 11px 16px;
  border-radius: 16px;
  animation: rise 0.35s ease both;
  white-space: pre-wrap;
}
.msg.them {
  align-self: flex-start;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
  font-family: "Playfair Display", serif;
  font-size: 17px;
}
.msg.me {
  align-self: flex-end;
  background: var(--bg-me);
  border: 1px solid rgba(201, 164, 92, 0.35);
  border-bottom-right-radius: 4px;
  color: var(--gold);
  font-size: 15px;
}

.msg.typing { display: flex; gap: 5px; padding: 16px 18px; }
.msg.typing span {
  width: 6px; height: 6px;
  background: var(--muted);
  border-radius: 50%;
  animation: blink 1.2s infinite;
}
.msg.typing span:nth-child(2) { animation-delay: 0.2s; }
.msg.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }

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

/* Dock (answer area) — Back and Skip live on their own row underneath, so
   they can never be squeezed off a narrow screen. */
#dock { margin-top: 20px; }

#dockActions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  min-height: 1px;
}
#dockActions:empty { display: none; }
#textSkip { margin-left: auto; }

#backBtn {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  height: 38px;
  padding: 0 14px;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
}
#backBtn:hover { border-color: var(--gold); color: var(--gold); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; animation: rise 0.35s ease both; }
.chips button {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--cream);
  font: inherit;
  font-size: 14px;
  padding: 9px 18px;
  cursor: pointer;
  transition: all 0.15s;
}
.chips button:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-soft);
}

#textDock { display: flex; gap: 8px; animation: rise 0.35s ease both; }
#textInput {
  flex: 1;
  min-width: 0; /* let it shrink on narrow screens instead of overflowing */
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--cream);
  font: inherit;
  font-size: 15px;
  padding: 11px 18px;
  transition: border-color 0.2s;
}
#textInput:focus { outline: none; border-color: var(--gold); }
::placeholder { color: #5c5749; font-style: italic; }

#textSend {
  background: var(--gold);
  border: none;
  border-radius: 50%;
  width: 46px; height: 46px;
  color: #17130a;
  font-size: 20px;
  cursor: pointer;
  flex-shrink: 0;
  transition: filter 0.2s;
}
#textSend:hover { filter: brightness(1.1); }

#textSkip {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  padding: 0 16px;
  cursor: pointer;
  flex-shrink: 0;
}
#textSkip:hover { border-color: var(--gold); color: var(--gold); }

/* Result cards (inside chat) */
.card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
  animation: rise 0.45s ease both;
}
.main-card { border-color: var(--gold); }
.card-kicker {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.card h2 { font-family: "Playfair Display", serif; font-size: 28px; }
.area { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.dish, .order { font-size: 14px; margin-top: 8px; }
.dish span, .order span {
  display: inline-block;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 11px;
  margin-right: 6px;
}
.dish em { font-style: normal; font-weight: 600; }
.order em { font-style: normal; color: var(--muted); }
.why { margin-top: 12px; color: var(--muted); font-size: 14px; }

.actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.book-btn {
  display: inline-block;
  background: var(--gold);
  color: #17130a;
  border-radius: 999px;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: filter 0.15s;
}
.book-btn:hover { filter: brightness(1.1); }

.map-btn {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition: all 0.15s;
}
.map-btn:hover { border-color: var(--gold); color: var(--gold); }

/* Share row — sits under the cards like a quiet aside */
.share-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  animation: rise 0.4s ease both;
  margin-top: 4px;
}
.share-btn {
  background: var(--gold);
  border: none;
  border-radius: 999px;
  color: #17130a;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  cursor: pointer;
  text-decoration: none;
  transition: filter 0.15s;
}
.share-btn:hover { filter: brightness(1.1); }
.share-btn.ghost-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 400;
}
.share-btn.ghost-btn:hover { border-color: var(--gold); color: var(--gold); filter: none; }

/* Sponsored slot: clearly labeled, barely a shade apart from the other cards */
.sponsored-card {
  background: #1b1915;
  border-color: #38321f;
}
.sponsored-card .card-kicker { color: #9a8556; }
.sponsored-card h3 { font-family: "Playfair Display", serif; font-size: 24px; }
.sponsored-card .why { margin-top: 8px; }

footer {
  margin-top: 56px;
  text-align: center;
  color: #55503f;
  font-size: 12px;
  font-style: italic;
}
