/* ==========================================================
   MinuteMinds — theme cho bài giảng (reveal.js)
   Canvas 1920 × 1080. Phong cách: sổ tay chấm bi + sticker.
   ========================================================== */

:root {
  --paper: #FFF7EA;
  --paper-dot: #EBDCC3;
  --ink: #261F3F;
  --ink-soft: #564E73;
  --muted: #8A82A3;
  --line: #E6D8BF;

  --tomato: #FF5B4A;  --tomato-soft: #FFDCD6;
  --sun: #FFC93C;     --sun-soft: #FFF0C4;
  --mint: #2EC68A;    --mint-soft: #CFF4E3;
  --sky: #4C9DFF;     --sky-soft: #D8E9FF;
  --lilac: #9B7BFF;   --lilac-soft: #E8DFFF;
  --pink: #FF77B0;    --pink-soft: #FFDDEB;
  --peach: #FFA36B;   --peach-soft: #FFE4D2;
  --frog: #57C24A;

  --accent: var(--sun);
  --accent-soft: var(--sun-soft);
  --accent-deep: #E8A400;

  --f-display: "Baloo 2", "Be Vietnam Pro", system-ui, sans-serif;
  --f-body: "Be Vietnam Pro", system-ui, sans-serif;
  --f-hand: "Shantell Sans", "Be Vietnam Pro", cursive;

  --shadow: 10px 10px 0 var(--ink);
  --shadow-sm: 6px 6px 0 var(--ink);
  --bw: 4px;
  --r: 30px;
  --ease-pop: cubic-bezier(.2, 1.55, .45, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

body.s1 { --accent: var(--sun);    --accent-soft: var(--sun-soft);    --accent-deep: #D99400; --hl-c: #FFC93C; }
body.s2 { --accent: var(--peach);  --accent-soft: var(--peach-soft);  --accent-deep: #E5701F; --hl-c: #FFC6A3; }
body.s3 { --accent: var(--tomato); --accent-soft: var(--tomato-soft); --accent-deep: #E23C2C; --hl-c: #FFB3A9; }
body.s4 { --accent: var(--sky);    --accent-soft: var(--sky-soft);    --accent-deep: #2C7BE5; --hl-c: #A8CFFF; }
body.s5 { --accent: var(--mint);   --accent-soft: var(--mint-soft);   --accent-deep: #0E9A63; --hl-c: #9BE8C6; }
body.s6 { --accent: var(--pink);   --accent-soft: var(--pink-soft);   --accent-deep: #DC3F86; --hl-c: #FFB9D6; }
body.s7 { --accent: var(--lilac);  --accent-soft: var(--lilac-soft);  --accent-deep: #7454F0; --hl-c: #CDBDFF; }

html, body { background: var(--paper); }

.reveal-viewport {
  background-color: var(--paper);
  background-image: radial-gradient(var(--paper-dot) 2.3px, transparent 2.6px);
  background-size: 46px 46px;
}

.reveal {
  font-family: var(--f-body);
  font-size: 46px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
  letter-spacing: -0.005em;
}
.reveal .slides { text-align: left; }
.reveal .slides > section {
  top: 0 !important;
  height: 100%;
  padding: 0 !important;
}
.reveal .slides section img { margin: 0; }
.reveal b, .reveal strong { font-weight: 800; }
.reveal a { color: inherit; text-decoration: none; }

/* ---------- Khung slide ---------- */
.stage {
  position: absolute; inset: 0; z-index: 0;
  padding: 92px 124px 132px;
  display: flex; flex-direction: column;
  gap: 34px;
}
.stage.center { align-items: center; justify-content: center; text-align: center; }
.stage.mid { justify-content: center; }
.row { display: flex; align-items: center; gap: var(--gap, 40px); }
.row.top { align-items: flex-start; }
.row.wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: var(--gap, 26px); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap, 44px); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap, 40px); }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap, 34px); }
.grid5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gap, 28px); }
.grow { flex: 1; }
.reveal .abs { position: absolute; }
.mt-auto { margin-top: auto; }

/* ---------- Chữ ---------- */
.t {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 96px;
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
.t.l { font-size: 120px; }
.t.xl { font-size: 150px; line-height: .98; }
.t.s { font-size: 80px; }
.t .en { font-size: .5em; }
.sub { font-size: 50px; color: var(--ink-soft); font-weight: 500; margin: 0; text-wrap: pretty; }
.lead { font-size: 56px; font-weight: 600; line-height: 1.3; margin: 0; text-wrap: pretty; }
.huge {
  font-family: var(--f-display); font-weight: 800;
  font-size: 230px; line-height: .9; letter-spacing: -0.03em;
}
.display { font-family: var(--f-display); font-weight: 800; }
.hand {
  font-family: var(--f-hand);
  font-variation-settings: "INFM" 70, "BNCE" 25;
  font-weight: 600;
}
.en {
  font-family: var(--f-hand);
  font-variation-settings: "INFM" 60, "BNCE" 10;
  font-weight: 600;
  color: var(--ink-soft);
  font-size: .72em;
  white-space: nowrap;
  letter-spacing: 0;
}
.on-dark .en { color: inherit; opacity: .85; }
.muted { color: var(--ink-soft); }
.small { font-size: 38px; }
.tiny { font-size: 32px; }
.nowrap { white-space: nowrap; }
.ink { color: var(--ink); }
.tc-accent { color: var(--accent-deep); }
.tc-red { color: var(--tomato); }
.tc-green { color: #16A06A; }

/* Kicker: nhãn nhỏ phía trên tiêu đề */
.kicker {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--f-hand);
  font-variation-settings: "INFM" 80, "BNCE" 30;
  font-weight: 700;
  font-size: 38px;
  padding: 6px 26px 8px;
  background: var(--accent);
  color: var(--ink);
  border: var(--bw) solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.kicker.tilt { rotate: -2.5deg; }
.kicker .emo { width: 46px; height: 46px; }
.stage.center .kicker { align-self: center; }

/* Highlight bút dạ quang (quét khi slide hiện) */
mark.hl {
  color: inherit;
  background: linear-gradient(100deg, transparent 0.5%, var(--hl, var(--hl-c, var(--accent))) 2%, var(--hl, var(--hl-c, var(--accent))) 97%, transparent 99%) no-repeat 0 88% / 0% 46%;
  padding: 0 .08em;
  border-radius: 6px;
  transition: background-size .9s var(--ease-out) .35s;
}
.reveal section.present mark.hl,
.reveal-print mark.hl { background-size: 100% 46%; }
.reveal section.present .fragment:not(.visible) mark.hl { background-size: 0% 46%; }
mark.hl.full { background-position: 0 50%; }
.reveal section.present mark.hl.full { background-size: 100% 92%; }
mark.hl.mint { --hl: var(--mint-soft); }
mark.hl.sun { --hl: var(--sun); }
mark.hl.pink { --hl: var(--pink-soft); }
mark.hl.sky { --hl: var(--sky-soft); }
mark.hl.tomato { --hl: var(--tomato-soft); }
mark.hl.lilac { --hl: var(--lilac-soft); }

/* Gạch chân nguệch ngoạc */
.squig {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14'%3E%3Cpath d='M2 8 C 12 2, 22 2, 32 8 S 52 14, 62 8 S 82 2, 92 8 S 112 14, 118 8' fill='none' stroke='%23FF5B4A' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x 0 100% / 120px 16px;
  padding-bottom: 10px;
}

/* ---------- Emoji 3D ---------- */
.emo { display: inline-block; width: 1.25em; height: 1.25em; vertical-align: -0.28em; object-fit: contain; }
.emo.xs { width: 56px; height: 56px; }
.emo.s { width: 76px; height: 76px; }
.emo.m { width: 112px; height: 112px; }
.emo.l { width: 170px; height: 170px; }
.emo.xl { width: 250px; height: 250px; }
.emo.xxl { width: 360px; height: 360px; }
.emo.float { animation: float 4.2s ease-in-out infinite; }
.emo.wiggle { animation: wiggle 2.6s ease-in-out infinite; }
.emo.shadowed { filter: drop-shadow(0 16px 14px rgba(38, 31, 63, .18)); }

@keyframes float { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-16px) } }
@keyframes wiggle { 0%, 100% { transform: rotate(-6deg) } 50% { transform: rotate(6deg) } }
@keyframes spin { to { transform: rotate(360deg) } }
@keyframes pulse { 0%, 100% { transform: scale(1) } 50% { transform: scale(1.06) } }

/* ---------- Thẻ / sticker ---------- */
.card {
  background: #fff;
  border: var(--bw) solid var(--ink);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 34px 40px;
  position: relative;
}
.card.flat { box-shadow: none; }
.card.tight { padding: 22px 30px; }
.card h3, .sticky h3 {
  font-family: var(--f-display); font-weight: 800; font-size: 56px; line-height: 1.05; margin: 0 0 8px;
}
.card p, .sticky p { margin: 0; }
.sticky {
  position: relative;
  background: var(--sun);
  padding: 40px 38px 44px;
  border-radius: 6px 6px 34px 6px;
  box-shadow: 0 22px 28px -16px rgba(38, 31, 63, .45), inset 0 -10px 0 rgba(0,0,0,.04);
  font-family: var(--f-hand);
  font-variation-settings: "INFM" 70, "BNCE" 20;
  font-weight: 600;
  line-height: 1.25;
}
.sticky::before { /* băng dính */
  content: ""; position: absolute; top: -22px; left: 50%;
  width: 150px; height: 44px; translate: -50% 0; rotate: -4deg;
  background: rgba(255, 255, 255, .62);
  border: 2px solid rgba(38, 31, 63, .08);
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
}
.sticky.no-tape::before { display: none; }
.sticky.mint { background: #9BE8C6; }
.sticky.sky { background: #A9CFFF; }
.sticky.pink { background: #FFB9D6; }
.sticky.lilac { background: #CDBBFF; }
.sticky.peach { background: #FFC6A3; }
.sticky.white { background: #fff; }

.tape { position: absolute; width: 150px; height: 44px; background: rgba(255,255,255,.7); border: 2px solid rgba(38,31,63,.08); box-shadow: 0 2px 6px rgba(0,0,0,.06); }

/* Xoay nghiêng (dùng thuộc tính rotate riêng để không đụng animation) */
.r-6 { rotate: -6deg; } .r-4 { rotate: -4deg; } .r-3 { rotate: -3deg; } .r-2 { rotate: -2deg; } .r-1 { rotate: -1deg; }
.r1 { rotate: 1deg; } .r2 { rotate: 2deg; } .r3 { rotate: 3deg; } .r4 { rotate: 4deg; } .r6 { rotate: 6deg; }

.chip {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 26px 10px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font-size: 36px; font-weight: 700;
  white-space: nowrap;
}
.chip .emo { width: 44px; height: 44px; }
.chips { display: flex; flex-wrap: wrap; gap: 18px; }

.num {
  flex: none;
  display: inline-grid; place-items: center;
  width: 84px; height: 84px;
  border-radius: 50%;
  border: var(--bw) solid var(--ink);
  background: var(--accent);
  font-family: var(--f-display); font-weight: 800; font-size: 50px; line-height: 1;
  box-shadow: 4px 4px 0 var(--ink);
}
.num.s { width: 64px; height: 64px; font-size: 38px; }

.src {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 30px; font-weight: 600; color: var(--ink-soft);
  padding: 6px 18px; border-radius: 12px;
  background: rgba(255,255,255,.75); border: 2px dashed var(--muted);
}
.src .emo { width: 36px; height: 36px; }

.vs {
  display: grid; place-items: center;
  width: 150px; height: 150px; flex: none;
  border-radius: 50%; border: var(--bw) solid var(--ink);
  background: var(--tomato); color: #fff;
  font-family: var(--f-display); font-weight: 800; font-size: 64px;
  box-shadow: var(--shadow-sm); rotate: -10deg; z-index: 2;
}

/* Bong bóng thoại */
.bubble {
  position: relative;
  background: #fff;
  border: var(--bw) solid var(--ink);
  border-radius: 40px;
  padding: 28px 40px;
  box-shadow: var(--shadow-sm);
  font-family: var(--f-hand);
  font-variation-settings: "INFM" 70, "BNCE" 20;
  font-weight: 600;
  line-height: 1.25;
}
.bubble::after {
  content: ""; position: absolute; width: 46px; height: 46px; background: inherit;
  border-right: var(--bw) solid var(--ink); border-bottom: var(--bw) solid var(--ink);
  bottom: -26px; left: 70px; rotate: 45deg; border-bottom-right-radius: 8px;
}
.bubble.tail-right::after { left: auto; right: 80px; }
.bubble.tail-left::after { left: -26px; bottom: auto; top: 50%; translate: 0 -50%; rotate: 135deg; }
.bubble.tail-rside::after { left: auto; right: -26px; bottom: auto; top: 50%; translate: 0 -50%; rotate: -45deg; }
.bubble.tail-none::after { display: none; }
.bubble.c-sun, .bubble.c-mint, .bubble.c-sky, .bubble.c-pink, .bubble.c-lilac, .bubble.c-accent-soft { }

/* Danh sách check */
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.checks li { position: relative; padding-left: 80px; min-height: 56px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .1em; width: 52px; height: 52px;
  border: var(--bw) solid var(--ink); border-radius: 14px; background: #fff; box-sizing: border-box;
}
.checks.done li::before, .checks li.done::before {
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7' fill='none' stroke='%23261F3F' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat;
}
.dots { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.dots li { position: relative; padding-left: 44px; }
.dots li::before { content: ""; position: absolute; left: 0; top: .42em; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 3px solid var(--ink); box-sizing: border-box; }

/* Nhãn góc ("Hoạt động", "Góc AI"...) */
.corner-tag {
  position: absolute; top: 56px; right: 110px;
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-hand); font-variation-settings: "INFM" 80; font-weight: 700; font-size: 36px;
  background: var(--ink); color: var(--paper);
  padding: 8px 26px 10px; border-radius: 14px;
}
.corner-tag.tilt { rotate: 3deg; }
.corner-tag .emo { width: 46px; height: 46px; }

/* ---------- Trang trí ---------- */
.blob {
  position: absolute; z-index: -1; pointer-events: none;
  background: var(--accent-soft);
  border-radius: 43% 57% 61% 39% / 46% 38% 62% 54%;
  animation: blob 16s ease-in-out infinite alternate;
}
@keyframes blob {
  0% { border-radius: 43% 57% 61% 39% / 46% 38% 62% 54%; }
  50% { border-radius: 58% 42% 38% 62% / 55% 61% 39% 45%; }
  100% { border-radius: 38% 62% 54% 46% / 40% 52% 48% 60%; }
}

.doodle { position: absolute; color: var(--ink); pointer-events: none; z-index: 2; }
.doodle svg { width: 100%; height: 100%; overflow: visible; display: block; }
.doodle path, .doodle line, .doodle polyline, .doodle circle, .doodle ellipse {
  fill: none; stroke: currentColor; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round;
}
.doodle.thin path { stroke-width: 4; }
.reveal section .doodle.draw path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.reveal section.present .doodle.draw path { animation: draw 1s var(--ease-out) forwards; animation-delay: var(--d, .4s); }
.reveal-print .doodle.draw path { stroke-dashoffset: 0 !important; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Chân slide ---------- */
.slide-foot {
  position: absolute; left: 124px; bottom: 44px; z-index: 5;
  display: flex; align-items: center; gap: 14px;
  font-family: var(--f-hand); font-variation-settings: "INFM" 70; font-weight: 600;
  font-size: 28px; color: var(--ink-soft);
}
.slide-foot i { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); border: 3px solid var(--ink); display: inline-block; }

/* Điều khiển reveal */
.reveal .controls { color: var(--ink); right: 34px; bottom: 30px; }
.reveal .progress { height: 12px; background: rgba(38, 31, 63, .08); color: var(--accent); }
.reveal .progress span { background: var(--accent); border-right: 4px solid var(--ink); }
.reveal .slide-number {
  right: 150px; bottom: 34px; left: auto; top: auto;
  background: transparent; color: var(--ink-soft);
  font-family: var(--f-hand); font-weight: 600; font-size: 22px;
}

.home-btn {
  position: fixed; top: 18px; left: 18px; z-index: 40;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px 9px; border-radius: 999px;
  background: #fff; color: var(--ink);
  border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  font: 700 15px/1 var(--f-body); text-decoration: none;
  opacity: .28; transition: opacity .2s, transform .2s;
}
.home-btn:hover, .home-btn:focus-visible { opacity: 1; transform: translateY(-2px); }
.home-btn svg { width: 18px; height: 18px; }

/* ---------- Hiệu ứng vào slide ---------- */
.reveal section [data-a] { opacity: 0; }
.reveal section.present [data-a] {
  animation-duration: .8s; animation-fill-mode: both;
  animation-timing-function: var(--ease-pop);
  animation-delay: var(--d, 0s);
}
.reveal section.present [data-a="pop"] { animation-name: a-pop; }
.reveal section.present [data-a="up"] { animation-name: a-up; animation-timing-function: var(--ease-out); }
.reveal section.present [data-a="down"] { animation-name: a-down; animation-timing-function: var(--ease-out); }
.reveal section.present [data-a="left"] { animation-name: a-left; animation-timing-function: var(--ease-out); }
.reveal section.present [data-a="right"] { animation-name: a-right; animation-timing-function: var(--ease-out); }
.reveal section.present [data-a="fade"] { animation-name: a-fade; animation-timing-function: ease; }
.reveal section.present [data-a="slap"] { animation-name: a-slap; }
.reveal section.present [data-a="spin"] { animation-name: a-spin; }
.reveal section.present [data-a="grow"] { animation-name: a-grow; animation-timing-function: var(--ease-out); transform-origin: left center; }
@keyframes a-pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes a-up { from { opacity: 0; transform: translateY(70px); } to { opacity: 1; transform: none; } }
@keyframes a-down { from { opacity: 0; transform: translateY(-70px); } to { opacity: 1; transform: none; } }
@keyframes a-left { from { opacity: 0; transform: translateX(-110px); } to { opacity: 1; transform: none; } }
@keyframes a-right { from { opacity: 0; transform: translateX(110px); } to { opacity: 1; transform: none; } }
@keyframes a-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes a-slap { 0% { opacity: 0; transform: scale(1.7) rotate(14deg); } 60% { opacity: 1; transform: scale(.94) rotate(-2deg); } 100% { opacity: 1; transform: none; } }
@keyframes a-spin { from { opacity: 0; transform: scale(.3) rotate(-200deg); } to { opacity: 1; transform: none; } }
@keyframes a-grow { from { opacity: 1; transform: scaleX(0); } to { opacity: 1; transform: none; } }

/* Fragment tuỳ biến */
.reveal .slides section .fragment.f-pop,
.reveal .slides section .fragment.f-up,
.reveal .slides section .fragment.f-slap,
.reveal .slides section .fragment.f-left,
.reveal .slides section .fragment.f-right {
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, transform .6s var(--ease-pop), visibility 0s linear .6s;
}
.reveal .slides section .fragment.f-pop { transform: scale(.45); }
.reveal .slides section .fragment.f-up { transform: translateY(60px); transition-timing-function: ease, var(--ease-out), linear; }
.reveal .slides section .fragment.f-left { transform: translateX(-90px); transition-timing-function: ease, var(--ease-out), linear; }
.reveal .slides section .fragment.f-right { transform: translateX(90px); transition-timing-function: ease, var(--ease-out), linear; }
.reveal .slides section .fragment.f-slap { transform: scale(1.6) rotate(12deg); }
.reveal .slides section .fragment.f-pop.visible,
.reveal .slides section .fragment.f-up.visible,
.reveal .slides section .fragment.f-slap.visible,
.reveal .slides section .fragment.f-left.visible,
.reveal .slides section .fragment.f-right.visible {
  opacity: 1; visibility: inherit; transform: none;
  transition: opacity .3s ease, transform .6s var(--ease-pop), visibility 0s;
}
.reveal .slides section .fragment.f-dim.visible { opacity: .32; filter: grayscale(1); }
.reveal .slides section .fragment.f-dim { opacity: 1; visibility: inherit; transition: opacity .4s, filter .4s; }
.reveal .slides section .fragment.f-strike { opacity: 1; visibility: inherit; position: relative; }
.reveal .slides section .fragment.f-strike::after {
  content: ""; position: absolute; left: -2%; top: 52%; height: 8px; width: 104%;
  background: var(--tomato); border-radius: 8px; rotate: -3deg;
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out);
}
.reveal .slides section .fragment.f-strike.visible::after { transform: scaleX(1); }

/* Chế độ tĩnh (?static) */
.no-anim [data-a] { opacity: 1 !important; animation: none !important; }
.no-anim .reveal section .doodle.draw path { stroke-dashoffset: 0 !important; animation: none !important; }
.no-anim mark.hl { transition: none !important; }

/* In / xuất PDF: hiện hết */
.reveal-print [data-a] { opacity: 1 !important; animation: none !important; }
.reveal-print .bar > i { transform: none !important; }
.reveal-print .timer-hint, .reveal-print .home-btn { display: none !important; }
.reveal-print .slide-foot { bottom: 30px; }
.reveal-print .home-btn { display: none; }

/* ==========================================================
   Bố cục đặc biệt
   ========================================================== */

/* Bìa */
.cover .stage { padding: 110px 124px 120px; justify-content: center; gap: 30px; }
.cover-badge {
  display: inline-flex; align-items: baseline; gap: 18px;
  font-family: var(--f-display); font-weight: 800;
  font-size: 64px; line-height: 1;
  background: var(--ink); color: var(--paper);
  padding: 18px 34px 12px; border-radius: 24px; rotate: -3deg;
  align-self: flex-start;
  box-shadow: 8px 8px 0 var(--accent);
}
.cover-badge small { font-size: 36px; font-family: var(--f-hand); font-weight: 700; color: var(--accent); }
.brand {
  display: inline-flex; align-items: center; gap: 16px;
  font-family: var(--f-display); font-weight: 800; font-size: 44px; letter-spacing: -0.01em;
}
.brand .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--tomato); border: 3px solid var(--ink); }

/* Chia phần: trang sổ + tab mục lục */
.divider .stage { background: var(--accent-soft); padding: 0; overflow: hidden; }
.divider .stage::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(38, 31, 63, .11) 2.3px, transparent 2.6px); background-size: 46px 46px;
}
.dv-page {
  position: absolute; left: 110px; top: 112px; width: 1350px; height: 796px; z-index: 2; box-sizing: border-box;
  background: #fff; border: var(--bw) solid var(--ink); border-radius: 40px; box-shadow: var(--shadow);
  padding: 92px 90px 70px; display: flex; flex-direction: column; gap: 30px;
}
.dv-page::before { /* gáy sổ */
  content: ""; position: absolute; left: 30px; top: 60px; bottom: 60px; width: 22px;
  background: radial-gradient(circle, var(--accent-soft) 8px, var(--ink) 8.5px, var(--ink) 11px, transparent 11.5px) center top / 22px 74px repeat-y;
}
.dv-tape {
  position: absolute; top: -26px; left: 210px; width: 200px; height: 52px; rotate: -4deg;
  background: rgba(255, 255, 255, .72); border: 2px solid rgba(38, 31, 63, .1); box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
}
.dv-top { display: flex; align-items: center; gap: 46px; }
.dv-num {
  flex: none; font-family: var(--f-display); font-weight: 800; font-size: 230px; line-height: .78; letter-spacing: -0.04em;
  color: var(--accent); -webkit-text-stroke: 6px var(--ink); text-shadow: 12px 12px 0 var(--ink); padding-top: 26px;
}
.dv-meta {
  align-self: flex-start; font-family: var(--f-hand); font-variation-settings: "INFM" 70; font-weight: 700; font-size: 36px;
  background: var(--ink); color: var(--paper); border-radius: 14px; padding: 6px 22px 8px;
}
.divider .t { font-size: 112px; line-height: 1; max-width: 900px; }
.divider .sub { font-size: 48px; color: var(--ink-soft); max-width: 1080px; margin-top: 6px; }
.dv-items { display: flex; gap: 20px; margin-top: auto; flex-wrap: wrap; max-width: 1020px; }
.dv-item {
  display: flex; align-items: center; gap: 12px; background: var(--paper); border: 3px solid var(--ink); border-radius: 20px;
  padding: 10px 22px 10px 12px; font-weight: 800; font-size: 30px; line-height: 1.1; box-shadow: 5px 5px 0 var(--ink); white-space: nowrap;
}
.dv-item .emo { width: 52px; height: 52px; flex: none; }
.dv-tabs { position: absolute; left: 1456px; top: 140px; display: flex; flex-direction: column; gap: 14px; }
.dv-tab {
  position: relative; z-index: 1; box-sizing: border-box; width: 412px; min-height: 100px; margin-left: -38px;
  padding: 12px 22px 12px 58px; display: flex; align-items: center; gap: 16px;
  background: var(--tc, #fff); border: var(--bw) solid var(--ink); border-radius: 0 28px 28px 0; box-shadow: 6px 6px 0 var(--ink);
  font-weight: 700; font-size: 31px; line-height: 1.12;
}
.dv-tab b {
  flex: none; width: 54px; height: 54px; border-radius: 50%; border: 3px solid var(--ink); background: #fff;
  display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 30px; line-height: 1;
}
.dv-tab.done { --tc: #EEE6D6; color: var(--ink-soft); }
.dv-tab.done b { background: var(--mint); color: var(--ink); }
.dv-tab.now {
  --tc: #fff; z-index: 3; width: 452px; margin-left: -14px; padding-left: 34px; border-left: 0;
  font-weight: 800; font-size: 34px; min-height: 116px; box-shadow: 8px 8px 0 var(--ink);
}
.dv-tab.now b { background: var(--accent); width: 62px; height: 62px; font-size: 34px; }
.dv-hero { position: absolute; z-index: 4; }
.dv-hero .emo { width: 250px; height: 250px; filter: drop-shadow(0 18px 16px rgba(38, 31, 63, .2)); }
.divider .slide-foot { color: var(--ink); }

/* Hành trình 7 buổi */
.j7 { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; height: 600px; }
.j7-path { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.j7-path svg { width: 100%; height: 100%; overflow: visible; }
.j7-path path { fill: none; stroke: var(--ink); stroke-width: 6; stroke-dasharray: 4 22; stroke-linecap: round; opacity: .45; }
.j7-stop { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.j7-stop:nth-child(even) { margin-top: 200px; }
.j7-dot {
  position: relative; width: 168px; height: 168px; border-radius: 50%; border: var(--bw) solid var(--ink);
  background: var(--c, #fff); box-shadow: 6px 6px 0 var(--ink); display: grid; place-items: center;
}
.j7-dot .emo { width: 100px; height: 100px; }
.j7-dot b {
  position: absolute; top: -10px; left: -10px; width: 58px; height: 58px; border-radius: 50%; background: #fff;
  border: 3px solid var(--ink); display: grid; place-items: center; font: 800 32px/1 var(--f-display);
}
.j7-stop strong { font-family: var(--f-display); font-weight: 800; font-size: 35px; line-height: 1.05; max-width: 240px; background: var(--paper); border-radius: 12px; padding: 4px 8px; }
.j7-stop.now .j7-dot { outline: 6px dashed var(--ink); outline-offset: 10px; }
.j7-stop .here {
  position: absolute; top: -66px; font-family: var(--f-hand); font-weight: 700; font-size: 34px; white-space: nowrap;
  background: var(--ink); color: var(--paper); padding: 4px 18px 6px; border-radius: 12px;
}
.j7-stop.done .j7-dot::after {
  content: "✓"; position: absolute; right: -12px; bottom: -8px; width: 58px; height: 58px; border-radius: 50%;
  background: var(--mint); border: 3px solid var(--ink); display: grid; place-items: center; font: 800 34px/1 var(--f-display);
}
.j7-stop .badge-live {
  position: absolute; top: -26px; right: -44px; font: 800 26px/1 var(--f-body); background: var(--tomato); color: #fff;
  border: 3px solid var(--ink); border-radius: 12px; padding: 6px 12px 7px; rotate: 6deg;
}

/* Mục lục — đường đi */
.toc-wrap { position: relative; flex: 1; }
.toc-path { position: absolute; inset: 0; z-index: 0; }
.toc-path svg { width: 100%; height: 100%; overflow: visible; }
.toc-path path { fill: none; stroke: var(--ink); stroke-width: 6; stroke-dasharray: 4 22; stroke-linecap: round; opacity: .45; }
.reveal .toc-stop {
  position: absolute; z-index: 1; width: 470px;
  display: flex; align-items: center; gap: 18px;
}
.toc-stop .pin {
  flex: none; width: 116px; height: 116px; border-radius: 50%;
  border: var(--bw) solid var(--ink); background: #fff; box-shadow: var(--shadow-sm);
  display: grid; place-items: center; position: relative;
}
.toc-stop .pin .emo { width: 74px; height: 74px; }
.toc-stop .pin b {
  position: absolute; top: -14px; left: -14px;
  width: 52px; height: 52px; border-radius: 50%; background: var(--accent);
  border: 3px solid var(--ink); display: grid; place-items: center;
  font-family: var(--f-display); font-size: 30px; line-height: 1;
}
.toc-stop .lbl { display: flex; flex-direction: column; gap: 6px; }
.toc-stop .lbl strong { font-size: 40px; line-height: 1.12; font-weight: 800; }
.toc-stop .lbl span { font-family: var(--f-hand); font-weight: 600; font-size: 30px; color: var(--ink-soft); }
.toc-stop a { display: contents; }
.toc-stop:hover .pin { transform: rotate(-6deg) scale(1.05); transition: transform .25s var(--ease-pop); }

/* Truy nã kẻ trộm thời gian */
.wanted {
  background: #F6DFAE;
  border: var(--bw) solid var(--ink);
  border-radius: 10px;
  padding: 20px 22px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background-image: radial-gradient(rgba(140, 90, 20, .12) 2px, transparent 2.5px);
  background-size: 18px 18px;
}
.wanted .w-h { font-family: var(--f-display); font-weight: 800; font-size: 40px; letter-spacing: .05em; white-space: nowrap; color: #8C3B1E; line-height: 1; }
.wanted .w-pic { width: 172px; height: 172px; border: 3px solid var(--ink); border-radius: 8px; background: #FFF7EA; display: grid; place-items: center; margin: 8px 0; }
.wanted .w-pic .emo { width: 132px; height: 132px; }
.wanted .w-name { font-family: var(--f-display); font-weight: 800; font-size: 44px; line-height: 1.02; }
.wanted .w-crime { font-size: 31px; line-height: 1.22; color: var(--ink-soft); font-weight: 600; }

/* Bước (bậc thang) */
.steps { display: flex; gap: 26px; align-items: flex-end; }
.step { flex: 1; display: flex; flex-direction: column; gap: 14px; }
.step .card { padding: 26px 28px; }
.step p { font-size: 38px; line-height: 1.25; }

/* Hộp prompt AI */
.prompt {
  background: var(--ink); color: #F4F0FF;
  border-radius: 26px; padding: 34px 40px; position: relative;
  font-size: 40px; line-height: 1.4; font-weight: 500;
  box-shadow: 10px 10px 0 var(--accent);
}
.prompt .ph { color: var(--sun); font-weight: 700; }
.prompt::before {
  content: "Prompt mẫu"; position: absolute; top: -26px; left: 34px;
  font-family: var(--f-hand); font-weight: 700; font-size: 30px;
  background: var(--sun); color: var(--ink); padding: 2px 18px 4px; border-radius: 10px; border: 3px solid var(--ink);
}

/* So sánh 2 thanh */
.bars { display: flex; flex-direction: column; gap: 26px; }
.bar-row { display: grid; grid-template-columns: 260px 1fr; align-items: center; gap: 26px; }
.bar-row .lbl { font-weight: 800; font-size: 40px; }
.bar {
  height: 92px; border: var(--bw) solid var(--ink); border-radius: 20px;
  background: #fff; position: relative; overflow: hidden; box-shadow: var(--shadow-sm);
}
.bar > i {
  position: absolute; inset: 0 auto 0 0; width: var(--w, 50%);
  background: var(--c, var(--mint)); border-right: var(--bw) solid var(--ink);
  display: flex; align-items: center; padding-left: 22px;
  font-style: normal; font-weight: 800; font-size: 38px; white-space: nowrap;
  transform-origin: left; transform: scaleX(0); transition: transform 1.1s var(--ease-out);
}
.reveal section.present .bar > i { transform: scaleX(1); transition-delay: var(--d, .3s); }
.reveal section.present .fragment:not(.visible) .bar > i { transform: scaleX(0); }

/* Lịch (time-blocking) */
.cal { display: grid; grid-template-columns: 150px 1fr; gap: 0; border: var(--bw) solid var(--ink); border-radius: 26px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.cal .hr { font-family: var(--f-hand); font-weight: 600; font-size: 30px; color: var(--ink-soft); padding: 14px 18px; border-bottom: 2px dashed var(--line); height: var(--slot, 96px); box-sizing: border-box; }
.cal .lane { position: relative; border-left: 3px solid var(--ink); }
.cal .lane .slot { height: var(--slot, 96px); border-bottom: 2px dashed var(--line); box-sizing: border-box; }
.blk {
  position: absolute; left: 18px; right: 18px;
  border: var(--bw) solid var(--ink); border-radius: 18px;
  padding: 10px 22px; font-size: 32px; font-weight: 700; line-height: 1.2;
  display: flex; align-items: center; gap: 14px; box-sizing: border-box; overflow: hidden;
  box-shadow: 4px 4px 0 var(--ink);
}
.blk small { font-family: var(--f-hand); font-weight: 600; font-size: 28px; color: var(--ink-soft); white-space: nowrap; }

/* Ma trận Eisenhower */
.matrix { display: grid; grid-template-columns: 90px 1fr 1fr; grid-template-rows: 70px 1fr 1fr; gap: 18px; }
.matrix .ax { font-family: var(--f-hand); font-weight: 700; font-size: 34px; display: grid; place-items: center; text-align: center; }
.matrix .ax.v { writing-mode: vertical-rl; rotate: 180deg; }
.quad {
  border: var(--bw) solid var(--ink); border-radius: 28px; padding: 24px 28px;
  display: flex; flex-direction: column; gap: 8px; position: relative; box-shadow: var(--shadow-sm);
}
.quad h4 { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: 50px; line-height: 1; display: flex; align-items: center; gap: 14px; }
.quad p { margin: 0; font-size: 34px; line-height: 1.25; color: var(--ink-soft); font-weight: 600; }
.quad .qn { position: absolute; right: 18px; top: 10px; font-family: var(--f-display); font-weight: 800; font-size: 80px; opacity: .18; line-height: 1; }
.q1 { background: var(--tomato-soft); }
.q2 { background: var(--mint-soft); }
.q3 { background: var(--sun-soft); }
.q4 { background: #ECE8F3; }

/* ==========================================================
   Widget tương tác
   ========================================================== */
.w-btn {
  font: 800 34px/1 var(--f-body); color: var(--ink);
  background: #fff; border: var(--bw) solid var(--ink); border-radius: 999px;
  padding: 16px 32px 18px; cursor: pointer; box-shadow: 5px 5px 0 var(--ink);
  transition: transform .12s, box-shadow .12s, background .2s;
  display: inline-flex; align-items: center; gap: 12px;
}
.w-btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.w-btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.w-btn.primary { background: var(--accent); }
.w-btn.ghost { box-shadow: none; background: transparent; }
.w-btn.small { font-size: 28px; padding: 10px 22px 12px; }

/* Đồng hồ đếm ngược */
.timer { display: flex; align-items: center; gap: 44px; }
.timer-ring { position: relative; width: var(--size, 380px); height: var(--size, 380px); flex: none; }
.timer-ring svg { width: 100%; height: 100%; rotate: -90deg; overflow: visible; }
.timer-ring .track { fill: #fff; stroke: var(--ink); stroke-width: 5; }
.timer-ring .bar-c { fill: none; stroke: var(--accent); stroke-width: 20; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset .3s linear; }
.timer-ring .inner { fill: none; stroke: var(--ink); stroke-width: 4; }
.timer-face { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 2px; }
.timer-time { font-family: var(--f-display); font-weight: 800; font-size: calc(var(--size, 380px) * .215); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.timer-label { font-family: var(--f-hand); font-weight: 600; font-size: 30px; color: var(--ink-soft); }
.timer-side { display: flex; flex-direction: column; gap: 20px; }
.timer-presets { display: flex; gap: 12px; flex-wrap: wrap; }
.timer-presets button { font: 700 28px/1 var(--f-body); padding: 10px 18px; border-radius: 14px; border: 3px solid var(--ink); background: #fff; cursor: pointer; }
.timer-presets button.on { background: var(--ink); color: var(--paper); }
.timer.running .timer-ring { animation: pulse 2s ease-in-out infinite; }
.timer.done .timer-ring { animation: shake .6s ease-in-out 3; }
.timer.done .timer-time { color: var(--tomato); }
@keyframes shake { 0%,100% { transform: rotate(0) } 25% { transform: rotate(-5deg) } 75% { transform: rotate(5deg) } }
.timer-hint { font-family: var(--f-hand); font-size: 26px; color: var(--muted); font-weight: 600; }

/* Bảng phân loại kéo-thả */
.sorter { position: relative; display: grid; grid-template-columns: 1fr 560px; gap: 40px; flex: 1; min-height: 0; }
.sorter .matrix { height: 100%; grid-template-rows: 64px 1fr 1fr; }
.sorter .quad { padding: 18px 20px 14px; gap: 6px; min-height: 0; }
.sorter .quad h4 { font-size: 40px; }
.drop { display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; flex: 1; min-height: 60px; }
.tray { display: flex; flex-direction: column; gap: 14px; }
.tray-drop { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 16px; border: 3px dashed var(--muted); border-radius: 24px; background: rgba(255,255,255,.55); }
.task {
  display: inline-flex; align-items: center; gap: 12px;
  background: #fff; border: 3px solid var(--ink); border-radius: 16px;
  padding: 10px 18px 12px; font-size: 30px; font-weight: 700; line-height: 1.15;
  box-shadow: 3px 3px 0 var(--ink); cursor: grab; touch-action: none; user-select: none;
  position: relative; z-index: 3;
}
.task .emo { width: 42px; height: 42px; flex: none; }
.task.dragging { cursor: grabbing; z-index: 30; box-shadow: 10px 12px 0 rgba(38,31,63,.35); rotate: -3deg; }
.quad.over { outline: 6px dashed var(--ink); outline-offset: -14px; }
.quad .drop .task { font-size: 26px; padding: 8px 14px 10px; }
.quad .drop .task .emo { width: 34px; height: 34px; }

/* Ngân sách 24 giờ */
.budget { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 60px; }
.b-row { display: grid; grid-template-columns: 64px 1fr 110px; align-items: center; gap: 18px; }
.b-row .emo { width: 64px; height: 64px; }
.b-row label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 34px; line-height: 1.1; }
.b-row output { font-family: var(--f-display); font-weight: 800; font-size: 50px; text-align: right; font-variant-numeric: tabular-nums; }
.b-row input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 18px; background: #fff; border: 3px solid var(--ink); border-radius: 99px; cursor: pointer; }
.b-row input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 40px; height: 40px; border-radius: 50%; background: var(--c, var(--accent)); border: 4px solid var(--ink); }
.b-row input[type=range]::-moz-range-thumb { width: 34px; height: 34px; border-radius: 50%; background: var(--c, var(--accent)); border: 4px solid var(--ink); }
.day-bar { display: flex; height: 110px; border: var(--bw) solid var(--ink); border-radius: 26px; overflow: hidden; background: repeating-linear-gradient(-45deg, #fff, #fff 14px, #F1E8D8 14px, #F1E8D8 28px); box-shadow: var(--shadow-sm); }
.day-bar > div { height: 100%; display: grid; place-items: center; border-right: 3px solid var(--ink); transition: flex-basis .45s var(--ease-out); overflow: hidden; min-width: 0; }
.day-bar > div .emo { width: 58px; height: 58px; }
.day-bar > div:last-child { border-right: 0; }
.left-over { display: flex; align-items: center; gap: 22px; font-size: 44px; font-weight: 700; }
.left-over output { font-family: var(--f-display); font-weight: 800; font-size: 96px; line-height: 1; color: var(--accent-deep); }
.left-over.neg output { color: var(--tomato); }

/* Hít thở */
.breathe { display: flex; flex-direction: column; align-items: center; gap: 34px; }
.breathe-stage { position: relative; width: 560px; height: 560px; display: grid; place-items: center; }
.breathe-ring { position: absolute; inset: 0; border-radius: 50%; border: 5px dashed var(--muted); }
.breathe-ball {
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0, var(--mint-soft) 30%, var(--mint) 100%);
  border: var(--bw) solid var(--ink); box-shadow: var(--shadow-sm);
  display: grid; place-items: center; text-align: center;
  transform: scale(.62); transition-property: transform; transition-timing-function: ease-in-out;
}
.breathe-label { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; pointer-events: none; }
.breathe-label span { font-family: var(--f-display); font-weight: 800; font-size: 60px; line-height: 1.05; background: rgba(255,255,255,.82); border: 3px solid var(--ink); border-radius: 22px; padding: 12px 26px 14px; }
.breathe-label small { display: block; font-family: var(--f-hand); font-weight: 600; font-size: 30px; color: var(--ink-soft); }
.breathe-dots { display: flex; gap: 14px; }
.breathe-dots i { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--ink); background: #fff; transition: background .3s; }
.breathe-dots i.on { background: var(--mint); }

/* Confetti canvas */
.confetti-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 60; }

/* ==========================================================
   Linh vật Tíc (đồng hồ báo thức)
   ========================================================== */
.tic { width: 260px; position: relative; z-index: 3; }
.tic svg { width: 100%; height: auto; display: block; overflow: visible; }
.tic .tic-body-g { animation: tic-bob 3.2s ease-in-out infinite; transform-box: view-box; transform-origin: 120px 240px; }
.tic .tic-eyes { animation: tic-blink 4.6s infinite; transform-box: view-box; transform-origin: 120px 128px; }
.tic .arm-wave { animation: tic-wave 1.4s ease-in-out infinite; transform-box: view-box; transform-origin: 204px 140px; }
.tic .arm-cheer-l { animation: tic-cheer-l 1.1s ease-in-out infinite; transform-box: view-box; transform-origin: 40px 142px; }
.tic .arm-cheer-r { animation: tic-cheer-r 1.1s ease-in-out infinite; transform-box: view-box; transform-origin: 200px 142px; }
.tic .hand-min { animation: spin 6s linear infinite; transform-box: view-box; transform-origin: 120px 135px; }
.tic.big { width: 380px; }
.tic.small { width: 190px; }
@keyframes tic-bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(2deg); } }
@keyframes tic-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes tic-wave { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-28deg); } }
@keyframes tic-cheer-l { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(14deg); } }
@keyframes tic-cheer-r { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-14deg); } }

/* Giảm chuyển động khi người dùng yêu cầu */
@media (prefers-reduced-motion: reduce) {
  .emo.float, .emo.wiggle, .blob, .tic .tic-body-g, .tic .arm-wave, .tic .arm-cheer-l, .tic .arm-cheer-r, .tic .hand-min { animation: none !important; }
}

/* ---------- Hành trình 4 buổi ---------- */
.journey { position: relative; display: grid; grid-template-columns: repeat(4, 1fr) 190px; gap: 64px; align-items: start; height: 560px; }
.journey .j-path { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.journey .j-path svg { width: 100%; height: 100%; overflow: visible; }
.journey .j-path path { fill: none; stroke: var(--ink); stroke-width: 6; stroke-dasharray: 4 22; stroke-linecap: round; opacity: .5; }
.j-stop { position: relative; z-index: 1; }
.j-stop .card { padding: 30px 30px 32px; }
.j-stop .card .num { position: absolute; top: -32px; right: -24px; }
.j-stop .card h3 { font-size: 54px; margin-top: 10px; }
.j-stop .card p { font-size: 33px; line-height: 1.25; }
.j-stop .here { position: absolute; top: -70px; left: 6px; font-size: 34px; font-weight: 700; color: var(--tomato); rotate: -5deg; white-space: nowrap; }
.j-stop.done .card::after {
  content: "✓"; position: absolute; left: -26px; top: -26px; width: 64px; height: 64px; border-radius: 50%;
  background: var(--mint); border: var(--bw) solid var(--ink); display: grid; place-items: center;
  font: 800 40px/1 var(--f-display);
}
.j-flag { align-self: center; z-index: 1; display: grid; place-items: center; }

/* ---------- Truyện tranh ---------- */
.comic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 18px; }
.panel {
  position: relative; background: #fff; border: var(--bw) solid var(--ink); border-radius: 22px;
  box-shadow: var(--shadow-sm); padding: 46px 30px 28px; display: flex; align-items: center; gap: 22px;
}
.panel p { font-family: var(--f-hand); font-variation-settings: "INFM" 70; font-weight: 600; font-size: 40px; line-height: 1.2; margin: 0; }
.panel .time { position: absolute; top: -28px; left: 24px; background: var(--ink); color: var(--paper); font-family: var(--f-display); font-weight: 800; font-size: 38px; padding: 4px 18px 0; border-radius: 12px; }

/* ---------- Bảng Time Audit ---------- */
.audit { border: var(--bw) solid var(--ink); border-radius: 26px; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.audit .a-head, .audit .a-row { display: grid; grid-template-columns: 290px 320px 1fr 290px 270px; }
.audit .a-head span { background: var(--ink); color: var(--paper); font-weight: 800; font-size: 34px; padding: 18px 24px; }
.audit .a-row > span { padding: 26px 24px; font-size: 38px; line-height: 1.2; border-top: 3px dashed var(--line); border-right: 3px dashed var(--line); display: flex; align-items: center; gap: 14px; }
.audit .a-row > span:last-child { border-right: 0; }
.audit.blank .a-row > span { height: 78px; padding: 0 24px; }
.tagc { font-style: normal; font-weight: 800; font-size: 31px; padding: 6px 16px 8px; border-radius: 12px; border: 3px solid var(--ink); white-space: nowrap; }
.meter { display: inline-block; width: 130px; height: 28px; border-radius: 99px; border: 3px solid var(--ink); background: linear-gradient(90deg, var(--accent) calc(var(--v) * 20%), #fff 0); flex: none; }

.wanted { position: relative; }


/* ---------- Buổi 2: đẩy việc ---------- */
.push-line { position: relative; height: 420px; }
.push-track { position: absolute; left: 0; right: 0; top: 262px; height: 10px; border-radius: 10px; background: repeating-linear-gradient(90deg, var(--ink) 0 26px, transparent 26px 46px); opacity: .45; }
.push-box { position: absolute; left: 0; top: 196px; font-size: 44px; font-weight: 800; display: flex; align-items: center; gap: 14px; transition: translate .8s var(--ease-pop); z-index: 2; }
.reveal .push-line .bubble { position: absolute; font-size: 40px; white-space: nowrap; }
.push-end { position: absolute; right: 0; top: 120px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.push-end .hand { font-size: 52px; font-weight: 800; color: var(--tomato); }
.push-line:has(.b1.visible) .push-box { translate: 230px 0; }
.push-line:has(.b2.visible) .push-box { translate: 540px 0; }
.push-line:has(.b3.visible) .push-box { translate: 850px 0; }
.push-line:has(.push-end.visible) .push-box { translate: 1070px 0; animation: shake .5s ease-in-out 2; }

/* ---------- Chia nhỏ ---------- */
.rock-card { width: 520px; flex: none; text-align: center; padding: 40px 30px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pebbles { display: flex; flex-direction: column; gap: 16px; }
.pebble {
  display: flex; align-items: center; gap: 18px; align-self: flex-start;
  background: #fff; border: 3px solid var(--ink); border-radius: 999px;
  padding: 8px 30px 10px 10px; font-size: 38px; font-weight: 700; box-shadow: 4px 4px 0 var(--ink);
}
.pebble b { width: 60px; height: 60px; flex: none; border-radius: 50%; background: var(--accent); border: 3px solid var(--ink); display: grid; place-items: center; font-family: var(--f-display); font-size: 34px; }
.pebble em { font-style: normal; font-family: var(--f-hand); font-weight: 700; color: var(--ink-soft); font-size: 32px; }
.pebble:nth-child(2) { margin-left: 46px; } .pebble:nth-child(3) { margin-left: 18px; }
.pebble:nth-child(4) { margin-left: 64px; } .pebble:nth-child(5) { margin-left: 30px; } .pebble:nth-child(6) { margin-left: 80px; }
.pebble:first-child { background: var(--mint-soft); }

/* ---------- Quy tắc 5 giây ---------- */
.cd-chip { width: 112px; height: 112px; border-radius: 26px; border: var(--bw) solid var(--ink); background: #fff; display: grid; place-items: center; font: 800 72px/1 var(--f-display); box-shadow: 5px 5px 0 var(--ink); }
.cd-chip:nth-child(odd) { rotate: -5deg; } .cd-chip:nth-child(even) { rotate: 4deg; background: var(--tomato-soft); }
.cd { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.cd-num { font-family: var(--f-display); font-weight: 800; font-size: 300px; line-height: 1; height: 320px; display: grid; place-items: center; }
.cd-num.go { font-size: 118px; color: var(--tomato); text-align: center; line-height: 1.05; }
.cd-num.bump { animation: a-pop .5s var(--ease-pop); }

/* ---------- Pomodoro ---------- */
.pomo-line { display: flex; gap: 12px; align-items: stretch; height: 250px; }
.pomo { border: var(--bw) solid var(--ink); border-radius: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px 6px; gap: 6px; box-shadow: 5px 5px 0 var(--ink); min-width: 0; }
.pomo .emo { width: 74px; height: 74px; }
.pomo b { font-family: var(--f-display); font-size: 54px; line-height: 1; }
.pomo span { font-family: var(--f-hand); font-weight: 600; font-size: 28px; white-space: nowrap; }
.pomo.work { flex: 25 1 0; background: var(--tomato-soft); }
.pomo.rest { flex: 8 1 0; background: var(--mint-soft); }
.pomo.rest .emo { width: 56px; height: 56px; }
.pomo.rest b { font-size: 42px; }
.pomo.long { flex: 22 1 0; background: var(--sky-soft); }


/* ---------- Buổi 3: SMART ---------- */
.smart-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 26px; }
.smart-tile {
  border: var(--bw) solid var(--ink); border-radius: 26px; padding: 18px 18px 22px; text-align: center;
  box-shadow: var(--shadow-sm); background: #fff; display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.smart-tile .L { font-family: var(--f-display); font-weight: 800; font-size: 110px; line-height: .95; }
.smart-tile strong { font-size: 38px; line-height: 1.1; }
.smart-tile .en { font-size: 28px; }
.sg-s { --sg: #A8CFFF; } .sg-m { --sg: #9BE8C6; } .sg-a { --sg: #FFE08A; } .sg-r { --sg: #FFB9D6; } .sg-t { --sg: #CDBBFF; }
.smart-tile.sg-s, .smart-tile.sg-m, .smart-tile.sg-a, .smart-tile.sg-r, .smart-tile.sg-t { background: var(--sg); }
.smart-sentence { font-size: 50px; line-height: 1.55; font-weight: 600; }
.smart-sentence .seg { background: var(--sg); border-radius: 12px; padding: 2px 12px; box-decoration-break: clone; -webkit-box-decoration-break: clone; border-bottom: 4px solid var(--ink); }
.vague { display: inline-flex; align-items: center; gap: 16px; font-family: var(--f-hand); font-weight: 700; font-size: 56px; color: var(--muted); }

/* ---------- Pareto ---------- */
.pareto { display: flex; flex-direction: column; gap: 22px; }
.pareto .p-row { display: grid; grid-template-columns: 250px 1fr; align-items: center; gap: 24px; }
.pareto .p-row > span { font-weight: 800; font-size: 40px; }
.p-bar { display: flex; height: 110px; border: var(--bw) solid var(--ink); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-sm); }
.p-bar > i { display: grid; place-items: center; font-style: normal; font: 800 46px/1 var(--f-display); border-right: var(--bw) solid var(--ink); }
.p-bar > i:last-child { border-right: 0; }

/* ---------- Parkinson ---------- */
.pk { display: flex; gap: 60px; align-items: flex-end; }
.pk-box { position: relative; border: var(--bw) dashed var(--ink); border-radius: 30px; display: grid; place-items: center; background: rgba(255,255,255,.6); }
.pk-box .pk-label { position: absolute; top: -30px; left: 26px; background: var(--ink); color: var(--paper); font: 700 34px/1 var(--f-body); padding: 10px 20px; border-radius: 14px; }
.pk-ball { border-radius: 50%; border: var(--bw) solid var(--ink); background: radial-gradient(circle at 32% 30%, #fff 0, var(--tomato-soft) 25%, var(--tomato) 100%); display: grid; place-items: center; text-align: center; font: 800 40px/1.1 var(--f-display); box-shadow: var(--shadow-sm); }
.reveal section.present .pk-ball { animation: pk-grow 1.6s var(--ease-out) both; animation-delay: var(--d, .4s); }
@keyframes pk-grow { from { transform: scale(.25); } to { transform: none; } }

/* ---------- Kế hoạch ngược ---------- */
.tl { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; position: relative; }
.tl::before { content: ""; position: absolute; left: 2%; right: 2%; top: 58px; height: 8px; border-radius: 8px; background: repeating-linear-gradient(90deg, var(--ink) 0 22px, transparent 22px 38px); opacity: .45; }
.tl-day { display: flex; flex-direction: column; align-items: center; gap: 22px; position: relative; }
.tl-day .d { width: 116px; height: 116px; border-radius: 50%; border: var(--bw) solid var(--ink); background: #fff; display: grid; place-items: center; font: 800 46px/1 var(--f-display); box-shadow: 4px 4px 0 var(--ink); }
.tl-day.due .d { background: var(--tomato); color: #fff; }
.tl-day .card { padding: 22px 22px; text-align: center; font-size: 36px; line-height: 1.2; font-weight: 700; width: 100%; box-sizing: border-box; }

/* ---------- Đường năng lượng ---------- */
.energy { position: relative; height: 560px; }
.energy svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.energy .axis { stroke: var(--ink); stroke-width: 5; fill: none; stroke-linecap: round; }
.energy .curve { stroke: var(--accent-deep); stroke-width: 12; fill: none; stroke-linecap: round; }
.energy .area { fill: var(--accent-soft); }
.energy .tick { font: 600 30px var(--f-hand); fill: var(--ink-soft); }
.energy .pin-e { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 4px; translate: -50% -100%; }
.energy .pin-e span { font: 700 30px/1.1 var(--f-hand); background: #fff; border: 3px solid var(--ink); border-radius: 12px; padding: 4px 12px; white-space: nowrap; }
.reveal section .energy .curve { stroke-dasharray: 1; stroke-dashoffset: 1; }
.reveal section.present .energy .curve { animation: draw 2s var(--ease-out) .3s forwards; }
.no-anim .energy .curve, .reveal-print .energy .curve { stroke-dashoffset: 0 !important; animation: none !important; }

/* ---------- Lịch mini so sánh ---------- */
.mini-cal { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; border: var(--bw) solid var(--ink); border-radius: 24px; padding: 18px; background: #fff; box-shadow: var(--shadow-sm); height: 470px; box-sizing: border-box; }
.mini-cal .col-d { display: flex; flex-direction: column; gap: 6px; }
.mini-cal .col-d > b { text-align: center; font: 800 30px/1 var(--f-display); margin-bottom: 4px; }
.mini-cal .col-d > i { border-radius: 8px; border: 2px solid var(--ink); flex: var(--h, 1); font-style: normal; }
.mini-cal i.k { background: #A9CFFF; } .mini-cal i.w { background: #FFC6A3; } .mini-cal i.s { background: #FFE08A; }
.mini-cal i.r { background: #9BE8C6; } .mini-cal i.b { background: repeating-linear-gradient(-45deg, #fff, #fff 6px, #E8E1F5 6px, #E8E1F5 12px); }
.legend { display: flex; flex-wrap: wrap; gap: 14px 26px; font-size: 30px; font-weight: 600; }
.legend span { display: inline-flex; align-items: center; gap: 10px; }
.legend i { width: 30px; height: 30px; border-radius: 8px; border: 2px solid var(--ink); display: inline-block; }

/* ---------- Thẻ công cụ ---------- */
.tool { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.tool h3 { font-size: 46px !important; }
.tool p { font-size: 32px; line-height: 1.25; color: var(--ink-soft); }


/* ---------- Buổi 4: cân quá tải ---------- */
.balance { position: relative; width: 900px; height: 560px; flex: none; }
.balance svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.balance .ln { stroke: var(--ink); stroke-width: 10; stroke-linecap: round; fill: none; }
.balance .bowl { fill: #fff; stroke: var(--ink); stroke-width: 6; }
.balance .pile { position: absolute; display: flex; flex-wrap: wrap-reverse; justify-content: center; gap: 2px; }
.balance .pile .emo { width: 70px; height: 70px; }
.balance .lbl-b { position: absolute; translate: -50% 0; font: 800 38px/1.1 var(--f-display); text-align: center; white-space: nowrap; }
.balance .lbl-b small { display: block; font: 600 28px/1.2 var(--f-hand); color: var(--ink-soft); }

/* ---------- Vòng xoáy & chu trình ---------- */
.cycle { position: relative; flex: none; }
.cycle svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cycle .arc { fill: none; stroke: var(--ink); stroke-width: 7; stroke-linecap: round; }
.cycle .ring { fill: none; stroke: var(--accent); stroke-width: 4; stroke-dasharray: 6 18; opacity: .7; transform-box: view-box; animation: spin 40s linear infinite; }
.cycle .node {
  position: absolute; translate: -50% -50%; width: 250px; text-align: center;
  background: var(--node-bg, #fff); border: var(--bw) solid var(--ink); border-radius: 24px; box-shadow: var(--shadow-sm);
  padding: 12px 14px 16px; display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.cycle .node .emo { width: 66px; height: 66px; }
.cycle .node strong { font: 800 40px/1.05 var(--f-display); }
.cycle .node span { font: 600 26px/1.2 var(--f-hand); color: var(--ink-soft); }
.cycle .node.sm { width: 186px; padding: 10px 10px 12px; }
.cycle .node.sm .emo { width: 58px; height: 58px; }
.cycle .node.sm strong { font-size: 33px; }
.cycle .node.wide { width: 310px; }
.cycle .node.wide strong { font-size: 40px; }
.cycle .node.wide span { font-size: 28px; white-space: nowrap; }
.cycle .ring-flow { fill: none; stroke: var(--accent); stroke-width: 4; stroke-dasharray: 6 18; opacity: .7; animation: dashflow 6s linear infinite; }
@keyframes dashflow { to { stroke-dashoffset: -240; } }
.cycle .center { position: absolute; translate: -50% -50%; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }

/* ---------- Vùng kiểm soát ---------- */
.circles { position: relative; width: 640px; height: 640px; flex: none; }
.circles > div { position: absolute; left: 50%; top: 50%; translate: -50% -50%; border-radius: 50%; border: var(--bw) solid var(--ink); display: flex; justify-content: center; }
.circles .c3 { width: 640px; height: 640px; background: #ECE8F3; }
.circles .c2 { width: 450px; height: 450px; background: var(--sun-soft); }
.circles .c1 { width: 260px; height: 260px; background: var(--mint-soft); align-items: center; }
.circles .c3 > b, .circles .c2 > b { margin-top: 22px; font: 800 34px/1.1 var(--f-display); text-align: center; }
.circles .c1 > b { font: 800 36px/1.1 var(--f-display); text-align: center; padding: 0 20px; }

/* ---------- Habit tracker 66 ngày ---------- */
.habit-grid { display: grid; grid-template-columns: repeat(11, 46px); gap: 9px; }
.habit-grid i { width: 46px; height: 46px; border-radius: 12px; border: 3px solid var(--ink); background: #fff; display: block; }
.habit-grid i.on { background: var(--mint); }
.habit-grid i.miss { background: repeating-linear-gradient(-45deg, #fff, #fff 5px, #FFC6A3 5px, #FFC6A3 10px); }
.habit-grid i.goal { background: var(--sun); }

/* ---------- Thẻ cam kết ---------- */
.commit {
  position: relative; background: #fff; border: var(--bw) solid var(--ink); border-radius: 30px;
  box-shadow: 12px 12px 0 var(--accent); padding: 36px 46px 40px;
  background-image: radial-gradient(var(--paper-dot) 2px, transparent 2.4px); background-size: 30px 30px;
}
.commit::before, .commit::after { content: ""; position: absolute; top: 50%; width: 56px; height: 56px; border-radius: 50%; background: var(--paper); border: var(--bw) solid var(--ink); translate: 0 -50%; }
.commit::before { left: -32px; clip-path: inset(0 0 0 50%); }
.commit::after { right: -32px; clip-path: inset(0 50% 0 0); }
.commit h3 { font: 800 60px/1 var(--f-display); margin: 0 0 18px; display: flex; align-items: center; gap: 16px; }
.field { display: grid; grid-template-columns: 430px 1fr; align-items: end; gap: 18px; font-size: 38px; padding: 10px 0; }
.fields-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 56px; }
.fields-2 .field { grid-template-columns: 1fr; gap: 4px; font-size: 34px; padding: 8px 0; }
.field b { font-weight: 800; }
.field i { border-bottom: 4px dotted var(--ink-soft); height: 40px; display: block; }

/* ---------- Màu nền tiện ích (đặt cuối để luôn thắng) ---------- */
.c-sun { background: var(--sun); }
.c-sun-soft { background: var(--sun-soft); }
.c-mint { background: var(--mint-soft); }
.c-mint-strong { background: var(--mint); }
.c-sky { background: var(--sky-soft); }
.c-sky-strong { background: var(--sky); }
.c-lilac { background: var(--lilac-soft); }
.c-lilac-strong { background: var(--lilac); }
.c-tomato { background: var(--tomato-soft); }
.c-tomato-strong { background: var(--tomato); color: #fff; }
.c-pink { background: var(--pink-soft); }
.c-peach { background: var(--peach-soft); }
.c-paper { background: var(--paper); }
.c-ink { background: var(--ink); color: var(--paper); }
.c-accent { background: var(--accent); }
.c-accent-soft { background: var(--accent-soft); }


/* ==========================================================
   Thành phần bổ sung (bản 7 buổi)
   ========================================================== */

/* Thang tự đánh giá 1–5 */
.scale5 { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 26px; }
.scale5 .st { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.scale5 .st .emo { width: 128px; height: 128px; }
.scale5 .seg {
  width: 100%; height: 118px; box-sizing: border-box; background: var(--c, #fff);
  border: var(--bw) solid var(--ink); border-left-width: 0; display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 800; font-size: 70px; line-height: 1;
}
.scale5 .st:first-child .seg { border-left-width: var(--bw); border-radius: 60px 0 0 60px; }
.scale5 .st:last-child .seg { border-radius: 0 60px 60px 0; }
.scale5 .st p { margin: 0; font-size: 40px; font-weight: 700; line-height: 1.15; max-width: 300px; }

/* Mốc hạn nộp (lịch móc) */
.due3 { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.due3::before {
  content: ""; position: absolute; left: 40px; right: 40px; top: 36px; height: 8px; border-radius: 8px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 22px, transparent 22px 38px); opacity: .45;
}
.due { position: relative; display: flex; flex-direction: column; gap: 24px; }
.due .when {
  position: relative; z-index: 1; align-self: flex-start; white-space: nowrap;
  font-weight: 800; font-size: 34px; line-height: 1; background: var(--ink); color: var(--paper);
  border-radius: 999px; padding: 18px 28px 20px; box-shadow: 5px 5px 0 var(--accent);
}
.due .card { padding: 28px 32px 30px; font-size: 38px; line-height: 1.3; flex: 1; }
.due .card .emo { width: 64px; height: 64px; display: block; margin-bottom: 10px; }

/* Ô "câu mẫu" để điền */
.fill { display: inline-block; min-width: 260px; border-bottom: 5px dotted currentColor; height: .95em; vertical-align: baseline; }

/* Nhãn ví dụ "chưa rõ / rõ" */
.pill { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 32px; line-height: 1; padding: 10px 20px 12px; border: 3px solid var(--ink); border-radius: 999px; background: #fff; white-space: nowrap; }
.pill.bad { background: var(--tomato-soft); }
.pill.good { background: var(--mint-soft); }

/* Thanh xếp chồng (ước lượng thời gian) */
.sbar { display: flex; height: 100px; border: var(--bw) solid var(--ink); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-sm); background: #fff; }
.sbar > i {
  flex: var(--w) 1 0; min-width: 0; background: var(--c, #fff); border-right: var(--bw) solid var(--ink);
  display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 32px; white-space: nowrap; overflow: hidden;
}
.sbar > i:last-child { border-right: 0; }

/* Dải 5 ngày (so sánh cách chia việc) */
.wkrow { display: grid; grid-template-columns: 330px repeat(5, 1fr); gap: 14px; align-items: stretch; }
.wkrow .lab { display: flex; flex-direction: column; justify-content: center; gap: 6px; font-weight: 800; font-size: 40px; line-height: 1.1; }
.wkrow .lab small { font-family: var(--f-hand); font-weight: 600; font-size: 32px; color: var(--ink-soft); }
.wkrow .day {
  border: var(--bw) solid var(--ink); border-radius: 22px; background: #fff; min-height: 160px; box-sizing: border-box;
  padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; box-shadow: 4px 4px 0 var(--ink);
}
.wkrow .day b { font-family: var(--f-display); font-weight: 800; font-size: 36px; line-height: 1; }
.wkrow .day span { font-size: 32px; font-weight: 700; line-height: 1.15; }
.wkrow .day.empty { background: transparent; border-style: dashed; box-shadow: none; color: var(--muted); }
.wkrow .day.hot { background: var(--tomato-soft); }
.wkrow .day.ok { background: var(--mint-soft); }
.wkrow .day.due { background: var(--tomato); color: #fff; }

/* Lịch tuần mẫu (7 ngày × 3 buổi) */
.wk { display: grid; grid-template-columns: 130px repeat(7, 1fr); gap: 10px; }
.wk > b { font-family: var(--f-display); font-weight: 800; font-size: 36px; line-height: 1; text-align: center; padding-bottom: 4px; }
.wk > em { font-style: normal; font-family: var(--f-hand); font-weight: 700; font-size: 32px; display: grid; place-items: center; color: var(--ink-soft); }
.wk > i { height: 118px; border: 3px solid var(--ink); border-radius: 18px; display: grid; place-items: center; background: var(--c, #fff); }
.wk > i .emo { width: 66px; height: 66px; }
.wk > i.buf { background: repeating-linear-gradient(-45deg, #fff, #fff 8px, #E3DAF5 8px, #E3DAF5 16px); }
.wk > i.free { background: transparent; border-style: dashed; border-color: rgba(38, 31, 63, .3); }
.legend.big { font-size: 34px; gap: 14px 34px; }
.legend.big i { width: 36px; height: 36px; }
.j7-stop.now .badge-live { top: auto; bottom: -10px; right: -46px; }

/* Thẻ mã QR nộp bài */
.reveal .qr-card {
  flex: none; position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px;
  width: 440px; box-sizing: border-box; padding: 40px 30px 26px; background: #fff; color: var(--ink);
  border: var(--bw) solid var(--ink); border-radius: 34px; box-shadow: var(--shadow); text-decoration: none;
}
.qr-card .qr { display: block; width: 360px; height: 360px; }
.qr-card .qr svg { display: block; width: 100%; height: 100%; }
.qr-card .qr-tag {
  position: absolute; top: -30px; left: 50%; translate: -50% 0; white-space: nowrap;
  font-family: var(--f-hand); font-variation-settings: "INFM" 70; font-weight: 700; font-size: 34px;
  background: var(--accent); border: 3px solid var(--ink); border-radius: 999px; padding: 4px 24px 6px; box-shadow: var(--shadow-sm);
}
.qr-card .qr-url { display: flex; flex-direction: column; align-items: center; line-height: 1.08; white-space: nowrap; }
.qr-card .qr-url .dom { font-weight: 700; font-size: 28px; color: var(--ink-soft); }
.qr-card .qr-url .path { font-weight: 800; font-size: 42px; letter-spacing: -0.01em; }
.reveal .qr-card.s { width: 420px; padding: 38px 26px 22px; }
.qr-card.s .qr { width: 300px; height: 300px; }
.qr-card.s .qr-url .dom { font-size: 25px; }
.qr-card.s .qr-url .path { font-size: 36px; }
.qr-card.s .qr-tag { font-size: 30px; }

/* Danh sách mốc nộp bài (dọc) */
.hw-list { position: relative; display: flex; flex-direction: column; gap: 20px; }
.hw-list::before {
  content: ""; position: absolute; left: 34px; top: 24px; bottom: 24px; width: 6px; border-radius: 6px;
  background: repeating-linear-gradient(180deg, var(--ink) 0 16px, transparent 16px 30px); opacity: .35;
}
.hw-row { position: relative; display: grid; grid-template-columns: 330px 1fr; gap: 22px; align-items: center; }
.hw-row .when {
  position: relative; z-index: 1; justify-self: start; white-space: nowrap; font-weight: 800; font-size: 31px; line-height: 1;
  background: var(--ink); color: var(--paper); border-radius: 999px; padding: 16px 24px 18px; box-shadow: 5px 5px 0 var(--accent);
}
.hw-row p {
  margin: 0; font-size: 37px; line-height: 1.28; background: #fff; border: var(--bw) solid var(--ink);
  border-radius: 24px; padding: 14px 24px 16px; box-shadow: var(--shadow-sm);
}
.hw-row.last p { background: var(--mint-soft); }
