/* v1.7.46 – BS100 trang chủ "WOW" (Gemini × 3 + Canvas × 3, anh Huu duyệt đợt 1 + 2). Chỉ CSS + SVG: không kính mờ trên thẻ, không vòng lặp nền.
   Easing chung cubic-bezier(0.22,1,0.36,1); 150–180 ms nút, 260–320 ms mở rộng, 500–650 ms vẽ biểu đồ. */
:root { --wow-ez: cubic-bezier(0.22,1,0.36,1); }

/* W0 – nền "bản vẽ toán" + vệt sáng theo ngón tay */
.wow-sp { position: relative; isolation: isolate; --mx: 78%; --my: 24%; }
.wow-sp > .wow-bp { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; color: currentColor; opacity: .07;
  -webkit-mask-image: radial-gradient(circle at 80% 25%, #000 15%, transparent 75%); mask-image: radial-gradient(circle at 80% 25%, #000 15%, transparent 75%); }
.wow-sp > .wow-light { position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(45, 212, 191, .18), transparent 70%); transition: background-position .15s; }
.tc-hero.wow-sp > .wow-bp { color: var(--accent); opacity: .09; }
.tc-hero.wow-sp > .wow-light { background: radial-gradient(520px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%); }

/* K1 – sân khấu "Word → đề" */
.tc-h2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.tc h1 { font-size: 48px; }
.wow-st { gap: 10px; }
.wow-st .tc-vt { font-size: 15px; } .wow-st .tc-vt i { font-size: 14px; } .wow-cnt span { font-variant-numeric: tabular-nums; }
.wow-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; counter-reset: b; }
.wow-steps li { counter-increment: b; display: flex; align-items: center; min-height: 40px; line-height: 1.25; font-size: 13.5px; font-weight: 700; color: var(--muted); padding: 6px 8px 6px 30px; border-radius: 10px; background: var(--soft); position: relative; transition: background .3s var(--wow-ez), color .3s; }
.wow-steps li::before { content: counter(b); position: absolute; left: 7px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; background: var(--surface); color: var(--muted); }
.wow-st[data-ph="0"] .wow-steps li:nth-child(1), .wow-st[data-ph="1"] .wow-steps li:nth-child(2), .wow-st[data-ph="2"] .wow-steps li:nth-child(2), .wow-st[data-ph="3"] .wow-steps li:nth-child(3) { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--accent); }
.wow-st[data-ph="1"] .wow-steps li:nth-child(1), .wow-st[data-ph="2"] .wow-steps li:nth-child(1), .wow-st[data-ph="3"] .wow-steps li:nth-child(-n+2) { color: var(--accent); }
.wow-st[data-ph="1"] .wow-steps li:nth-child(1)::before, .wow-st[data-ph="2"] .wow-steps li:nth-child(1)::before, .wow-st[data-ph="3"] .wow-steps li::before { background: var(--accent); color: #fff; }
.wow-box { position: relative; border-radius: 14px; overflow: hidden; }
.wow-out { display: grid; gap: 10px; }
.wow-st .tc-q p { font-size: 15.5px; } .wow-st .tc-q > span { font-size: 12.5px; } .wow-st .tc-o i, .wow-st .tc-r i { font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; }
.wow-st .tc-o i.dung svg { color: #15803d; }
.wow-raw { position: absolute; inset: 0; z-index: 2; background: #fff; color: #1e293b; border: 1px dashed #cbd5e1; border-radius: 14px; padding: 14px 16px; font: 15px/1.7 'Times New Roman', Georgia, serif; clip-path: inset(0 0 0 0); }
.wow-raw p { margin: 0 0 6px; } .wow-raw p.h { font-weight: 700; text-align: center; font-size: 14px; margin-bottom: 10px; }
.wow-scan { position: absolute; left: 0; right: 0; top: 0; height: 3px; will-change: transform; z-index: 3; opacity: 0; pointer-events: none; background: linear-gradient(90deg, transparent, var(--accent), transparent); box-shadow: 0 0 18px 4px color-mix(in srgb, var(--accent) 45%, transparent); }
.wow-cur { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; color: var(--muted); min-height: 44px; opacity: 0; transition: opacity .3s; }
.wow-cur input { flex: 1; accent-color: var(--accent); min-height: 32px; cursor: ew-resize; }
.wow-st[data-ph="3"] .wow-cur { opacity: 1; }
.wow-st .tc-vb { opacity: 0; transition: opacity .3s .1s; } .wow-st[data-ph="3"] .tc-vb { opacity: 1; }
.wow-mau { display: flex; gap: 8px; justify-content: center; margin-top: 12px; position: relative; z-index: 1; flex-wrap: wrap; }
.wow-mau button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--accent); background: var(--surface); color: var(--accent); font: 700 14.5px/1 var(--f-body); cursor: pointer; }
.wow-mau button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.wow-mau button:focus-visible, .wow-cur input:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
@media (max-width: 900px) { .tc h1 { font-size: 40px; } }
/* K3 – điện thoại: bằng chứng ngay dưới tiêu đề (thẻ 1 câu), nút xuống dưới */
@media (max-width: 600px) {
  .tc-h2 { display: flex; flex-direction: column; gap: 0; align-items: stretch; }
  .tc-hl { display: contents; }
  .tc-hl > .tc-pill { order: 1; align-self: flex-start; } .tc-hl > h1 { order: 2; } .tc-vg { order: 3; margin: 4px 0 18px; } .tc-hl > .tc-en { order: 4; } .tc-hl > .tc-lead { order: 5; } .tc-hl > .tc-cta { order: 6; } .tc-hl > .tc-hs { order: 7; } .tc-hl > .tc-tick { order: 8; }
  .tc h1 { font-size: 34px; }
  .wow-st .wow-q2, .wow-raw .wow-r2, .wow-st .wow-steps, .wow-st .tc-vb, .wow-raw p.h { display: none; }   /* thẻ 1 câu gọn: nút chính vẫn nằm trong màn đầu */
  .wow-st { padding: 12px; gap: 8px; } .wow-st .tc-q { padding: 10px 12px; } .wow-st .tc-q p { font-size: 15px; margin: 2px 0 6px; }
  .wow-raw { font-size: 14px; line-height: 1.55; padding: 10px 12px; } .wow-cur { min-height: 36px; font-size: 13px; }
  .tc-hl > .tc-en { display: none; } .tc-hl > .tc-lead { font-size: 16px; }
  .tc-vg { padding: 0; } .wow-mau { display: none; }   /* đổi mẫu Toán / Ngữ văn chỉ trên máy tính – điện thoại ưu tiên nút chính trong màn đầu */
  .wow-steps li { font-size: 12.5px; padding-left: 26px; } .wow-steps li::before { left: 5px; }
  .wow-st .tc-o i { font-size: 14px; }
}

/* G – dải "Hôm nay" của giáo viên */
.wow-hn { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; margin: 16px 0 0; }
.wow-t { background: var(--surface); border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line)); border-radius: 18px; padding: 16px 18px; box-shadow: 0 8px 24px -6px rgba(10, 60, 55, .10); min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.wow-th { display: flex; align-items: baseline; gap: 8px; } .wow-th > span { font-weight: 700; font-size: 15px; margin-right: auto; }
.wow-avg { font: 800 28px/1 var(--f-display); color: var(--ink); font-variant-numeric: tabular-nums; } .wow-th small { color: var(--muted); font-size: 14px; }
.wow-tb { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.wow-ring { width: 84px; height: 84px; transform: rotate(-90deg); flex: none; } .wow-ring circle { fill: none; stroke-width: 10; } .wow-ring .bg { stroke: var(--soft); } .wow-ring .a { stroke: var(--accent); } .wow-ring .b { stroke: #f59e0b; }
.wow-rw { position: relative; width: 84px; height: 84px; flex: none; } .wow-big { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; } .wow-big b { display: block; font: 800 24px/1 var(--f-display); font-variant-numeric: tabular-nums; } .wow-big small { font-size: 12.5px; color: var(--muted); }
.wow-lg { list-style: none; margin: 0 0 0 4px; padding: 0; display: grid; gap: 6px; font-size: 14.5px; } .wow-lg i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; } .wow-lg i.a { background: var(--accent); } .wow-lg i.b { background: #f59e0b; }
.wow-go { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 12px; background: color-mix(in srgb, #f59e0b 16%, var(--surface)); color: #92400e; font-weight: 700; text-decoration: none; }
.wow-go:hover { background: color-mix(in srgb, #f59e0b 26%, var(--surface)); }
.wow-ok { display: inline-flex; align-items: center; gap: 6px; color: #15803d; font-size: 14.5px; font-weight: 600; }
.wow-tr { position: relative; } .wow-tr svg { width: 100%; height: 96px; display: block; overflow: visible; }
.wow-tr .ln { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.wow-tr .ar { fill: color-mix(in srgb, var(--accent) 14%, transparent); stroke: none; }
.wow-pt { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 0; background: transparent; border-radius: 50%; cursor: pointer; padding: 0; }
.wow-pt::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--surface); border: 2.5px solid var(--accent); transition: transform .15s; }
.wow-pt.on::after, .wow-pt:hover::after { transform: scale(1.35); background: var(--accent); }
.wow-pt:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.wow-tip { position: absolute; transform: translate(-50%, -150%); white-space: nowrap; background: var(--ink); color: var(--surface); font-size: 13px; font-weight: 600; padding: 5px 9px; border-radius: 8px; pointer-events: none; opacity: 0; transition: opacity .15s; }
.wow-tip.on { opacity: 1; } .wow-tip.r { transform: translate(-92%, -150%); } .wow-tip.l { transform: translate(-8%, -150%); }
.wow-tx { display: grid; grid-template-columns: repeat(7, 1fr); font-size: 12.5px; color: var(--muted); text-align: center; margin: 0 -2px; }
.wow-tr0 { color: var(--muted); font-size: 14.5px; margin: 6px 0; }
.hr-c .hr-r { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; } .hr-c .hr-r b { color: var(--ink); }
.hr-c i.wow-g { transition: width .6s var(--wow-ez); }
/* G1 – một nút chính có ánh quét nhẹ (mỗi 6 giây, chỉ transform – chạy trên lớp tổng hợp GPU) */
.hg-b.pri.wow-sheen { position: relative; overflow: hidden; }
.hg-b.pri.wow-sheen::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: translateX(-120%); animation: wow-sheen 6s var(--wow-ez) 1.2s infinite; pointer-events: none; }
@keyframes wow-sheen { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(320%); } }
.hg-acts .hg-b.wow-phu { background: transparent; border-color: transparent; text-decoration: underline; text-underline-offset: 3px; padding-inline: 10px; }
@media (max-width: 760px) { .wow-hn { grid-template-columns: minmax(0, 1fr); } }

/* H – học sinh */
.hg2-h { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; } .hg2-h > div:first-child { min-width: 0; }
.wow-tuan { margin-left: auto; background: var(--surface); border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line)); border-radius: 16px; padding: 10px 14px; display: grid; gap: 8px; min-width: 260px; }
.wow-d7 { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.wow-d7 li { display: grid; justify-items: center; gap: 2px; font-size: 12.5px; color: var(--muted); }
.wow-d7 li i { width: 26px; height: 26px; border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--accent) 35%, var(--line)); display: grid; place-items: center; }
.wow-d7 li.on i { border: 0; background: var(--accent); color: #fff; } .wow-d7 li.on i svg { width: 14px; height: 14px; }
.wow-wkh { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; } .wow-wkh b { font-variant-numeric: tabular-nums; }
.wow-bar { height: 8px; border-radius: 99px; background: var(--soft); overflow: hidden; } .wow-bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--accent), #2dd4bf); }
.hg2-st svg.wow-fl { color: #f59e0b; transform-origin: 50% 90%; }
.hf2.wow-sp > .wow-bp { color: #ccfbf1; opacity: .07; }
.wow-cd { display: inline-flex; align-self: flex-start; width: fit-content; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 10px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); font-weight: 700; font-size: 14px; margin: 0 0 10px; }
.wow-cd.gap { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.wow-ex { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--wow-ez); } .wow-ex.mo { grid-template-rows: 1fr; } .wow-ex > .hn-l { overflow: hidden; min-height: 0; }
.wow-ex.mo > .hn-l { margin-top: 8px; }
.wow-them { min-height: 44px; margin-top: 8px; width: 100%; border: 1px dashed color-mix(in srgb, var(--accent) 35%, var(--line)); background: transparent; border-radius: 12px; color: var(--accent); font: 700 14.5px/1 var(--f-body); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.wow-them[aria-expanded="true"] svg { transform: rotate(180deg); } .wow-them svg { transition: transform .3s var(--wow-ez); }
@media (min-width: 1200px) { .hh-s { --wow-col: 1; } }
@media (max-width: 600px) { .wow-tuan { margin-left: 0; width: 100%; min-width: 0; } .wow-d7 { justify-content: space-between; } }

/* H4 – pháo giấy khi nộp bài */
.wow-phao { position: fixed; z-index: 9999; width: 0; height: 0; pointer-events: none; } .wow-phao svg { position: absolute; left: 0; top: 0; }

@media (prefers-reduced-motion: reduce) {
  .hg-b.pri.wow-sheen::after { animation: none; display: none; }
  .wow-ex, .wow-them svg, .wow-steps li, .wow-pt::after { transition: none; }
  /* v1.7.47: thanh kéo so sánh + khung hiệu ứng ở sân khấu khách cũng không trượt khi người dùng xin giảm chuyển động */
  .tc-hero .wow-cur, .tc-hero .tc-vb, .tc-hero .wow-cur *, .tc-hero .tc-vb * { transition: none !important; }
}
