/* KF-v1 · Spectral (Google Fonts, SIL OFL 1.1) tự host, subset latin + vietnamese */
@font-face{font-family:"KFSpectral";src:url("../fonts/Spectral-300-latin.woff2") format("woff2");font-weight:300;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:"KFSpectral";src:url("../fonts/Spectral-300-vietnamese.woff2") format("woff2");font-weight:300;font-style:normal;font-display:swap;unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;}
@font-face{font-family:"KFSpectral";src:url("../fonts/Spectral-400-latin.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:"KFSpectral";src:url("../fonts/Spectral-400-vietnamese.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap;unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;}
@font-face{font-family:"KFSpectral";src:url("../fonts/Spectral-400i-latin.woff2") format("woff2");font-weight:400;font-style:italic;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:"KFSpectral";src:url("../fonts/Spectral-400i-vietnamese.woff2") format("woff2");font-weight:400;font-style:italic;font-display:swap;unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;}
@font-face{font-family:"KFSpectral";src:url("../fonts/Spectral-500-latin.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:"KFSpectral";src:url("../fonts/Spectral-500-vietnamese.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap;unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;}
@font-face{font-family:"KFSpectral";src:url("../fonts/Spectral-600-latin.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:"KFSpectral";src:url("../fonts/Spectral-600-vietnamese.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap;unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;}
@font-face{font-family:"KFSpectral";src:url("../fonts/Spectral-600i-latin.woff2") format("woff2");font-weight:600;font-style:italic;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:"KFSpectral";src:url("../fonts/Spectral-600i-vietnamese.woff2") format("woff2");font-weight:600;font-style:italic;font-display:swap;unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;}
@font-face{font-family:"KFSpectral";src:url("../fonts/Spectral-700-latin.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:"KFSpectral";src:url("../fonts/Spectral-700-vietnamese.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap;unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;}
@font-face{font-family:"KFSpectral";src:url("../fonts/Spectral-800-latin.woff2") format("woff2");font-weight:800;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:"KFSpectral";src:url("../fonts/Spectral-800-vietnamese.woff2") format("woff2");font-weight:800;font-style:normal;font-display:swap;unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;}

/* ============================================================
   KF-v1 · Scrollytelling khóa đoạn (section lock)
   Namespace: kf-   ·   Scope: .kf-emag
   ============================================================ */

/* ---- Local preview only ---- */
.kf-body { margin: 0; padding: 0; background: #111110; }

/* ---- CMS parent overrides (Genk / K14 / SohaPlay) ---- */
.sp-body-content, .sp-body-content .w980, .sp-body-content .w980 .sp-detail,
.sp-body-content .sp-detail-maincontent, .sp-body-content .sp-detail-content,
.sp-detail-content[data-role="content"] {
  width: 100% !important; max-width: 100% !important; padding: 0 !important;
  margin-left: auto !important; margin-right: auto !important; overflow: visible !important;
  background-color: #111110 !important;
}
.sp-body-content .sp-detail .sp-sapo, .sp-body-content .sp-detail-title,
.sp-body-content .sp-detail .sp-author, .sp-body-content .sp-detail .sp-time { display: none !important; }
.sp-detail-content .detail-emagazine, .sp-detail-content .detail-content { padding: 0 !important; margin: 0 !important; background-color: transparent !important; }
.k14-sp-wrapper, .k14-sp-wrapper .sp-body-content, .genk-sp-wrapper, .genk-sp-wrapper .sp-body-content { background-color: #111110 !important; }
.sp-detail-content .kf-emag, .sp-detail-content[data-role="content"] .kf-emag { max-width: none !important; width: 100% !important; margin: 0 !important; padding: 0 !important; }

/* ---- Tokens ---- */
.kf-emag {
  --paper: #F1ECE2; --paper-2: #E6DFD0; --ink: #1B1A17; --ink-dim: #5D584E; --ink-line: rgba(27,26,23,.16);
  --dark: #111110; --dark-2: #1B1B19; --dark-3: #262522; --on-dark: #EEE9DF; --on-dark-dim: #A29C90; --dark-line: rgba(238,233,223,.16);
  --amber: #E8A33D; --amber-ink: #9C5C0C;
  --c-mobile: #E8A33D; --c-pc: #86AED0; --c-console: #86CFAE; --c-other: #8E897F;
  --ease: cubic-bezier(.65,0,.35,1); --ease-out: cubic-bezier(.16,1,.3,1);
  --dur: 1s; --rail: 232px;
  --kf-top: 0px; --kf-h: 100vh;
  position: relative; width: 100%;
  font-family: "KFSpectral", "Noto Serif", "Times New Roman", serif;
  font-weight: 400; color: var(--on-dark); background: var(--dark);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; font-kerning: normal;
}
.kf-emag *, .kf-emag *::before, .kf-emag *::after { box-sizing: border-box; }
.kf-emag h1, .kf-emag h2, .kf-emag h3, .kf-emag p, .kf-emag figure, .kf-emag ul, .kf-emag ol { margin: 0; padding: 0; }
.kf-emag img { display: block; max-width: none; }
.kf-emag button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
.kf-emag em { font-style: italic; }
.kf-emag b, .kf-emag strong { font-weight: 700; }

/* ============================================================
   STAGE + SECTIONS
   ============================================================ */
.kf-stage { position: relative; width: 100%; background: var(--dark); }
.kf-sec { position: relative; min-height: 100vh; overflow: hidden; }

/* Stage cao theo tổng quãng cuộn (JS đặt height); khung nhìn ghim bằng sticky */
.kf-view { position: relative; }
.kf-on .kf-stage { overflow: visible; }
.kf-on .kf-view { position: sticky; top: var(--kf-top); height: var(--kf-h); overflow: hidden; }
.kf-on .kf-sec {
  position: absolute; inset: 0; min-height: 0;
  transform: translate3d(0,100%,0); visibility: hidden; transition: none;
  will-change: transform;
}
.kf-sec::after { content: ""; position: absolute; inset: 0; background: #000; opacity: var(--dim, 0); pointer-events: none; z-index: 50; }
/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
.kf-sec.no-tr, .kf-sec.no-tr *, .kf-sec.no-tr::after { transition: none !important; }

/* Generic step reveals: [data-at] = bước của đoạn, [data-v] = bước của biểu đồ */
.kf-emag [data-at], .kf-emag [data-v] {
  transition: opacity .8s var(--ease-out) var(--d, 0s), transform .95s var(--ease-out) var(--d, 0s), color .6s, background-color .6s, border-color .6s;
}

/* ============================================================
   CHROME: rail timeline, counter, step dots, hint
   ============================================================ */
.kf-rail, .kf-bar, .kf-dots, .kf-hint, .kf-mhead { display: none; }
.kf-on .kf-rail, .kf-on .kf-bar, .kf-on .kf-count, .kf-on .kf-dots, .kf-on .kf-hint { display: block; }

.kf-stage { --rail-c: var(--on-dark); --rail-a: var(--amber); }
.kf-stage.is-light { --rail-c: var(--ink); --rail-a: var(--amber-ink); }

.kf-rail {
  position: absolute; left: 0; top: 0; bottom: 0; width: var(--rail); z-index: 900;
  color: var(--rail-c); opacity: 0; pointer-events: none;
  transition: opacity .6s var(--ease), color .6s;
}
.kf-stage.show-rail .kf-rail { opacity: 1; pointer-events: auto; }
.kf-rail__in { position: absolute; left: 40px; right: 10px; top: 11vh; bottom: 9vh; }
.kf-rail__track { position: absolute; left: 7px; top: 7px; bottom: 7px; width: 1px; background: currentColor; opacity: .22; }
.kf-rail__fill { position: absolute; left: 6px; top: 7px; width: 3px; height: 0; background: var(--rail-a); transition: height .9s var(--ease), background-color .6s; border-radius: 2px; }
.kf-rail__list { position: relative; list-style: none; height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
.kf-rail__node { position: relative; display: flex; align-items: center; gap: 12px; min-height: 15px; cursor: pointer; line-height: 1.15; }
.kf-rail__node::before {
  content: ""; flex: none; width: 15px; height: 15px; border-radius: 50%;
  border: 1.5px solid currentColor; background: var(--dark); opacity: .55;
  transition: background-color .5s, border-color .5s, opacity .5s, transform .5s var(--ease-out);
}
.kf-stage.is-light .kf-rail__node::before { background: var(--paper); }
.kf-rail__node.is-year::before { width: 9px; height: 9px; margin: 0 3px; }
.kf-rail__lbl { font-size: 13px; letter-spacing: .02em; opacity: .55; transition: opacity .5s; white-space: nowrap; }
.kf-rail__node.is-chap .kf-rail__lbl { font-weight: 600; font-size: 13.5px; }
.kf-rail__lbl small { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; opacity: .8; margin-bottom: 2px; }
.kf-rail__node.is-year .kf-rail__lbl { font-size: 15px; font-weight: 700; font-variant-numeric: lining-nums; }
.kf-rail__node.is-done::before { background: var(--rail-a); border-color: var(--rail-a); opacity: 1; }
.kf-rail__node.is-act::before { background: var(--rail-a); border-color: var(--rail-a); opacity: 1; transform: scale(1.35); box-shadow: 0 0 0 5px color-mix(in srgb, var(--rail-a) 22%, transparent); }
.kf-rail__node.is-act .kf-rail__lbl, .kf-rail__node.is-inchap .kf-rail__lbl { opacity: 1; }
.kf-rail__node:hover .kf-rail__lbl { opacity: 1; }

.kf-bar { position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 910; background: rgba(128,128,128,.18); }
.kf-bar i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: var(--rail-a); transition: background-color .6s; }
.kf-count { position: absolute; top: 22px; right: 30px; z-index: 910; font-size: 13px; letter-spacing: .12em; color: var(--rail-c); opacity: .7; font-variant-numeric: tabular-nums lining-nums; transition: color .6s; }
.kf-count b { font-weight: 700; opacity: 1; }

.kf-dots { position: absolute; right: 26px; top: 50%; transform: translateY(-50%); z-index: 910; color: var(--rail-c); transition: color .6s; }
.kf-dots span { display: block; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; margin: 9px 0; opacity: .5; transition: all .5s var(--ease-out); }
.kf-dots span.on { background: var(--rail-a); border-color: var(--rail-a); opacity: 1; }
.kf-dots span.cur { transform: scale(1.5); }

.kf-hint { position: absolute; left: 50%; bottom: 22px; z-index: 910; transform: translateX(-50%); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--rail-c); opacity: 0; transition: opacity .6s; pointer-events: none; text-align: center; }
.kf-hint::after { content: ""; display: block; width: 1px; height: 30px; margin: 10px auto 0; background: currentColor; animation: kf-hint 1.8s var(--ease) infinite; transform-origin: top; }
.kf-stage.show-hint .kf-hint { opacity: .8; }
@keyframes kf-hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ============================================================
   COVER
   ============================================================ */
.kf-cover { background: #0a0a0a; color: #fff; }
.kf-cover__media { position: absolute; inset: 0; overflow: hidden; }
.kf-cover__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transform: scale(1.12); transition: transform 7s var(--ease-out), filter 1.2s; filter: saturate(.9) brightness(.8); }
.kf-cover.is-cur .kf-cover__media img, .kf-emag:not(.kf-on) .kf-cover__media img { transform: scale(1.02); }
.kf-cover.is-s1 .kf-cover__media img { filter: saturate(.75) brightness(.55); }
.kf-cover__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,8,8,.92) 0%, rgba(8,8,8,.66) 42%, rgba(8,8,8,.05) 78%), linear-gradient(0deg, rgba(8,8,8,.85) 0%, rgba(8,8,8,0) 45%); }
.kf-cover__mast { position: absolute; top: 26px; left: 5vw; z-index: 3; font-size: 12.5px; letter-spacing: .26em; text-transform: uppercase; font-weight: 500; opacity: .85; }
.kf-cover__mast i { font-style: normal; color: var(--amber); margin: 0 .7em; }
.kf-cover__body { position: absolute; z-index: 3; left: 5vw; bottom: 12vh; width: min(760px, 62vw); }
.kf-cover__kicker { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--amber); padding-bottom: 10px; border-bottom: 1px solid rgba(232,163,61,.6); margin-bottom: 26px; }
.kf-cover__title { font-weight: 800; font-size: clamp(46px, 7.4vh, 92px); line-height: 1.02; letter-spacing: -.015em; }
.kf-cover__title .kf-ln { display: block; overflow: hidden; padding-bottom: .06em; }
.kf-cover__title .kf-ln > span { display: block; transition: transform 1.1s var(--ease-out) var(--d,0s); }
.kf-on .kf-cover__title .kf-ln > span { transform: translate3d(0,110%,0); }
.kf-on .kf-cover.is-cur .kf-cover__title .kf-ln > span, .kf-on .kf-cover.is-past .kf-cover__title .kf-ln > span { transform: none; }
.kf-cover__title em { font-weight: 600; color: var(--amber); }
.kf-emag .kf-cover__sapo { margin-top: 28px; max-width: 600px; font-size: clamp(18px, 2.4vh, 22px); line-height: 1.55; font-style: italic; color: rgba(255,255,255,.88); }

/* ============================================================
   STORY (Dạng 1): rail | chữ | khung ảnh dọc
   ============================================================ */
.kf-story { background: var(--paper); color: var(--ink); }
.kf-story.is-dark { background: var(--dark); color: var(--on-dark); }
.kf-story__grid {
  position: absolute; inset: 0; left: var(--rail);
  display: grid; grid-template-columns: minmax(0,1fr) auto; column-gap: 4.5vw;
  padding: 11vh 5.2vw 9vh 1vw;
}
.kf-story__text { position: relative; min-width: 0; max-width: 640px; display: flex; flex-direction: column; min-height: 0; }
.kf-story__kicker { display: flex; align-items: baseline; gap: 14px; margin-bottom: 1.4vh; }
.kf-story__num { font-size: 12.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--amber-ink); }
.kf-story.is-dark .kf-story__num { color: var(--amber); }
.kf-story__year { font-weight: 800; font-size: clamp(56px, 11vh, 132px); line-height: .86; letter-spacing: -.03em; color: var(--amber-ink); font-variant-numeric: lining-nums; margin: 0 0 2vh -.04em; }
.kf-story.is-dark .kf-story__year { color: var(--amber); }
.kf-story__title { font-weight: 700; font-size: clamp(28px, 4.6vh, 50px); line-height: 1.08; letter-spacing: -.012em; max-width: 15em; }
.kf-story__title em { font-weight: 600; color: var(--amber-ink); }
.kf-story.is-dark .kf-story__title em { color: var(--amber); }
.kf-story__rule { width: 56px; height: 2px; background: currentColor; opacity: .3; margin: 2.6vh 0 0; }
.kf-story__vp {
  position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; margin-top: 2.6vh;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14px, #000 calc(100% - 26px), transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 14px, #000 calc(100% - 26px), transparent 100%);
}
.kf-emag:not(.kf-on) .kf-story__vp { overflow: visible; -webkit-mask-image: none; mask-image: none; }
.kf-story__flow { padding: 14px 0 26px; transition: transform 1.05s var(--ease); will-change: transform; --fz: 19.5px; }
.kf-story__flow p { font-size: var(--fz); line-height: 1.64; margin-bottom: 1.05em; color: inherit; }
.kf-story__flow p.on:not(.cur) { opacity: .34; }
.kf-story__flow p:first-child::first-letter { font-weight: 800; color: var(--amber-ink); }
.kf-story.is-dark .kf-story__flow p:first-child::first-letter { color: var(--amber); }
.kf-hl { background-image: linear-gradient(transparent 62%, rgba(232,163,61,.42) 62%); background-repeat: no-repeat; background-size: 0% 100%; transition: background-size 1.2s var(--ease) .2s; }
.kf-sec.is-s3 .kf-hl, .kf-emag:not(.kf-on) .kf-hl { background-size: 100% 100%; }

/* Khung ảnh dọc, ảnh lia theo bước */
.kf-frame {
  position: relative; align-self: stretch; overflow: hidden; background: #0d0d0c; cursor: zoom-in;
  width: min(33vw, calc((var(--kf-h) - 20vh) * .74)); min-height: 0;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.45);
}
.kf-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 0% 50%; transform: scale(1.08); transition: transform 1.6s var(--ease-out); }
.kf-sec.is-cur .kf-frame img, .kf-sec.is-past .kf-frame img, .kf-emag:not(.kf-on) .kf-frame img { transform: none; }
.kf-emag:not(.kf-on) .kf-frame img { object-position: 50% 50%; }
.kf-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 26%); pointer-events: none; }
.kf-frame__ui { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; display: flex; align-items: center; gap: 14px; color: #fff; }
.kf-frame__pan { position: relative; flex: 1; height: 2px; background: rgba(255,255,255,.3); }
.kf-frame__pan i { position: absolute; top: -1px; height: 4px; left: 0; width: 40%; background: var(--amber); transition: width .4s; }
.kf-frame__zoom { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; opacity: .85; }
.kf-frame__zoom::before { content: "⤢"; margin-right: 6px; font-size: 13px; letter-spacing: 0; }


/* Đoạn chỉ có chữ */
.kf-story--text .kf-story__grid { grid-template-columns: minmax(0,1fr); padding-right: 12vw; }
.kf-story--text .kf-story__text { max-width: 780px; }
.kf-story--text .kf-story__flow { --fz: 21px; }
.kf-story--end .kf-story__grid { padding-left: 4vw; }
.kf-story--end .kf-story__title { font-size: clamp(34px, 6vh, 64px); }

/* ============================================================
   CHART (Dạng 2): rail | chữ | biểu đồ
   ============================================================ */
.kf-chart { background: var(--dark); color: var(--on-dark); }
.kf-chart::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 45%, rgba(232,163,61,.07), transparent 60%); pointer-events: none; }
.kf-chart__grid {
  position: absolute; inset: 0; left: var(--rail);
  display: grid; grid-template-columns: minmax(320px, 34%) minmax(0,1fr); column-gap: 4vw;
  padding: 11vh 5.6vw 9vh 1vw;
}
.kf-chart__text { position: relative; min-height: 0; display: flex; flex-direction: column; overflow: hidden; --fz: 16.5px; }
.kf-chart__kicker { font-size: 12.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--amber); margin-bottom: 1.6vh; }
.kf-chart__title { font-weight: 700; font-size: clamp(26px, 4.1vh, 44px); line-height: 1.1; letter-spacing: -.01em; }
.kf-chart__title em { font-weight: 600; color: var(--amber); }
.kf-emag .kf-chart__p { margin-top: 2.6vh; font-size: var(--fz); line-height: 1.62; color: rgba(238,233,223,.86); }
.kf-chart__viz { position: relative; min-width: 0; min-height: 0; display: flex; flex-direction: column; justify-content: center; }
.kf-note { font-size: 13.5px; line-height: 1.5; color: var(--on-dark-dim); font-style: italic; }
.kf-note b { font-style: normal; color: var(--on-dark); font-weight: 600; }
.kf-tag { display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; padding: 5px 10px; border: 1px solid var(--dark-line); border-radius: 999px; color: var(--on-dark-dim); }

/* ---- [13] Hai con đường ---- */
.kf-routes { display: flex; flex-direction: column; gap: 5vh; }
.kf-lane__lbl { display: flex; align-items: baseline; gap: 12px; margin-bottom: 1.6vh; font-weight: 700; font-size: 20px; }
.kf-lane__lbl span { font-size: 12px; font-weight: 600; letter-spacing: .2em; color: var(--amber); }
.kf-lane__row { display: flex; align-items: stretch; }
.kf-node { flex: 0 0 29%; padding: 16px 18px; border: 1px solid var(--dark-line); background: var(--dark-2); border-radius: 4px; }
.kf-node b { display: block; font-size: 17px; line-height: 1.25; margin-bottom: 6px; }
.kf-node span { display: block; font-size: 13.5px; line-height: 1.45; color: var(--on-dark-dim); }
.kf-node--k { border-color: rgba(232,163,61,.55); background: linear-gradient(180deg, rgba(232,163,61,.14), rgba(232,163,61,.04)); }
.kf-node--k b { color: var(--amber); }
.kf-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.kf-chips i { font-style: normal; font-size: 12px; padding: 3px 9px; border-radius: 999px; background: rgba(232,163,61,.16); color: #f3cf96; }
.kf-arrow { position: relative; flex: 1 1 auto; min-width: 34px; align-self: center; height: 2px; background: var(--dark-line); margin: 0 6px; }
.kf-arrow::before { content: ""; position: absolute; inset: 0; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease) .1s; }
.kf-arrow::after { content: ""; position: absolute; right: -2px; top: -5px; border: 6px solid transparent; border-left: 9px solid var(--amber); border-right: 0; opacity: 0; transition: opacity .3s .85s; }
.kf-routes__stamp { margin-top: 1vh; padding: 14px 18px; border-left: 3px solid var(--amber); background: rgba(255,255,255,.03); font-size: 15px; line-height: 1.5; }

/* ---- [14] Waffle 100 ô ---- */
.kf-waffle { display: grid; grid-template-columns: auto minmax(220px, 1fr); gap: 4vw; align-items: center; }
.kf-waffle__grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; width: min(52vh, 440px); aspect-ratio: 1; }
.kf-waffle__grid i { display: block; border-radius: 3px; background: rgba(238,233,223,.1); transition: background-color .35s var(--ease-out) var(--d,0s), transform .45s var(--ease-out) var(--d,0s), opacity .4s; }
.kf-waffle[data-hl] .kf-waffle__grid i { opacity: .18; }
.kf-waffle[data-hl="mobile"] .kf-waffle__grid i.g-mobile, .kf-waffle[data-hl="pc"] .kf-waffle__grid i.g-pc,
.kf-waffle[data-hl="console"] .kf-waffle__grid i.g-console, .kf-waffle[data-hl="other"] .kf-waffle__grid i.g-other { opacity: 1; }
.kf-waffle__total { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-dim); margin-bottom: 18px; }
.kf-waffle__total b { display: block; white-space: nowrap; font-size: 30px; letter-spacing: -.01em; text-transform: none; color: var(--on-dark); font-weight: 800; margin-top: 4px; }
.kf-legend { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.kf-legend li { display: grid; grid-template-columns: 14px 1fr auto; column-gap: 12px; align-items: baseline; padding: 10px 10px; border-radius: 4px; cursor: pointer; transition: background-color .3s, opacity .6s, transform .8s; }
.kf-legend li:hover, .kf-legend li.is-hl { background: rgba(255,255,255,.06); }
.kf-legend li::before { content: ""; width: 12px; height: 12px; border-radius: 2px; background: var(--c); transform: translateY(1px); }
.kf-legend__n { font-size: 16.5px; font-weight: 600; }
.kf-legend__n small { display: block; font-size: 13px; font-weight: 400; color: var(--on-dark-dim); margin-top: 2px; }
.kf-legend__v { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums lining-nums; color: var(--c); }
.kf-legend__v::after { content: "%"; font-size: .6em; margin-left: 1px; }
.kf-waffle__note { margin-top: 2.4vh; }

/* ---- [15] Thanh chia 100 đồng ---- */
.kf-split__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.kf-split__head b { font-size: 22px; font-weight: 700; }
.kf-split__bar { position: relative; height: clamp(120px, 20vh, 190px); border: 1px dashed rgba(238,233,223,.28); border-radius: 4px; }
.kf-split__cost, .kf-split__profit { position: absolute; top: 8px; bottom: 8px; display: flex; flex-direction: column; justify-content: center; padding: 0 22px; overflow: hidden; transition: transform 1.25s var(--ease) var(--d,0s); }
.kf-split__cost { left: 8px; width: calc((100% - 16px) * .683); background: #3A3834; transform-origin: left; border-radius: 3px 0 0 3px; }
.kf-split__profit { right: 8px; width: calc((100% - 16px) * .317); background: var(--amber); color: #1a1406; transform-origin: right; border-radius: 0 3px 3px 0; text-align: right; }
.kf-split__big { font-size: clamp(40px, 7vh, 76px); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums lining-nums; letter-spacing: -.02em; }
.kf-split__lbl { font-size: 14px; font-weight: 600; letter-spacing: .06em; margin-top: 8px; opacity: .85; }
.kf-split__seam { position: absolute; top: -18px; bottom: -18px; left: calc(8px + (100% - 16px) * .683); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 18px 2px rgba(232,163,61,.8); }
.kf-split__scale { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12.5px; color: var(--on-dark-dim); font-variant-numeric: tabular-nums; }
.kf-split__notes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4vh; }
.kf-split__notes .kf-tag { color: var(--on-dark); border-color: rgba(232,163,61,.45); text-transform: none; letter-spacing: .01em; font-size: 14px; font-weight: 500; padding: 8px 14px; }

/* ---- [19] Túi tiền + 4 thẻ ---- */
.kf-eco { position: relative; width: 100%; height: min(100%, 64vh); min-height: 380px; }
.kf-eco__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.kf-eco__ln { fill: none; stroke: var(--amber); stroke-width: 2; stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s var(--ease) .15s; }
.kf-eco__flow { fill: none; stroke: #fff4df; stroke-width: 3; stroke-linecap: round; stroke-dasharray: .004 .06; opacity: 0; transition: opacity .5s 1s; }
@keyframes kf-flow { to { stroke-dashoffset: -.64; } }
.kf-eco__ret { fill: none; stroke: var(--c-pc); stroke-width: 2; stroke-dasharray: 6 6; }
.kf-eco__bag { position: absolute; left: 50%; top: 50%; width: min(24%, 30vh); aspect-ratio: 1; transform: translate(-50%,-50%); z-index: 2; }
.kf-eco__bag svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 18px 30px rgba(0,0,0,.5)); }
.kf-eco__card { position: absolute; width: 31%; padding: 16px 18px; background: var(--dark-2); border: 1px solid var(--dark-line); border-top: 3px solid var(--amber); border-radius: 4px; z-index: 3; }
.kf-eco__card b { display: block; font-size: 17px; line-height: 1.2; margin-bottom: 6px; }
.kf-eco__card span { display: block; font-size: 13.5px; line-height: 1.45; color: var(--on-dark-dim); }
.kf-eco__card[data-p="tl"] { left: 0; top: 0; } .kf-eco__card[data-p="tr"] { right: 0; top: 0; }
.kf-eco__card[data-p="bl"] { left: 0; bottom: 0; } .kf-eco__card[data-p="br"] { right: 0; bottom: 0; border-top-color: var(--c-pc); }
.kf-eco__warn { position: absolute; left: 50%; bottom: -9vh; transform: translateX(-50%); width: min(620px, 92%); text-align: center; font-size: 14.5px; line-height: 1.5; padding: 10px 16px; border: 1px dashed rgba(134,174,208,.6); border-radius: 4px; color: #d9e6f1; background: rgba(17,17,16,.85); z-index: 4; }

/* ---- [20] Biểu đồ đường ---- */
.kf-line { position: relative; width: 100%; height: min(100%, 60vh); min-height: 320px; }
.kf-line svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.kf-line text { font-family: inherit; fill: var(--on-dark-dim); font-size: 13px; }
.kf-line .ax-y text { text-anchor: end; }
.kf-line .grid line { stroke: var(--dark-line); stroke-width: 1; }
.kf-line .grid line.zero { stroke: rgba(238,233,223,.45); }
.kf-line .seg { fill: none; stroke: var(--amber); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s var(--ease); }
.kf-line .area { fill: url(#kf-area); opacity: 0; transition: opacity 1s; }
.kf-line .pt circle { fill: var(--dark); stroke: var(--amber); stroke-width: 3; }
.kf-line .pt .v { fill: var(--on-dark); font-weight: 700; font-size: 17px; text-anchor: middle; }
.kf-line .pt .x { text-anchor: middle; font-size: 14px; }
.kf-line .pt.cur .v { fill: var(--amber); }
.kf-line__unit { position: absolute; top: -30px; left: 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-dim); }
.kf-tbtn { margin-top: 3vh; align-self: flex-start; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 9px 16px; border: 1px solid rgba(232,163,61,.6); border-radius: 999px; color: var(--amber); transition: background-color .3s; }
.kf-tbtn:hover { background: rgba(232,163,61,.12); }
.kf-table { position: absolute; right: 0; bottom: 0; z-index: 5; min-width: 300px; padding: 18px 22px; background: var(--dark-3); border: 1px solid var(--dark-line); border-radius: 6px; box-shadow: 0 30px 60px rgba(0,0,0,.5); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .4s, transform .5s var(--ease-out); }
.kf-table.open { opacity: 1; transform: none; pointer-events: auto; }
.kf-table table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums lining-nums; }
.kf-table caption { text-align: left; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-dim); padding-bottom: 8px; }
.kf-table td, .kf-table th { padding: 7px 0; border-bottom: 1px solid var(--dark-line); font-size: 15px; text-align: left; font-weight: 400; }
.kf-table td:last-child { text-align: right; font-weight: 600; }
.kf-table p { margin-top: 10px; font-size: 12.5px; color: var(--on-dark-dim); font-style: italic; max-width: 300px; }

/* ---- [22] Hai khung số ---- */
.kf-dual { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.kf-box { position: relative; padding: 26px 28px 30px; border: 1px solid var(--dark-line); background: linear-gradient(180deg, var(--dark-2), rgba(27,27,25,.4)); border-radius: 6px; overflow: hidden; }
.kf-box::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--amber); }
.kf-box--b::before { background: var(--c-pc); }
.kf-box__lbl { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-dim); }
.kf-box__num { margin-top: 18px; font-weight: 800; font-size: clamp(48px, 9vh, 100px); line-height: .95; letter-spacing: -.025em; font-variant-numeric: tabular-nums lining-nums; }
.kf-box__unit { margin-top: 8px; font-size: 17px; color: var(--on-dark-dim); }
.kf-cmp { margin-top: 4vh; }
.kf-cmp__row { display: grid; grid-template-columns: 200px 1fr 70px; align-items: center; gap: 14px; margin-bottom: 12px; font-size: 15px; }
.kf-cmp__track { height: 14px; background: rgba(238,233,223,.08); border-radius: 2px; overflow: hidden; }
.kf-cmp__track i { display: block; height: 100%; background: var(--amber); transform-origin: left; transform: scaleX(0); transition: transform 1.1s var(--ease) .2s; }
.kf-cmp__row--pubg .kf-cmp__track i { background: var(--on-dark-dim); }
.kf-cmp__v { font-weight: 800; font-size: 20px; text-align: right; font-variant-numeric: tabular-nums lining-nums; }
.kf-dual__note { margin-top: 2.6vh; }

/* ============================================================
   FOOTER + LIGHTBOX
   ============================================================ */
.kf-foot { position: relative; padding: 56px 5vw 64px; background: #0a0a0a; color: var(--on-dark-dim); font-size: 14px; line-height: 1.6; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; border-top: 1px solid var(--dark-line); }
.kf-foot b { color: var(--on-dark); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; font-size: 12.5px; }
.kf-foot p { max-width: 640px; font-style: italic; }

.kf-lb { position: fixed; inset: 0; z-index: 2147483000; background: rgba(8,8,8,.94); display: flex; align-items: center; justify-content: center; padding: 5vh 4vw; opacity: 0; pointer-events: none; transition: opacity .35s; cursor: zoom-out; }
.kf-lb.open { opacity: 1; pointer-events: auto; }
.kf-lb img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transform: scale(.97); transition: transform .45s var(--ease-out); }
.kf-lb.open img { transform: none; }
.kf-lb__x { position: absolute; top: 18px; right: 22px; width: 44px; height: 44px; font-size: 30px; line-height: 44px; color: #fff; text-align: center; }

/* ============================================================
   MOBILE LAYOUT  (.kf-m — luôn bật ở bản mobile, và bật ở bản desktop khi màn < 900px)
   ============================================================ */
.kf-m { --rail: 0px; }
.kf-m .kf-rail, .kf-m .kf-dots { display: none !important; }
.kf-m.kf-on .kf-mhead { display: flex; }
.kf-mhead { position: absolute; left: 0; right: 0; top: 3px; z-index: 905; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px 10px; color: var(--rail-c); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; opacity: 0; transition: opacity .5s, color .6s; pointer-events: none; }
.kf-stage.show-rail .kf-mhead { opacity: 1; }
.kf-mhead__chap { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kf-mhead__chap b { color: var(--rail-a); margin-right: 6px; }
.kf-mhead__yrs { display: flex; gap: 8px; flex: none; }
.kf-mhead__yrs span { opacity: .4; font-variant-numeric: lining-nums; letter-spacing: .04em; }
.kf-mhead__yrs span.is-act { opacity: 1; color: var(--rail-a); }
.kf-mhead__yrs span.is-done { opacity: .75; }
.kf-m .kf-count { top: auto; bottom: 14px; right: 16px; font-size: 11px; }
.kf-m .kf-hint { bottom: 14px; font-size: 10.5px; }

.kf-m .kf-cover__mast { left: 16px; right: 16px; top: 22px; font-size: 10.5px; letter-spacing: .2em; }
.kf-m .kf-cover__body { left: 16px; right: 16px; width: auto; bottom: 13vh; }
.kf-m .kf-cover__title { font-size: clamp(36px, 10.4vw, 48px); }
.kf-emag.kf-m .kf-cover__sapo { font-size: 16.5px; margin-top: 18px; }
.kf-m .kf-cover__kicker { margin-bottom: 18px; font-size: 11.5px; }
.kf-m .kf-cover__media img { object-position: 64% 50%; }
.kf-m .kf-cover__shade { background: linear-gradient(0deg, rgba(8,8,8,.96) 0%, rgba(8,8,8,.75) 45%, rgba(8,8,8,.1) 80%); }

.kf-m .kf-story__grid { display: block; left: 0; padding: 0; }
.kf-m .kf-frame { position: absolute; left: 0; right: 0; top: 0; width: auto; height: 44%; box-shadow: none; }
.kf-m .kf-frame::after { background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,.1) 70%, rgba(0,0,0,.45) 100%); }
.kf-m .kf-frame__ui { top: 50px; bottom: auto; left: auto; right: 14px; width: 42%; }
.kf-m .kf-story__text { position: absolute; left: 0; right: 0; top: 44%; bottom: 0; max-width: none; padding: 16px 18px 40px; }
.kf-m .kf-story__head { position: absolute; left: 18px; right: 18px; bottom: calc(100% + 14px); z-index: 3; color: #fff; }
.kf-m .kf-story__kicker { margin-bottom: 6px; }
.kf-m .kf-story__num { color: var(--amber); font-size: 10.5px; }
.kf-m .kf-story__year { font-size: 52px; color: var(--amber); margin-bottom: 6px; }
.kf-m .kf-story__title { font-size: 25px; line-height: 1.12; color: #fff; }
.kf-m .kf-story__title em { color: var(--amber); }
.kf-m .kf-story__rule { display: none; }
.kf-m .kf-story__vp { margin-top: 0; height: 100%; }
.kf-m .kf-story__flow { --fz: 16.5px; padding-top: 8px; }
.kf-m .kf-story__flow p { line-height: 1.58; }
.kf-m.kf-on .kf-story__flow p.on:not(.cur) { opacity: 0; }
.kf-m .kf-story__flow p:first-child::first-letter { color: inherit; font-weight: inherit; }
/* chỉ chữ (không ảnh) trên mobile */
.kf-m .kf-story--text .kf-story__text { top: 0; padding-top: 64px; }
.kf-m .kf-story--text .kf-story__head { position: static; color: inherit; margin-bottom: 14px; }
.kf-m .kf-story--text .kf-story__title { color: inherit; font-size: 28px; }
.kf-m .kf-story--text .kf-story__title em { color: var(--amber-ink); }
.kf-m .kf-story--text.is-dark .kf-story__title em { color: var(--amber); }
.kf-m .kf-story--text .kf-story__text { display: flex; flex-direction: column; }
.kf-m .kf-story--text .kf-story__vp { height: auto; flex: 1 1 auto; }
.kf-m .kf-story--text .kf-story__flow { --fz: 17px; }
.kf-m.kf-on .kf-story--text .kf-story__flow p.on:not(.cur) { opacity: .3; }

.kf-m .kf-chart__grid { display: block; left: 0; padding: 0; }
.kf-m .kf-chart__text { position: absolute; inset: 0; padding: 64px 18px 44px; --fz: 16px; transition: opacity .7s var(--ease), transform .9s var(--ease); }
.kf-m .kf-chart__title { font-size: 28px; }
.kf-emag.kf-m .kf-chart__p { margin-top: 16px; }
.kf-m .kf-chart__viz { position: absolute; left: 0; right: 0; top: 0; bottom: 0; padding: 64px 16px 46px; justify-content: flex-start; transition: opacity .7s var(--ease) .1s, transform .9s var(--ease); }
.kf-mtitle { display: none; }
.kf-m .kf-mtitle { display: block; margin-bottom: 18px; }
.kf-m .kf-mtitle small { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--amber); margin-bottom: 6px; }
.kf-m .kf-mtitle b { display: block; font-size: 21px; line-height: 1.15; font-weight: 700; }

.kf-m .kf-routes { gap: 20px; }
.kf-m .kf-routes__lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kf-m .kf-lane__lbl { font-size: 15px; margin-bottom: 10px; flex-direction: column; gap: 2px; }
.kf-m .kf-lane__lbl span { font-size: 10px; }
.kf-m .kf-lane__row { flex-direction: column; }
.kf-m .kf-node { flex: none; padding: 11px 12px; }
.kf-m .kf-node b { font-size: 14.5px; }
.kf-m .kf-node span { font-size: 12px; }
.kf-m .kf-chips i { font-size: 10.5px; padding: 2px 7px; }
.kf-m .kf-arrow { width: 2px; height: 26px; min-width: 0; flex: none; margin: 4px 0; align-self: center; }
.kf-m .kf-arrow::before { transform: scaleY(0); transform-origin: top; }
.kf-m .kf-arrow::after { right: auto; left: -5px; top: auto; bottom: -3px; border: 6px solid transparent; border-top: 9px solid var(--amber); border-bottom: 0; }
.kf-m .kf-routes__stamp { font-size: 13.5px; padding: 10px 12px; }

.kf-m .kf-waffle { grid-template-columns: 1fr; gap: 14px; }
.kf-m .kf-waffle__grid { width: min(100%, 36vh); gap: 3px; margin: 0 auto; }
.kf-m .kf-waffle__total { display: none; }
.kf-m .kf-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.kf-m .kf-legend li { padding: 6px 6px; column-gap: 8px; grid-template-columns: 10px 1fr; }
.kf-m .kf-legend li::before { width: 10px; height: 10px; }
.kf-m .kf-legend__n { font-size: 13.5px; }
.kf-m .kf-legend__n small { font-size: 11.5px; }
.kf-m .kf-legend__v { grid-column: 2; font-size: 21px; }
.kf-m .kf-waffle__note { margin-top: 6px; font-size: 12px; }

.kf-m .kf-split { margin-top: 3vh; }
.kf-m .kf-split__head b { font-size: 16px; }
.kf-m .kf-split__bar { height: 150px; }
.kf-m .kf-split__cost, .kf-m .kf-split__profit { padding: 0 10px; }
.kf-m .kf-split__big { font-size: 36px; }
.kf-m .kf-split__lbl { font-size: 11.5px; letter-spacing: 0; }
.kf-m .kf-split__notes .kf-tag { font-size: 12.5px; padding: 6px 10px; }

.kf-m .kf-eco { height: 50vh; flex: none; min-height: 0; margin-top: 4px; }
.kf-m .kf-eco__card { width: 45%; padding: 10px 11px; }
.kf-m .kf-eco__card b { font-size: 13.5px; }
.kf-m .kf-eco__card span { font-size: 11.5px; }
.kf-m .kf-eco__bag { width: 30%; }
.kf-m .kf-eco__warn { position: absolute; left: 0; right: 0; top: calc(100% + 14px); bottom: auto; transform: none; width: auto; font-size: 12.5px; }

.kf-m .kf-line { height: auto; flex: 1 1 auto; min-height: 260px; max-height: 50vh; margin-top: 30px; }
.kf-m .kf-line text { font-size: 11px; }
.kf-m .kf-line .pt .v { font-size: 13px; }
.kf-m .kf-line .pt .x { font-size: 11.5px; }
.kf-m .kf-table { left: 0; right: 0; min-width: 0; }

.kf-m .kf-dual { grid-template-columns: 1fr; gap: 12px; }
.kf-m .kf-box { padding: 16px 18px 18px; }
.kf-m .kf-box__num { font-size: 50px; margin-top: 10px; }
.kf-m .kf-box__unit { font-size: 14px; }
.kf-m .kf-cmp { margin-top: 16px; }
.kf-m .kf-cmp__row { grid-template-columns: 1fr 56px; gap: 4px 10px; font-size: 13px; margin-bottom: 10px; }
.kf-m .kf-cmp__track { grid-column: 1 / -1; grid-row: 2; }
.kf-m .kf-cmp__v { font-size: 16px; }
.kf-m .kf-dual__note { font-size: 12px; margin-top: 10px; }

.kf-m .kf-foot { padding: 36px 18px 48px; font-size: 13px; }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .kf-emag { --dur: .01s; }
  .kf-emag *, .kf-emag *::before, .kf-emag *::after { animation: none !important; transition-duration: .01s !important; transition-delay: 0s !important; }
}
.kf-routes__lanes { display: flex; flex-direction: column; gap: 5vh; }

.kf-story.is-dark .kf-hl { background-image: linear-gradient(transparent 60%, rgba(232,163,61,.55) 60%); color: #fff; }

/* ============================================================
   SCRUB MODE: mọi chuyển động là hàm của tiến độ cuộn.
   JS đặt biến --r (0..1) trên từng phần tử [data-at]/[data-v];
   không dùng CSS transition cho các chuyển động này.
   ============================================================ */
.kf-on .kf-stage { height: var(--kf-h); overflow: hidden; }
.kf-on .kf-view { position: relative; height: 100%; }
.kf-on [data-at], .kf-on [data-v] { transition: none !important; opacity: var(--r, 0); transform: translate3d(0, calc((1 - var(--r, 0)) * 26px), 0); }
.kf-on .kf-story__flow { transition: none !important; }
.kf-on .kf-story__flow p { will-change: opacity; }
.kf-on .kf-frame img { transition: none !important; position: absolute; left: 0; top: 0; max-width: none; object-fit: fill; will-change: transform; }
.kf-on .kf-frame[data-at] { opacity: 1; transform: none; clip-path: inset(calc((1 - var(--r, 0)) * 100%) 0 0 0); }
.kf-on .kf-hl { transition: none; }

/* bìa: intro chạy theo thời gian khi tải trang */
.kf-on .kf-cover [data-at="0"] { opacity: 0; transform: translate3d(0,24px,0); transition: opacity .9s var(--ease-out) var(--d,0s), transform 1s var(--ease-out) var(--d,0s) !important; }
.kf-on.kf-intro .kf-cover [data-at="0"] { opacity: 1; transform: none; }
.kf-on:not(.kf-intro) .kf-cover__title .kf-ln > span { transform: translate3d(0,110%,0) !important; }
.kf-on .kf-cover__media { opacity: calc(1 - .38 * var(--c1, 0)); }

/* [13] mũi tên */
.kf-arrow::before { transition: none; }
.kf-on .kf-arrow[data-v] { opacity: 1; transform: none; }
.kf-on .kf-arrow::before { transform: scaleX(var(--r, 0)); }
.kf-on .kf-arrow::after { transition: none; opacity: clamp(0, calc(var(--r, 0) * 5 - 4), 1); }
.kf-m.kf-on .kf-arrow::before { transform: scaleY(var(--r, 0)); }

/* [14] waffle */
.kf-waffle__grid i { position: relative; transition: opacity .3s; }
.kf-waffle__grid i.g-mobile { --cc: var(--c-mobile); } .kf-waffle__grid i.g-pc { --cc: var(--c-pc); }
.kf-waffle__grid i.g-console { --cc: var(--c-console); } .kf-waffle__grid i.g-other { --cc: var(--c-other); }
.kf-waffle__grid i::after { content: ""; position: absolute; inset: 0; border-radius: 3px; background: var(--cc); }
.kf-on .kf-waffle__grid i[data-v] { opacity: 1; transform: none; transition: opacity .3s !important; }
.kf-on .kf-waffle__grid i::after { opacity: var(--r, 0); transform: scale(calc(.5 + .5 * var(--r, 0))); }
.kf-on .kf-waffle[data-hl] .kf-waffle__grid i[data-v] { opacity: .18; }
.kf-on .kf-waffle[data-hl="mobile"] .kf-waffle__grid i.g-mobile, .kf-on .kf-waffle[data-hl="pc"] .kf-waffle__grid i.g-pc,
.kf-on .kf-waffle[data-hl="console"] .kf-waffle__grid i.g-console, .kf-on .kf-waffle[data-hl="other"] .kf-waffle__grid i.g-other { opacity: 1; }

/* [15] thanh chia: lộ dần bằng clip-path để chữ số không bị bóp méo */
.kf-split__cost, .kf-split__profit { transition: none; }
.kf-on .kf-split__cost[data-v] { opacity: 1; transform: none; clip-path: inset(0 calc((1 - var(--r, 0)) * 100%) 0 0); }
.kf-on .kf-split__profit[data-v] { opacity: 1; transform: none; clip-path: inset(0 0 0 calc((1 - var(--r, 0)) * 100%)); }
.kf-on .kf-split__seam[data-v] { opacity: var(--r, 0); transform: scaleY(var(--r, 0)); }

/* [19] túi tiền */
.kf-eco__ln, .kf-eco__flow { transition: none; }
.kf-on .kf-eco__ln[data-v] { opacity: 1; transform: none; stroke-dashoffset: calc(1 - var(--r, 0)); }
.kf-on .kf-eco__flow[data-v] { transform: none; opacity: calc(var(--r, 0) * var(--r, 0) * .9); }
.kf-on .kf-eco__flow.on { animation: kf-flow 2.4s linear infinite; }
.kf-on .kf-eco__flow.out.on { animation-direction: reverse; }
.kf-on .kf-eco__ret[data-v] { transform: none; }
.kf-on .kf-eco__bag[data-v] { transform: translate(-50%,-50%) scale(calc(.7 + .3 * var(--r, 0))); }
.kf-on .kf-eco__warn[data-v] { transform: translate(-50%, calc((1 - var(--r, 0)) * 20px)); }
.kf-m.kf-on .kf-eco__warn[data-v] { transform: translate(0, calc((1 - var(--r, 0)) * 14px)); }
.kf-emag:not(.kf-on) .kf-eco__flow { opacity: .9; }

/* [20] biểu đồ đường */
.kf-line .seg, .kf-line .area { transition: none; }
.kf-on .kf-line .seg[data-v] { opacity: 1; transform: none; stroke-dashoffset: calc(1 - var(--r, 0)); }
.kf-on .kf-line .area[data-v] { transform: none; }
.kf-on .kf-line .pt[data-v] { transform: translate(0, calc((1 - var(--r, 0)) * 12px)); }
.kf-emag:not(.kf-on) .kf-line .seg { stroke-dashoffset: 0; }
.kf-emag:not(.kf-on) .kf-line .area { opacity: 1; }

/* [22] thanh so sánh */
.kf-cmp__track i { transition: none; }
.kf-on .kf-cmp__track i { transform: scaleX(calc(var(--w) * var(--r, 0))); }
.kf-emag:not(.kf-on) .kf-cmp__track i { transform: scaleX(var(--w)); }

/* mobile: đổi màn chữ ↔ biểu đồ theo --rv */
.kf-m.kf-on .kf-chart__text, .kf-m.kf-on .kf-chart__viz { transition: none !important; }
.kf-m.kf-on .kf-chart__text { opacity: calc(1 - var(--rv, 0)); transform: translate3d(0, calc(var(--rv, 0) * -10%), 0); }
.kf-m.kf-on .kf-chart__viz { opacity: var(--rv, 0); transform: translate3d(0, calc((1 - var(--rv, 0)) * 12%), 0); pointer-events: none; }
.kf-m.kf-on .kf-chart.is-viz .kf-chart__text { pointer-events: none; }
.kf-m.kf-on .kf-chart.is-viz .kf-chart__viz { pointer-events: auto; }
