/* Hero story trang chủ (11/11/2026, học chuyển động "lùi camera" của qclay.design): một khối ghim cuộn kể dự án
   Gamification eUp Workspace qua 4 chặng — bản đồ mùa giải → màn sản phẩm → canvas cùng AI agent → app mobile.
   Chỉ nạp ở trang chủ. Màu ở đây là màu minh hoạ của cảnh (trời hoàng hôn, mây, đảo, banner xanh của Workspace),
   tách khỏi bảng màu giao diện trong site.css. site.js / hero-story.js đặt vị trí từng lớp theo tiến độ cuộn. */
.hs-root { --hs-violet: #7b5ce0; --hs-ok: #1d9a5b; --hs-busy: #c98a12; --hs-cyan: #1495a8; --hs-red: #e5484d; --hs-grid: rgba(17, 17, 17, .07); --hs-blue: #596bd3; --hs-green: #2f9e6e; --hs-orange: #e8743b; }
/* Không JS: chỉ hiện ảnh màn desktop tĩnh. */
html:not(.js) .hs-story { height: auto; }
html:not(.js) .hs-stage { position: relative; height: auto; padding-block: 24px 64px; }
html:not(.js) .hs-win { position: relative; width: min(1000px, 92vw); aspect-ratio: 16 / 10; margin-inline: auto; }
html:not(.js) .hs-kv, html:not(.js) .hs-cursor, html:not(.js) .hs-pill, html:not(.js) .hs-canvas { display: none; }
.hs-story { position: relative; height: calc(var(--vh0, 1vh) * 820); }
.hs-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hs-canvas { position: absolute; inset: 0; background-color: var(--bg-alt); opacity: 0;
  background-image:
    linear-gradient(var(--hs-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--hs-grid) 1px, transparent 1px);
  background-size: 72px 72px; background-position: center center; }
.hs-canvas::before, .hs-canvas::after { content: ""; position: absolute; border: 0 dashed rgba(17, 17, 17, .18); }
.hs-canvas::before { left: 0; right: 0; top: 50%; border-top-width: 1px; }
.hs-canvas::after { top: 0; bottom: 0; left: 50%; border-left-width: 1px; }
.hs-ruler { position: absolute; left: 10px; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: space-around; font: 500 10px var(--mono); color: rgba(17, 17, 17, .3); }

.hs-win { position: absolute; overflow: hidden; will-change: transform; background: #f3f5f9; box-shadow: 0 30px 80px -30px rgba(17, 17, 17, .35), 0 0 0 1px rgba(17, 17, 17, .08); will-change: left, top, width, height; }
.hs-win img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; display: block; max-width: none; }
.hs-win .hs-mob { opacity: 0; object-position: center top; }
/* Làng chuyển sang ban đêm ở cuối chuỗi (19/11/2026, Thảo): ảnh chụp bản đêm THẬT của Làng (?night=1, cùng khung 390×844 với ảnh ngày) mờ dần chồng lên ảnh ngày; opacity do hero-village.js */
.hs-win .hs-night { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; pointer-events: none; opacity: 0; }
/* nền đêm nhẹ hơn (Thảo: "background đêm bị đặc"): màn sương tím nhạt trên trời và chân ảnh, chừa cụm đảo + header nét */
/* trăng tách khỏi ảnh đêm, đi từ trái qua phải theo cung khi cuộn (hero-village.js đặt --mx / --my / opacity) */
.hs-win .hs-moon { position: absolute; left: var(--mx, 18%); top: var(--my, 22%); width: 11.5%; aspect-ratio: 1; margin: -5.75% 0 0 -5.75%; border-radius: 50%; pointer-events: none; opacity: 0; background: radial-gradient(circle at 42% 40%, #FFF8DC, #F3E7B8 70%); box-shadow: 0 0 0 6px #FFF2C41F, 0 0 40px 18px #FFE9B04D, 0 0 110px 50px #E9D6FF26; }
.hs-win .hs-night-veil { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(180deg, transparent 0 7%, #C9C2F552 14%, #B9B0F033 38%, transparent 50%, transparent 62%, #C9B8F040 82%, #E4D8FA66 100%); }
.hs-kv { position: absolute; overflow: hidden; z-index: 5; container-type: size; contain: paint; }
.hs-kv-bg { position: absolute; inset: 0; background: linear-gradient(135deg, #3f82f0 0%, #2c61d8 55%, #2148b0 100%); }
.hs-kv-map { position: absolute; z-index: 2; }
.hs-kv-map::before { content: ""; position: absolute; left: 2%; right: -2%; top: 76%; height: 30%; border-radius: 50%; background: radial-gradient(closest-side, rgba(120, 60, 120, .38), rgba(120, 60, 120, 0)); opacity: var(--decor, 1); }
/* Trời "hoàng hôn mùa Sale": chỉ ở chặng đầu, mờ về nền xanh của banner thật khi lùi camera. */
.hs-kv-decor { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hs-kv-decor > * { position: absolute; }
.hs-sky { inset: 0; background: linear-gradient(180deg, #6f73ec 0%, #9a86f0 30%, #d99ad8 58%, #f6b3bf 76%, #ffd8b4 100%); }
.hs-sun { left: 50%; top: 40%; width: 90vmax; height: 90vmax; translate: -50% -50%; background: radial-gradient(circle, rgba(255, 238, 214, .95) 0, rgba(255, 214, 196, .55) 9%, rgba(255, 190, 200, .22) 22%, rgba(255, 190, 200, 0) 42%); }
.hs-stars { inset: 0 0 45% 0; }
.hs-spark { position: absolute; left: var(--x); top: var(--y); width: 9px; height: 9px; background: #fff8e8; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: hs-twinkle 3.4s ease-in-out var(--d) infinite; }
@keyframes hs-twinkle { 0%, 100% { opacity: .1; transform: scale(.5) rotate(0deg); } 50% { opacity: .9; transform: scale(1.1) rotate(45deg); } }
.hs-layer { inset: 0; transform-origin: 50% 46%; }
/* Safari (iPad) vẽ trễ / lệch phần tử có filter khi đang chuyển động → bóng mây là chính hình mây lệch xuống (SVG), không dùng filter; animation bằng transform. */
.hs-cloud { position: absolute; left: var(--x); top: var(--y); width: var(--w); animation: hs-float var(--t, 9s) ease-in-out var(--d, 0s) infinite alternate; }
.hs-cloud svg { display: block; width: 100%; height: auto; overflow: visible; }
@keyframes hs-float { from { transform: translate3d(-14px, 0, 0); } to { transform: translate3d(18px, -6px, 0); } }
.hs-isle { position: absolute; left: var(--x); top: var(--y); width: var(--w); animation: hs-bob var(--t, 6s) ease-in-out var(--d, 0s) infinite alternate; }
.hs-isle svg { display: block; width: 100%; height: auto; }
@keyframes hs-bob { from { transform: translate3d(0, -6px, 0); } to { transform: translate3d(0, 8px, 0); } }
.hs-sea { left: -10%; right: -10%; bottom: -2%; height: 30%; top: auto; }
/* Biển mây đứng yên, rộng vừa khung (11/11/2026): bản trôi ngang rộng 200% bị Safari iPad vẽ thiếu khi phóng to lúc lùi camera. */
.hs-sea svg { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; }
.hs-sea svg.hs-back { bottom: 18%; opacity: .7; }
@media (prefers-reduced-motion: reduce) { .hs-cloud, .hs-spark, .hs-isle { animation: none; } }
.hs-kv-map img { width: 100%; height: 100%; display: block; max-width: none; }

.hs-cursor { position: absolute; z-index: 8; display: flex; align-items: flex-start; gap: 2px; opacity: 0; pointer-events: none; will-change: transform; }
.hs-cursor svg { width: 18px; height: 18px; flex: none; }
.hs-cursor b { margin-top: 14px; padding: 3px 8px; border-radius: 999px; font: 600 11px/1.3 var(--sans); color: #fff; white-space: nowrap; }

.hs-pill { position: absolute; left: 50%; bottom: max(28px, calc(env(safe-area-inset-bottom, 0px) + 20px)); z-index: 10; transform: translateX(-50%); min-width: 220px; height: 44px; padding: 0 22px; border-radius: 999px; background: var(--bg); box-shadow: 0 8px 30px -10px rgba(17, 17, 17, .3), 0 0 0 1px rgba(17, 17, 17, .06); overflow: hidden; display: grid; place-items: center; }
.hs-pill span { grid-area: 1 / 1; font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .4s; }
.hs-pill span:not(.hs-on) { transform: translateY(120%); opacity: 0; }
.hs-pill span.was { transform: translateY(-120%); }

.hs-hint { position: absolute; right: max(20px, env(safe-area-inset-right, 0px)); top: calc(var(--header-h) + 16px); z-index: 10; font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--bg); padding: 6px 10px; border-radius: 6px; box-shadow: 0 0 0 1px var(--line); }
.hs-hint em { font-style: normal; color: var(--text); font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .hs-story { height: auto; }
  .hs-stage { position: relative; }
}
a.hs-hint { text-decoration: none; transition: color .15s, box-shadow .15s; }
a.hs-hint:hover { color: var(--text); box-shadow: 0 0 0 1px var(--text); }
a.hs-hint:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

/* Hero hai cột (11/11/2026; 12/11 đổi chỗ): chữ hero cột trái, banner động cột phải (ô .hs-slot, JS đặt .hs-kv đúng vào đó). */
/* PC: card cao gần hết màn, cách menu và đáy màn bằng nhau (--hs-pad) – không còn khoảng trống lớn giữa menu và hero. */
.hs-intro { --hs-pad: clamp(24px, 4.5vh, 56px); position: absolute; inset: var(--header-h) 0 0; z-index: 4; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 72px); align-items: center; padding-block: var(--hs-pad); will-change: transform, opacity; }
.hs-slot { order: 2; height: min(calc(100svh - var(--header-h) - 2 * var(--hs-pad)), 820px); }
.hs-text.hero { padding: 0; }
.hs-text.hero h1 { max-width: none; font-size: clamp(40px, 5.6vw, 92px); }
.hs-text.hero .lead { max-width: 520px; }
.hs-pill { opacity: 0; }
.hs-hint { opacity: 0; }
@media (width <= 900px) {
  .hs-intro { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 24px; }
  .hs-slot { order: 2; height: 38svh; }
  .hs-text.hero h1 { font-size: clamp(36px, 9vw, 56px); }
}
/* Không JS: hero tĩnh, không ô trống. */
html:not(.js) .hs-intro { position: relative; inset: auto; padding-top: 40px; }
html:not(.js) .hs-slot { display: none; }

/* Tiêu đề trong cảnh hoàng hôn (11/11/2026): chữ nhỏ "UX gamification" + "eUp Workspace", cỡ theo khung (cqw). */
.hs-kv-title { position: absolute; z-index: 3; left: 0; right: 0; top: 20px; display: grid; justify-items: center; gap: .5em; padding-inline: 16px; text-align: center; color: #fff; pointer-events: none; text-shadow: 0 2px 18px rgba(70, 40, 140, .35); }
.hs-kv-title span { font: 500 clamp(10px, 1.3cqw, 15px)/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; opacity: .9; }
.hs-kv-title strong { font: 600 clamp(26px, 6.2cqw, 84px)/1 var(--sans); letter-spacing: -.035em; }
html:not(.js) .hs-kv-title { display: none; }

/* Khung chọn kiểu Figma quanh màn (chặng "Designed with AI agents"): viền, 4 nút góc, nhãn kích thước. Con trỏ nắm góc nào thì góc đó sáng. */
.hs-sel { position: absolute; left: 0; top: 0; z-index: 7; opacity: 0; pointer-events: none; outline: 1.5px solid #0d99ff; outline-offset: 3px; will-change: transform, width, height; }
.hs-sel > i[data-h] { position: absolute; width: 9px; height: 9px; background: #fff; border: 1.5px solid #0d99ff; border-radius: 2px; transition: background .2s, transform .2s; }
.hs-sel > i[data-h="tl"] { left: -8px; top: -8px; }
.hs-sel > i[data-h="tr"] { right: -8px; top: -8px; }
.hs-sel > i[data-h="bl"] { left: -8px; bottom: -8px; }
.hs-sel > i[data-h="br"] { right: -8px; bottom: -8px; }
.hs-sel > i[data-h].hs-active { background: #0d99ff; transform: scale(1.25); }
.hs-sel-size { position: absolute; left: 50%; top: calc(100% + 12px); translate: -50% 0; padding: 2px 8px; border-radius: 4px; background: #0d99ff; color: #fff; font: 500 11px/1.5 var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hs-cursor svg { transition: transform .2s; transform-origin: 3px 2px; }
.hs-cursor.hs-drag svg { transform: scale(.86); }
.hs-cursor.hs-drag b { box-shadow: 0 0 0 2px rgba(255, 255, 255, .9); }
html:not(.js) .hs-sel { display: none; }
.hs-cursor.hs-l { flex-direction: row-reverse; }
.hs-cursor.hs-t b { margin-top: 0; translate: 0 -22px; }
/* AI QC (11/11/2026): đường đo khoảng cách đỏ kiểu Figma + nhãn kiểm nội dung, hiện khi con trỏ QC nhảy tới (vị trí theo % màn 1440×900). */
.hs-qc { position: absolute; inset: 0; }
.hs-qc > i { position: absolute; font-style: normal; opacity: 0; transform: scale(.6); transition: opacity .18s, transform .25s cubic-bezier(.2, 1.4, .4, 1); }
.hs-qc > i.hs-on { opacity: 1; transform: none; }
.hs-rl.hs-h { height: 0; border-top: 1.5px solid var(--hs-red); }
.hs-rl.hs-h::before, .hs-rl.hs-h::after { content: ""; position: absolute; top: -5px; width: 1.5px; height: 9px; background: var(--hs-red); }
.hs-rl.hs-h::before { left: -1px; } .hs-rl.hs-h::after { right: -1px; }
.hs-rl.hs-v { width: 0; border-left: 1.5px solid var(--hs-red); }
.hs-rl.hs-v::before, .hs-rl.hs-v::after { content: ""; position: absolute; left: -5px; height: 1.5px; width: 9px; background: var(--hs-red); }
.hs-rl.hs-v::before { top: -1px; } .hs-rl.hs-v::after { bottom: -1px; }
.hs-rl b { position: absolute; left: 50%; top: 50%; translate: -50% -50%; padding: 1px 5px; border-radius: 4px; background: var(--hs-red); color: #fff; font: 600 10px/1.4 var(--mono); }
.hs-rl.hs-h b { top: -12px; }
.hs-rl.hs-v b { left: 14px; translate: 0 -50%; }
.hs-ck { padding: 2px 8px; border-radius: 999px; background: #fff; color: var(--hs-red); box-shadow: 0 0 0 1.5px var(--hs-red), 0 6px 16px -6px rgba(229, 72, 77, .5); font: 600 10px/1.5 var(--mono); white-space: nowrap; }
/* Trang đang dựng (11/11/2026): các vùng khung xám phủ lên màn thật; agent quét tới đâu, nội dung thật lộ tới đó (clip-path do JS đặt). */
.hs-skels { position: absolute; inset: 0; pointer-events: none; }
.hs-skel { position: absolute; font-style: normal; }
.hs-skel > span { position: absolute; inset: 0; background-color: #f3f5f9; background-repeat: no-repeat; border-radius: inherit; }
.hs-skel-side > span { background-image: linear-gradient(#e3e7ef, #e3e7ef), linear-gradient(#dfe9e2, #dfe9e2), linear-gradient(#e3e7ef, #e3e7ef), linear-gradient(#e3e7ef, #e3e7ef), linear-gradient(#e3e7ef, #e3e7ef);
  background-size: 62% 2.4%, 84% 4%, 52% 1.6%, 58% 1.6%, 48% 1.6%; background-position: 14% 3%, 50% 10%, 22% 16.5%, 22% 21%, 22% 25.5%; }
.hs-skel-bar > span { background-image: linear-gradient(#e3e7ef, #e3e7ef), linear-gradient(#e3e7ef, #e3e7ef); background-size: 14% 30%, 22% 44%; background-position: 3% 50%, 97% 50%; }
.hs-skel-row > span { background-image: linear-gradient(#e3e7ef, #e3e7ef), linear-gradient(#e9edf4, #e9edf4), linear-gradient(#e9edf4, #e9edf4), linear-gradient(#e9edf4, #e9edf4);
  background-size: 22% 18%, 32% 42%, 32% 42%, 32% 42%; background-position: 0 6%, 0 88%, 50% 88%, 100% 88%; }
.hs-skel-col > span { background-color: #f3f5f9; background-image: linear-gradient(#e6eaf1, #e6eaf1), linear-gradient(#fff, #fff), linear-gradient(#fff, #fff), linear-gradient(#fff, #fff);
  background-size: 50% 3%, 92% 24%, 92% 24%, 92% 24%; background-position: 10% 3%, 50% 13%, 50% 44%, 50% 75%; }
.hs-skel-col { border-radius: 10px; }
.hs-skel b { display: none; position: absolute; left: 6px; top: 6px; padding: 2px 7px; border-radius: 4px; background: var(--c); color: #fff; font: 600 10px/1.4 var(--sans); white-space: nowrap; }
.hs-skel.hs-building { outline: 1.5px dashed var(--c); outline-offset: -1.5px; }
.hs-skel.hs-building b { display: block; }
html:not(.js) .hs-skels { display: none; }
/* Điện thoại (11/11/2026): khung desktop nhỏ nên bỏ nhãn việc trong vùng đang dựng và nhãn kiểm nội dung, chữ con trỏ nhỏ lại, quãng cuộn ngắn hơn. */
@media (width <= 720px) {
  .hs-story { height: calc(var(--vh0, 1vh) * 640); }
  .hs-skel b, .hs-ck { display: none !important; }
  .hs-rl b { font-size: 9px; padding: 0 3px; }
  .hs-rl.hs-h b { top: -10px; }
  .hs-cursor b { margin-top: 12px; padding: 2px 6px; font-size: 10px; }
  .hs-sel-size { top: calc(100% + 8px); font-size: 10px; }
}
/* Rèm chuyển sang section sau (11/11/2026, học qclay): khối dài thêm một màn (--hs-tail); section kế tiếp kéo lên một màn,
   bo góc trên + bóng, trượt phủ lên khung đang ghim (JS thu nhỏ + làm mờ stage). Chỉ khi có JS và cho phép chuyển động. */
@media (prefers-reduced-motion: no-preference) {
  .js .hs-story { --hs-tail: 1; height: calc(var(--vh0, 1vh) * 820 + 100svh); }
  .js .hs-story + * { position: relative; z-index: 3; margin-top: -100svh; border-radius: 28px 28px 0 0; box-shadow: 0 -24px 60px -24px rgba(17, 17, 17, .22); }
  .js .hs-stage { transform-origin: 50% 40%; }
  /* Mọi section sau khối cũng nằm trên khung đang ghim và có nền đặc (section .wrap hẹp hơn màn → nền phủ tràn hai bên). */
  .js .hs-story ~ * { position: relative; z-index: 3; }
  .js .hs-story ~ :not(.section--alt, .about-big, .recog-belt, .gs-home, .cta-a, .cta-b, .ltr, .bs) { background: var(--bg); } /* .about-big (About chữ khổng lồ), .recog-belt (Recognition băng chuyền) có nền riêng */
  .js .hs-story ~ .wrap { box-shadow: 0 0 0 100vmax var(--bg); clip-path: inset(0 -100vmax); }
}
@media (prefers-reduced-motion: no-preference) and (width <= 720px) {
  .js .hs-story { height: calc(var(--vh0, 1vh) * 640 + 100svh); }
  .js .hs-story + * { border-radius: 20px 20px 0 0; }
}
/* Biến thể Làng AI Agent (11/11/2026; trời đổi sang "kính mờ" 15/11 – xem dưới), cảnh làng 3D cắt mềm thành hòn đảo nổi
   (mask hình elip – JS nở rộng dần khi lùi camera), tiêu đề trắng như Workspace. */
.hs-village .hs-kv-bg { background: #E3E8F1; }
/* 15/11/2026 (Thảo chọn phương án A "Kính mờ", theo ảnh tham khảo): trời xám xanh rất nhạt chuyển chéo + vệt sáng mờ, thay trời tím → hồng → cam đào.
   Ảnh app village-*-glass.jpg đã thay trời cùng dải (tách trời theo dải CSS cũ, giữ đảo / mây / nhãn). Nền sáng → tiêu đề chữ xám đậm. */
.hs-village .hs-sky { background: linear-gradient(118deg, rgba(255, 255, 255, 0) 22%, rgba(255, 255, 255, .45) 40%, rgba(255, 255, 255, 0) 58%), linear-gradient(160deg, #D9DFEC 0%, #F3F4F8 100%); }
.hs-village .hs-sun { background: radial-gradient(circle, rgba(255, 255, 255, .85) 0, rgba(255, 255, 255, .45) 12%, rgba(255, 255, 255, 0) 40%); }
.hs-village .hs-kv-title { color: #262B38; text-shadow: 0 1px 14px rgba(255, 255, 255, .7); }
/* 12/11: trời / nắng / đốm sáng = đúng của banner Workspace (DECOR); ẩn đảo nhỏ, mây, biển mây CSS (ảnh làng đã có mây 3D). */
.hs-village .hs-kv-decor .hs-layer { display: none; }
/* Ảnh làng tách nền (12/11): JS đặt bằng transform; không mask (mây ở mép đã mờ sẵn trong ảnh). */
.hs-v-scene { position: absolute; left: 0; top: 0; z-index: 1; pointer-events: none; will-change: transform; }
.hs-v-scene img { width: 100%; height: 100%; display: block; max-width: none; }
/* Phòng agent được "bấm chọn": khung chọn + chip trạng thái (vị trí theo % ảnh màn Làng 1440×900, JS đặt). */
.hs-rooms { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.hs-room { position: absolute; font-style: normal; opacity: 0; transition: opacity .2s; }
.hs-room.hs-on { opacity: 1; }
.hs-room::before { content: ""; position: absolute; inset: 0; border: 1.5px solid var(--c); border-radius: 10px; background: color-mix(in srgb, var(--c) 10%, transparent); }
.hs-room b { position: absolute; left: 50%; top: -10px; translate: -50% -100%; padding: 2px 8px; border-radius: 999px; background: #fff; color: #2b2523; font: 600 11px/1.4 var(--sans); white-space: nowrap; box-shadow: 0 0 0 1.5px var(--c), 0 6px 16px -6px rgba(0, 0, 0, .3); }
.hs-room b::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--dot); vertical-align: 1px; }
.hs-room.hs-on::after { content: ""; position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 2px solid var(--c); animation: hs-ping .7s ease-out 1 both; }
@keyframes hs-ping { from { transform: scale(.3); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
@media (prefers-reduced-motion: no-preference) and (min-width: 721px) { .js .hs-village.hs-story { height: calc(var(--vh0, 1vh) * 640 + 100svh); } }
@media (prefers-reduced-motion: no-preference) and (width <= 720px) { .js .hs-village.hs-story { height: calc(var(--vh0, 1vh) * 520 + 100svh); } .hs-room b { font-size: 10px; padding: 1px 6px; } }
html:not(.js) .hs-v-scene, html:not(.js) .hs-rooms { display: none; }
/* Làng (15/11/2026): AI Design vẽ khung điện thoại trước khi khung app co về mobile; AI UX Lab bấm thử trên mobile. */
.hs-draw { position: absolute; left: 0; top: 0; z-index: 7; opacity: 0; pointer-events: none; border: 1.5px dashed var(--hs-cyan); background: color-mix(in srgb, var(--hs-cyan) 6%, transparent); will-change: transform, width, height; }
.hs-draw b { position: absolute; right: 0; bottom: -8px; translate: 0 100%; padding: 2px 8px; border-radius: 4px; background: var(--hs-cyan); color: #fff; font: 500 11px/1.5 var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hs-taps { position: absolute; inset: 0; z-index: 8; pointer-events: none; }
.hs-taps i { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.hs-taps i::before, .hs-taps i::after { content: ""; position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; border-radius: 50%; opacity: 0; }
.hs-taps i::before { background: color-mix(in srgb, var(--hs-green) 35%, transparent); }
.hs-taps i::after { border: 2px solid var(--hs-green); }
.hs-taps i.hs-on::before { animation: hs-tap .5s ease-out 1 both; }
.hs-taps i.hs-on::after { animation: hs-ping .8s ease-out 1 both; }
@keyframes hs-tap { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.1); opacity: 0; } }
.hs-ut { position: absolute; left: 0; top: 0; z-index: 8; opacity: 0; pointer-events: none; padding: 4px 10px; border-radius: 999px; background: #fff; color: #1b2a22; font: 600 12px/1.4 var(--sans); white-space: nowrap; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .25); border: 1.5px solid var(--hs-green); transition: background .2s, color .2s; }
.hs-ut.hs-done { background: var(--hs-green); color: #fff; }
html:not(.js) .hs-draw, html:not(.js) .hs-taps, html:not(.js) .hs-ut { display: none; }
@media (prefers-reduced-motion: no-preference) and (min-width: 721px) { .js .hs-village.hs-story { height: calc(var(--vh0, 1vh) * 720 + 100svh); } }
@media (prefers-reduced-motion: no-preference) and (width <= 720px) { .js .hs-village.hs-story { height: calc(var(--vh0, 1vh) * 600 + 100svh); } .hs-draw b, .hs-ut { font-size: 10px; } }
