@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 300; font-display: swap;
  src: url("/walkthrough-villa/fonts/BeVietnamPro-300-latin.woff2") format("woff2"); }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("/walkthrough-villa/fonts/BeVietnamPro-800-latin.woff2") format("woff2"); }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/walkthrough-villa/fonts/BeVietnamPro-500-latin.woff2") format("woff2"); }

:root {
  --bg: #0d0d0d; --bg-2: #151515; --fg: #f2efe9; --fg-2: #cfcac0; --mut: #9a958c;
  --line: #2a2927; --acc: #c9a66b; --red: #e3120b;
  --glass: rgba(13, 13, 13, 0.72);
  --sans: "Be Vietnam Pro", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--fg); }
body { font: 300 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
.muted { color: var(--mut); }
.small { font-size: 13px; }
.eyebrow { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--acc); margin: 0 0 18px; font-weight: 500; }

#c { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: none; }

.top { position: fixed; top: 0; left: 0; right: 0; z-index: 30; display: flex; align-items: center; gap: 16px;
  padding: 18px clamp(16px, 3vw, 36px); pointer-events: none;
  background: linear-gradient(rgba(13,13,13,0.7), rgba(13,13,13,0)); }
.top > * { pointer-events: auto; }
.brand { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; color: var(--fg); }
.brand b { font: 800 26px/1 var(--sans); letter-spacing: 0.12em; color: var(--red); text-shadow: 0 1px 10px rgba(0,0,0,.45); }
.brand span { font: 500 10px/1 var(--sans); letter-spacing: 0.3em; text-transform: uppercase; color: var(--fg-2); }
.top-sep { width: 1px; height: 18px; background: var(--line); }
.top-title { font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--fg-2); }
.top-back { margin-left: auto; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; color: var(--fg-2);
  padding: 8px 0; border-bottom: 1px solid transparent; transition: border-color 200ms var(--ease), color 200ms var(--ease); }
.top-back:hover { color: var(--fg); border-color: var(--fg); }

.intro { position: fixed; inset: 0; z-index: 20; display: flex; align-items: flex-end; background: var(--bg);
  transition: opacity 600ms var(--ease); }
.intro.out { opacity: 0; pointer-events: none; }
.intro-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.intro-shade { position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(13,13,13,0.92) 0%, rgba(13,13,13,0.7) 38%, rgba(13,13,13,0.1) 70%),
              linear-gradient(0deg, rgba(13,13,13,0.85) 0%, rgba(13,13,13,0) 45%); }
.intro-body { position: relative; max-width: 620px; padding: 0 clamp(20px, 5vw, 80px) calc(clamp(32px, 8vh, 88px) + var(--safe-b));
  animation: rise 700ms var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.intro h1 { font-weight: 300; font-size: clamp(40px, 6.4vw, 92px); line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 20px; }
.lead { font-size: clamp(15px, 1.25vw, 18px); color: var(--fg-2); max-width: 46ch; margin: 0 0 28px; }
.intro-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.note { max-width: 52ch; margin: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 14px 28px;
  border: 1px solid var(--fg); background: transparent; color: var(--fg); cursor: pointer;
  font: 500 12px/1.2 var(--sans); letter-spacing: 0.18em; text-transform: uppercase;
  transition: transform 160ms var(--ease), background-color 200ms var(--ease), border-color 200ms var(--ease); }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn-primary:hover { background: #c40f09; border-color: #c40f09; }

.progress { margin-bottom: 26px; max-width: 360px; }
.bar { height: 2px; background: var(--line); overflow: hidden; margin-bottom: 10px; }
.bar span { display: block; height: 100%; background: var(--acc); transform: scaleX(0); transform-origin: left; transition: transform 200ms linear; }

.hotspots { position: fixed; inset: 0; pointer-events: none; z-index: 10; }
.hot { position: absolute; left: 0; top: 0; width: 0; height: 0; padding: 0; border: 0; background: none;
  cursor: pointer; opacity: 0; transition: opacity 250ms var(--ease); will-change: transform; }
.hot .dot { position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(13,13,13,0.55); border: 1px solid rgba(242,239,233,0.85); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  transition: transform 160ms var(--ease), background-color 200ms var(--ease); }
.hot .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); }
.hot .lbl { position: absolute; left: 22px; top: -13px; font-size: 12px; letter-spacing: 0.06em; white-space: nowrap; padding: 5px 10px;
  color: var(--fg); background: var(--glass); border: 1px solid var(--line); opacity: 0; transform: translateX(-4px);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease); pointer-events: none; }
.hot.flip .lbl { left: auto; right: 22px; transform: translateX(4px); }
.hot:hover .dot, .hot:focus-visible .dot { transform: scale(1.12); background: rgba(201,166,107,0.35); }
.hot:hover .lbl, .hot:focus-visible .lbl, .hot.active .lbl { opacity: 1; transform: none; }
@media (pointer: coarse) {
  .hot .dot { left: -17px; top: -17px; width: 34px; height: 34px; }
  .hot .lbl, .hot.active .lbl, .hot:focus-visible .lbl { opacity: 0; }
  .hot.active .dot { background: rgba(201,166,107,0.45); }
}

.card { position: fixed; z-index: 25; left: clamp(16px, 3vw, 36px); bottom: calc(96px + var(--safe-b)); width: min(380px, calc(100vw - 32px));
  padding: 24px 24px 20px; background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  opacity: 0; transform: translateY(10px); transition: opacity 220ms var(--ease), transform 220ms var(--ease); }
.card.show { opacity: 1; transform: none; }
.card .eyebrow { margin-bottom: 10px; }
.card h2 { font-weight: 300; font-size: 26px; line-height: 1.15; margin: 0 0 10px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--fg-2); font-size: 15px; }
.card-close { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border: 0; background: none; font-size: 24px; line-height: 1; cursor: pointer; color: var(--mut); }
.card-close:hover { color: var(--fg); }

.caption { position: fixed; z-index: 15; left: 50%; top: 76px; transform: translateX(-50%); display: flex; gap: 12px; align-items: baseline;
  padding: 10px 18px; background: var(--glass); border: 1px solid var(--line); font-size: 14px; white-space: nowrap; }
.caption span { color: var(--acc); font-size: 11px; letter-spacing: 0.2em; font-variant-numeric: tabular-nums; }
.caption strong { font-weight: 500; }

.toolbar { position: fixed; z-index: 15; left: 50%; bottom: calc(20px + var(--safe-b)); transform: translateX(-50%);
  display: flex; align-items: center; gap: 2px; padding: 4px; background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); max-width: calc(100vw - 16px); }
.toolbar button { min-height: 40px; min-width: 40px; padding: 0 14px; border: 0; background: none; cursor: pointer;
  font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-2);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 160ms var(--ease), background-color 200ms var(--ease), color 200ms var(--ease); }
.toolbar button:hover { color: var(--fg); }
.toolbar button:active { transform: scale(0.97); }
.toolbar button.on { background: var(--fg); color: #0d0d0d; }
.seg { display: flex; border-right: 1px solid var(--line); padding-right: 2px; margin-right: 2px; }

.hint { position: fixed; z-index: 12; left: 50%; bottom: calc(80px + var(--safe-b)); pointer-events: none; transform: translateX(-50%); margin: 0;
  font-size: 12px; color: var(--fg); white-space: nowrap; padding: 6px 12px; background: var(--glass); transition: opacity 400ms var(--ease); }
.hint.fade { opacity: 0; }

.joy { position: fixed; z-index: 14; left: 24px; bottom: calc(90px + var(--safe-b)); width: 112px; height: 112px; border-radius: 50%;
  border: 1px solid rgba(242,239,233,0.4); background: rgba(13,13,13,0.35); touch-action: none; }
.joy span { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  background: rgba(242,239,233,0.85); }

.toast { position: fixed; z-index: 40; left: 50%; top: 80px; transform: translate(-50%, -8px); padding: 10px 16px; font-size: 13px;
  background: var(--glass); border: 1px solid var(--line); opacity: 0; pointer-events: none; transition: opacity 200ms var(--ease), transform 200ms var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.noscript { position: fixed; inset: auto 0 0 0; z-index: 50; margin: 0; padding: 16px; background: var(--red); color: #fff; text-align: center; }

@media (max-width: 640px) {
  .top { padding: 14px 16px; gap: 10px; }
  .top-title { display: none; }
  .top-sep { display: none; }
  .intro-shade { background: linear-gradient(0deg, rgba(13,13,13,0.96) 0%, rgba(13,13,13,0.8) 45%, rgba(13,13,13,0.15) 80%); }
  .intro-poster { object-position: 60% 50%; }
  .toolbar button { padding: 0 10px; letter-spacing: 0.1em; }
  .card { top: 64px; bottom: auto; left: 16px; padding: 18px 18px 16px; }
  .card h2 { font-size: 22px; }
  .card p { font-size: 14px; }
  .caption { top: 64px; font-size: 13px; }
  .hint { bottom: calc(72px + var(--safe-b)); font-size: 11px; }
  .joy { bottom: calc(108px + var(--safe-b)); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* SAS villa: bau troi sau canvas trong suot */
html, body { background: #9fc3e6; }
.sky { position: fixed; inset: 0; z-index: -1; background: linear-gradient(180deg, #5f93cf 0%, #8fb8e2 38%, #c9dcef 62%, #dfe6e9 100%); }
.top { text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.tourbar { position: fixed; z-index: 15; left: 0; right: 0; top: 0; height: 3px; background: rgba(0,0,0,.25); }
.tourbar span { display: block; height: 100%; background: var(--acc); transform: scaleX(0); transform-origin: left; }
.embed .top { display: none; }
.embed .intro-body { padding-bottom: calc(clamp(24px, 6vh, 64px) + var(--safe-b)); }

/* Nhúng trong hero trang chủ: chữ tiêu đề do trang chủ SAS Render đảm nhiệm, chỉ giữ thanh tải */
.embed .intro-body > :not(#progress) { display: none; }
.embed .intro-body { justify-content: flex-end; }
.embed .caption { top: 104px; }
@media (max-width: 640px) {
  .embed .caption { top: 78px; }
  .embed .toolbar { left: 10px; transform: none; max-width: calc(100% - 96px); }
  .embed .toolbar button { min-width: 36px; padding: 0 8px; font-size: 11px; }
  .embed #bFull { display: none; }
}

/* Mui ten dan duong vao nha */
.guide { position: fixed; inset: 0; pointer-events: none; z-index: 11; }
.garrow { position: absolute; left: 0; top: 0; width: 0; height: 0; padding: 0; border: 0; background: none; cursor: pointer;
  opacity: 0; transition: opacity 250ms var(--ease); will-change: transform; -webkit-tap-highlight-color: transparent; }
.gico { position: absolute; left: -29px; top: -29px; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(13, 13, 13, 0.66); border: 2px solid var(--acc); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: gpulse 1.8s ease-out infinite; }
.gico svg { width: 30px; height: 30px; fill: var(--acc); }
.glbl { position: absolute; left: 50%; top: 36px; transform: translateX(-50%); white-space: nowrap; font-size: 12px; letter-spacing: 0.06em;
  padding: 5px 10px; background: var(--glass); color: var(--fg); border: 1px solid var(--line); }
.garrow.edge .gico { background: rgba(211, 154, 92, 0.9); }
.garrow.edge .gico svg { fill: #14100b; }
.garrow:focus-visible .gico { outline: 2px solid #fff; outline-offset: 3px; }
.toolbar .enter { background: var(--acc); color: #14100b; font-weight: 500; }
@keyframes gpulse { 0% { box-shadow: 0 0 0 0 rgba(211, 154, 92, 0.55); } 70% { box-shadow: 0 0 0 16px rgba(211, 154, 92, 0); } 100% { box-shadow: 0 0 0 0 rgba(211, 154, 92, 0); } }
@media (prefers-reduced-motion: reduce) { .gico { animation: none; } }

/* Mui ten dan duong: nho, mau do (anh Sang 01/11) */
.gico { left: -18px; top: -18px; width: 36px; height: 36px; border: 2px solid #e5261e; background: rgba(13, 13, 13, 0.55);
  animation: gpulse2 1.8s ease-out infinite; }
.gico svg { width: 20px; height: 20px; fill: #e5261e; }
.glbl { top: 24px; font-size: 11px; padding: 3px 8px; letter-spacing: 0.05em; }
.garrow.edge .gico { background: #e5261e; }
.garrow.edge .gico svg { fill: #fff; }
.toolbar .enter { background: #e5261e; color: #fff; }
@keyframes gpulse2 { 0% { box-shadow: 0 0 0 0 rgba(229, 38, 30, 0.55); } 70% { box-shadow: 0 0 0 12px rgba(229, 38, 30, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 38, 30, 0); } }

/* Nut phong to / thu nho (dien thoai va may tinh) */
.zoomctl { position: fixed; right: calc(12px + env(safe-area-inset-right, 0px)); bottom: calc(84px + var(--safe-b, 0px)); z-index: 12;
  display: grid; gap: 8px; }
.zoomctl button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(242, 239, 233, 0.4); background: rgba(13, 13, 13, 0.62);
  color: #f2efe9; font: 500 22px/1 var(--sans, sans-serif); cursor: pointer; display: grid; place-items: center; touch-action: manipulation;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.zoomctl button:active { background: #e5261e; border-color: #e5261e; }
.joy:not([hidden]) ~ .zoomctl { bottom: calc(176px + var(--safe-b, 0px)); }
