/* Vibe Café on top of style.css: Vietnamese type, the play button, the booking panel. */

@font-face { font-family: "Cormorant Unicase"; src: url("../assets/home/fonts/cormorant-unicase-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: block; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Unicase"; src: url("../assets/home/fonts/cormorant-unicase-vietnamese-400-normal.woff2") format("woff2"); font-weight: 400; font-display: block; unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Cormorant Unicase"; src: url("../assets/home/fonts/cormorant-unicase-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: block; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Unicase"; src: url("../assets/home/fonts/cormorant-unicase-vietnamese-500-normal.woff2") format("woff2"); font-weight: 500; font-display: block; unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Geist"; src: url("../assets/home/fonts/geist-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; src: url("../assets/home/fonts/geist-vietnamese-300-normal.woff2") format("woff2"); font-weight: 300; font-display: swap; unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Geist"; src: url("../assets/home/fonts/geist-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; src: url("../assets/home/fonts/geist-vietnamese-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Geist"; src: url("../assets/home/fonts/geist-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; src: url("../assets/home/fonts/geist-vietnamese-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }

.scroll { height: 1300vh; }
/* vào thẳng: màn tải tan nhanh. Hai dải tối trên dưới không làm mờ bằng filter (nặng máy khi hình phía sau đổi liên tục). */
.preloader.is-done { transition: opacity 500ms var(--ease), visibility 0s linear 500ms; }
.fade::before { filter: none; left: 0; right: 0; }
.fade--top::before { top: 0; height: 100%; }
.fade--bottom::before { bottom: 0; height: 100%; }
.hint[hidden] { display: none; }
.no-gl { position: fixed; inset: 0; z-index: 31; display: none; place-items: center; text-align: center; background: var(--ink); color: var(--paper-70); padding: 24px; }
.no-gl.is-on { display: grid; }
.no-gl a { text-decoration: underline; }

/* Vietnamese marks stand above and below the letters: the titles need more room between lines than the English ones. */
.title__text { line-height: 1.04; letter-spacing: -0.02em; padding-bottom: 0; }
.title { gap: calc(var(--u) * 10); }
.preloader__title, .header__logo { line-height: 1.08; letter-spacing: 0; }
.overlay__title { line-height: 1.08; letter-spacing: -0.02em; }
.title, .body, .center { text-shadow: 0 1px 14px rgba(15, 11, 8, 0.75), 0 0 2px rgba(15, 11, 8, 0.45); }
.body, .center { line-height: 1.4; letter-spacing: 0; }

/* logo ở giữa, các mục đứng hai bên sát logo */
.header { --half: calc(var(--u) * 56); --gap: calc(var(--u) * 44); }
.header__side { position: absolute; top: var(--pad); height: calc(var(--u) * 39); display: flex; align-items: center; gap: calc(var(--u) * 32); }
.header__side--left { right: calc(50% + var(--half) + var(--gap)); }
.header__side--right { left: calc(50% + var(--half) + var(--gap)); }
.header__side > * { font-weight: 400; letter-spacing: -0.02em; line-height: 0.9; white-space: nowrap; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7); transition: opacity 200ms, background 300ms, color 300ms; }
.header__side > *:hover { opacity: 0.6; }
.header__side > .header__book { padding: 11px 20px; border: 1px solid var(--paper-60); border-radius: 100px; background: rgba(15, 11, 8, 0.45); text-shadow: none; }
.header__side > .header__book:hover { opacity: 1; background: var(--paper); color: var(--ink); }

.card__img img { object-fit: cover; }

/* ---- giới thiệu từng khu ---- */
.body span[class] { display: block; }
.body:has(.info__intro) { top: calc(var(--u) * 296); transform: none; text-transform: none; font-size: max(calc(var(--u) * 14), 12px); line-height: 1.45; }
.info__intro { margin-bottom: 14px; }
.info__head { display: block; margin: 0 0 6px; font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper-60); }
.info__list { border-top: 1px solid var(--paper-25); }
.info__list span { display: block; padding: 6px 0; border-bottom: 1px solid var(--paper-25); }
.info__serve { margin-top: 12px; color: var(--paper-70); }
.info__more { margin-top: 14px; padding: 9px 16px; border: 1px solid var(--paper-60); border-radius: 100px; background: rgba(15, 11, 8, 0.45); font-size: 12px; transition: background 300ms, color 300ms; text-shadow: none; }
.info__more:hover { background: var(--paper); color: var(--ink); }
.body.is-on .info__more { pointer-events: auto; }
/* the words on the right stand on a darkened edge of the picture */
.bodies::before { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: min(46%, calc(var(--u) * 620)); background: linear-gradient(to left, rgba(15, 11, 8, 0.86), rgba(15, 11, 8, 0.66) 45%, rgba(15, 11, 8, 0)); opacity: 0; transition: opacity var(--fade) var(--ease); }
.stage.has-card .bodies::before, .bodies:has([data-scene="hero"].is-on)::before { opacity: 1; }
.header, .card, .play, .hint { z-index: 1; }
.overlay__right { max-height: calc(100vh - 140px); overflow-y: auto; scrollbar-width: none; }
.overlay__right .info__head { margin-bottom: 4px; }
.info__draft { display: block; color: var(--paper-50); font-size: 11px; }
@media (max-width: 767px), (orientation: landscape) and (max-height: 560px) {
  .body:has(.info__intro) { top: 46%; transform: translate(-50%, -50%); text-align: center; }
  .body span.info__head, .body span.info__list, .body span.info__serve { display: none; }   /* đủ mạnh để thắng .body span[class] ở trên */
  .bodies::before { content: none; }
  .overlay__right { max-height: none; }
}
@media (orientation: landscape) and (max-height: 560px) {
  .body:has(.info__intro) { transform: translateY(-50%); text-align: left; }
}
/* thẻ ảnh cao tới khoảng 265: đoạn chữ phải bắt đầu dưới đó, chừa một khoảng thở */
@media (min-width: 768px) and (max-height: 720px) and (min-height: 561px) {
  .body:has(.info__intro) { top: calc(var(--u) * 292); }
  .body span.info__serve { display: none; }
  .info__list span:nth-child(4) { display: none; }
}
/* màn hình rất thấp: thu thẻ ảnh lại để chữ còn chỗ, khoảng cách giữ nguyên */
@media (min-width: 768px) and (max-height: 640px) and (min-height: 561px) {
  .card__img { width: calc(var(--u) * 176); height: calc(var(--u) * 99); }
  .body:has(.info__intro) { top: calc(var(--u) * 266); }
}

/* ---- màn mở đầu: giới thiệu quán và địa chỉ ---- */
.body[data-scene="hero"] { text-transform: none; font-size: max(calc(var(--u) * 15), 13px); line-height: 1.5; }
.hero__tour { margin-top: 8px; color: var(--paper-70); }
.hero__address { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--paper-40); }
.hero__head { display: block; margin-bottom: 4px; font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper-60); }
/* điện thoại: đặt ngay trên tên quán, để cổng còn thấy được */
@media (max-width: 767px) and (orientation: portrait) {
  .body[data-scene="hero"] { top: auto; bottom: calc(150px + var(--lift, 0px)); transform: translateX(-50%); text-align: left; font-size: 13px; line-height: 1.45; padding: 14px 16px; border-radius: 14px; background: rgba(15, 11, 8, 0.62); }
  .hero__tour { display: none; }
  .body span.hero__tour { display: none; }
  .hero__address { margin-top: 10px; padding-top: 10px; }
}

/* ---- tự chạy ---- */
.play {
  position: absolute; right: var(--pad); bottom: calc(var(--pad) + var(--u) * 36);
  border: 1px solid var(--paper-60); border-radius: 100px; padding: 12px 20px; min-width: 112px; text-align: center;
  background: rgba(15, 11, 8, 0.45); font-size: 13px; line-height: 1; transition: background 300ms, color 300ms;
}
.play:hover { background: var(--paper); color: var(--ink); }

/* ---- các nút ở cuối ---- */
.end-actions {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; gap: calc(var(--u) * 16); flex-wrap: wrap; justify-content: center; width: max-content; max-width: calc(100vw - 32px);
  opacity: 0; visibility: hidden; transition: opacity var(--fade) var(--ease), visibility 0s linear var(--fade);
}
.end-actions.is-on { opacity: 1; visibility: visible; transition-delay: 0s; }
.end-actions .btn-frame { background: rgba(15, 11, 8, 0.55); line-height: 1.2; }
.end-actions .btn-frame:hover { background: var(--paper); color: var(--ink); }

/* lời chú ở khung cuối nằm dưới ba nút, không đè lên chúng */
.body[data-scene="finale"] { left: 50%; right: auto; top: calc(50% + var(--u) * 64); transform: translateX(-50%); width: max-content !important; max-width: calc(100vw - 32px); text-align: center; text-transform: none; }
@media (max-width: 767px), (orientation: landscape) and (max-height: 560px) {
  .body[data-scene="finale"] { top: calc(44% + 140px); font-size: 12px; max-width: min(300px, 100vw - 32px); }
}

/* ---- cuốn menu ---- */
.fade--bottom { transition: opacity var(--fade) var(--ease); }
body.is-reading .fade { opacity: 0; }   /* không phủ tối lên trang menu */
.menuui { position: fixed; inset: 0; z-index: 15; cursor: pointer; }
.menuui[hidden] { display: none; }
.menuui > * { cursor: auto; }
.menuui button { cursor: pointer; }
.menuui__title { position: absolute; left: var(--pad); top: var(--pad); font-size: calc(var(--u) * 40); line-height: 1; pointer-events: none; }
.menuui__title span { display: block; margin-top: 10px; font: 300 13px/1.2 "Geist", system-ui, sans-serif; text-transform: none; color: var(--paper-60); }
.menuui__close { position: absolute; right: var(--pad); top: var(--pad); }
.menuui__close span { color: var(--paper-50); }
.menuui__nav { position: absolute; left: 50%; bottom: var(--pad); transform: translateX(-50%); display: flex; align-items: center; gap: 18px; white-space: nowrap; }
.menuui__nav button { width: 44px; height: 44px; border: 1px solid var(--paper-40); border-radius: 50%; font-size: 22px; line-height: 1; text-align: center; background: rgba(15, 11, 8, 0.6); }
.menuui__nav button:disabled { opacity: 0.3; cursor: default; }
.menuui__book { position: absolute; right: var(--pad); bottom: var(--pad); background: var(--paper); color: var(--ink); border-radius: 100px; padding: 12px 22px; font-size: 14px; line-height: 1; }
.booking__menu { align-self: flex-start; border: 1px solid var(--paper-60); border-radius: 100px; padding: 10px 18px; font-size: 13px; line-height: 1; }
.booking__menu:hover { background: var(--paper); color: var(--ink); }
@media (max-width: 767px) {
  .menuui__title { font-size: 26px; top: 20px; left: 16px; }
  .menuui__title span { display: none; }
  .menuui__close { right: 16px; }
  .menuui__nav { left: 16px; transform: none; gap: 10px; bottom: 20px; }
  .menuui__book { right: 16px; bottom: 22px; padding: 12px 16px; }
}

/* ---- đặt bàn ---- */
.booking { overflow-y: auto; display: grid; place-items: center; padding: 72px 16px; background: rgba(15, 11, 8, 0.94); }
.booking__panel { width: min(520px, 100%); display: flex; flex-direction: column; gap: 20px; }
.booking__panel dl { margin: 0; display: grid; grid-template-columns: 112px 1fr; row-gap: 10px; padding: 18px 0; border-block: 1px solid var(--paper-25); font-size: 14px; }
.booking__panel dt { color: var(--paper-60); }
.booking__panel dd { margin: 0; }
.booking__panel form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; }
.booking__panel label span { display: block; font-size: 12px; color: var(--paper-60); }
.booking__panel input { width: 100%; min-width: 0; background: none; border: 0; border-bottom: 1px solid var(--paper-40); color: var(--paper); font: inherit; font-size: 16px; padding: 6px 0; color-scheme: dark; }
.booking__panel .btn-frame { grid-column: 1 / -1; justify-self: start; font-size: 18px; line-height: 1.2; padding: 14px 24px; }
.booking__panel #bookingNote { grid-column: 1 / -1; min-height: 1.4em; font-size: 13px; color: var(--paper-70); }

@media (max-width: 767px), (orientation: landscape) and (max-height: 560px) {
  .header { --half: 44px; --gap: 14px; }
  .header__side { top: 24px; height: 31px; gap: 12px; }
  .header__side > * { font-size: 10px; }
  .header__side > .header__book { padding: 8px 12px; }
  .title__text { line-height: 1.08; font-size: min(40px, 10.4vw); }
  .play { right: 16px; bottom: auto; top: 92px; padding: 9px 14px; min-width: 0; font-size: 12px; }
  .end-actions { top: 44%; flex-direction: column; align-items: stretch; gap: 10px; }
  .end-actions .btn-frame { font-size: 17px; padding: 14px 24px; text-align: center; }
}

/* logo Vibe (ảnh) ở đầu trang và màn chờ */
.header__logo img { display: block; width: calc(var(--u) * 112); height: auto; filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.55)); }
.preloader__title img { display: block; width: calc(var(--u) * 190); height: auto; }
@media (max-width: 767px), (orientation: landscape) and (max-height: 560px) {
  .header__logo img { width: 88px; }
  .preloader__title img { width: 180px; }
}
.header__logo img { transition: opacity 500ms; }
body.at-gate .header__logo img { opacity: 0; }

/* Thẻ ảnh nhỏ của từng khu: bỏ theo yêu cầu. Nút vẫn nằm trong trang vì "Xem chi tiết" mở trang khu qua nó. */
.card { display: none; }
