/* Vũ Trụ Vibe — giao diện
   Mục lục: 1 màu & chữ · 2 nền · 3 đầu trang · 4 nút · 5 mở đầu · 6 băng chữ · 7 mục · 8 lọc · 9 thẻ app
            10 cảnh động · 11 dải thế giới · 12 hành trình · 13 cuối trang · 14 chi tiết · 15 tìm nhanh
            16 chuyển cảnh · 17 hiện dần · 18 màn nhỏ · 19 giảm chuyển động */

/* ============================================================ 1. màu & chữ */

:root {
  --nen: #07060f;
  --be-the: #0e0c1c;
  --be-mat: rgba(255, 255, 255, .045);
  --be-mat-2: rgba(255, 255, 255, .08);
  --be-dac: #121024;
  --vien: rgba(255, 255, 255, .085);
  --vien-2: rgba(255, 255, 255, .16);
  --chu: #efeef8;
  --chu-2: #b6b3cd;
  --chu-3: #8e8ba9;
  --nhan: #a78bfa;
  --nhan-2: #22d3ee;
  --nhan-3: #f472b6;
  --bong-the: 0 24px 60px -28px rgba(0, 0, 0, .75);
  --troi-sao: #ffffff;
  --troi-quy: rgba(255, 255, 255, .085);
  --troi-chu: #d6ceff;
  --l0: rgba(255, 255, 255, .06);
  --l1: #3a3380;
  --l2: #5a4cd6;
  --l3: #8f7dff;
  --l4: #d3c8ff;
  --tt-song: #44e38a;
  --tt-choi: #f7c86a;
  --tt-nha: #c6f04c;
  --tt-may: #8fb8ff;
  --tt-mo: #d4b8ff;

  --f-tieu: 'Bricolage Grotesque', 'Be Vietnam Pro', system-ui, sans-serif;
  --f-than: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-ma: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --f-serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --de: cubic-bezier(.2, .8, .2, 1);
  --nay: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --nen: #f4f2fb;
  --be-the: #ffffff;
  --be-mat: rgba(255, 255, 255, .72);
  --be-mat-2: rgba(40, 30, 110, .06);
  --be-dac: #ffffff;
  --vien: rgba(28, 22, 70, .1);
  --vien-2: rgba(28, 22, 70, .18);
  --chu: #16132c;
  --chu-2: #4a4668;
  --chu-3: #67638a;
  --nhan: #6d4dfa;
  --nhan-2: #0e7490;
  --nhan-3: #db2777;
  --bong-the: 0 24px 50px -30px rgba(40, 30, 110, .35);
  --troi-sao: #4b3fb0;
  --troi-quy: rgba(60, 40, 140, .14);
  --troi-chu: #6d5bd0;
  --l0: rgba(30, 20, 90, .07);
  --l1: #d6cfff;
  --l2: #a898ff;
  --l3: #7559f0;
  --l4: #4528c2;
  --tt-song: #128a4a;
  --tt-choi: #9a6200;
  --tt-nha: #4d7c0f;
  --tt-may: #2f5fc4;
  --tt-mo: #6d28d9;
  color-scheme: light;
}

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

html {
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 76px;
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html.khoa { overflow: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--nen);
  color: var(--chu);
  font: 400 16px/1.6 var(--f-than);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg, canvas { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: color-mix(in oklab, var(--nhan) 45%, transparent); }

:focus-visible { outline: 2px solid var(--nhan-2); outline-offset: 3px; border-radius: 8px; }

kbd {
  display: inline-flex;
  align-items: center;
  font: 600 11px/1 var(--f-ma);
  padding: 4px 6px;
  border-radius: 6px;
  background: var(--be-mat-2);
  border: 1px solid var(--vien);
  border-bottom-width: 2px;
  color: var(--chu-2);
  white-space: nowrap;
}

.khung { width: min(1200px, 100% - 48px); margin-inline: auto; }

.bo-qua {
  position: fixed; left: 12px; top: -80px; z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  background: var(--be-dac); color: var(--chu); border: 1px solid var(--vien-2);
  text-decoration: none; transition: top .2s;
}
.bo-qua:focus { top: 12px; }

/* ============================================================ 2. nền */

.nen {
  position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(1100px 760px at 78% -12%, rgba(124, 92, 255, .2), transparent 62%),
    radial-gradient(900px 700px at -5% 35%, rgba(34, 211, 238, .07), transparent 60%),
    var(--nen);
}
.nen i {
  position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%;
  opacity: .55;
  animation: troi-nen 30s ease-in-out infinite alternate;
}
.nen__a { top: -30vmax; right: -20vmax; background: radial-gradient(circle, rgba(167, 139, 250, .2), transparent 62%); }
.nen__b { top: 45vh; left: -35vmax; background: radial-gradient(circle, rgba(34, 211, 238, .12), transparent 62%); animation-duration: 38s; }
.nen__c { bottom: -40vmax; right: 0; background: radial-gradient(circle, rgba(244, 114, 182, .11), transparent 62%); animation-duration: 44s; }
.nen::after {
  content: ''; position: absolute; inset: 0; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-theme="light"] .nen {
  background:
    radial-gradient(1100px 760px at 78% -12%, rgba(124, 92, 255, .16), transparent 62%),
    radial-gradient(900px 700px at -5% 35%, rgba(34, 211, 238, .1), transparent 60%),
    var(--nen);
}
[data-theme="light"] .nen i { opacity: .8; }
[data-theme="light"] .nen::after { opacity: .045; mix-blend-mode: multiply; }
@keyframes troi-nen {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-6vmax, 4vmax, 0) scale(1.12); }
}

.anh-sang {
  position: fixed; left: -320px; top: -320px; z-index: -1;
  width: 640px; height: 640px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(167, 139, 250, .1), rgba(34, 211, 238, .04) 40%, transparent 65%);
  opacity: 0; transition: opacity .6s;
}
.anh-sang.hien { opacity: 1; }
[data-theme="light"] .anh-sang { background: radial-gradient(circle, rgba(124, 92, 255, .1), transparent 62%); }

.tien-do {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60;
  background: linear-gradient(90deg, var(--nhan), var(--nhan-2), var(--nhan-3));
  transform-origin: 0 50%;
  transform: scaleX(var(--cuon, 0));
}

/* ============================================================ 3. đầu trang */

.dau {
  position: fixed; inset: 0 0 auto; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .35s, border-color .35s, backdrop-filter .35s;
}
.dau.da-cuon {
  background: color-mix(in oklab, var(--nen) 74%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  border-bottom-color: var(--vien);
}
.dau__trong { display: flex; align-items: center; gap: 20px; height: 70px; }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo__hinh { width: 32px; height: 32px; overflow: visible; transition: transform .6s var(--nay); }
.logo:hover .logo__hinh { transform: rotate(-18deg) scale(1.08); }
.logo__sao { animation: lap-lanh 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.logo__chu { font: 700 18px/1 var(--f-tieu); letter-spacing: -.02em; }
.logo__chu b {
  font-weight: 800;
  background: linear-gradient(110deg, #f7c86a, #ff8a7a 50%, #a78bfa);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.dau__link {
  display: flex; gap: 2px; margin: 0 auto; padding: 4px; list-style: none;
  border-radius: 999px; background: var(--be-mat); border: 1px solid var(--vien);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.dau__link a {
  display: block; padding: 8px 15px; border-radius: 999px;
  color: var(--chu-2); font-size: 14px; font-weight: 500; text-decoration: none;
  transition: color .2s, background .2s, box-shadow .2s;
}
.dau__link a:hover { color: var(--chu); background: var(--be-mat-2); }
.dau__link a[aria-current] { color: var(--chu); background: var(--be-mat-2); box-shadow: inset 0 0 0 1px var(--vien-2); }

.dau__nut { display: flex; gap: 8px; margin-left: auto; }
.nut-tim, .nut-sang {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 44px; border-radius: 13px; cursor: pointer;
  background: var(--be-mat); border: 1px solid var(--vien); color: var(--chu-2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background .2s, color .2s, border-color .2s, transform .3s var(--nay);
}
.nut-tim { padding: 0 9px 0 13px; font-size: 14px; font-weight: 500; }
.nut-tim svg { width: 18px; height: 18px; }
.nut-sang { width: 44px; }
.nut-tim:hover, .nut-sang:hover { background: var(--be-mat-2); color: var(--chu); border-color: var(--vien-2); }
.nut-sang:active, .nut-tim:active { transform: scale(.94); }
.nut-sang svg { width: 21px; height: 21px; overflow: visible; }
.nut-sang__loi { transform-box: fill-box; transform-origin: center; transform: scale(.62); transition: transform .5s var(--nay); }
.nut-sang__che { transform: translate(14px, -14px); transition: transform .5s var(--de); }
.nut-sang__tia { transform-origin: 12px 12px; transition: transform .5s var(--nay), opacity .3s; }
/* giao diện tối: nút hiện mặt trời (bấm để sang sáng); giao diện sáng: hiện trăng */
[data-theme="light"] .nut-sang__loi { transform: scale(1); }
[data-theme="light"] .nut-sang__che { transform: none; }
[data-theme="light"] .nut-sang__tia { transform: rotate(-60deg) scale(.4); opacity: 0; }

/* ============================================================ 4. nút */

.nut {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px; border-radius: 15px;
  font: 600 15px/1 var(--f-than); text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .35s var(--nay), box-shadow .35s, background .3s, border-color .3s;
}
.nut svg { width: 18px; height: 18px; flex: none; }
.nut kbd { margin-left: 2px; }
.nut--chinh {
  color: #120a1f;
  background: linear-gradient(120deg, #f7c86a, #ff9a6b 45%, #c79bff);
  box-shadow: 0 12px 34px -12px rgba(255, 154, 107, .75), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.nut--chinh::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .6) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .9s var(--de);
}
.nut--chinh:hover::after { transform: translateX(120%); }
.nut--kinh {
  color: var(--chu); background: var(--be-mat); border-color: var(--vien-2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.nut--kinh:hover { background: var(--be-mat-2); }
.nut:hover { transform: translateY(-2px); }
.nut:active { transform: translateY(0) scale(.97); }
.nut__mui { display: inline-flex; }

/* ============================================================ 5. mở đầu */

.mo-dau {
  position: relative; isolation: isolate;
  min-height: max(700px, min(100svh, 960px));
  padding: 132px 0 56px;
  display: flex; flex-direction: column; justify-content: center;
}
.mo-dau.dang-chi { cursor: pointer; }
.mo-dau__troi { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.mo-dau__neo {
  position: absolute; top: 47%; right: max(8px, calc((100vw - 1260px) / 2));
  width: min(56vw, 720px); height: min(68vh, 600px);
  transform: translateY(-50%); pointer-events: none;
}
.mo-dau__goi-y {
  position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%); margin: 0;
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  font: 500 12px var(--f-ma); color: var(--chu-3);
}
.mo-dau__goi-y .cham { width: 6px; height: 6px; border-radius: 50%; background: var(--nhan); animation: song-tim 2s infinite; }
.mo-dau__khung { position: relative; z-index: 1; pointer-events: none; }
.mo-dau__chu { max-width: 590px; }
.mo-dau__chu > * { pointer-events: auto; }

.chip-dau {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  padding: 7px 15px 7px 11px; border-radius: 999px;
  background: var(--be-mat); border: 1px solid var(--vien);
  font: 500 13px var(--f-ma); color: var(--chu-2);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.cham-song { width: 8px; height: 8px; border-radius: 50%; background: var(--tt-song); animation: song 2s infinite; }

.mo-dau__h1 {
  margin: 24px 0 24px;
  font: 800 clamp(46px, 6.4vw, 90px)/1.08 var(--f-tieu);
  font-variation-settings: 'opsz' 96;
  letter-spacing: -.035em;
}
.mo-dau__h1 em { font-style: normal; white-space: nowrap; }
.mo-dau__h1 em .tu > span {
  background: linear-gradient(100deg, #f7c86a 0%, #ff8a7a 35%, #c79bff 70%, #7dd3fc 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: anh-chu 7s ease-in-out infinite alternate;
}
[data-theme="light"] .mo-dau__h1 em .tu > span {
  background-image: linear-gradient(100deg, #d97706 0%, #e1466b 40%, #7c3aed 75%, #0e7490 100%);
}
@keyframes anh-chu { to { background-position: 100% 0; } }

/* từng chữ trồi lên — khung chữ chừa chỗ cho dấu tiếng Việt */
.tu { display: inline-block; overflow: hidden; vertical-align: top; padding: .14em .04em .1em; margin: -.14em -.04em -.1em; }
.tu > span { display: inline-block; }

.mo-dau__phu { margin: 0 0 32px; max-width: 540px; font-size: clamp(16.5px, 1.45vw, 19px); line-height: 1.65; color: var(--chu-2); }
.mo-dau__nut { display: flex; flex-wrap: wrap; gap: 12px; }

.so-lieu {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  margin: 76px 0 0; border-radius: 22px; overflow: hidden;
  background: var(--vien); border: 1px solid var(--vien);
}
.so-lieu__o {
  display: flex; flex-direction: column-reverse; gap: 6px; padding: 20px 24px;
  background: color-mix(in oklab, var(--nen) 78%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.so-lieu dt { font-size: 13.5px; color: var(--chu-3); }
.so-lieu dd { margin: 0; font: 600 clamp(30px, 3.4vw, 46px)/1 var(--f-than); letter-spacing: -.02em; }
.so-lieu__o:nth-child(2) dd { color: var(--l4); }
[data-theme="light"] .so-lieu__o:nth-child(2) dd { color: var(--nhan); }

/* ============================================================ 6. băng chữ đồ nghề */

.bang-chu {
  display: grid; gap: 12px; padding: 26px 0; margin-top: 20px;
  border-block: 1px solid var(--vien); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.bang-chu__ds { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; animation: chay-ngang 80s linear infinite; }
.bang-chu__ds--nguoc { animation-direction: reverse; animation-duration: 95s; }
.bang-chu:hover .bang-chu__ds { animation-play-state: paused; }
.bang-chu li { padding-right: 12px; }
.bang-chu li span {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 17px; border-radius: 999px;
  background: var(--be-mat); border: 1px solid var(--vien);
  font: 500 14px var(--f-ma); color: var(--chu-2); white-space: nowrap;
}
.bang-chu li span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: linear-gradient(135deg, var(--nhan), var(--nhan-2)); }
@keyframes chay-ngang { to { transform: translateX(-50%); } }

/* ============================================================ 7. mục */

.muc { padding-top: clamp(84px, 11vw, 140px); }
.muc__dau { max-width: 780px; margin-bottom: 34px; }
.muc__dau--hang { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.muc__dau--hang > div { max-width: 760px; }
.muc__so { margin: 0 0 14px; font: 500 13px var(--f-ma); letter-spacing: .02em; color: var(--nhan); }
.muc__h2 { margin: 0 0 16px; font: 750 clamp(34px, 4.6vw, 62px)/1.08 var(--f-tieu); letter-spacing: -.032em; }
.muc__phu { margin: 0; max-width: 660px; font-size: clamp(16px, 1.35vw, 18px); color: var(--chu-2); }

/* ============================================================ 8. lọc */

.loc {
  position: relative; display: inline-flex; gap: 2px; max-width: 100%;
  padding: 5px; margin-bottom: 26px; border-radius: 17px;
  background: var(--be-mat); border: 1px solid var(--vien);
  overflow-x: auto; scrollbar-width: none;
}
.loc::-webkit-scrollbar { display: none; }
.loc__nut {
  position: relative; z-index: 1; flex: none;
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 15px;
  border: 0; border-radius: 12px; background: transparent; cursor: pointer;
  color: var(--chu-2); font-size: 14.5px; font-weight: 500;
  transition: color .25s;
}
.loc__nut:hover { color: var(--chu); }
.loc__nut small { font: 600 11px var(--f-ma); padding: 2px 6px; border-radius: 6px; background: var(--be-mat-2); color: var(--chu-3); transition: background .25s, color .25s; }
.loc__nut[aria-pressed="true"] { color: #fff; }
.loc__nut[aria-pressed="true"] small { background: rgba(255, 255, 255, .22); color: #fff; }
.loc__dau {
  position: absolute; z-index: 0; top: 5px; left: 0; height: 42px; width: 0; border-radius: 12px;
  background: linear-gradient(135deg, #8b6cff, #6d4dfa 60%, #4f7cff);
  box-shadow: 0 8px 22px -8px rgba(109, 77, 250, .9);
  transition: transform .5s var(--nay), width .5s var(--nay);
}

/* ============================================================ 9. thẻ app */

.luoi {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 336px; grid-auto-flow: dense;
  gap: 18px; margin: 0; padding: 0; list-style: none;
}
.the { position: relative; perspective: 1200px; }
.the[hidden] { display: none; }
.the[data-o="2x2"] { grid-column: span 2; grid-row: span 2; }
.the[data-o="2x1"] { grid-column: span 2; }
.the[data-o="1x2"] { grid-row: span 2; }

.the__lien {
  position: relative; isolation: isolate;
  display: grid; grid-template-rows: minmax(0, 1fr) auto; height: 100%;
  border-radius: 26px; overflow: hidden; text-decoration: none; color: var(--chu);
  background: var(--be-the); border: 1px solid var(--vien); box-shadow: var(--bong-the);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .7s var(--de), border-color .35s, box-shadow .35s;
}
.the.dang-nghieng .the__lien { transition: transform .15s linear, border-color .35s, box-shadow .35s; }
.the__lien:hover {
  border-color: color-mix(in oklab, var(--mau) 50%, var(--vien));
  box-shadow: 0 34px 70px -30px color-mix(in oklab, var(--mau) 60%, transparent), var(--bong-the);
}
.the__lien::before {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 0%), color-mix(in oklab, var(--mau) 16%, transparent), transparent 45%);
  opacity: 0; transition: opacity .35s;
}
.the__lien::after {
  content: ''; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  border-radius: inherit; padding: 1.5px;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), var(--mau), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s;
}
.the__lien:hover::before, .the__lien:hover::after { opacity: 1; }

.the__canh { position: relative; overflow: hidden; container-type: size; min-height: 0; background: #0b0918; }
.the__canh::after {
  content: ''; position: absolute; inset: auto 0 0; height: 40%; pointer-events: none; z-index: 5;
  background: linear-gradient(to bottom, transparent, color-mix(in oklab, var(--be-the) 55%, transparent));
}
[data-theme="light"] .the__canh::after { display: none; }
.the__than { position: relative; z-index: 2; padding: 16px 20px 20px; border-top: 1px solid var(--vien); }
.the__tren { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-height: 24px; }
.the__so { margin-left: auto; font: 500 11.5px var(--f-ma); color: var(--chu-3); white-space: nowrap; }
.the__ten { margin: 10px 0 6px; font: 700 21px/1.18 var(--f-tieu); letter-spacing: -.02em; }
.the__cau {
  margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--chu-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.the__nhan { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.the__nhan li { padding: 3px 9px; border-radius: 999px; border: 1px solid var(--vien); font: 500 11.5px var(--f-ma); color: var(--chu-3); }
.the[data-o="1x1"] .the__nhan, .the[data-o="1x2"] .the__nhan { display: none; }
.the[data-o="1x1"] .the__tren:has(.tt--mo) .the__so { display: none; }
.the[data-o="2x2"] .the__ten { font-size: clamp(26px, 2.5vw, 34px); }
.the[data-o="2x2"] .the__cau { font-size: 15.5px; -webkit-line-clamp: 3; }
.the[data-o="2x2"] .the__than { padding: 20px 26px 24px; }

.the__mui {
  position: absolute; top: 14px; right: 14px; z-index: 6;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(8, 6, 18, .45); border: 1px solid rgba(255, 255, 255, .16); color: #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transform: scale(.85); opacity: .75;
  transition: transform .45s var(--nay), opacity .3s, background .3s;
}
.the__mui svg { width: 17px; height: 17px; transition: transform .45s var(--nay); }
.the__lien:hover .the__mui, .the__lien:focus-visible .the__mui { transform: scale(1); opacity: 1; background: var(--mau); color: #10091c; }
.the__lien:hover .the__mui svg { transform: rotate(45deg); }

/* nhãn trạng thái */
.tt {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px 0 8px;
  border-radius: 999px; border: 1px solid color-mix(in oklab, currentColor 28%, transparent);
  background: color-mix(in oklab, currentColor 10%, transparent);
  font: 600 11.5px/1 var(--f-than); white-space: nowrap; color: var(--chu-2);
}
.tt i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tt--song { color: var(--tt-song); }
.tt--song i { animation: song 2.2s infinite; }
.tt--choi { color: var(--tt-choi); }
.tt--nha { color: var(--tt-nha); }
.tt--may { color: var(--tt-may); }
.tt--mo { color: var(--tt-mo); }
.tt--kin { color: var(--chu-3); }

.luoi-tinh { display: grid; gap: 10px; padding-left: 20px; color: var(--chu-2); }

/* ============================================================ 10. cảnh động */

.canh { position: absolute; inset: 0; overflow: hidden; }
.canh:not(.chay), .canh:not(.chay) * { animation-play-state: paused !important; }
.canh canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.canh svg { overflow: visible; }
.c-th > svg, .c-hh > svg { width: 100%; height: 100%; }

/* --- Thông Điệp --- */
.c-td { background: radial-gradient(120% 90% at 50% 38%, #2d2266 0%, #171037 46%, #0a0718 100%); }
.c-td__nen { z-index: 0; }
.c-td__truoc { z-index: 3; pointer-events: none; }
.c-td__la {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  height: min(70%, 380px); aspect-ratio: 2 / 3;
  transform: translate(-50%, -50%); perspective: 900px;
  animation: c-td-noi 5s ease-in-out infinite alternate;
}
@keyframes c-td-noi { from { translate: 0 -6px; } to { translate: 0 6px; } }
.c-td__lat { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateY(-10deg) rotateX(5deg); animation: c-td-lat 11s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes c-td-lat {
  0%, 38% { transform: rotateY(-10deg) rotateX(5deg); }
  48%, 86% { transform: rotateY(170deg) rotateX(-4deg); }
  96%, 100% { transform: rotateY(350deg) rotateX(5deg); }
}
.c-td__mat {
  position: absolute; inset: 0; border-radius: 9% / 6%;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4%;
  text-align: center; font-family: var(--f-serif);
  box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .65), 0 0 46px -6px rgba(247, 200, 106, .4);
}
.c-td__mat--up { background: linear-gradient(160deg, #2c2068 0%, #1b1442 60%, #140f33 100%); border: 1px solid rgba(233, 194, 122, .6); color: #e9c27a; }
.c-td__mat--up::before { content: ''; position: absolute; inset: 5.5%; border: 1px solid rgba(233, 194, 122, .35); border-radius: 7% / 4.8%; }
.c-td__mat--up svg { width: 46%; height: auto; overflow: visible; filter: drop-shadow(0 0 8px rgba(233, 194, 122, .5)); }
.c-td__mat b { font-size: clamp(11px, 5.4cqh, 24px); font-weight: 600; letter-spacing: .02em; }
.c-td__mat small { font-size: clamp(8px, 3.2cqh, 14px); font-style: italic; opacity: .8; }
.c-td__mat--ngua { transform: rotateY(180deg); padding: 12%; background: linear-gradient(160deg, #fff9ec, #f3dfb6); color: #4a3510; border: 1px solid rgba(180, 130, 40, .45); }
.c-td__mat--ngua i { font-style: normal; font-size: clamp(18px, 12cqh, 54px); line-height: .6; color: #c48a2a; }
.c-td__mat--ngua p { margin: 0; font-size: clamp(12px, 5.6cqh, 26px); font-style: italic; line-height: 1.3; }
.c-td__mat--ngua small { color: #c48a2a; font-style: normal; }

/* --- Nhật Ký Trade --- */
.c-tr { background: radial-gradient(110% 130% at 85% 0%, #0f3526 0%, #0a1813 55%, #070e0b 100%); }
.c-tr__dau { position: absolute; top: 14px; left: 16px; display: flex; align-items: center; gap: 7px; font: 600 12px var(--f-ma); color: #dbffe9; }
.c-tr__dau span { padding: 3px 8px; border-radius: 7px; background: rgba(255, 255, 255, .08); color: #9fc7b3; }
.c-tr__dau .c-tr__ket { color: #44e38a; background: rgba(68, 227, 138, .14); transition: color .3s, background .3s; }
.c-tr__dau .c-tr__ket.vang { color: #f7c86a; background: rgba(247, 200, 106, .14); }

/* --- Tạp hóa --- */
.c-th { background: radial-gradient(120% 100% at 18% 10%, #22521c 0%, #13300f 55%, #0b1b09 100%); }
.c-th__nhan { font: 800 9px var(--f-than); fill: #fff; letter-spacing: .08em; }
.c-th__so { font: 500 5.5px var(--f-ma); fill: #1d2a1a; }
.c-th__ten { font: 500 10px var(--f-than); fill: #55734a; }
.c-th__tien { font: 800 19px var(--f-than); fill: #17300e; letter-spacing: -.02em; }
.c-th__nhan-ke text { font: 700 10px var(--f-than); fill: #1d3a0c; }
.c-th__tia { transform: translateX(34px); animation: c-th-quet 6s ease-in-out infinite; }
@keyframes c-th-quet { 0%, 6% { transform: translateX(0); opacity: 0; } 9% { opacity: 1; } 31% { transform: translateX(66px); opacity: 1; } 35%, 100% { transform: translateX(66px); opacity: 0; } }
.c-th__bip { transform-box: fill-box; transform-origin: center; opacity: 0; animation: c-th-bip 6s ease-out infinite; }
@keyframes c-th-bip { 0%, 31% { transform: scale(.4); opacity: 0; } 33% { transform: scale(.7); opacity: .95; } 46%, 100% { transform: scale(1.9); opacity: 0; } }
.c-th__gia { transform-box: fill-box; transform-origin: 0 100%; animation: c-th-gia 6s var(--nay) infinite; }
@keyframes c-th-gia { 0%, 33% { transform: translateY(8px) scale(.6); opacity: 0; } 41% { transform: none; opacity: 1; } 91% { transform: none; opacity: 1; } 97%, 100% { transform: scale(.94); opacity: 0; } }
.c-th__so-do { animation: c-th-hien 6s var(--de) infinite; }
@keyframes c-th-hien { 0%, 44% { transform: translateY(10px); opacity: 0; } 52%, 91% { transform: none; opacity: 1; } 97%, 100% { opacity: 0; } }
.c-th__ghim { transform-box: fill-box; transform-origin: 50% 100%; animation: c-th-ghim 6s cubic-bezier(.3, 1.4, .5, 1) infinite; }
@keyframes c-th-ghim { 0%, 52% { transform: translateY(-26px); opacity: 0; } 60% { transform: none; opacity: 1; } 63% { transform: scaleY(.84); } 67%, 91% { transform: none; opacity: 1; } 97%, 100% { opacity: 0; } }
.c-th__ngan { animation: c-th-ngan 6s infinite; }
@keyframes c-th-ngan { 0%, 58% { opacity: 0; } 62% { opacity: 1; } 70% { opacity: .5; } 78% { opacity: 1; } 86% { opacity: .55; } 91% { opacity: 1; } 97%, 100% { opacity: 0; } }
.c-th__nhan-ke { transform-box: fill-box; transform-origin: 50% 100%; animation: c-th-nhan 6s var(--nay) infinite; }
@keyframes c-th-nhan { 0%, 60% { transform: translateY(6px) scale(.7); opacity: 0; } 67%, 91% { transform: none; opacity: 1; } 97%, 100% { opacity: 0; } }

/* --- Claude Office --- */
.c-of { background: radial-gradient(120% 130% at 50% 110%, #3c2617 0%, #1d140d 55%, #110b07 100%); }
.c-of__phong { position: absolute; left: 3%; top: 9%; width: 94%; height: 87%; }
.c-of__nhan { position: absolute; top: 12px; left: 14px; z-index: 2; display: flex; flex-direction: column; gap: 6px; }
.c-of__chip {
  display: inline-flex; align-items: center; gap: 7px; width: max-content; padding: 4px 10px; border-radius: 9px;
  background: rgba(20, 14, 10, .62); border: 1px solid rgba(255, 255, 255, .11); color: #f3e7da;
  font: 600 11px var(--f-than); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.c-of__chip i { width: 7px; height: 7px; border-radius: 50%; }
.c-of__chip--cho i { background: #f2a93b; animation: song-vang 1.6s infinite; }
.c-of__chip--lam i { background: #3fbf7f; }
.c-of__chip--nghi i { background: #9aa3b5; }
.c-of__gio {
  position: absolute; top: 12px; right: 64px; z-index: 2; width: 132px; padding: 9px 11px; border-radius: 12px;
  display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 8px;
  background: rgba(20, 14, 10, .62); border: 1px solid rgba(255, 255, 255, .11); color: #f3e7da;
  font: 500 10px var(--f-than); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.c-of__gio b { font: 600 13px var(--f-ma); }
.c-of__gio i { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.c-of__gio u { display: block; width: 61%; height: 100%; background: linear-gradient(90deg, #f2a93b, #ff7a59); transform-origin: left; animation: c-of-gio 14s linear infinite; }
.c-of__gio small { grid-column: 1 / -1; color: #b9a99a; font-size: 9.5px; }
@keyframes c-of-gio { from { transform: scaleX(.8); } to { transform: scaleX(1.12); } }
@container (max-width: 470px) { .c-of__gio { display: none; } .c-of__phong { left: 18%; width: 80%; } }
@container (max-width: 330px) { .c-of__nhan { display: none; } .c-of__phong { left: 3%; width: 94%; } }
.c-of__nguoi.go { animation: c-of-go .42s steps(2, jump-none) infinite alternate; }
@keyframes c-of-go { to { transform: translateY(-.9px); } }
.c-of__nguoi.di-bo { animation: c-of-di .32s ease-in-out infinite alternate; }
@keyframes c-of-di { to { transform: translateY(-1.4px) rotate(2deg); } }
.c-of__sang { opacity: .5; animation: c-of-sang 2.6s ease-in-out infinite alternate; animation-delay: var(--tre); }
@keyframes c-of-sang { from { opacity: .18; } to { opacity: .62; } }
.c-of__noi { animation: c-of-noi 3.2s ease-in-out infinite; animation-delay: var(--tre); }
@keyframes c-of-noi { 0%, 12% { opacity: 0; transform: translateY(3px); } 22%, 72% { opacity: 1; transform: none; } 84%, 100% { opacity: 0; transform: translateY(-2px); } }
.c-of__noi circle { animation: c-of-cham 1s ease-in-out infinite; }
.c-of__noi circle:nth-of-type(2) { animation-delay: .15s; }
.c-of__noi circle:nth-of-type(3) { animation-delay: .3s; }
@keyframes c-of-cham { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.c-of__cho { animation: c-of-nhun 1.1s ease-in-out infinite alternate; }
@keyframes c-of-nhun { to { transform: translateY(-2.5px); } }
.c-of__kim { transform-box: fill-box; transform-origin: 50% 100%; animation: quay 6s linear infinite; }

/* --- Sổ Hiếu Hỷ --- */
.c-hh { background: radial-gradient(120% 110% at 28% 18%, #6e1528 0%, #3e0b18 55%, #24060e 100%); }
.c-hh__lap path { fill: #f6c768; transform-box: fill-box; transform-origin: center; animation: lap-lanh 2.4s ease-in-out infinite; }
.c-hh__lap path:nth-child(2) { animation-delay: -.8s; }
.c-hh__lap path:nth-child(3) { animation-delay: -1.6s; }
.c-hh__nap { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); animation: c-hh-nap 7s ease-in-out infinite; }
@keyframes c-hh-nap { 0%, 8% { transform: scaleY(1); } 14%, 84% { transform: scaleY(0); } 90%, 100% { transform: scaleY(1); } }
.c-hh__nap-mo { transform-box: fill-box; transform-origin: 50% 100%; animation: c-hh-nap-mo 7s ease-in-out infinite; }
@keyframes c-hh-nap-mo { 0%, 13% { transform: scaleY(0); } 20%, 78% { transform: scaleY(1); } 85%, 100% { transform: scaleY(0); } }
.c-hh__dau { animation: c-hh-dau 7s ease-in-out infinite; opacity: 0; }
@keyframes c-hh-dau { 0%, 6% { opacity: 1; } 10%, 88% { opacity: 0; } 93%, 100% { opacity: 1; } }
.c-hh__tien { transform: translateY(-42px); animation: c-hh-tien 7s cubic-bezier(.3, 1.25, .5, 1) infinite; }
@keyframes c-hh-tien { 0%, 20% { transform: translateY(0); } 34%, 74% { transform: translateY(-42px); } 84%, 100% { transform: translateY(0); } }
.c-hh__menh { font: 800 15px var(--f-than); fill: #1d5e48; }
.c-hh__dong { font: 500 8.5px var(--f-than); fill: #2f7a5f; }
.c-hh__nho { font: 500 10.5px var(--f-than); fill: #f2c9cf; }
.c-hh__so { font: 700 14px var(--f-ma); }
.c-hh__so--di { fill: #ff9fb0; }
.c-hh__so--nhan { fill: #f6c768; }
.c-hh__dong-so--1 { animation: c-hh-dong1 7s var(--nay) infinite; }
.c-hh__dong-so--2 { animation: c-hh-dong2 7s var(--nay) infinite; }
@keyframes c-hh-dong1 { 0%, 34% { transform: translateX(16px); opacity: 0; } 40%, 92% { transform: none; opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes c-hh-dong2 { 0%, 46% { transform: translateX(16px); opacity: 0; } 52%, 92% { transform: none; opacity: 1; } 98%, 100% { opacity: 0; } }
.c-hh__bong { transform: translateX(15px); animation: c-hh-trang 7s ease-in-out infinite; }
@keyframes c-hh-trang { 0% { transform: translateX(0); } 50%, 100% { transform: translateX(24px); } }

/* --- Nhớ Nha --- */
.c-nn {
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 9px; padding: 14px 16px;
  background: radial-gradient(120% 90% at 50% 0%, #15403a 0%, #0f2b28 50%, #0a1d1b 100%); font-family: var(--f-than);
}
.c-nn > * { width: min(100%, 460px); }
[data-theme="light"] .c-nn { background: radial-gradient(120% 90% at 50% 0%, #ffffff 0%, #effcf8 50%, #dcf5ee 100%); }
.c-nn__ds { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.c-nn__ds li {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 11px;
  background: rgba(255, 255, 255, .06); border: 1px dashed rgba(47, 216, 196, .38);
  color: #e1f8f3; font-size: 13px; white-space: nowrap; overflow: hidden;
  transition: transform .5s var(--nay), opacity .4s;
}
[data-theme="light"] .c-nn__ds li { background: #fff; color: #17312c; border-color: rgba(47, 157, 137, .45); }
.c-nn__ds li.moi { opacity: 0; transform: translateY(16px) scale(.95); }
.c-nn__ds time { flex: none; padding: 2px 7px; border-radius: 6px; font: 600 11px var(--f-ma); background: rgba(47, 216, 196, .18); color: #82f2e1; }
[data-theme="light"] .c-nn__ds time { background: #d3f5ec; color: #1b6b5d; }
.c-nn__o {
  display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 5px 0 14px; border-radius: 999px; flex: none;
  border: 1.5px solid rgba(47, 216, 196, .5); background: rgba(255, 255, 255, .04); color: #effffb; font-size: 14px;
}
[data-theme="light"] .c-nn__o { background: #fff; color: #17312c; border-color: rgba(47, 157, 137, .6); }
.c-nn__chu { white-space: nowrap; overflow: hidden; }
.c-nn__chu:empty::before { content: 'Cần nhớ gì?'; opacity: .5; }
.c-nn__chu mark { padding: 0 2px; border-radius: 4px; background: rgba(47, 216, 196, .3); color: inherit; }
.c-nn__con { width: 1.5px; height: 18px; margin-right: auto; background: #2fd8c4; animation: nhay 1s steps(1) infinite; }
.c-nn__gui { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: #e8642c; transition: transform .2s var(--nay); }
.c-nn__gui::before { content: ''; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; border: solid #fff; border-width: 2px 0 0 2px; transform: translate(-50%, -25%) rotate(45deg); }
.c-nn__gui.bam { transform: scale(.78); }
.c-nn__bao {
  position: absolute; top: 10px; left: 0; right: 0; z-index: 2; width: min(100% - 20px, 440px); margin-inline: auto;
  display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 15px;
  background: rgba(250, 255, 253, .96); color: #11302b; font-size: 12px;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .55);
  transform: translateY(-140%); transition: transform .6s var(--nay);
}
.c-nn__bao.hien { transform: none; }
.the__canh .c-nn__bao { left: 10px; right: 58px; width: auto; margin: 0; }
.c-nn__logo { position: relative; flex: none; width: 28px; height: 28px; border-radius: 8px; background: #2f8f7c; }
.c-nn__logo::before { content: ''; position: absolute; inset: 7px 6px 9px; border-radius: 4px; background: #fff; }
.c-nn__logo::after { content: ''; position: absolute; right: 4px; top: 4px; width: 7px; height: 7px; border-radius: 50%; background: #e8642c; }
.c-nn__bao b { display: block; font-size: 11.5px; }
.c-nn__viec { color: #2f4f49; }
.c-nn__bao time { margin-left: auto; align-self: flex-start; font-size: 10.5px; color: #6b8a84; }

/* ============================================================ 11. dải thế giới */

.dai-sao {
  display: grid; gap: 14px; margin-top: 6px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.dai-sao__hang { overflow-x: auto; scrollbar-width: none; cursor: grab; overscroll-behavior-x: contain; }
.dai-sao__hang::-webkit-scrollbar { display: none; }
.dai-sao__hang.dang-keo { cursor: grabbing; }
.dai-sao__hang.dang-keo a { pointer-events: none; }
.dai-sao__ds { display: flex; width: max-content; margin: 0; padding: 12px 0 16px; list-style: none; }
.sao-the { flex: none; width: clamp(250px, 25vw, 340px); margin-right: 18px; }
.sao-the a {
  display: block; padding: 8px; border-radius: 20px; text-decoration: none; color: var(--chu);
  background: var(--be-the); border: 1px solid var(--vien);
  user-select: none; -webkit-user-drag: none;
  transition: transform .45s var(--nay), border-color .3s, box-shadow .35s;
}
.sao-the a:hover, .sao-the a:focus-visible {
  transform: translateY(-6px) rotate(-.6deg);
  border-color: color-mix(in oklab, var(--mau) 60%, transparent);
  box-shadow: 0 26px 50px -26px var(--mau);
}
.sao-the__anh { display: block; aspect-ratio: 40 / 21; border-radius: 13px; overflow: hidden; background: #120f26; }
.sao-the__anh img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--de); -webkit-user-drag: none; }
.sao-the a:hover img { transform: scale(1.06); }
.sao-the__chu { display: grid; gap: 3px; padding: 12px 8px 6px; }
.sao-the__nhom { display: flex; align-items: center; gap: 7px; font: 600 11px var(--f-ma); color: var(--chu-3); }
.sao-the__nhom::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--mau); box-shadow: 0 0 10px var(--mau); }
.sao-the b { font: 650 16.5px/1.3 var(--f-tieu); letter-spacing: -.01em; }
.sao-the__cau { font-size: 13.5px; line-height: 1.5; color: var(--chu-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ============================================================ 12. hành trình */

.hanh-trinh__tren { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 330px); gap: 18px; margin-bottom: 18px; }
.hanh-trinh__tren .lich { margin: 0; }
.hanh-trinh__tren .o-so { padding: 16px 18px; }
.hanh-trinh__tren .o-so__so { font-size: 21px; white-space: nowrap; }
.hanh-trinh__so { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.o-so { display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 18px 20px; border-radius: 18px; background: var(--be-the); border: 1px solid var(--vien); }
.o-so__nhan { font-size: 13px; color: var(--chu-3); }
.o-so__so { font: 600 25px/1.2 var(--f-than); letter-spacing: -.01em; }
.o-so small { font-size: 12.5px; color: var(--chu-3); }

.the-kinh { margin: 0 0 18px; padding: 22px 24px 24px; border-radius: 24px; background: var(--be-the); border: 1px solid var(--vien); }
.lich__dau { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; font-size: 13.5px; color: var(--chu-3); }
.lich__dau b { font: 650 17px var(--f-tieu); color: var(--chu); }
.lich__chu-giai { display: flex; align-items: center; gap: 4px; }
.lich__chu-giai span { margin: 0 4px; }
.lich__chu-giai i { width: 12px; height: 12px; border-radius: 3px; }
.lich__chu-giai .b0, .lich__o.b0 { background: var(--l0); fill: var(--l0); }
.lich__chu-giai .b1, .lich__o.b1 { background: var(--l1); fill: var(--l1); }
.lich__chu-giai .b2, .lich__o.b2 { background: var(--l2); fill: var(--l2); }
.lich__chu-giai .b3, .lich__o.b3 { background: var(--l3); fill: var(--l3); }
.lich__chu-giai .b4, .lich__o.b4 { background: var(--l4); fill: var(--l4); }
.lich__ve { max-width: 780px; }
.lich__svg { width: 100%; height: auto; overflow: visible; }
.lich__o { transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .55s var(--nay); transition-delay: calc(var(--c) * 24ms); }
.lich.hien .lich__o { transform: scale(1); }
.lich__o:hover { stroke: var(--chu); stroke-width: 1.4; }
.lich__thang, .lich__thu { font: 500 9px var(--f-ma); fill: var(--chu-3); }

.lan__khung { display: grid; grid-template-columns: 172px minmax(0, 1fr); gap: 10px; }
.lan__ten { display: flex; flex-direction: column; }
.lan__nut {
  display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border: 0; border-radius: 10px;
  background: transparent; color: var(--chu); font-size: 13.5px; font-weight: 500; text-align: left; cursor: pointer;
  transition: background .2s;
}
.lan__nut:hover { background: var(--be-mat-2); }
.lan__nut i { flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--mau); }
.lan__nut span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lan__nut small { font: 500 11px var(--f-ma); color: var(--chu-3); }
.lan__ve { min-width: 0; }
.lan__svg { display: block; overflow: visible; }
.lan__luoi { stroke: var(--vien); }
.lan__thang { font: 500 10px var(--f-ma); fill: var(--chu-3); }
.lan__doi { stroke: var(--mau); stroke-opacity: .4; stroke-width: 2; stroke-linecap: round; }
.lan__cot { fill: var(--mau); }
[data-theme="light"] .lan__dong, [data-theme="light"] .lan__nut, [data-theme="light"] .goi-y__dong { --mau: var(--mau-sang); }
.lan__dong { opacity: 0; transform: translateX(-14px); transition: opacity .7s var(--de), transform .9s var(--de); transition-delay: calc(var(--i) * 90ms); }
.lan.hien .lan__dong { opacity: 1; transform: none; }
.lan__hom-nay { stroke: var(--nhan); stroke-width: 1.5; }
.lan__ke { stroke: var(--chu); stroke-opacity: .55; opacity: 0; pointer-events: none; }
.lan__svg.dang-chi .lan__ke { opacity: 1; }

.bang-chi-tiet { margin-top: 4px; }
.bang-chi-tiet summary { display: inline-flex; align-items: center; gap: 10px; padding: 10px 0; color: var(--chu-2); font-size: 14.5px; cursor: pointer; list-style: none; }
.bang-chi-tiet summary::-webkit-details-marker { display: none; }
.bang-chi-tiet summary::before { content: ''; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(-45deg); transition: transform .3s var(--de); }
.bang-chi-tiet[open] summary::before { transform: rotate(45deg) translate(-2px, -2px); }
.bang-chi-tiet summary:hover { color: var(--chu); }
.bang-so { overflow-x: auto; padding-bottom: 6px; }
.bang-so table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.bang-so caption { padding: 4px 0 10px; text-align: left; font-size: 13px; color: var(--chu-3); }
.bang-so th, .bang-so td { padding: 10px 12px; border-bottom: 1px solid var(--vien); text-align: left; }
.bang-so thead th { font-size: 12.5px; font-weight: 600; color: var(--chu-3); }
.bang-so td { font-variant-numeric: tabular-nums; color: var(--chu-2); }
.bang-so tfoot th, .bang-so tfoot td { font-weight: 600; color: var(--chu); border-bottom: 0; }

.goi-y {
  position: fixed; left: 0; top: 0; z-index: 90; min-width: 150px; max-width: 240px;
  padding: 10px 12px; border-radius: 13px; pointer-events: none;
  background: var(--be-dac); border: 1px solid var(--vien-2); box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .55);
  font-size: 12.5px;
}
.goi-y__dau { display: flex; flex-direction: column; margin-bottom: 6px; }
.goi-y__dau b { font-size: 14px; font-weight: 600; }
.goi-y__dau span { font-size: 12px; color: var(--chu-3); }
.goi-y__dong { display: grid; grid-template-columns: 12px auto 1fr; align-items: center; gap: 8px; padding: 1px 0; }
.goi-y__dong i { width: 12px; height: 3px; border-radius: 2px; background: var(--mau); }
.goi-y__dong b { font: 600 12.5px var(--f-ma); }
.goi-y__dong span { color: var(--chu-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============================================================ 13. cuối trang */

.cuoi { position: relative; margin-top: clamp(110px, 14vw, 190px); padding: 96px 0 44px; border-top: 1px solid var(--vien); overflow: hidden; }
.cuoi::before {
  content: ''; position: absolute; left: 50%; top: -60%; width: 140%; aspect-ratio: 2; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(167, 139, 250, .18), rgba(34, 211, 238, .06) 55%, transparent);
  pointer-events: none; z-index: -1;
}
.cuoi__lon {
  margin: 0 0 22px; font: 800 clamp(42px, 7vw, 108px)/1.04 var(--f-tieu); letter-spacing: -.04em;
  background: linear-gradient(110deg, var(--chu) 25%, #c79bff 55%, #7dd3fc 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .06em;
}
[data-theme="light"] .cuoi__lon { background-image: linear-gradient(110deg, var(--chu) 25%, #6d4dfa 60%, #0e7490 90%); }
.cuoi__phu { max-width: 560px; margin: 0 0 30px; font-size: 18px; color: var(--chu-2); }
.cuoi__nut { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 70px; }
.cuoi__nho { margin: 0; padding-top: 24px; border-top: 1px solid var(--vien); font: 500 12.5px var(--f-ma); color: var(--chu-3); }

/* ============================================================ 14. chi tiết */

.ct {
  width: min(1060px, 100vw - 32px); max-width: none; max-height: calc(100dvh - 48px);
  padding: 0; border: 1px solid var(--vien-2); border-radius: 30px; overflow: hidden;
  background: var(--be-dac); color: var(--chu);
  box-shadow: 0 50px 140px -40px rgba(0, 0, 0, .8);
}
.ct[open]:not(.qua-vt) { animation: ct-vao .5s var(--de); }
.ct::backdrop { background: rgba(5, 4, 12, .66); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
[data-theme="light"] .ct::backdrop { background: rgba(30, 24, 70, .38); }
.ct[open]::backdrop { animation: mo-vao .4s var(--de); }
.ct.dang-dong { animation: ct-ra .19s ease-in forwards; }
.ct.dang-dong::backdrop { animation: mo-ra .19s ease-in forwards; }
@keyframes ct-vao { from { opacity: 0; transform: translateY(26px) scale(.97); } }
@keyframes ct-ra { to { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes mo-vao { from { opacity: 0; } }
@keyframes mo-ra { to { opacity: 0; } }
.ct__khung { max-height: calc(100dvh - 50px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.ct__dong {
  position: absolute; top: 14px; right: 14px; z-index: 6; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: #fff;
  background: rgba(10, 8, 20, .55); border: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform .4s var(--nay), background .2s;
}
.ct__dong svg { width: 20px; height: 20px; }
.ct__dong:hover { transform: rotate(90deg); background: rgba(10, 8, 20, .82); }
.ct__canh { position: relative; height: clamp(250px, 44vh, 420px); overflow: hidden; container-type: size; background: #0b0918; }
.ct__canh::after { content: ''; position: absolute; inset: auto 0 0; height: 3px; z-index: 5; background: linear-gradient(90deg, transparent, var(--mau), transparent); }
.ct__than { padding: 28px clamp(20px, 4vw, 46px) 38px; }
.ct__tren { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ct__nhan { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--vien); font: 500 12px var(--f-ma); color: var(--chu-3); }
.ct__ten { margin: 16px 0 10px; font: 800 clamp(32px, 4.4vw, 54px)/1.08 var(--f-tieu); letter-spacing: -.03em; }
.ct__cau { max-width: 780px; margin: 0 0 24px; font-size: clamp(16.5px, 1.6vw, 19px); color: var(--chu-2); }
.ct__nut { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.ct__ghi { display: flex; gap: 8px; margin: 0; font-size: 13.5px; color: var(--chu-3); }
.ct__ghi::before { content: 'i'; flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font: 700 11px/1 var(--f-ma); color: var(--chu-2); border: 1px solid var(--vien-2); margin-top: 1px; }
.ct__cot { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(22px, 4vw, 52px); margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--vien); }
.ct h3 { margin: 0 0 12px; font: 600 12px var(--f-ma); text-transform: uppercase; letter-spacing: .09em; color: var(--chu-3); }
.ct__chuyen-ke { margin: 0 0 28px; font-size: 16.5px; line-height: 1.75; }
.ct__tinh-nang { display: grid; gap: 11px; margin: 0 0 28px; padding: 0; list-style: none; }
.ct__tinh-nang li { position: relative; padding-left: 30px; line-height: 1.55; }
.ct__tinh-nang li::before {
  content: ''; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 7px;
  background: color-mix(in oklab, var(--mau) 18%, transparent);
  border: 1px solid color-mix(in oklab, var(--mau) 45%, transparent);
}
.ct__tinh-nang li::after { content: ''; position: absolute; left: 7px; top: 7px; width: 6px; height: 9px; border: solid var(--mau); border-width: 0 2px 2px 0; transform: rotate(45deg); }
[data-theme="light"] .ct__tinh-nang li::after { border-color: color-mix(in oklab, var(--mau) 55%, #000); }
.ct__phim { display: grid; grid-template-columns: auto 1fr; gap: 9px 14px; margin: 0; }
.ct__phim dd { margin: 0; color: var(--chu-2); }
.ct__so { display: grid; grid-template-columns: 1fr auto; gap: 11px 12px; margin: 0 0 26px; padding: 16px 18px; border-radius: 16px; background: var(--be-mat); border: 1px solid var(--vien); }
.ct__so dt { font-size: 13.5px; color: var(--chu-3); }
.ct__so dd { margin: 0; text-align: right; font: 600 13.5px var(--f-ma); }
.ct__cong-nghe { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ct__cong-nghe li { padding: 5px 10px; border-radius: 9px; background: var(--be-mat-2); border: 1px solid var(--vien); font: 500 12.5px var(--f-ma); color: var(--chu-2); }
.ct__anh { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-top: 34px; }
.ct__anh--doc { grid-template-columns: repeat(auto-fit, minmax(150px, 230px)); justify-content: center; }
.ct__hinh { display: block; border-radius: 16px; overflow: hidden; border: 1px solid var(--vien); background: var(--be-mat); }
.ct__hinh img { width: 100%; height: auto; transition: transform .6s var(--de); }
.ct__hinh:hover img { transform: scale(1.03); }
.ct__chuyen { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 38px; }
.ct__qua {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 15px 18px; border-radius: 16px;
  border: 1px solid var(--vien); background: var(--be-mat); cursor: pointer; text-align: left;
  transition: border-color .25s, background .25s, transform .35s var(--nay);
}
.ct__qua:hover { border-color: var(--vien-2); background: var(--be-mat-2); transform: translateY(-2px); }
.ct__qua small { font-size: 12.5px; color: var(--chu-3); }
.ct__qua b { font: 650 15.5px/1.3 var(--f-tieu); }
.ct__qua--sau { align-items: flex-end; text-align: right; }

/* ============================================================ 15. tìm nhanh */

.tim {
  width: min(640px, 100vw - 24px); max-width: none; margin: 11vh auto auto; padding: 0;
  border: 1px solid var(--vien-2); border-radius: 22px; overflow: hidden;
  background: var(--be-dac); color: var(--chu);
  box-shadow: 0 50px 140px -40px rgba(0, 0, 0, .8);
}
.tim[open] { animation: tim-vao .24s var(--de); }
.tim.dang-dong { animation: ct-ra .14s ease-in forwards; }
.tim::backdrop { background: rgba(5, 4, 12, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
[data-theme="light"] .tim::backdrop { background: rgba(30, 24, 70, .3); }
@keyframes tim-vao { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
.tim__o { display: flex; align-items: center; gap: 12px; height: 62px; padding: 0 16px; border-bottom: 1px solid var(--vien); }
.tim__o svg { flex: none; width: 20px; height: 20px; color: var(--chu-3); }
.tim__o input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--chu); font: 500 17px var(--f-than); }
.tim__o input::placeholder { color: var(--chu-3); }
.tim__ds { max-height: min(56vh, 460px); margin: 0; padding: 8px; overflow-y: auto; overscroll-behavior: contain; list-style: none; }
.tim__nhom { padding: 12px 10px 6px; font: 600 11px var(--f-ma); text-transform: uppercase; letter-spacing: .08em; color: var(--chu-3); }
.tim__muc { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 12px; border-radius: 13px; cursor: pointer; }
.tim__muc[aria-selected="true"] { background: var(--be-mat-2); box-shadow: inset 0 0 0 1px var(--vien-2); }
.tim__cham { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--mau, var(--nhan)); box-shadow: 0 0 12px var(--mau, var(--nhan)); }
.tim__icon { flex: none; width: 20px; height: 20px; color: var(--chu-2); }
.tim__icon svg { width: 100%; height: 100%; }
.tim__chu { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.tim__chu b { font-size: 15px; font-weight: 600; }
.tim__chu small { font-size: 12.5px; color: var(--chu-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tim__phim { font: 600 13px var(--f-ma); color: var(--chu-3); opacity: 0; }
.tim__muc[aria-selected="true"] .tim__phim { opacity: 1; }
.tim__trong { padding: 30px 16px; text-align: center; color: var(--chu-3); }
.tim__chan { display: flex; gap: 18px; margin: 0; padding: 11px 16px; border-top: 1px solid var(--vien); font-size: 12px; color: var(--chu-3); }
.tim__chan kbd { margin-right: 3px; }

/* thẻ nổi khi rê vào hành tinh */
.the-ht {
  position: fixed; left: 0; top: 0; z-index: 40; width: max-content; max-width: 270px;
  padding: 12px 15px; border-radius: 15px; pointer-events: none;
  background: color-mix(in oklab, var(--be-dac) 86%, transparent);
  border: 1px solid color-mix(in oklab, var(--mau) 55%, var(--vien));
  box-shadow: 0 22px 50px -20px rgba(0, 0, 0, .65), 0 0 34px -12px var(--mau);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  opacity: 0; transition: opacity .2s;
}
.the-ht.hien { opacity: 1; }
.the-ht b { display: block; margin-bottom: 4px; font: 700 16px/1.25 var(--f-tieu); }
.the-ht span { display: block; font-size: 13px; line-height: 1.45; color: var(--chu-2); }
.the-ht small { display: block; margin-top: 8px; font: 600 11px var(--f-ma); color: var(--chu); }
.the-ht small::before { content: '●'; margin-right: 6px; color: var(--mau); }

/* ============================================================ 16. chuyển cảnh (View Transitions) */

::view-transition-group(*) { animation-duration: .55s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
::view-transition-group(ct-canh) { animation-duration: .6s; }
::view-transition-old(ct-canh), ::view-transition-new(ct-canh) { height: 100%; object-fit: cover; }
html.dang-doi-mau::view-transition-old(root), html.dang-doi-mau::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.dang-doi-mau::view-transition-new(root) { z-index: 2; }

/* ============================================================ 17. hiện dần khi cuộn tới */

.co-js [data-hien]:not([data-tach]) { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--de), transform .9s var(--de); transition-delay: var(--tre, 0s); }
.co-js [data-hien].da-hien { opacity: 1; transform: none; }
.co-js [data-tach] .tu > span { transform: translateY(108%) rotate(5deg); opacity: 0; transition: transform 1s var(--de), opacity 1s var(--de); transition-delay: calc(var(--i) * 75ms + 120ms); }
.co-js [data-tach].da-hien .tu > span { transform: none; opacity: 1; }
.co-js .mo-dau__phu { --tre: .45s; }
.co-js .mo-dau__nut { --tre: .6s; }
.co-js .the { opacity: 0; transform: translateY(34px) scale(.98); transition: opacity .8s var(--de), transform 1s var(--de); transition-delay: calc(var(--i, 0) * 70ms); }
.co-js .the.da-hien { opacity: 1; transform: none; }
.co-js .so-lieu__o { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--de), transform .8s var(--de); }
.co-js .so-lieu.da-hien .so-lieu__o { opacity: 1; transform: none; }
.co-js .so-lieu.da-hien .so-lieu__o:nth-child(2) { transition-delay: .08s; }
.co-js .so-lieu.da-hien .so-lieu__o:nth-child(3) { transition-delay: .16s; }
.co-js .so-lieu.da-hien .so-lieu__o:nth-child(4) { transition-delay: .24s; }

/* ============================================================ hoạt hình dùng chung */

@keyframes song { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, currentColor 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }
.cham-song { color: var(--tt-song); }
@keyframes song-tim { 0% { box-shadow: 0 0 0 0 rgba(167, 139, 250, .6); } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }
@keyframes song-vang { 0% { box-shadow: 0 0 0 0 rgba(242, 169, 59, .7); } 70%, 100% { box-shadow: 0 0 0 6px transparent; } }
@keyframes lap-lanh { 0%, 100% { opacity: .35; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes noi-nhe { from { transform: translateY(-3px); } to { transform: translateY(4px); } }
@keyframes nhay { 50% { opacity: 0; } }
@keyframes quay { to { transform: rotate(360deg); } }

/* ============================================================ 18. màn nhỏ */

@media (max-width: 1100px) {
  .luoi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hanh-trinh__tren { grid-template-columns: minmax(0, 1fr); }
  .hanh-trinh__so { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .hanh-trinh__so { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .dau__link { display: none; }
  .mo-dau { min-height: auto; padding-top: calc(112px + min(94vw, 560px) * .64); padding-bottom: 40px; }
  .mo-dau__neo { top: 70px; left: 50%; right: auto; width: min(96vw, 600px); height: calc(min(94vw, 560px) * .64); transform: translateX(-50%); }
  .mo-dau__goi-y { bottom: -14px; }
  .so-lieu { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 48px; }
  .muc__dau--hang { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 680px) {
  .khung { width: calc(100% - 32px); }
  .dau__trong { height: 62px; gap: 12px; }
  .nut-tim { width: 44px; padding: 0; }
  .nut-tim__chu, .nut-tim kbd { display: none; }
  .mo-dau__h1 { font-size: clamp(40px, 11.5vw, 54px); }
  .mo-dau__nut .nut { flex: 1 1 auto; }
  .mo-dau__nut .nut kbd { display: none; }
  .so-lieu__o { padding: 16px 18px; }
  .luoi { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; gap: 16px; }
  .the[data-o] { grid-column: auto; grid-row: auto; }
  .the__lien { height: auto; grid-template-rows: auto auto; }
  .the__canh { height: 236px; }
  .the[data-o="2x2"] .the__canh { height: 300px; }
  .the[data-o="1x2"] .the__canh { height: 420px; }
  .the[data-o="2x1"] .the__canh { height: 236px; }
  .the[data-o="1x1"] .the__nhan, .the[data-o="1x2"] .the__nhan { display: flex; }
  .the[data-o="2x2"] .the__ten { font-size: 26px; }
  .hanh-trinh__so { gap: 10px; }
  .o-so { padding: 14px 16px; }
  .o-so__so { font-size: 21px; }
  .the-kinh { padding: 18px 16px 20px; border-radius: 20px; }
  .lan__khung { grid-template-columns: 112px minmax(0, 1fr); gap: 6px; }
  .lan__nut { padding: 0 6px; font-size: 12.5px; }
  .lan__nut small { display: none; }
  .ct { width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .ct__khung { max-height: 100dvh; height: 100%; }
  .ct__canh { height: 280px; }
  .ct__cot { grid-template-columns: minmax(0, 1fr); }
  .ct__chuyen { grid-template-columns: minmax(0, 1fr); }
  .ct__qua--sau { align-items: flex-start; text-align: left; }
  .ct__nut .nut { flex: 1 1 auto; }
  .tim { margin-top: 8px; }
  .tim__chan { display: none; }
  .cuoi { padding-top: 70px; }
  .cuoi__nut .nut { flex: 1 1 auto; }
}

/* ============================================================ 19. giảm chuyển động */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .canh, .canh * { animation: none !important; }
  .nen i, .bang-chu__ds { animation: none !important; }
  .bang-chu__ds { flex-wrap: wrap; width: auto; justify-content: center; row-gap: 10px; }
  .bang-chu__ds li[aria-hidden="true"], .bang-chu__ds--nguoc { display: none; }
  .the__lien { transform: none !important; }
}
