:root {
  --bg-deep: #0e0b08;
  --bg-panel: #18130f;
  --bg-card: #221b15;
  --bg-card-hover: #2c231b;
  --border-warm: rgba(245, 189, 108, 0.16);
  --border-bright: rgba(245, 189, 108, 0.48);
  --text-main: #f9f3eb;
  --text-muted: #c2b29f;
  --accent-amber: #f59e0b;
  --accent-gold: #fbbf24;
  --accent-jade: #10b981;
  --jade-text: #a7f3d0;
  --pill-solid-bg: rgba(12, 9, 6, 0.86);
  --accent-vermilion: #dc2626;
  --shadow-lg: 0 22px 48px rgba(0, 0, 0, 0.65);
  --radius-lg: 18px;
  --radius-md: 12px;
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 20% 10%, #241911 0%, var(--bg-deep) 65%);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  display: flex;
  flex-direction: column;
}

/* Header & Journey Stepper */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.65rem 1.25rem;
  background: rgba(18, 14, 10, 0.92);
  border-bottom: 1px solid var(--border-warm);
  backdrop-filter: blur(12px);
  flex-wrap: wrap;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-logo-img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.footer-brand-logo {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  display: block;
}

.brand-group h1 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--accent-gold);
}

.brand-tagline {
  margin: 0.1rem 0 0;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.journey-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.step-divider {
  color: var(--text-muted);
  font-size: 0.9rem;
  opacity: 0.5;
}

.journey-step {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.36rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border-warm);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.journey-step:hover {
  border-color: var(--border-bright);
  color: var(--text-main);
}

.journey-step.active {
  border-color: var(--accent-gold);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.1));
  color: var(--text-main);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.2);
}

.step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
}

.journey-step.active .step-num {
  background: var(--accent-gold);
  color: #140e08;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-ghost,
.btn-sensory {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, opacity 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.btn-primary:disabled,
.btn-secondary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  filter: grayscale(0.6);
}

/* Nút dạng <a> (đặt món tại quán đối tác): bỏ gạch chân; [hidden] phải thắng display:inline-flex ở trên */
a.btn-primary,
a.btn-secondary,
a.btn-ghost {
  text-decoration: none;
}

a.btn-primary[hidden],
a.btn-secondary[hidden],
a.btn-ghost[hidden] {
  display: none;
}

.btn-full {
  width: 100%;
  justify-content: space-between;
  padding: 0.72rem 1.1rem;
}

.btn-primary {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #16100a;
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(251, 191, 36, 0.14);
  border-color: var(--border-bright);
  color: var(--accent-gold);
}

.btn-secondary:hover {
  background: rgba(251, 191, 36, 0.24);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-warm);
  color: var(--text-main);
}

.btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
}

.btn-ghost:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Main Container & Journey Stages */
.main-container {
  flex: 1;
  max-width: 1680px;
  width: 100%;
  margin: 0 auto;
  padding: 1.15rem 1.5rem 2rem;
}

.journey-stage[hidden] {
  display: none;
}

.stage-hero-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
  flex-wrap: wrap;
}

.eyebrow-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
  margin-bottom: 0.25rem;
}

.stage-hero-header h2 {
  margin: 0 0 0.25rem;
  font-size: 1.45rem;
  outline: none;
}

.stage-hero-header p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.header-btn-pair {
  display: flex;
  gap: 0.6rem;
}

/* =========================================================================
   STAGE 1: WORLD MAP BOARD
   ========================================================================= */
.map-legend {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot.unlocked {
  background: var(--accent-gold);
  box-shadow: 0 0 8px var(--accent-gold);
}

.dot.stamped {
  background: var(--accent-jade);
  box-shadow: 0 0 8px var(--accent-jade);
}

.dot.locked {
  background: rgba(255, 255, 255, 0.25);
}

.map-craving-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.55rem 0.85rem;
  margin-bottom: 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--border-warm);
  background: var(--bg-card);
}

.craving-bar-label {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.craving-bar-label .icon {
  width: 15px;
  height: 15px;
}

.craving-pills {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.craving-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border-warm);
  background: var(--bg-dark);
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease;
}

.craving-pill:hover {
  border-color: var(--border-bright);
  color: var(--text-main);
}

.craving-pill.active {
  border-color: var(--accent-gold);
  background: var(--accent-amber);
  color: #16100a;
}

.craving-pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.66rem;
}

.craving-pill.active .craving-pill-count {
  background: rgba(20, 14, 8, 0.22);
  color: #16100a;
}

.world-map-board {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 620px;
  min-height: 460px;
  background: radial-gradient(circle at 75% 45%, #231910 0%, #100c08 75%);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.map-camera-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.map-camera-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-origin: var(--map-origin-x, 50%) var(--map-origin-y, 50%);
  transform: scale(var(--map-scale, 1));
  transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1), transform-origin 0.48s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .map-camera-canvas,
  .map-pin,
  .map-cam-btn {
    transition: none !important;
  }
}

.map-camera-controls {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(18, 13, 9, 0.92);
  border: 1px solid var(--border-bright);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

.map-cam-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.32rem 0.68rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background-color: transparent;
  color: var(--text-main);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.map-cam-btn .icon {
  width: 14px;
  height: 14px;
}

.map-cam-btn:hover {
  border-color: var(--border-bright);
}

.map-cam-btn.active {
  background-color: var(--accent-amber);
  color: #16100a;
}

.world-map-board[data-zoom-mode="focus"] .map-pin.locked,
.world-map-board[data-zoom-mode="focus"] .map-pin.out-of-focus-region {
  display: none;
}

.world-map-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.88) contrast(1.05);
  pointer-events: none;
}

.world-map-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.continent-shape {
  fill: rgba(245, 189, 108, 0.08);
  stroke: rgba(245, 189, 108, 0.28);
  stroke-width: 1.5;
}

.flight-arc {
  fill: none;
  stroke: rgba(251, 191, 36, 0.35);
  stroke-width: 2;
  stroke-dasharray: 6 6;
}

.flight-arc.active-route {
  stroke: var(--accent-gold);
  stroke-width: 2.6;
  stroke-dasharray: 8 5;
}

.map-target-ring {
  fill: none;
  stroke: var(--accent-gold);
  stroke-width: 1.6;
  stroke-dasharray: 4 4;
  opacity: 0.72;
}

.map-pin {
  position: absolute;
  left: var(--pin-x, 50%);
  top: var(--pin-y, 50%);
  transform: translate(-50%, -50%) scale(var(--pin-inv-scale, 1));
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1.5px solid var(--border-warm);
  background: rgba(18, 13, 9, 0.9);
  color: var(--text-main);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: transform 0.28s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.24s ease;
}

.map-pin.unlocked {
  border-color: var(--accent-gold);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.7), 0 0 0 4px rgba(251, 191, 36, 0.16);
  z-index: 3;
}

.map-pin.unlocked.active-city-pin {
  background: rgba(34, 24, 15, 0.96);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.8), 0 0 0 7px rgba(251, 191, 36, 0.28);
  z-index: 4;
}

.map-pin.unlocked:hover {
  transform: translate(-50%, -54%) scale(calc(var(--pin-inv-scale, 1) * 1.06));
  background: rgba(245, 158, 11, 0.95);
  color: #140e08;
}

.pin-stamp-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid var(--accent-jade);
  color: var(--jade-text);
  flex-shrink: 0;
}

.pin-stamp-badge .icon {
  width: 13px;
  height: 13px;
}

.map-pin.locked {
  opacity: 0.58;
  cursor: not-allowed;
}

.map-pin.compact-pin {
  padding: 0.32rem 0.62rem;
  gap: 0.38rem;
}

.map-pin.compact-pin .pin-info small {
  display: none;
}

.map-pin.unlocked.compact-pin:hover .pin-info small,
.map-pin.unlocked.compact-pin:focus-visible .pin-info small {
  display: block;
}

.map-pin.craving-dimmed {
  opacity: 0.42;
}

.pin-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 0.32rem;
  border-radius: 999px;
  background: var(--accent-amber);
  color: #16100a;
  font-size: 0.68rem;
  font-weight: 800;
  flex-shrink: 0;
}

.map-pins {
  display: contents;
}

.pin-code {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.12rem 0.32rem;
  border-radius: 4px;
  border: 1px solid currentColor;
}

.pin-info {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.pin-info strong {
  font-size: 0.84rem;
  white-space: nowrap;
}

.pin-info small {
  font-size: 0.68rem;
  opacity: 0.85;
  white-space: nowrap;
}

.map-destination-spotlight {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  max-width: 420px;
  width: calc(100% - 2.5rem);
  background: rgba(20, 15, 11, 0.94);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
  z-index: 5;
}

.spotlight-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  flex-wrap: wrap;
}

.spotlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-jade);
}

.spotlight-badge .icon {
  width: 14px;
  height: 14px;
}

.spotlight-city-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.spotlight-city-tabs::-webkit-scrollbar {
  display: none;
}

.spotlight-city-tab {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
  gap: 0.2rem;
  padding: 0.15rem 0.38rem;
  border-radius: 999px;
  border: 1px solid var(--border-warm);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.64rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease;
}

.spotlight-city-tab:hover {
  border-color: var(--border-bright);
  color: var(--text-main);
}

.spotlight-city-tab.active {
  border-color: var(--accent-gold);
  background: rgba(251, 191, 36, 0.18);
  color: var(--accent-gold);
}

.spotlight-city-tab .tab-code {
  font-size: 0.62rem;
  opacity: 0.85;
}

.spotlight-city-tab .tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 0.24rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.62rem;
}

.spotlight-city-tab.tab-dimmed {
  opacity: 0.5;
}

.spotlight-more-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.32rem 0.62rem;
  border-radius: 9px;
  border: 1px dashed var(--border-bright);
  background: var(--bg-card);
  color: var(--accent-gold);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.restaurant-card.craving-featured-card {
  border-color: var(--accent-gold);
}

.restaurant-card.craving-muted-card {
  opacity: 0.56;
}

.map-destination-spotlight h3 {
  margin: 0 0 0.25rem;
  font-size: 1.12rem;
  color: var(--accent-gold);
}

.map-destination-spotlight p {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  line-height: 1.42;
  color: var(--text-muted);
}

.spotlight-dishes-block {
  margin: 0 0 0.65rem;
}

.spotlight-dishes-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.spotlight-dishes-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.36rem;
}

.spotlight-dish-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  padding: 0.22rem 0.48rem 0.22rem 0.24rem;
  border-radius: 9px;
  border: 1px solid var(--border-warm);
  background: var(--bg-card);
  color: var(--text-main);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}

.spotlight-dish-chip:hover {
  border-color: var(--accent-gold);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

.spotlight-dish-chip img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.spotlight-dish-text {
  display: flex;
  flex-direction: column;
  line-height: 1.16;
}

.spotlight-dish-text strong {
  font-size: 0.7rem;
  color: var(--text-main);
}

.spotlight-dish-text small {
  font-size: 0.61rem;
  color: var(--accent-gold);
}

@media (max-width: 768px) {
  .top-bar {
    padding: 0.5rem 0.75rem;
    gap: 0.45rem;
  }

  .header-actions {
    gap: 0.35rem;
  }

  .header-actions .btn-secondary,
  .header-actions .btn-ghost {
    padding: 0.34rem 0.55rem;
    font-size: 0.7rem;
  }

  .main-container {
    padding: 0.7rem 0.85rem 1.5rem;
  }

  .world-map-board {
    aspect-ratio: auto;
    min-height: 0;
    max-height: none;
    display: flex;
    flex-direction: column;
  }

  .map-camera-viewport {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    height: 250px;
  }

  .map-camera-controls {
    top: 0.55rem;
    right: 0.55rem;
    padding: 0.18rem;
  }

  .map-cam-btn {
    padding: 0.24rem 0.5rem;
    font-size: 0.65rem;
  }

  .world-map-bg-img,
  .world-map-svg {
    height: 250px;
  }

  .map-pin {
    padding: 0.22rem 0.44rem;
    gap: 0.24rem;
    white-space: nowrap;
  }

  .map-pin.locked {
    display: none;
  }

  .map-pin.unlocked {
    left: clamp(12%, var(--pin-x, 50%), 88%);
    top: clamp(20%, var(--pin-y, 50%), 82%);
  }

  .map-pin.unlocked.compact-pin {
    padding: 0.12rem 0.3rem;
    gap: 0.18rem;
  }

  .map-pin.unlocked.compact-pin .pin-code {
    display: none;
  }

  .map-pin.unlocked .pin-count-badge {
    min-width: 15px;
    height: 15px;
    padding: 0 0.22rem;
    font-size: 0.56rem;
  }

  .map-pin.unlocked .pin-info small {
    display: none;
  }

  .pin-flag {
    font-size: 1rem;
  }

  .pin-info strong {
    font-size: 0.64rem;
  }

  .map-pin.unlocked.compact-pin .pin-info strong {
    font-size: 0.58rem;
  }

  .pin-info small {
    font-size: 0.62rem;
  }

  .map-destination-spotlight {
    position: relative;
    left: auto;
    bottom: auto;
    width: auto;
    max-width: none;
    margin: 255px 0.75rem 0.75rem;
    padding: 0.95rem 1rem;
  }

  .table-menu-hotspot {
    width: 170px;
    height: 110px;
  }

  .menu-book-tag {
    font-size: 0.72rem;
    padding: 0.3rem 0.65rem;
    white-space: nowrap;
  }
}

/* =========================================================================
   STAGE 2: RESTAURANT DIRECTORY CARDS
   ========================================================================= */
.restaurant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}

.restaurant-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.restaurant-card.unlocked-card {
  border-color: var(--border-bright);
}

.restaurant-card.unlocked-card:hover {
  transform: translateY(-3px);
}

.restaurant-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #140f0b;
  overflow: hidden;
}

.restaurant-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, #2a2017 0%, #140f0b 100%);
}

.placeholder-art {
  font-size: 3rem;
  opacity: 0.55;
}

.status-pill,
.listing-pill {
  position: absolute;
  top: 0.75rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

/* Nền đặc tối để chữ đọc được trên mọi ảnh (bản cũ nền xanh 20% trên ảnh sáng → chữ chìm) */
.status-pill.open {
  left: 0.75rem;
  background: var(--pill-solid-bg);
  border: 1px solid var(--accent-jade);
  color: var(--jade-text);
}

.status-pill.soon {
  left: 0.75rem;
  background: var(--pill-solid-bg);
  border: 1px solid var(--border-warm);
  color: var(--text-muted);
}

/* Nhãn nguồn gốc quán: "Quán hư cấu • AI dựng" hoặc "Đối tác đã xác minh" */
.listing-pill {
  right: 0.75rem;
  background: var(--pill-solid-bg);
  border: 1px solid var(--border-warm);
  color: var(--text-muted);
}

.listing-pill.partner,
.listing-badge.partner {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.listing-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border-warm);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  vertical-align: middle;
}

.load-error {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 1rem 0;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--accent-amber);
  background: var(--bg-card);
  color: var(--text-main);
}

.load-error[hidden] {
  display: none;
}

.restaurant-card-body {
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.shop-meta {
  font-size: 0.75rem;
  color: var(--accent-gold);
  margin-bottom: 0.3rem;
}

.restaurant-card-body h3 {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
}

.restaurant-card-body p {
  margin: 0 0 0.9rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
  flex: 1;
}

.shop-tags {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.shop-tags span {
  font-size: 0.72rem;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
}

/* =========================================================================
   STAGE 3: RESTAURANT INTERIOR & TABLE MENU HOTSPOT
   ========================================================================= */
.interior-stage-wrap {
  max-width: 1220px;
  margin: 0 auto;
}

.table-menu-hotspot {
  position: absolute;
  left: var(--menu-x, 33%);
  top: var(--menu-y, 72%);
  transform: translate(-50%, -50%);
  width: 250px;
  height: 190px;
  border-radius: 18px;
  border: 1.5px solid rgba(251, 191, 36, 0.25);
  background: radial-gradient(circle, rgba(251, 191, 36, 0.14) 0%, rgba(251, 191, 36, 0) 72%);
  cursor: pointer;
  z-index: 6;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0.35rem;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.table-menu-hotspot:hover {
  transform: translate(-50%, -52%) scale(1.03);
  background: radial-gradient(circle, rgba(251, 191, 36, 0.28) 0%, rgba(251, 191, 36, 0) 75%);
  border-color: var(--accent-gold);
  box-shadow: 0 0 28px rgba(251, 191, 36, 0.35);
}

.menu-book-tag {
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  background: rgba(18, 13, 9, 0.92);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
}

/* =========================================================================
   STAGE 4 & 5: POV DINING WORKSPACE (UNOBTRUSIVE HITZONES + BOTTOM DOCK)
   ========================================================================= */
.dining-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 1.25rem;
  align-items: start;
}

.dining-workspace.theater-mode {
  grid-template-columns: 1fr;
  max-width: 1320px;
  margin: 0 auto;
}

.dining-workspace.theater-mode .inspector-sidebar {
  display: none;
}

@media (max-width: 1120px) {
  .dining-workspace {
    grid-template-columns: 1fr;
  }
}

.pov-stage-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pov-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #090705;
  border: 1px solid var(--border-bright);
  box-shadow: var(--shadow-lg);
  user-select: none;
}

.pov-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Living Cinemagraph Idle: Subtle POV Breathing + Mouse Parallax */
.keyframe-layer {
  opacity: 0;
  transform:
    scale(var(--camera-scale, 1.015))
    translate(var(--parallax-x, 0px), calc(var(--camera-y, 0px) + var(--parallax-y, 0px)));
  animation: pov-idle-breathe 6.5s ease-in-out infinite alternate;
  transition:
    opacity 0.45s ease,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  @media (prefers-reduced-motion: reduce) {
    animation: none;
    transform: none;
  }
}

.keyframe-layer.active {
  opacity: 1;
  z-index: 2;
}

@keyframes pov-idle-breathe {
  0% {
    filter: brightness(1) contrast(1);
  }
  100% {
    filter: brightness(1.03) contrast(1.01);
  }
}

.video-layer {
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.video-layer.playing {
  opacity: 1;
}

.steam-canvas {
  z-index: 4;
  pointer-events: none;
}

/* VÙNG CẢM ỨNG VÔ HÌNH TRÊN MÓN ĂN (KHÔNG CHE MÓN ĂN!) */
.hotspot-container {
  position: absolute;
  inset: 0;
  z-index: 7;
}

.dish-hitzone {
  position: absolute;
  left: var(--hz-x, 50%);
  top: var(--hz-y, 50%);
  width: var(--hz-size, 22%);
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  padding: 0;
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.hitzone-beacon,
.hitzone-beacon * {
  pointer-events: none;
}

.hitzone-beacon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
}

.hitzone-beacon-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px dashed rgba(251, 191, 36, 0.58);
  animation: hitzone-ring-breathe 2.6s ease-in-out infinite;
  @media (prefers-reduced-motion: reduce) {
    animation: none;
  }
}

.hitzone-beacon-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(18, 13, 9, 0.82);
  border: 1.5px solid rgba(251, 191, 36, 0.88);
  color: var(--accent-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.65), 0 0 12px rgba(245, 158, 11, 0.35);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.hitzone-beacon-dot .icon {
  width: 14px;
  height: 14px;
}

@keyframes hitzone-ring-breathe {
  0%, 100% { transform: scale(0.94); opacity: 0.55; }
  50% { transform: scale(1.12); opacity: 0.92; }
}

/* Khi rê chuột vào vùng món ăn (hoặc hover nút ở thanh dưới) thì phát sáng rõ nét */
.dish-hitzone:hover,
.dish-hitzone:focus-visible,
.dish-hitzone.highlighted {
  border-color: rgba(251, 191, 36, 0.85);
  background: radial-gradient(circle, rgba(251, 191, 36, 0.18) 0%, rgba(251, 191, 36, 0) 70%);
  box-shadow: 0 0 28px rgba(251, 191, 36, 0.35);
  transform: translate(-50%, -50%) scale(1.04);
}

.dish-hitzone:hover .hitzone-beacon-dot,
.dish-hitzone:focus-visible .hitzone-beacon-dot,
.dish-hitzone.highlighted .hitzone-beacon-dot {
  background: var(--accent-gold);
  color: #140e08;
  transform: scale(1.14);
}

/* Nhãn nổi nhỏ gọn đi theo chuột khi hover vào vùng món ăn */
.cursor-tooltip {
  position: absolute;
  left: var(--tip-x, 50%);
  top: var(--tip-y, 50%);
  transform: translate(-50%, calc(-100% - 18px));
  z-index: 9;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(16, 12, 8, 0.92);
  border: 1px solid var(--accent-gold);
  color: var(--text-main);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

.cursor-tooltip[hidden] {
  display: none;
}

.cursor-tooltip strong {
  display: block;
  font-size: 0.82rem;
  color: var(--accent-gold);
}

.cursor-tooltip small {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* THANH HÀNH ĐỘNG ĐẶT NGOÀI KHUNG HÌNH MÓN ĂN (UNOBTRUSIVE ACTION DOCK) */
.unobtrusive-action-dock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.15rem;
  background: linear-gradient(135deg, rgba(34, 26, 19, 0.96), rgba(22, 17, 12, 0.96));
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  flex-wrap: wrap;
}

.dock-label {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.dock-badge {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--accent-gold);
}

.dock-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.dock-buttons-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.dock-buttons-row[hidden] {
  display: none !important;
}

.dock-step-row {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  flex-wrap: wrap;
}

.dock-step-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ritual-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ritual-dot.done {
  background: var(--accent-jade);
  border-color: var(--accent-jade);
}

.ritual-dot.current {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  transform: scale(1.2);
}

.dock-step-counter {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0.08rem 0.42rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.dock-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.58rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid var(--accent-gold);
  background: rgba(245, 158, 11, 0.16);
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.dock-action-pill:hover {
  background: var(--accent-gold);
  color: #140e08;
  transform: translateY(-2px);
}

/* Stage Top HUD & Action Toast */
.stage-top-hud {
  position: absolute;
  top: 0.85rem;
  left: 0.95rem;
  right: 0.95rem;
  z-index: 8;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.location-chip,
.mode-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(14, 10, 7, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.75rem;
  color: var(--text-main);
  backdrop-filter: blur(8px);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-jade);
  box-shadow: 0 0 8px var(--accent-jade);
}

@media (max-width: 768px) {
  .stage-top-hud {
    top: 0.5rem;
    left: 0.55rem;
    right: 0.55rem;
  }

  .location-chip,
  .pov-viewport .hud-ambient-btn {
    padding: 0.22rem 0.58rem;
    font-size: 0.68rem;
  }

  .pov-viewport .mode-chip:not(.hud-ambient-btn) {
    display: none;
  }
}

.action-toast {
  position: absolute;
  bottom: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  background: rgba(15, 11, 8, 0.92);
  border: 1px solid var(--accent-gold);
  box-shadow: var(--shadow-lg);
  max-width: 90%;
}

.action-toast[hidden] {
  display: none;
}

.action-toast p {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--accent-gold);
}

.asmr-wave {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 18px;
}

.asmr-wave span {
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--accent-gold);
  animation: wave-bounce 0.65s infinite ease-in-out alternate;
  @media (prefers-reduced-motion: reduce) {
    animation: none;
  }
}

.asmr-wave span:nth-child(2) { animation-delay: 0.12s; }
.asmr-wave span:nth-child(3) { animation-delay: 0.24s; }
.asmr-wave span:nth-child(4) { animation-delay: 0.36s; }
.asmr-wave span:nth-child(5) { animation-delay: 0.48s; }

@keyframes wave-bounce {
  from { transform: scaleY(0.35); }
  to { transform: scaleY(1.15); }
}

/* Completion Banner */
.completion-banner {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: linear-gradient(to top, rgba(12, 9, 6, 0.94) 0%, rgba(12, 9, 6, 0.45) 65%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem;
}

.completion-banner[hidden] {
  display: none;
}

.completion-card {
  background: rgba(24, 18, 13, 0.96);
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius-lg);
  padding: 0.95rem 1.35rem;
  text-align: center;
  max-width: 540px;
  max-height: 100%;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.completion-card h2 {
  margin: 0.15rem 0 0.25rem;
  font-size: 1.2rem;
}

.completion-card > p {
  margin: 0.2rem 0;
  font-size: 0.84rem;
}

.completion-actions {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

/* Sensory Toolbar */
.sensory-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.65rem 0.95rem;
  background: var(--bg-panel);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-sensory {
  background: var(--bg-card);
  border-color: var(--border-warm);
  color: var(--text-main);
  font-size: 0.8rem;
  padding: 0.45rem 0.8rem;
}

.btn-sensory:hover,
.btn-sensory[aria-pressed="true"] {
  border-color: var(--accent-gold);
  background: var(--bg-card-hover);
}

.volume-control {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.volume-control input[type="range"] {
  width: 85px;
  accent-color: var(--accent-amber);
}

/* Sidebar Inspector & Diamond Graph */
.inspector-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.panel-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.2rem;
}

.step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.step-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.14);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.progress-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent-jade);
}

.current-state-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.12rem;
  outline: none;
}

.state-desc {
  margin: 0 0 0.85rem;
  font-size: 0.83rem;
  line-height: 1.48;
  color: var(--text-muted);
}

.progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 0.9rem;
}

.progress-fill {
  height: 100%;
  width: var(--progress-pct, 0%);
  background: linear-gradient(90deg, var(--accent-amber), var(--accent-jade));
  transition: width 0.45s ease;
}

.quick-actions-box[hidden] {
  display: none !important;
}

.quick-actions-box h3 {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.sidebar-action-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.sidebar-action-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.62rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border-bright);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(34, 27, 21, 0.9));
  color: var(--text-main);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.graph-card h2 {
  margin: 0;
  font-size: 0.96rem;
  color: var(--accent-gold);
}

.btn-mini-reset {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-warm);
  color: var(--text-main);
  font-size: 0.72rem;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  cursor: pointer;
}

.graph-explainer {
  margin: 0.35rem 0 0.8rem;
  font-size: 0.75rem;
  line-height: 1.42;
  color: var(--text-muted);
}

.diamond-graph {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.graph-row {
  display: flex;
  justify-content: center;
  width: 100%;
  gap: 0.5rem;
}

.graph-row.split-row .graph-node {
  flex: 1;
}

.graph-node {
  width: 100%;
  padding: 0.44rem 0.6rem;
  border-radius: 9px;
  border: 1px solid var(--border-warm);
  background: var(--bg-card);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.graph-node.visited {
  border-color: rgba(16, 185, 129, 0.55);
  background: rgba(16, 185, 129, 0.1);
}

.graph-node.active {
  border-color: var(--accent-gold);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.28), rgba(217, 119, 6, 0.14));
}

.node-code {
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.node-name {
  font-size: 0.75rem;
  font-weight: 600;
}

.graph-arrow,
.graph-split-arrows {
  font-size: 0.68rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-around;
  width: 100%;
}

/* =========================================================================
   TRADITIONAL MENU BOOK DIALOG & PIPELINE DIALOG
   ========================================================================= */
.menu-book-dialog,
.pipeline-dialog {
  max-width: 820px;
  width: 92vw;
  background: #1d150e;
  color: var(--text-main);
  border: 2px solid var(--accent-gold);
  border-radius: var(--radius-lg);
  padding: 0;
  box-shadow: var(--shadow-lg);
}

.menu-book-dialog::backdrop,
.pipeline-dialog::backdrop {
  background: rgba(6, 4, 3, 0.82);
  backdrop-filter: blur(6px);
}

.menu-book-header,
.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-bright);
  background: rgba(245, 158, 11, 0.08);
}

.menu-vintage-sub {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
}

.menu-book-header h2,
.dialog-header h2 {
  margin: 0.2rem 0;
  font-size: 1.3rem;
  color: var(--accent-gold);
}

.menu-book-header p,
.dialog-header p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.btn-close-dialog {
  background: transparent;
  border: 1px solid var(--border-warm);
  color: var(--text-main);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  cursor: pointer;
}

.menu-book-body,
.dialog-body {
  padding: 1.25rem 1.5rem;
  max-height: 72vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.menu-dish-item {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.15rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-warm);
  background: var(--bg-card);
  align-items: center;
}

@media (max-width: 680px) {
  .menu-dish-item {
    grid-template-columns: 1fr;
  }
}

.menu-dish-item.featured {
  border-color: var(--accent-gold);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(34, 27, 21, 0.95));
}

.menu-dish-item.disabled-item {
  grid-template-columns: 1fr;
  opacity: 0.6;
}

.menu-dish-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border-bright);
}

.menu-dish-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.menu-dish-title-row h3 {
  margin: 0;
  font-size: 1.08rem;
  color: var(--accent-gold);
}

.menu-dish-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent-jade);
}

.menu-dish-details p {
  margin: 0 0 0.65rem;
  font-size: 0.83rem;
  line-height: 1.48;
  color: var(--text-muted);
}

.menu-dish-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.menu-dish-meta span {
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.sold-out-note {
  font-size: 0.76rem;
  color: var(--accent-gold);
}

.shot-manifest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.75rem;
}

.shot-card {
  background: var(--bg-card);
  border: 1px solid var(--border-warm);
  border-radius: 10px;
  padding: 0.75rem;
  font-size: 0.78rem;
}

.shot-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin-top: 0.45rem;
}

.shot-pair img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
}

.dialog-footer {
  padding: 0.85rem 1.5rem;
  border-top: 1px solid var(--border-warm);
  display: flex;
  justify-content: flex-end;
}

/* =========================================================================
   BANDWIDTH MODE SWITCH & REAL-TIME BANDWIDTH TELEMETRY DIALOG
   ========================================================================= */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.bw-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.75rem;
}

.bw-kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-warm);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.bw-kpi-card.highlight {
  border-color: var(--accent-gold);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(34, 27, 21, 0.95));
}

.bw-kpi-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.bw-kpi-val {
  font-size: 1.25rem;
  font-weight: 800;
}

.bw-kpi-val.muted-val {
  color: #9ca3af;
  text-decoration: line-through;
}

.bw-kpi-val.gold-val {
  color: var(--accent-gold);
}

.bw-kpi-val.jade-val {
  color: var(--accent-jade);
}

.bw-kpi-card small {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.bw-architecture-box {
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid var(--border-warm);
  border-radius: 12px;
  padding: 0.95rem 1.15rem;
}

.bw-architecture-box h3,
.bw-subhead {
  margin: 0 0 0.55rem;
  font-size: 0.9rem;
  color: var(--accent-gold);
}

.bw-mechanism-list {
  margin: 0;
  padding-left: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.bw-mechanism-list strong {
  color: var(--text-main);
}

.bw-asset-log {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  max-height: 190px;
  overflow-y: auto;
}

.bw-log-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.42rem 0.75rem;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-warm);
  font-size: 0.76rem;
}

.bw-log-badge {
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
}

.bw-log-badge.network {
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-gold);
}

.bw-log-badge.cached {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.bw-log-badge.skipped {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

/* =========================================================================
   LỜI KỂ VĂN HOÁ THEO TỪNG BƯỚC ĂN
   ========================================================================= */
.cultural-story-card {
  margin: 0.65rem 0 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.08);
  border-left: 3px solid var(--accent-gold);
}

.story-card-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  color: var(--accent-gold);
  margin-bottom: 0.28rem;
}

.cultural-story-card p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  font-style: italic;
  color: var(--text-main);
}

/* =========================================================================
   CULINARY PASSPORT & VINTAGE POSTCARD STUDIO
   ========================================================================= */
.passport-spread {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1rem;
}

.passport-page {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.passport-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px dashed var(--border-warm);
  padding-bottom: 0.45rem;
}

.passport-status-pill {
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.passport-status-pill.stamped {
  background: rgba(16, 185, 129, 0.2);
  color: var(--jade-text);
  border: 1px solid var(--accent-jade);
}

.visa-stamp-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: 12px;
  background: rgba(14, 11, 8, 0.55);
  border: 1px solid var(--border-warm);
}

.visa-stamp-circle {
  width: 112px;
  height: 112px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 3px dashed rgba(194, 178, 159, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.4rem;
  transform: rotate(-8deg);
  color: var(--text-muted);
  transition: transform 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.visa-stamp-circle.stamped {
  border-style: double;
  border-width: 4px;
  border-color: #ef4444;
  color: #f87171;
  background: rgba(239, 68, 68, 0.08);
  transform: rotate(-11deg) scale(1.03);
}

.stamp-top,
.stamp-bottom {
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.stamp-center {
  font-size: 0.82rem;
  font-weight: 900;
  margin: 0.18rem 0;
}

.visa-details h3 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  color: var(--accent-gold);
}

.visa-details p {
  margin: 0 0 0.3rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.passport-badges-grid {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.passport-branch-badge {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-warm);
  opacity: 0.65;
}

.passport-branch-badge.unlocked {
  opacity: 1;
  border-color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.12);
}

.branch-badge-icon {
  font-size: 1.35rem;
}

.passport-branch-badge strong {
  display: block;
  font-size: 0.8rem;
  color: var(--text-main);
}

.passport-branch-badge small {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.postcard-preview-wrap {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-bright);
  background: #120d09;
}

.postcard-preview-wrap canvas {
  display: block;
  width: 100%;
  height: auto;
}

.postcard-actions {
  display: flex;
  justify-content: flex-end;
}


/* =========================================================================
   ICON SVG (thay emoji), CHẾ ĐỘ DEV, DỮ LIỆU MẪU, CHÂN TRANG
   ========================================================================= */
.icon-sprite {
  display: none;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.2em;
}

.brand-icon {
  width: 1.9rem;
  height: 1.9rem;
  color: var(--accent-gold);
}

.completion-icon {
  width: 1.85rem;
  height: 1.85rem;
  color: var(--accent-gold);
}

/* Công cụ dev chỉ hiện với ?dev=1 */
body:not(.dev-mode) [data-dev-only] {
  display: none !important;
}

.dev-inline {
  font-size: 0.68rem;
  opacity: 0.7;
}

.sample-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1rem;
  background: var(--accent-vermilion);
  color: var(--text-main);
  font-size: 0.8rem;
  text-align: center;
}

.sample-banner[hidden] {
  display: none;
}

.status-pill.closed {
  left: 0.75rem;
  background: var(--pill-solid-bg);
  border: 1px solid var(--accent-vermilion);
  color: var(--text-main);
}

.city-clock,
.spotlight-clock {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: var(--accent-gold);
  font-variant-numeric: tabular-nums;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem 2rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border-warm);
}

.link-button {
  background: none;
  border: 0;
  padding: 0.25rem 0;
  color: var(--text-muted);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.link-button:hover {
  color: var(--text-main);
}

.btn-lang {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.btn-full-width {
  width: 100%;
  margin-top: 0.75rem;
}

.prose p,
.prose li {
  line-height: 1.6;
  color: var(--text-main);
}

.owners-steps {
  padding-left: 1.25rem;
  display: grid;
  gap: 0.45rem;
}

.cultural-story-card strong {
  display: block;
  font-size: 0.78rem;
  color: var(--accent-gold);
  margin-bottom: 0.25rem;
}

/* Thanh tuỳ chỉnh gập lại được — giữ khung món ăn và thanh hành động là thứ nổi bật nhất */
.sensory-toolbar > summary {
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0.25rem 0;
}

.sensory-toolbar[open] > summary {
  margin-bottom: 0.55rem;
}

.toolbar-groups {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
}

/* =========================================================================
   CLIP CHIA SẺ (canvas xem trước = canvas được ghi)
   ========================================================================= */
.share-body {
  display: grid;
  grid-template-columns: minmax(0, 260px) 1fr;
  gap: 1.25rem;
  align-items: start;
}

#share-canvas {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  border: 1px solid var(--border-bright);
  background: var(--bg-deep);
}

.share-side {
  display: grid;
  gap: 0.75rem;
}

.share-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--bg-card);
  overflow: hidden;
}

#share-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent-gold);
  transition: width 0.2s ease;
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (max-width: 680px) {
  .share-body {
    grid-template-columns: 1fr;
  }

  #share-canvas {
    max-height: 52vh;
    width: auto;
    justify-self: center;
  }
}

/* =========================================================================
   CHẾ ĐỘ TOÀN MÀN HÌNH (ăn trên điện thoại: chỉ còn món ăn + thanh hành động)
   ========================================================================= */
.immersive-exit {
  display: none;
}

body.immersive-mode .top-bar,
body.immersive-mode .site-footer,
body.immersive-mode .sample-banner,
body.immersive-mode .inspector-sidebar,
body.immersive-mode .sensory-toolbar {
  display: none !important;
}

body.immersive-mode .main-container {
  padding: 0;
  max-width: none;
}

body.immersive-mode .dining-workspace {
  display: block;
}

body.immersive-mode .pov-stage-section {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  background: var(--bg-deep);
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}

body.immersive-mode .pov-viewport {
  border-radius: 0;
  max-height: calc(100svh - 150px);
  width: 100%;
}

body.immersive-mode .immersive-exit {
  display: inline-flex;
  margin-left: auto;
  pointer-events: auto;
}

body.immersive-mode #btn-hud-immersive {
  display: none !important;
}

@media (max-width: 768px) {
  .hud-immersive-text {
    display: none;
  }

  .hitzone-beacon {
    width: 30px;
    height: 30px;
  }

  .hitzone-beacon-dot {
    width: 22px;
    height: 22px;
  }
}

body.immersive-mode .unobtrusive-action-dock {
  margin: 0 0.75rem;
}

/* =========================================================================
   ÂM NỀN QUÁN TRÊN HUD & NHÃN PHÂN MỤC THỰC ĐƠN
   ========================================================================= */
.hud-chip-group {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  pointer-events: auto;
}

.hud-ambient-btn {
  cursor: pointer;
  pointer-events: auto;
  border-color: var(--border-bright);
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.hud-ambient-btn:hover {
  border-color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.22);
  transform: translateY(-1px);
}

.hud-ambient-btn.active {
  border-color: var(--accent-jade);
  background: rgba(16, 185, 129, 0.22);
  color: var(--jade-text);
}

.menu-dish-cat-row {
  margin-bottom: 0.25rem;
}

.menu-cat-badge {
  display: inline-block;
  padding: 0.14rem 0.52rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.menu-cat-badge.main-cat {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
}

.menu-cat-badge.side-cat {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-warm);
  color: var(--text-muted);
}

/* =========================================================================
   NGHI THỨC BÀN ĂN ĐA MÓN (TOUCH FOLEY, AUTO-SAVOR, REPLAY BITE, SENSORY TAGS)
   ========================================================================= */
.dock-label {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  width: 100%;
  flex-wrap: wrap;
}

.dock-label-text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.dock-ritual-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.dock-mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--border-bright);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.dock-mini-btn[hidden] {
  display: none !important;
}

.dock-mini-btn:hover {
  border-color: var(--accent-gold);
  color: var(--text-main);
  background: rgba(245, 158, 11, 0.16);
}

.dock-mini-btn.active {
  border-color: var(--accent-jade);
  background: rgba(16, 185, 129, 0.2);
  color: var(--jade-text);
}

.touch-foley-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-md);
  background: rgba(22, 17, 12, 0.78);
  border: 1px solid var(--border-warm);
}

.touch-foley-bar[hidden] {
  display: none !important;
}

.touch-foley-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-right: 0.15rem;
}

.touch-foley-buttons {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  flex-wrap: wrap;
}

.touch-foley-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.68rem;
  border-radius: 999px;
  border: 1px solid var(--border-warm);
  background: rgba(245, 158, 11, 0.08);
  color: var(--text-main);
  font: inherit;
  font-size: 0.73rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.touch-foley-chip:hover {
  border-color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.2);
  transform: translateY(-1px);
}

.touch-foley-chip:active {
  transform: scale(0.97);
}

.dish-sensory-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.55rem;
  margin-bottom: 0.25rem;
}

.dish-sensory-tags[hidden],
.sensory-tag[hidden] {
  display: none !important;
}

.sensory-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid var(--border-warm);
  color: var(--accent-gold);
}

.completion-craving-note {
  margin: 0.4rem auto 0.65rem;
  max-width: 54ch;
  padding: 0.48rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(245, 158, 11, 0.12);
  border: 1px dashed var(--accent-gold);
  color: var(--accent-gold);
  font-size: 0.8rem;
  line-height: 1.45;
}

.completion-craving-note[hidden] {
  display: none !important;
}

body.immersive-mode .touch-foley-bar {
  margin: 0 0.75rem;
}

/* =========================================================================
   MOBILE: header gọn 2 hàng, khung món ăn tràn ngang, thanh hành động bám đáy
   ========================================================================= */
@media (max-width: 768px) {
  .top-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.38rem 0.45rem;
    padding: 0.45rem 0.6rem;
  }

  .brand-tagline,
  .header-actions .btn-text,
  .step-divider {
    display: none;
  }

  .brand-icon {
    width: 1.4rem;
    height: 1.4rem;
  }

  .journey-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    overflow: hidden;
  }

  .top-bar .header-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .journey-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.2rem;
    width: 100%;
    flex-wrap: nowrap;
  }

  .journey-step {
    justify-content: center;
    white-space: nowrap;
    padding: 0.28rem 0.42rem;
    gap: 0.22rem;
    font-size: 0.68rem;
  }

  .step-num {
    width: 16px;
    height: 16px;
    font-size: 0.62rem;
    flex-shrink: 0;
  }

  .header-actions {
    flex-wrap: nowrap;
  }

  .stage-hero-header h2 {
    font-size: 1.15rem;
  }

  body:not(.immersive-mode) .pov-stage-section > .pov-viewport {
    width: calc(100% + 1.7rem);
    margin-left: -0.85rem;
    margin-right: -0.85rem;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .unobtrusive-action-dock {
    position: sticky;
    bottom: 0;
    z-index: 20;
    box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.55);
  }
}

/* =========================================================================
   VIRAL UPGRADE: QUICK-START TABLE OVERLAY, FACTION CARD, IDENTITY & SHARE STUDIO
   ========================================================================= */
.quick-start-overlay {
  position: absolute;
  inset: 0;
  z-index: 11;
  background: radial-gradient(circle at center, rgba(14, 11, 8, 0.52) 0%, rgba(14, 11, 8, 0.86) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  backdrop-filter: blur(4px);
}

.quick-start-overlay[hidden] {
  display: none !important;
}

.quick-start-card {
  background: var(--bg-panel);
  border: 1.5px solid var(--accent-gold);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.5rem;
  max-width: 440px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.quick-start-invite {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.48;
  color: var(--text-main);
  font-weight: 600;
}

.completion-faction-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0.1rem auto 0.2rem;
  padding: 0.22rem 0.8rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid var(--accent-jade);
  color: var(--accent-jade);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.completion-faction-pill[hidden] {
  display: none !important;
}

.completion-friend-compare {
  margin: 0.25rem auto 0.35rem;
  padding: 0.36rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid var(--accent-gold);
  color: var(--text-main);
  font-size: 0.78rem;
  font-weight: 600;
}

.completion-friend-compare[data-match="same"] {
  background: rgba(16, 185, 129, 0.16);
  border-color: var(--accent-jade);
}

.completion-friend-compare[hidden] {
  display: none !important;
}

.diner-identity-row {
  margin: 0.35rem auto 0.55rem;
  padding: 0.45rem 0.68rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-warm);
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  text-align: left;
}

.diner-identity-row label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
}

.diner-identity-controls {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.diner-identity-controls input,
.passport-transfer-controls input {
  flex: 1 1 170px;
  min-width: 150px;
  padding: 0.38rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-bright);
  background: var(--bg-deep);
  color: var(--text-main);
  font: inherit;
  font-size: 0.78rem;
}

.passport-transfer-controls #btn-export-passport {
  width: 100%;
  justify-content: center;
}

.diner-identity-status,
.passport-transfer-status {
  font-size: 0.72rem;
  color: var(--accent-gold);
  min-height: 1em;
}

.passport-diner-stats {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.passport-transfer-box {
  padding-top: 0.65rem;
  border-top: 1px dashed var(--border-warm);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.passport-transfer-box strong {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.passport-transfer-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.share-format-controls {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-warm);
}

.share-control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.share-control-row select {
  flex: 1;
  min-width: 170px;
  padding: 0.36rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-bright);
  background: var(--bg-deep);
  color: var(--text-main);
  font: inherit;
  font-size: 0.78rem;
}

.share-toggles-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
}

.share-check-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-main);
  cursor: pointer;
}

.share-check-label input {
  accent-color: var(--accent-gold);
}

.share-caption-box {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.share-caption-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.btn-mini-copy {
  padding: 0.24rem 0.6rem;
  font-size: 0.72rem;
}

.share-caption-box textarea {
  width: 100%;
  resize: vertical;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-warm);
  background: var(--bg-card);
  color: var(--text-main);
  font: inherit;
  font-size: 0.76rem;
  line-height: 1.42;
}

/* =========================================================================
   THEO DÕI HAI TRƯỜNG PHÁI ẨM THỰC TRONG SIDEBAR (#dining-branch-tracker)
   ========================================================================= */
.dining-branch-tracker {
  margin: 0.75rem 0;
  padding: 0.68rem 0.8rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-warm);
}

.dining-branch-tracker[hidden] {
  display: none !important;
}

.branch-tracker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.48rem;
}

.branch-tracker-header h3 {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-gold);
}

.branch-tracker-count {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-jade);
  background: rgba(16, 185, 129, 0.14);
  padding: 0.1rem 0.48rem;
  border-radius: 999px;
}

.dining-branch-list {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.dining-branch-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.62rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-warm);
  background: rgba(18, 14, 10, 0.65);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.dining-branch-item.unlocked {
  border-color: rgba(16, 185, 129, 0.48);
  background: rgba(16, 185, 129, 0.08);
}

.dining-branch-item.current-branch {
  border-color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.14);
}

.branch-item-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.14);
  color: var(--accent-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dining-branch-item.unlocked .branch-item-icon {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-jade);
}

.branch-item-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.branch-item-text strong {
  font-size: 0.78rem;
  color: var(--text-main);
}

.branch-item-text small {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* =========================================================================
   4 ANIMATION ĐỘC ĐÁO TẠO HIỆU ỨNG "WOW" TRƯỚC KHI VÀO BÀN ĂN (MỞ RỘNG 100+ QUÁN)
   ========================================================================= */

/* --- WOW 1: Hạ cánh điểm đến & đóng dấu tọa độ (#city-arrival-flash) --- */
.city-arrival-flash {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  margin-bottom: 1.2rem;
  padding: 0.72rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(245, 158, 11, 0.38);
  background: linear-gradient(100deg, rgba(245, 158, 11, 0.14) 0%, rgba(22, 16, 12, 0.92) 52%, rgba(52, 211, 153, 0.08) 100%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.city-arrival-flash::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(251, 191, 36, 0.22) 50%, transparent 80%);
  transform: translateX(-120%);
  pointer-events: none;
}

.city-arrival-flash.arrival-burst::after {
  animation: arrivalShimmerSweep 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes arrivalShimmerSweep {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

.arrival-flash-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: var(--accent-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.3);
}

.city-arrival-flash.arrival-burst .arrival-flash-icon {
  animation: arrivalPlaneGlide 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes arrivalPlaneGlide {
  0% { transform: translateX(-18px) scale(0.88) rotate(-8deg); }
  65% { transform: translateX(3px) scale(1.06) rotate(2deg); }
  100% { transform: translateX(0) scale(1) rotate(0deg); }
}

.arrival-flash-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  flex: 1;
}

.arrival-flash-copy small {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
}

.arrival-flash-copy strong {
  font-size: 0.92rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.arrival-flash-stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  border: 1.5px dashed rgba(52, 211, 153, 0.6);
  background: rgba(6, 38, 28, 0.65);
  color: var(--jade-text);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.city-arrival-flash.arrival-burst .arrival-flash-stamp {
  animation: arrivalStampSlam 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes arrivalStampSlam {
  0% { transform: scale(1.14) rotate(-3deg); }
  70% { transform: scale(0.96) rotate(1deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* --- WOW 2: Thẻ quán 3D Magnetic Tilt, Ánh nắng phản chiếu & Món đinh (#restaurant-grid) --- */
#restaurant-grid {
  perspective: 1100px;
}

.restaurant-card {
  --card-rx: 0deg;
  --card-ry: 0deg;
  --glare-x: 50%;
  --glare-y: 50%;
  transform: perspective(1000px) rotateX(var(--card-rx, 0deg)) rotateY(var(--card-ry, 0deg));
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.22s ease, box-shadow 0.22s ease;
  will-change: transform;
}

#restaurant-grid.cascade-enter .restaurant-card {
  animation: cardCascadeUp 0.52s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: calc(var(--card-idx, 0) * 55ms);
}

@keyframes cardCascadeUp {
  0% {
    transform: perspective(1000px) translateY(18px) scale(0.97);
  }
  100% {
    transform: perspective(1000px) translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  #restaurant-grid.cascade-enter .restaurant-card,
  .city-arrival-flash.arrival-burst .arrival-flash-icon,
  .city-arrival-flash.arrival-burst .arrival-flash-stamp,
  .city-arrival-flash.arrival-burst::after {
    animation: none !important;
    transform: none !important;
  }
}

.card-glare-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle 220px at var(--glare-x, 50%) var(--glare-y, 50%), rgba(251, 191, 36, 0.24), transparent 72%);
  opacity: 0;
  transition: opacity 0.25s ease;
  mix-blend-mode: screen;
}

.restaurant-card:hover .card-glare-layer {
  opacity: 1;
}

.card-dish-peek {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  max-width: calc(100% - 1.3rem);
  padding: 0.24rem 0.62rem 0.24rem 0.26rem;
  border-radius: 999px;
  background: rgba(14, 10, 7, 0.88);
  border: 1px solid rgba(245, 158, 11, 0.48);
  color: var(--text-main);
  font-size: 0.71rem;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  transition: transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

.card-dish-peek img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--accent-gold);
  flex-shrink: 0;
}

.card-dish-peek span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.restaurant-card:hover .card-dish-peek {
  transform: translateY(-3px) scale(1.04);
  border-color: var(--accent-gold);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.85), 0 0 16px rgba(245, 158, 11, 0.35);
}

/* --- WOW 3: Tầng 3 — Tia nắng cửa sổ & bụi nắng vàng lơ lửng (#interior-viewport) --- */
#interior-viewport {
  --interior-scale: 1.04;
  --interior-pan-x: 0px;
  --interior-pan-y: 0px;
}

#interior-viewport #interior-image {
  transform-origin: var(--menu-x, 50%) var(--menu-y, 72%);
  transform: scale(var(--interior-scale, 1.04)) translate3d(var(--interior-pan-x, 0px), var(--interior-pan-y, 0px), 0);
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

#interior-viewport.pov-sit-down-active {
  --interior-scale: 1.14;
}

#interior-viewport.interior-arrival-active #interior-image {
  animation: interiorTableApproach 1.05s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes interiorTableApproach {
  0% {
    transform: scale(1.14) translate3d(0px, 14px, 0);
    filter: brightness(0.78) saturate(1.12);
  }
  100% {
    transform: scale(var(--interior-scale, 1.04)) translate3d(var(--interior-pan-x, 0px), var(--interior-pan-y, 0px), 0);
    filter: brightness(1) saturate(1);
  }
}

.interior-sunbeam-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.sunbeam-ray {
  position: absolute;
  top: -25%;
  left: -10%;
  width: 55%;
  height: 150%;
  background: linear-gradient(125deg, rgba(251, 191, 36, 0.16) 0%, rgba(245, 158, 11, 0.05) 48%, transparent 75%);
  transform: rotate(-22deg);
  filter: blur(12px);
  mix-blend-mode: screen;
  opacity: 0.75;
  animation: sunbeamBreathe 6s ease-in-out infinite alternate;
}

.sunbeam-ray.ray-2 {
  left: 22%;
  width: 38%;
  opacity: 0.5;
  animation-duration: 8s;
}

@keyframes sunbeamBreathe {
  0% { opacity: 0.45; transform: rotate(-22deg) translateX(-8px); }
  100% { opacity: 0.85; transform: rotate(-20deg) translateX(12px); }
}

.sunbeam-mote {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(254, 243, 199, 0.75);
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.85);
  animation: moteFloat 7s ease-in-out infinite alternate;
}

.sunbeam-mote.mote-1 { left: 26%; top: 38%; animation-duration: 5.5s; }
.sunbeam-mote.mote-2 { left: 44%; top: 56%; width: 4px; height: 4px; animation-duration: 7.2s; }
.sunbeam-mote.mote-3 { left: 34%; top: 68%; width: 6px; height: 6px; animation-duration: 6.4s; }

@keyframes moteFloat {
  0% { transform: translate3d(0, 0, 0) scale(0.85); opacity: 0.35; }
  100% { transform: translate3d(14px, -18px, 0) scale(1.2); opacity: 0.9; }
}

/* --- WOW 4: Lật mở thực đơn 3D & Bưng món đặt xuống bàn (#restaurant-menu-dialog & #pov-viewport) --- */
#restaurant-menu-dialog[open] .modal-card {
  animation: menuBookUnfold 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: left center;
}

@keyframes menuBookUnfold {
  0% {
    opacity: 0;
    transform: perspective(1100px) rotateY(-14deg) scale(0.95) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: perspective(1100px) rotateY(0deg) scale(1) translateY(0);
  }
}

#pov-viewport.dish-serve-active #keyframe-active {
  animation: dishServeSettle 0.88s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes dishServeSettle {
  0% {
    transform: scale(1.12) translateY(-18px);
    filter: brightness(1.14) contrast(1.05);
  }
  65% {
    transform: scale(0.99) translateY(3px);
  }
  100% {
    transform: scale(1) translateY(0);
    filter: brightness(1) contrast(1);
  }
}

/* --- Tầng 4: Đạo cụ cầm tay & vòng cử chỉ xúc giác trên bàn ăn --- */
.tactile-prop-svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.65));
  transition: transform 0.18s ease;
}

.cursor-tooltip.gesture-pressing .tactile-prop-svg {
  transform: rotate(-22deg) scale(0.9);
}

.cursor-gesture-badge {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--accent-jade);
}

.hitzone-gesture-svg {
  position: absolute;
  width: 44px;
  height: 44px;
  transform: rotate(-90deg);
  pointer-events: none;
}

.hitzone-gesture-track {
  fill: none;
  stroke: rgba(251, 191, 36, 0.22);
  stroke-width: 2.5;
}

.hitzone-gesture-fill {
  fill: none;
  stroke: var(--accent-gold);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-dasharray: 113.1;
  stroke-dashoffset: calc(113.1 * (1 - var(--gesture-progress, 0)));
  transition: stroke-dashoffset 0.06s linear;
}

.dish-hitzone.gesture-active {
  transform: translate(-50%, -50%) scale(1.08);
  border-color: var(--accent-gold);
  box-shadow: 0 0 32px rgba(251, 191, 36, 0.55);
}

.hitzone-prop-mini {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 22px;
  height: 22px;
  pointer-events: none;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.75));
  transition: transform 0.18s ease;
}

.dish-hitzone:hover .hitzone-prop-mini,
.dish-hitzone.gesture-active .hitzone-prop-mini {
  transform: rotate(-18deg) scale(1.16);
}

@media (max-width: 768px) {
  .city-arrival-flash {
    flex-wrap: wrap;
    padding: 0.6rem 0.85rem;
  }

  .arrival-flash-stamp {
    font-size: 0.68rem;
    padding: 0.24rem 0.55rem;
  }
}
