/* SweetTap — trang chạm dự phòng, chỉ hiển thị khi chưa có mẫu core. */

:root {
  color-scheme: light;

  /* Màu */
  --paper: #faf9f6;
  --tint: #f1f2ee;
  --tint-2: #e6eae3;
  --ink: #1c2923;
  --muted: #526058;
  --faint: #68766d;
  --hair: #d7ddd4;
  --rose: #b7777b;
  --violet: #837d96;
  --aqua: #236e58;
  --glass: rgba(250, 249, 246, .94);

  /* Khoảng cách: bội số của 4 */
  --s1: .25rem; --s2: .5rem;  --s3: .75rem; --s4: 1rem;
  --s5: 1.5rem; --s6: 2rem;   --s7: 2.5rem; --s8: 3rem;
  --s9: 4rem;   --s10: 5rem;  --s11: 7rem;

  /* Chữ: thang tỉ lệ 1.25, cỡ lớn co giãn theo bề ngang */
  --t-xs: .75rem; --t-sm: .875rem; --t-md: 1rem;
  --t-lg: 1.125rem; --t-xl: 1.375rem;
  --t-2xl: clamp(1.625rem, 1.1rem + 2.6vw, 2.25rem);
  --t-3xl: clamp(3rem, 1.2rem + 9vw, 7.5rem);
  --t-display: clamp(4rem, 1rem + 16vw, 13rem);

  /* Bo góc và độ nổi */
  --r-sm: .75rem; --r-md: 1.125rem; --r-lg: 1.5rem; --r-xl: 1.75rem; --r-full: 999px;
  --e1: 0 1px 2px rgba(0, 0, 0, .05);
  --e2: 0 8px 24px -14px rgba(0, 0, 0, .24);
  --e3: 0 20px 48px -22px rgba(0, 0, 0, .34);
  --blur: saturate(180%) blur(20px);
  --ease: cubic-bezier(.22, 1, .36, 1);

  --measure: 64ch;
  --gutter: var(--s5);
  --shell: 600px;

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
}

@media (min-width: 760px) { :root { --gutter: var(--s8); --shell: 1040px; } }

*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: var(--paper); overflow-x: hidden; padding-bottom: var(--s6); }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { color: var(--muted); line-height: 1.6; margin: var(--s2) 0; max-width: var(--measure); }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--s4); top: var(--s4); z-index: 60; background: var(--ink); color: #fff; padding: var(--s2) var(--s4); border-radius: var(--r-sm); }

/* ---------- Nền ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--paper); }
.aurora-blob { display: none; }
.b1 { width: 78vw; height: 78vw; background: rgba(255, 45, 111, .15); top: -28vw; left: -26vw; animation: drift1 34s ease-in-out infinite alternate; }
.b2 { width: 70vw; height: 70vw; background: rgba(122, 92, 255, .13); top: 2vh; right: -34vw; animation: drift2 42s ease-in-out infinite alternate; }
.b3 { width: 60vw; height: 60vw; background: rgba(15, 158, 145, .08); top: 58vh; left: -20vw; animation: drift1 50s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate3d(5vw, 4vh, 0) scale(1.1); } }
@keyframes drift2 { to { transform: translate3d(-6vw, 6vh, 0) scale(1.06); } }

/* ---------- Khung ---------- */
main, .bar, .wrap { width: min(var(--shell), 100% - (var(--gutter) * 2)); margin-inline: auto; }
section { margin-top: var(--s10); scroll-margin-top: var(--s9); }
@media (min-width: 760px) { section { margin-top: var(--s11); } }

.bar {
  position: sticky; top: var(--s3); z-index: 30; margin-top: var(--s3);
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s3) var(--s5); border-radius: var(--r-full);
  background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid rgba(0, 0, 0, .06); box-shadow: var(--e1);
}
.brand { font-weight: 600; font-size: var(--t-lg); letter-spacing: -.02em; }
.bar-cart { font-size: var(--t-sm); color: var(--muted); }

/* ---------- Chữ ---------- */
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1 { font-size: var(--t-3xl); font-weight: 700; line-height: 1.02; letter-spacing: -.04em; }
h2 { font-size: var(--t-2xl); font-weight: 700; line-height: 1.12; letter-spacing: -.03em; }
h3 { font-size: var(--t-lg); font-weight: 600; letter-spacing: -.015em; }
.lede { font-size: var(--t-lg); line-height: 1.5; color: var(--muted); max-width: 36ch; }
.kicker { font-size: var(--t-sm); color: var(--faint); }

.split-char { display: inline-block; opacity: 1; transform: none; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Hiện dần khi cuộn tới */
.reveal { opacity: 1; transform: none; }
.reveal.seen { opacity: 1; transform: none; }

/* ---------- Nút ---------- */
.btn, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 3rem; padding: 0 var(--s5); border-radius: var(--r-full);
  font-weight: 500; font-size: var(--t-md); letter-spacing: -.01em;
  background: var(--ink); color: #fff; border: 1px solid var(--ink);
  transition: opacity .2s ease, transform .2s var(--ease); cursor: pointer;
}
.btn:active, .button:active { transform: scale(.985); opacity: .88; }
.btn.ghost, .button.secondary { background: transparent; color: var(--ink); border-color: var(--hair); }
.button[aria-disabled="true"] { opacity: .4; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }
.hero .actions { justify-content: center; }

/* ---------- Mở đầu ---------- */

.tap { display: grid; gap: var(--s4); margin-top: var(--s6); }
@media (min-width: 760px) { .tap { grid-template-columns: 17.5rem 1fr; align-items: center; gap: var(--s7); } }

.tag {
  position: relative; width: 100%; aspect-ratio: 1 / 1.04; border-radius: var(--r-xl);
  display: grid; place-items: center; align-content: center; gap: var(--s3); cursor: pointer; overflow: hidden;
  background: linear-gradient(170deg, #fdfdfe, var(--tint)); border: 1px solid var(--hair); box-shadow: var(--e3);
  transition: transform .3s var(--ease);
}
@media (min-width: 760px) { .tag { aspect-ratio: 1 / 1.22; } }
.tag:active { transform: scale(.98); }
.tag-hole { position: absolute; top: var(--s5); width: 1rem; height: 1rem; border-radius: 50%; background: var(--paper); border: 1px solid var(--hair); }
.tag-glyph { font-size: 3.25rem; line-height: 1; animation: rise .45s var(--ease); }
.tag-hint { font-size: var(--t-sm); color: var(--faint); }
.tag-count { font-size: 2.75rem; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }

.tap-panel {
  border-radius: var(--r-lg); padding: var(--s5); text-align: left;
  background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--hair); animation: rise .4s var(--ease);
}
.tap-panel p { margin: var(--s1) 0 0; font-size: var(--t-md); }

.spark-layer { position: absolute; inset: 0; pointer-events: none; }
.spark { position: absolute; width: 0; height: 0; }
.spark i { position: absolute; width: 2px; height: .8rem; border-radius: 2px; background: rgba(29, 29, 31, .3); transform: rotate(var(--a)) translateY(-.35rem); animation: fly .6s ease-out forwards; }
@keyframes fly { to { transform: rotate(var(--a)) translateY(-2rem); opacity: 0; } }

/* ---------- Lưới nội dung ---------- */
.deck { display: grid; gap: var(--s3); margin-top: var(--s5); }
@media (min-width: 760px) { .deck { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); } }

.card { position: relative; border-radius: var(--r-lg); padding: var(--s5); overflow: hidden; background: var(--tint); }
.spotlight::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(12rem circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .9), transparent 62%); }
.card p { font-size: var(--t-sm); margin: 0; }
.card .price { display: block; margin-top: var(--s3); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

/* Các bước: đánh số vì đây thật sự là một trình tự */
.steps { display: grid; gap: var(--s5); margin-top: var(--s6); counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s6); } }
.steps li { counter-increment: step; display: grid; gap: var(--s1); padding-top: var(--s4); border-top: 1px solid var(--hair); }
.steps li::before { content: counter(step); font-size: var(--t-sm); font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; }
.steps strong { font-weight: 600; }
.steps span { color: var(--muted); font-size: var(--t-sm); line-height: 1.55; }

.panel { border-radius: var(--r-xl); padding: var(--s6) var(--s5); background: var(--tint); }
@media (min-width: 760px) { .panel { padding: var(--s8); } }

/* Câu hỏi thường gặp */
.faq { margin-top: var(--s5); border-top: 1px solid var(--hair); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary { display: flex; justify-content: space-between; gap: var(--s4); align-items: center; padding: var(--s4) 0; font-weight: 500; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--faint); font-size: var(--t-xl); line-height: 1; transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 var(--s4); font-size: var(--t-sm); }

/* Dải kêu gọi cuối trang */
.cta { text-align: center; border-radius: var(--r-xl); padding: var(--s8) var(--s5); background: var(--ink); color: #fff; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .72); margin-inline: auto; }
.cta .btn { background: #fff; color: var(--ink); border-color: #fff; }

.foot { color: var(--faint); font-size: var(--t-xs); padding: var(--s8) 0 var(--s4); display: grid; gap: var(--s2); justify-items: center; text-align: center; }


/* ---------- Điều hướng trên đầu trang ---------- */
.bar-nav { display: none; gap: var(--s5); font-size: var(--t-sm); color: var(--muted); }
.bar-nav a:hover { color: var(--ink); }
@media (min-width: 760px) { .bar-nav { display: flex; } }
.bar-cart { display: inline-flex; align-items: center; gap: var(--s2); font-size: var(--t-sm); color: var(--ink); }
.bar-cart .count { display: grid; place-items: center; min-width: 1.375rem; height: 1.375rem; padding: 0 var(--s1);
  border-radius: var(--r-full); background: var(--ink); color: #fff; font-size: var(--t-xs); font-variant-numeric: tabular-nums; }

/* ---------- Mở đầu có hình ---------- */
.hero { padding: var(--s8) 0 var(--s6); display: grid; gap: var(--s5); text-align: center; justify-items: center; }
.hero-art { width: min(22rem, 100%); }
.hero-art svg { width: 100%; height: auto; border-radius: var(--r-xl); box-shadow: var(--e3); }
@media (min-width: 760px) {
  .hero { grid-template-columns: 1.05fr .95fr; align-items: center; text-align: left; justify-items: stretch;
          gap: var(--s8); padding: var(--s10) 0 var(--s8); }
  .hero .actions { justify-content: flex-start; }
  .hero-art { width: 100%; }
}
.hero .actions { justify-content: center; }
.hero .lede { margin-inline: auto; }
@media (min-width: 760px) { .hero .lede { margin-inline: 0; } }

/* ---------- Dải cam kết ---------- */
.trust { display: grid; gap: var(--s3); margin-top: var(--s6); padding: var(--s5); border-radius: var(--r-lg); background: var(--tint); }
.trust li { display: grid; gap: 2px; }
.trust strong { font-size: var(--t-sm); font-weight: 600; }
.trust span { font-size: var(--t-sm); color: var(--muted); }
@media (min-width: 760px) { .trust { grid-template-columns: repeat(3, 1fr); gap: var(--s6); padding: var(--s5) var(--s6); } }

/* ---------- Đầu mỗi phần ---------- */
.sec-head { display: grid; gap: var(--s2); margin-bottom: var(--s5); }

/* ---------- Thẻ sản phẩm ---------- */
.product { display: grid; border-radius: var(--r-lg); overflow: hidden; background: var(--tint); position: relative; }
.product .media { position: relative; }
.product .media svg { width: 100%; height: auto; display: block; }
.badge { position: absolute; top: var(--s3); left: var(--s3); padding: var(--s1) var(--s3); border-radius: var(--r-full);
  background: var(--ink); color: #fff; font-size: var(--t-xs); font-weight: 500; }
.product-body { padding: var(--s4) var(--s5) var(--s5); display: grid; gap: var(--s1); }
.product-body p { font-size: var(--t-sm); margin: 0; }
.buy { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-top: var(--s3); }
.price { font-weight: 600; font-variant-numeric: tabular-nums; }
.btn.sm { min-height: 2.5rem; padding: 0 var(--s4); font-size: var(--t-sm); }

/* ---------- Khu trải nghiệm ---------- */
.feature-row { display: grid; gap: var(--s5); }
@media (min-width: 760px) { .feature-row { grid-template-columns: 17.5rem 1fr; gap: var(--s7); align-items: start; } }
.feature-list { display: grid; gap: var(--s3); }
.feature-list li { display: grid; grid-template-columns: auto 1fr; gap: var(--s2) var(--s4); align-items: center;
  padding: var(--s4) var(--s5); border-radius: var(--r-md); background: var(--tint); }
.feature-list p { font-size: var(--t-sm); margin: 2px 0 0; }
.feature-list .buy { grid-column: 1 / -1; margin-top: 0; }
@media (min-width: 760px) {
  .feature-list li { grid-template-columns: auto 1fr auto; }
  .feature-list .buy { grid-column: auto; }
}
.sym { display: grid; place-items: center; width: 2.625rem; height: 2.625rem; border-radius: var(--r-sm); font-size: var(--t-lg);
  color: #fff; background: linear-gradient(150deg, var(--rose), var(--violet)); }


/* ---------- Phần tràn mép ---------- */
.bleed { width: 100vw; margin-left: 50%; transform: translateX(-50%); }

/* ---------- Mở đầu lớn ---------- */
.hero { padding: var(--s7) 0 var(--s6); }
.hero h1 { letter-spacing: -.05em; }
.hero .lede { font-size: var(--t-lg); }
.scrollhint { display: inline-flex; align-items: center; gap: var(--s2); margin-top: var(--s6); color: var(--faint); font-size: var(--t-sm); }
.scrollhint i { width: 1px; height: 2rem; background: linear-gradient(var(--faint), transparent); display: block; }

/* ---------- Dải chữ chạy ---------- */
.marquee { overflow: hidden; margin-top: var(--s9); padding: var(--s5) 0; border-block: 1px solid var(--hair); }
.marquee-track { display: flex; gap: var(--s6); width: max-content; }
.marquee span { font-size: clamp(2rem, 7vw, 4.5rem); font-weight: 700; letter-spacing: -.04em; color: var(--ink); white-space: nowrap; }
.marquee span:nth-child(even) { color: transparent; -webkit-text-stroke: 1px var(--hair); }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- Sân khấu từng sản phẩm ---------- */
.chapter { display: grid; gap: var(--s5); align-items: center; margin-top: var(--s9); }
.chapter .stage { border-radius: var(--r-xl); overflow: hidden; background: var(--tint); position: relative; }
.chapter .stage svg { width: 100%; height: auto; display: block; }
.chapter h2 { font-size: clamp(2rem, 1rem + 6vw, 3.5rem); letter-spacing: -.04em; }
.chapter .spec { display: grid; gap: var(--s1); margin-top: var(--s4); }
.chapter .spec li { display: flex; justify-content: space-between; gap: var(--s4); padding: var(--s3) 0; border-top: 1px solid var(--hair); font-size: var(--t-sm); }
.chapter .spec span:last-child { color: var(--muted); text-align: right; }
.chapter .buyline { display: flex; align-items: baseline; gap: var(--s4); flex-wrap: wrap; margin-top: var(--s5); }
.chapter .buyline .price { font-size: var(--t-xl); }
@media (min-width: 860px) {
  .chapter { grid-template-columns: 1fr 1fr; gap: var(--s9); margin-top: var(--s11); }
  .chapter.flip .stage { order: 2; }
}

/* ---------- Khu trải nghiệm: chọn để đổi thẻ ---------- */
.switch { display: grid; gap: var(--s2); margin-top: var(--s4); }
.switch button { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s4); align-items: center; text-align: left;
  padding: var(--s4) var(--s5); border-radius: var(--r-md); background: var(--tint); border: 1px solid transparent; cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s var(--ease); }
.switch button:hover { transform: translateX(2px); }
.switch button[aria-pressed="true"] { background: var(--paper); border-color: var(--ink); }
.switch h3 { margin: 0; }
.switch p { margin: 2px 0 0; font-size: var(--t-sm); }
.switch .price { font-size: var(--t-sm); }


/* ---------- Đầu trang phụ (không phải trang chủ) ---------- */
.page-head { padding: var(--s8) 0 var(--s5); display: grid; gap: var(--s3); }
.page-head h1 { font-size: clamp(2.25rem, 1.4rem + 4vw, 3.5rem); letter-spacing: -.04em; }
.page-head p { font-size: var(--t-lg); color: var(--muted); max-width: 46ch; }
main > h2 { margin-top: var(--s7); }


/* ---------- Thanh chạy ở mép trang ---------- */
.rail { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s4);
  font-size: var(--t-xs); letter-spacing: .02em; color: var(--faint); padding-top: var(--s4); }
.rail b { font-weight: 600; color: var(--ink); }

/* Ô màu làm dấu, không mang nghĩa trang trí thừa: mỗi phần một màu riêng */
.mark { display: inline-block; width: 2.75rem; height: .9rem; border-radius: 2px; }
.mark.rose { background: var(--rose); }
.mark.violet { background: var(--violet); }
.mark.aqua { background: var(--aqua); }

/* Chữ dọc ở mép phải phần mở đầu */
.vert { writing-mode: vertical-rl; text-orientation: mixed; font-size: var(--t-sm);
  letter-spacing: .34em; text-transform: uppercase; color: var(--muted); justify-self: end; }

/* ---------- Mở đầu kiểu áp phích ---------- */
.poster { display: grid; gap: var(--s4); padding-top: var(--s6); }
.poster-art { width: min(26rem, 100%); margin-inline: auto; }
.poster-art svg { width: 100%; height: auto; }
.poster h1 { font-size: var(--t-display); line-height: .9; letter-spacing: -.055em; text-align: center; }
.poster .note { font-size: var(--t-sm); color: var(--muted); max-width: 30ch; line-height: 1.6; }
.poster .sign { font-weight: 600; font-size: var(--t-sm); letter-spacing: .02em; }
@media (min-width: 860px) {
  .poster { grid-template-columns: 1fr auto 1fr; grid-template-areas: "note art vert" "sign art vert" "head head head";
    align-items: center; column-gap: var(--s7); padding-top: var(--s7); }
  .poster .note { grid-area: note; }
  .poster .sign { grid-area: sign; align-self: start; }
  .poster-art { grid-area: art; width: 28rem; }
  .vert { grid-area: vert; }
  .poster h1 { grid-area: head; margin-top: var(--s4); }
}

/* ---------- Chương sản phẩm ---------- */
.chapter { margin-top: var(--s10); }
.chapter .part { display: flex; align-items: baseline; gap: var(--s3); color: var(--ink); }
.chapter .part em { font-style: normal; font-size: var(--t-sm); font-weight: 600; letter-spacing: .04em; color: var(--faint); }
.chapter .part b { font-size: clamp(3.5rem, 2rem + 9vw, 7rem); font-weight: 700; letter-spacing: -.06em; line-height: .85; font-variant-numeric: tabular-nums; }
.chapter .stage { background: var(--tint); }

/* ---------- Khoảnh khắc tràn mép ---------- */
.moment { position: relative; margin-top: var(--s10); border-radius: 0; overflow: hidden; }
.moment svg { width: 100%; height: auto; display: block; }
.moment .over { position: absolute; inset: auto 0 var(--s5); text-align: center; padding-inline: var(--s5); }
.moment .over h2 { font-size: clamp(2.5rem, 1rem + 11vw, 9rem); line-height: .86; letter-spacing: -.055em; color: var(--paper);
  text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.moment .over p { color: rgba(250, 247, 241, .86); margin-inline: auto; font-size: var(--t-sm); }

/* ---------- Các bước, mục đang xem được làm nổi ---------- */
.process { margin-top: var(--s6); border-top: 1px solid var(--hair); }
.process li { display: grid; grid-template-columns: auto 1fr; gap: var(--s2) var(--s4); align-items: start;
  padding: var(--s5) 0; border-bottom: 1px solid var(--hair); transition: opacity .25s ease; }
.process li .no { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: var(--r-full);
  border: 1px solid var(--hair); font-size: var(--t-xs); font-variant-numeric: tabular-nums; color: var(--faint); }
.process li[data-on="true"] .no { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.process li[data-on="false"] { opacity: .45; }
.process h3 { font-size: var(--t-xl); font-weight: 600; letter-spacing: -.02em; }
.process p { font-size: var(--t-sm); margin: 2px 0 0; grid-column: 2; }

/* ---------- Lưới ảnh so le ---------- */
.mosaic { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); margin-top: var(--s5); }
.mosaic figure { margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--tint); }
.mosaic figure svg { width: 100%; height: 100%; display: block; object-fit: cover; }
.mosaic .tall { grid-row: span 2; }
@media (min-width: 760px) { .mosaic { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Trang tĩnh dùng chung ---------- */
.wrap { width: min(var(--shell), 100% - (var(--gutter) * 2)); margin-inline: auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: var(--s4) 0; border-bottom: 1px solid var(--hair); }
.nav { display: flex; gap: var(--s4); font-size: var(--t-sm); color: var(--muted); }
.eyebrow { color: var(--faint); font-size: var(--t-sm); }
.grid { display: grid; gap: var(--s3); margin-top: var(--s4); }
.callout { border-radius: var(--r-xl); padding: var(--s6) var(--s5); background: var(--tint); margin: var(--s5) 0; }
.asset-list { display: grid; gap: var(--s3); margin-top: var(--s4); }
.asset-row { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); align-items: center; justify-content: space-between; border-radius: var(--r-md); padding: var(--s4) var(--s5); background: var(--tint); }
.asset-row .meta { display: block; margin-top: 2px; color: var(--faint); font-size: var(--t-sm); }
.pill, .status { display: inline-flex; align-items: center; gap: var(--s2); padding: var(--s1) var(--s3); border-radius: var(--r-full); font-size: var(--t-xs); font-weight: 500; background: var(--paper); border: 1px solid var(--hair); color: var(--muted); }
.pill.on { background: rgba(15, 158, 145, .1); border-color: rgba(15, 158, 145, .32); color: var(--aqua); }
.notice { border-radius: var(--r-md); padding: var(--s4) var(--s5); margin: var(--s4) 0; font-size: var(--t-sm); color: #8a5a00; background: #fff6e5; border: 1px solid #f2dcb4; }
.steplabel { color: var(--faint); font-size: var(--t-sm); margin: var(--s6) 0 0; }
.num { font-variant-numeric: tabular-nums; font-weight: 600; }
.total .num { font-size: var(--t-xl); }
.footer { color: var(--faint); font-size: var(--t-xs); padding: var(--s7) 0 var(--s5); }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: var(--s1); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .split-char { opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; }
}

[hidden] { display: none !important; }

/* Trang dự phòng: một cột rõ ràng, không dùng hiệu ứng chuyển động. */
.exp { min-height: 64svh; align-content: center; }
.exp h1 { max-width: 18ch; line-height: 1.15; }
.exp .msg { color: var(--muted); }
.exp img,.exp iframe { border: 1px solid var(--hair); border-radius: var(--r-lg); }
