/* TikPlus Agent Challenge 2026 — styles */
:root {
  /* Màu logo TikPlus Vietnam (xem DESIGN.md) — dùng cho nền, viền, mảng màu */
  --brand-pink: #ec1c8e;
  --brand-red: #ef4136;
  --brand-coral: var(--brand-red);
  /* Sắc đậm của chính màu logo — dùng cho CHỮ và nền có chữ nhỏ (đạt WCAG AA 4,5:1) */
  --pink-ink: #c31072;
  --red-ink: #cc1b10;
  --accent-orange: var(--red-ink);
  --ink: #1E1A1D;
  --body: #4A4347;
  --muted: #5E565B;
  --surface-blush: #FFF3F8;
  --surface-pink: #FCE1EE;
  --line-pink: #F6C9DD;
  --peach: #FDE8E6;
  --white: #fff;
  --success: #0E8A55;
  --success-bg: #E7F6EE;
  --danger: #C8102E;
  --danger-bg: #FDECEE;
  --gold: #E3A008;
  --silver: #8A93A3;
  --bronze: #C26B2B;

  /* Gradient logo: đỏ → hồng. Bản deep dùng khi trên nền có chữ trắng cỡ nhỏ */
  --grad: linear-gradient(115deg, var(--brand-red), var(--brand-pink));
  --grad-deep: linear-gradient(115deg, #d91d11, #c81175);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(30, 26, 29, .04), 0 8px 24px rgba(236, 28, 142, .07);
  --shadow-lg: 0 18px 48px rgba(236, 28, 142, .18);
  --header-h: 64px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px; line-height: 1.6;
  color: var(--body); background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { color: var(--ink); font-weight: 800; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--pink-ink); }
b, strong { color: var(--ink); font-weight: 700; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }

.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.container-narrow { max-width: 820px; }
@media (min-width: 768px) { .container { padding: 0 28px; } }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid rgba(236, 28, 142, .45); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .25s ease, background-size .35s ease, color .25s ease, border-color .25s ease, opacity .15s;
  white-space: nowrap;
}
.btn:hover:not([disabled]) { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
@media (prefers-reduced-motion: reduce) { .btn:hover:not([disabled]) { transform: none; } }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-sm { min-height: 38px; padding: 6px 14px; font-size: 14px; }
.btn-lg { min-height: 52px; padding: 12px 26px; font-size: 16px; }
.btn-primary { background: var(--grad-deep); color: #fff; box-shadow: 0 6px 18px rgba(236, 28, 142, .28); }
.btn-primary:hover:not([disabled]) { box-shadow: 0 10px 24px rgba(236, 28, 142, .38); filter: brightness(1.1) saturate(1.15); }
.btn-outline { background: #fff; color: var(--pink-ink); border-color: var(--line-pink); }
.btn-outline:hover { border-color: var(--brand-pink); background-color: var(--surface-pink); }
.btn-light { background: #fff linear-gradient(115deg, #d91d11, #c81175) no-repeat left center / 0% 100%; color: var(--pink-ink); box-shadow: 0 10px 28px rgba(30, 26, 29, .18); }
.btn-light:hover { background-size: 100% 100%; color: #fff; border-color: #fff; }
.btn-ghost-light { background: rgba(255, 255, 255, .12) linear-gradient(#fff, #fff) no-repeat left center / 0% 100%; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost-light:hover { background-size: 100% 100%; color: var(--pink-ink); border-color: #fff; }
.btn.is-loading .ic { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-pink); background: #fff; color: var(--ink); cursor: pointer; }
.icon-btn .ic { width: 22px; height: 22px; }

/* ---------- Demo banner ---------- */
.demo-banner { display: flex; gap: 8px; align-items: center; justify-content: center; padding: 8px 16px; background: var(--peach); color: var(--ink); font-size: 13px; text-align: center; }
.demo-banner .ic { color: var(--red-ink); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--surface-pink); }
.header-inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 600; margin-right: auto; }
.brand-text { font-size: 15px; }
.brand-text b { font-weight: 800; }
.logo-slot { display: flex; align-items: center; height: 36px; }
.logo-slot img { height: 36px; width: auto; }
.logo-slot.has-logo + .brand-text { display: none; }
.logo-placeholder {
  display: inline-grid; place-items: center; height: 36px; min-width: 56px; padding: 0 8px;
  border: 2px dashed var(--brand-pink); border-radius: 8px; color: var(--pink-ink);
  font-size: 11px; font-weight: 800; letter-spacing: .12em; background: var(--surface-blush);
}
.main-nav { display: flex; gap: 4px; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 999px; }
.main-nav a:hover { background: var(--surface-blush); color: var(--pink-ink); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-grid; }
  .main-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 16px 16px;
    background: #fff; border-bottom: 1px solid var(--line-pink); box-shadow: 0 12px 24px rgba(30, 26, 29, .08);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px; font-size: 16px; border-radius: 10px; }
}
@media (max-width: 400px) { .header-inner { gap: 10px; } .brand { gap: 8px; } .brand-text { font-size: 14px; } }
@media (max-width: 340px) { .brand-text { display: none; } }

/* ---------- Hero ---------- */
/* Hero kiểu poster Fun Fest: than chì bên trái hòa dần sang hồng đỏ bên phải, phủ hạt nhiễu mịn */
.hero { position: relative; color: #fff; overflow: hidden; background: #1a1418; --cyan: #25f4ee; }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(55% 60% at 8% 0%, rgba(160, 160, 170, .28), transparent 70%),
    radial-gradient(80% 110% at 100% 30%, #e01e5a 0%, #cf1650 30%, rgba(160, 15, 70, .55) 55%, transparent 80%),
    radial-gradient(60% 70% at 85% 110%, rgba(217, 29, 17, .75), transparent 70%),
    linear-gradient(105deg, #18131a 0%, #231a20 30%, #5c0f35 58%, #b5124a 80%, #d2164f 100%);
}
@media (max-width: 767px) {
  .hero-bg {
    background:
      radial-gradient(100% 40% at 0% 0%, rgba(160, 160, 170, .26), transparent 70%),
      radial-gradient(130% 60% at 100% 10%, #e01e5a 0%, #cf1650 35%, rgba(160, 15, 70, .5) 60%, transparent 85%),
      linear-gradient(160deg, #18131a 0%, #2a1b22 30%, #6a1039 60%, #c0134c 85%, #d2164f 100%);
  }
}
/* hạt nhiễu mịn kiểu nhung: đốm sáng + đốm tối, độ tương phản thấp */
.hero-bg::before, .hero-bg::after { content: ''; position: absolute; inset: 0; }
.hero-bg::before { opacity: .16; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 3 0 0 0 -1.35'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>"); }
.hero-bg::after { opacity: .14; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -3 0 0 0 1.55'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>"); background-size: 150px 150px; }
.hero-inner { position: relative; padding: 48px 16px 96px; text-align: center; }
@media (min-width: 768px) { .hero-inner { padding: 80px 28px 136px; } }

/* Tiêu đề kiểu "Fun Fest": chữ trắng viền lệch cyan/hồng + chữ bóng gradient + nhãn cyan */
.fest-title { display: flex; flex-direction: column; align-items: center; margin: 0 0 22px; font-weight: 900; text-transform: uppercase; line-height: .92; letter-spacing: -.035em; }
.ft-row { position: relative; padding: .08em .22em; display: flex; flex-wrap: nowrap; white-space: nowrap; justify-content: center; align-items: baseline; gap: 0 .2em; font-size: clamp(2.3rem, 10.6vw, 5.8rem); }
.ft-white { color: #fff; text-shadow: -.03em -.015em 0 #8a0d35, .045em .04em 0 var(--cyan), .07em .09em .12em rgba(60, 0, 20, .5); }
.ft-bubble {
  position: relative; display: inline-block; color: transparent; padding: 0 .04em;
  background: linear-gradient(100deg, var(--cyan) 0%, #9d7bff 22%, #ffd1ec 44%, #ffc24a 60%, #9d7bff 80%, var(--cyan) 100%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 .03em 0 rgba(255, 255, 255, .55)) drop-shadow(.04em .06em 0 rgba(37, 244, 238, .55)) drop-shadow(0 .1em .14em rgba(60, 0, 20, .55));
}
/* lớp bóng sáng (specular) cho cảm giác chữ phồng */
.ft-bubble::after {
  content: attr(data-text); position: absolute; inset: 0; padding: 0 .04em; color: transparent;
  background:
    radial-gradient(ellipse 34% 20% at 24% 26%, rgba(255, 255, 255, .95), transparent 70%),
    radial-gradient(ellipse 22% 14% at 70% 24%, rgba(255, 255, 255, .75), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .5) 0%, transparent 40%, transparent 68%, rgba(40, 0, 30, .4) 100%);
  -webkit-background-clip: text; background-clip: text;
}
/* Rê chuột vào tên: phóng to */
.ft-row { transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); cursor: default; }
.ft-row:hover, .ft-row:active { transform: scale(1.1); }
@media (prefers-reduced-motion: reduce) { .ft-row { transition: none; } .ft-row:hover, .ft-row:active { transform: none; } }

/* Tia điện chạy quanh tiêu đề */
.ft-zap { position: absolute; left: -.12em; top: -.1em; width: calc(100% + .24em); height: calc(100% + .2em); overflow: visible; pointer-events: none; }
.ft-zap rect { fill: none; x: 2px; y: 2px; width: calc(100% - 4px); height: calc(100% - 4px); rx: .28em; }
.zap { filter: url(#zapJitter) drop-shadow(0 0 4px rgba(37, 244, 238, .9)); stroke-linecap: round; }
.zap-a { stroke: var(--cyan); stroke-width: 3.5; stroke-dasharray: 16 84; }
.zap-b { stroke: #fff; stroke-width: 2.5; stroke-dasharray: 9 91; stroke-dashoffset: -50; }
@media (prefers-reduced-motion: no-preference) {
  .zap-a { animation: zapRun 2.6s linear infinite; }
  .zap-b { animation: zapRunB 2.6s linear infinite, zapFlicker .18s steps(2) infinite; }
  @keyframes zapRun { to { stroke-dashoffset: -100; } }
  @keyframes zapRunB { from { stroke-dashoffset: -50; } to { stroke-dashoffset: -150; } }
  @keyframes zapFlicker { 50% { opacity: .35; } }
}
@media (prefers-reduced-motion: reduce) { .zap { display: none; } }
.ft-tag {
  display: inline-flex; align-items: stretch; margin-top: .45em; font-size: clamp(1rem, 4.2vw, 1.65rem); letter-spacing: -.01em;
  transform: rotate(-2deg) skewX(-6deg); border: 3px solid #fff; border-radius: 8px; background: var(--cyan); color: #0b0b14;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .4);
}
.ft-tag-mini { display: grid; place-items: center; padding: .28em .55em; background: #fff; color: #0b0b14; font-size: .4em; line-height: 1.05; letter-spacing: 0; border-right: 3px solid #0b0b14; }
.ft-tag-main { padding: .2em .55em .16em; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .ft-bubble { animation: ftFlow 7s ease-in-out infinite alternate; }
  @keyframes ftFlow { to { background-position: 100% 0; } }
}

/* Slogan: dải hồng đỏ viền cyan như dòng thông tin dưới poster */
.slogan { display: inline-block; font-size: clamp(1.5rem, 4.4vw, 1.75rem); font-weight: 600; line-height: 1.3; padding: 6px 28px 7px; margin-bottom: 20px; border-radius: 2px; background: #f0175a; color: #fff; border: 2px solid #1a0a10; box-shadow: 0 -5px 0 var(--cyan), 0 8px 18px rgba(60, 0, 20, .35); }
.hero-lead { max-width: 640px; margin: 0 auto 28px; font-size: clamp(15px, 2.4vw, 18px); color: rgba(255, 255, 255, .92); }
.hero-lead b { color: #fff; }

.hero-copy { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }

/* Hình minh họa hero: thẻ gợi ý + khung chat trợ lý AI */
.hero-art { position: relative; display: flex; justify-content: center; gap: 16px; margin: 36px auto 0; max-width: 820px; text-align: left; }
.art-card { position: relative; background: #fff; color: var(--ink); border-radius: var(--radius); padding: 16px; flex: 1 1 0; min-width: 0; }
.art-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--ink); margin: 0 0 10px; }
.art-title .ic { color: var(--pink-ink); }
.idea-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.idea-list li { display: flex; gap: 8px; align-items: baseline; font-size: 13px; line-height: 1.35; padding: 7px 10px; border-radius: var(--radius-sm); background: var(--surface-blush); }
.idea-list b { flex: none; min-width: 70px; font-size: 12px; color: var(--pink-ink); }
.idea-list span { color: var(--body); }
.chat-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--surface-pink); }
.chat-head b { display: block; font-size: 14px; line-height: 1.2; }
.chat-head small { font-size: 12px; color: var(--muted); }
.chat-avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-deep); color: #fff; flex: none; }
.chat-avatar .ic { width: 20px; height: 20px; }
.bubble { font-size: 13.5px; line-height: 1.45; padding: 9px 12px; margin: 0 0 8px; max-width: 88%; }
.bubble-me { margin-left: auto; background: var(--ink); color: #fff; border-radius: 14px 14px 4px 14px; }
.bubble-ai { background: var(--surface-blush); color: var(--ink); border: 1px solid var(--line-pink); border-radius: 14px 14px 14px 4px; }
.chat-metric { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--peach); }
.chat-metric span { display: flex; flex-direction: column; line-height: 1.2; }
.chat-metric small { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.chat-metric b { font-size: 18px; font-variant-numeric: tabular-nums; color: var(--muted); text-decoration: line-through; text-decoration-thickness: 2px; }
.chat-metric .is-after b { color: var(--red-ink); text-decoration: none; font-size: 22px; }
.chat-metric > .ic { color: var(--red-ink); width: 22px; height: 22px; }
.art-caption { font-size: 11px; color: var(--muted); margin: 8px 0 0; text-align: right; }

@media (max-width: 599px) {
  .art-ideas { display: none; }
  .art-chat { max-width: 420px; }
}
@media (min-width: 1240px) {
  .hero-inner { padding-top: 88px; padding-bottom: 150px; }
  .hero-copy { max-width: 560px; }
  .hero-art { position: absolute; inset: 0; max-width: none; margin: 0; display: block; pointer-events: none; }
  .art-card { position: absolute; top: 50%; width: 250px; }
  .art-ideas { left: 0; }
  .art-chat { right: 0; width: 272px; }
}

/* ---- 3D: 2 thẻ minh họa nghiêng vào giữa, có lớp kính phía sau, nội dung nổi theo chiều sâu ---- */
.hero-art { perspective: 1100px; --tx: 0deg; --ty: 0deg; }
.art-card {
  transform-style: preserve-3d;
  --base-y: 0deg; --base-x: 4deg; --lift: 0px;
  transform: translateY(var(--lift)) rotateX(calc(var(--base-x) + var(--tx))) rotateY(calc(var(--base-y) + var(--ty)));
  transition: transform .5s cubic-bezier(.16, 1, .3, 1);
  box-shadow: 0 2px 4px rgba(40, 0, 24, .12), 0 28px 56px -16px rgba(40, 0, 24, .55), 0 44px 72px -34px rgba(200, 17, 117, .55);
}
.art-ideas { --base-y: 14deg; transform-origin: left center; }
.art-chat { --base-y: -14deg; transform-origin: right center; }
@media (max-width: 599px) { .art-chat { --base-y: -8deg; --base-x: 6deg; transform-origin: center; } }
@media (min-width: 1240px) {
  .art-card { --lift: -50%; }
  .art-ideas { --base-y: 22deg; }
  .art-chat { --base-y: -22deg; }
}
/* Lớp kính phía sau tạo độ dày */
.art-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  transform: translateZ(-44px) translate(var(--plate-x, 16px), 18px);
  background: linear-gradient(145deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, .08));
  border: 1px solid rgba(255, 255, 255, .55);
  box-shadow: inset 0 0 24px rgba(255, 255, 255, .18);
}
.art-chat::before { --plate-x: -16px; }
/* Vệt sáng quét ngang mặt thẻ */
.art-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  transform: translateZ(60px);
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .55) 50%, transparent 62%) no-repeat;
  background-size: 260% 100%; background-position: 120% 0; opacity: .7;
}
/* Nội dung nổi theo nhiều tầng sâu */
.art-title, .chat-head { transform: translateZ(26px); }
.idea-list li { transform: translateZ(18px); }
.bubble-me { transform: translateZ(40px); }
.bubble-ai { transform: translateZ(32px); }
.chat-metric { transform: translateZ(56px); }
.art-caption { transform: translateZ(14px); }

@media (prefers-reduced-motion: no-preference) {
  .art-card { animation: float-card 7s ease-in-out infinite; }
  .art-chat { animation-delay: -3.5s; }
  .art-card::after { animation: sheen 6s ease-in-out infinite; }
  .art-chat::after { animation-delay: -3s; }
  @keyframes float-card { 50% { translate: 0 -10px; } }
  @keyframes sheen { 0%, 55% { background-position: 120% 0; } 85%, 100% { background-position: -40% 0; } }
}
@media (prefers-reduced-motion: reduce) {
  .art-card { --base-x: 0deg; }
  .art-ideas, .art-chat { --base-y: 0deg; }
}

.countdown-card { max-width: 400px; margin: 0 auto 24px; padding: 12px 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(6px); }
.countdown-label { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; font-size: 13px; margin-bottom: 8px; color: rgba(255, 255, 255, .92); }
.countdown-label b { color: #fff; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.cd-box { background: #fff; color: var(--ink); border-radius: 10px; padding: 5px 2px 4px; display: flex; flex-direction: column; align-items: center; }
.cd-num { font-size: clamp(1.35rem, 5.2vw, 1.85rem); font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--pink-ink); }
.cd-unit { font-size: 10px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.countdown-closed { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; font-weight: 700; font-size: 17px; }

.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
@media (max-width: 480px) { .hero-cta .btn { width: 100%; } }

/* ---------- Infographic đầu trang ---------- */
.info-band { position: relative; z-index: 2; margin-top: -64px; }
.info-panel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 12px; scrollbar-width: none; }
.info-panel::-webkit-scrollbar { display: none; }
.info-block { flex: 0 0 86%; scroll-snap-align: center; margin: 0; padding: 20px; background: #fff; border: 1px solid var(--line-pink); border-radius: 20px; box-shadow: 0 1px 2px rgba(11, 11, 20, .08), 0 16px 36px rgba(200, 17, 117, .12); }
.info-title { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }

@media (min-width: 600px) {
  .info-panel { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; margin: 0; padding: 0; gap: 0; background: #fff; border: 1px solid var(--line-pink); border-radius: 20px; box-shadow: 0 1px 2px rgba(11, 11, 20, .08), 0 20px 44px rgba(200, 17, 117, .14); }
  .info-block { border: 0; border-radius: 0; box-shadow: none; background: none; padding: 24px; }
  .info-formula { grid-column: 1 / -1; border-bottom: 1px solid var(--surface-pink); }
  .info-dates { border-left: 1px solid var(--surface-pink); }
}
@media (min-width: 1180px) {
  .info-panel { grid-template-columns: 1.4fr 1fr 1fr; }
  .info-formula { grid-column: auto; border-bottom: 0; }
  .info-score, .info-dates { border-left: 1px solid var(--surface-pink); }
  .info-block { padding: 26px 28px; }
}

/* Công thức: Vấn đề → Trợ lý Claude → Kết quả */
.formula { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-start; }
.f-node { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.f-ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-pink); color: var(--pink-ink); margin-bottom: 8px; }
.f-ic .ic { width: 24px; height: 24px; }
.f-node.is-core .f-ic { background: var(--grad-deep); color: #fff; box-shadow: 0 0 0 6px rgba(236, 28, 142, .14); }
.f-node b { font-size: 14px; line-height: 1.3; color: var(--ink); }
.f-node small { font-size: 12px; line-height: 1.35; color: var(--muted); }
.f-link { flex: 0 1 56px; min-width: 18px; padding-top: 22px; }
.f-link svg { display: block; width: 100%; height: 8px; overflow: visible; }
.f-link line { stroke: var(--brand-pink); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 7; }
@media (max-width: 599px) {
  .f-link { flex: 0 0 14px; min-width: 14px; }
  .f-ic { width: 46px; height: 46px; }
  .f-node b { font-size: 13px; }
  .f-node small { font-size: 11.5px; }
}

/* Vòng tròn thang điểm */
.score-wrap { display: flex; align-items: center; gap: 18px; }
.donut { width: 128px; height: 128px; flex: none; }
.donut circle { fill: none; stroke-width: 15; }
.donut-track { stroke: var(--surface-blush); }
.donut-seg { stroke-dasharray: var(--len) 100; stroke-dashoffset: var(--off); transform: rotate(-90deg); transform-origin: 60px 60px; }
.seg-1 { stroke: var(--pink-ink); }
.seg-2 { stroke: var(--red-ink); }
.seg-3 { stroke: var(--ink); }
.donut-num { font: 800 25px 'Be Vietnam Pro', sans-serif; fill: var(--ink); text-anchor: middle; dominant-baseline: middle; font-variant-numeric: tabular-nums; }
.donut-unit { font: 600 11px 'Be Vietnam Pro', sans-serif; fill: var(--muted); text-anchor: middle; }
.score-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; line-height: 1.3; color: var(--body); }
.score-legend li { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.score-legend b { min-width: 22px; font-size: 16px; color: var(--ink); font-variant-numeric: tabular-nums; }
.sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.sw-1 { background: var(--pink-ink); } .sw-2 { background: var(--red-ink); } .sw-3 { background: var(--ink); }

/* 3 mốc */
.mini-tl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.mini-tl::before, .mini-tl::after { content: ''; position: absolute; top: 7px; left: 16.66%; right: 16.66%; height: 3px; border-radius: 3px; background: var(--surface-pink); }
.mini-tl::after { background: linear-gradient(90deg, var(--brand-pink), var(--brand-red)); transform-origin: left center; }
.mini-tl li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.mt-dot { width: 17px; height: 17px; border-radius: 50%; background: #fff; border: 3px solid var(--pink-ink); margin-bottom: 10px; }
.mini-tl .is-final .mt-dot { background: var(--pink-ink); box-shadow: 0 0 0 5px rgba(236, 28, 142, .16); }
.mini-tl b { font-size: 20px; font-weight: 800; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.mini-tl small { font-size: 12px; line-height: 1.35; color: var(--muted); }

/* Hiệu ứng: chỉ chạy khi JS gắn is-armed → is-in; không JS thì hiện sẵn. */
@media (prefers-reduced-motion: no-preference) {
  .f-link line { animation: flow 1.1s linear infinite; }
  @keyframes flow { to { stroke-dashoffset: -18; } }
  .f-node.is-core .f-ic { animation: core-ring 2.6s ease-in-out infinite; }
  @keyframes core-ring { 50% { box-shadow: 0 0 0 11px rgba(236, 28, 142, .06); } }

  .info-panel.is-armed .f-node, .info-panel.is-armed .f-link { opacity: 0; transform: translateY(12px); }
  .info-panel.is-armed .donut-seg { stroke-dasharray: 0 100; }
  .info-panel.is-armed .mini-tl::after { transform: scaleX(0); }
  .info-panel.is-armed .mini-tl li { opacity: 0; transform: translateY(8px); }

  .info-panel.is-in .f-node, .info-panel.is-in .f-link { opacity: 1; transform: none; transition: opacity .5s ease-out calc(var(--i, 0) * 160ms + 150ms), transform .7s cubic-bezier(.16, 1, .3, 1) calc(var(--i, 0) * 160ms + 150ms); }
  .info-panel.is-in .f-link { transition-delay: 300ms; }
  .info-panel.is-in .donut-seg { stroke-dasharray: var(--len) 100; transition: stroke-dasharray 1.1s cubic-bezier(.16, 1, .3, 1) calc(var(--i) * 220ms + 350ms); }
  .info-panel.is-in .mini-tl::after { transform: scaleX(1); transition: transform 1.3s cubic-bezier(.16, 1, .3, 1) .5s; }
  .info-panel.is-in .mini-tl li { opacity: 1; transform: none; transition: opacity .45s ease-out calc(var(--i) * 260ms + 500ms), transform .6s cubic-bezier(.16, 1, .3, 1) calc(var(--i) * 260ms + 500ms); }
}

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
@media (min-width: 768px) { .section { padding: 88px 0; } }
.section-blush { background: var(--surface-blush); }
.section-head { margin-bottom: 28px; max-width: 720px; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; max-width: none; flex-wrap: wrap; }
.section-head h2 { margin-bottom: 8px; }
.section-sub { color: var(--muted); margin: 0; }

/* Icon 3D (minh họa) */
.i3d { display: inline-block; flex: none; width: 44px; height: 44px; vertical-align: middle; }
.i3d svg { display: block; width: 100%; height: 100%; overflow: visible; }
.card-title .i3d { width: 40px; height: 40px; margin: -6px 2px -6px -4px; }
.card-icon.is-3d { background: none; width: 52px; height: 52px; padding: 0; }
.card-icon.is-3d .i3d { width: 52px; height: 52px; }
.countdown-label .i3d { width: 24px; height: 24px; }
.stairs-floor .i3d { width: 40px; height: 40px; }
.tip-card h3 .i3d, .lookup .i3d { width: 36px; height: 36px; }
.register-intro .h2-i3d { display: flex; align-items: center; gap: 10px; }
.register-intro .h2-i3d .i3d { width: 64px; height: 64px; margin: -10px 0; }

/* Nhân vật TikPlus đứng cạnh tiêu đề mục */
.section-head.has-mascot { display: grid; grid-template-columns: auto auto; justify-content: start; align-items: end; column-gap: 12px; }
.section-head.has-mascot > :not(.mascot) { grid-column: 1; }
.mascot { grid-column: 2; grid-row: 1 / span 3; align-self: end; width: 84px; margin: -28px 0 -18px; pointer-events: none; }
.mascot svg { display: block; width: 100%; height: auto; overflow: visible; }
@media (min-width: 768px) { .mascot { width: 128px; margin: -48px 0 -30px 8px; } }
@media (prefers-reduced-motion: no-preference) {
  .mascot svg { animation: mascotBob 3.6s ease-in-out infinite; transform-origin: 50% 100%; }
  .section-head .mascot:nth-of-type(odd) svg { animation-delay: -1.8s; }
  @keyframes mascotBob { 50% { transform: translateY(-5px) rotate(-1.5deg); } }
}

.grid-3 { display: grid; gap: 16px; }
@media (min-width: 820px) { .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.card { background: #fff; border: 1px solid var(--line-pink); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-pink); color: var(--pink-ink); margin-bottom: 14px; flex: none; }
.card-icon .ic { width: 22px; height: 22px; }
.card-title { display: flex; align-items: center; gap: 10px; }
.card-title .ic { width: 24px; height: 24px; color: var(--pink-ink); }
.card p:last-child { margin-bottom: 0; }

.check-list, .num-list { margin: 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 26px; margin-bottom: 6px; }
.check-list li::before { content: ''; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%; background: var(--surface-pink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C31072' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/10px no-repeat; }
.num-list { counter-reset: n; }
.num-list li { counter-increment: n; position: relative; padding-left: 34px; margin-bottom: 10px; }
.num-list li::before { content: counter(n); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--grad-deep); color: #fff; font-size: 13px; font-weight: 800; display: grid; place-items: center; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 13px; font-weight: 600; color: var(--ink); background: var(--surface-blush); border: 1px solid var(--line-pink); padding: 4px 10px; border-radius: 999px; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.tl-item { position: relative; padding: 0 0 22px 52px; }
.tl-item::before { content: ''; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: var(--line-pink); }
.tl-item:last-child::before { display: none; }
.tl-dot { position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line-pink); color: var(--muted); }
.tl-dot .ic { width: 18px; height: 18px; }
.tl-card { background: #fff; border: 1px solid var(--line-pink); border-radius: 14px; padding: 14px 16px; }
.tl-date { font-size: 13px; font-weight: 700; color: var(--pink-ink); margin: 0 0 2px; }
.tl-title { font-size: 1.05rem; margin: 0 0 4px; }
.tl-desc { font-size: 14px; color: var(--muted); margin: 0; }
.tl-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; margin-bottom: 6px; }
.tl-item.is-done .tl-dot { background: var(--pink-ink); border-color: var(--pink-ink); color: #fff; }
.tl-item.is-done::before { background: var(--brand-pink); }
.tl-item.is-done .tl-card { opacity: .78; }
.tl-item.is-done .tl-badge { background: var(--surface-pink); color: var(--pink-ink); }
.tl-item.is-current .tl-dot { background: var(--grad-deep); border: 0; color: #fff; box-shadow: 0 0 0 6px rgba(236, 28, 142, .18); animation: pulse 2s ease-in-out infinite; }
.tl-item.is-current .tl-card { border-color: var(--brand-pink); box-shadow: var(--shadow-lg); }
.tl-item.is-current .tl-badge { background: var(--grad-deep); color: #fff; }
.tl-item.is-next .tl-badge { background: var(--peach); color: var(--red-ink); }
.tl-item.is-next .tl-dot { border-color: var(--accent-orange); color: var(--red-ink); }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(236, 28, 142, .08); } }

@media (min-width: 960px) {
  .timeline { grid-template-columns: repeat(5, 1fr); gap: 14px; }
  .tl-item { padding: 56px 0 0; }
  .tl-item::before { left: 40px; right: -14px; top: 19px; bottom: auto; width: auto; height: 2px; }
  .tl-card { height: 100%; }
}

/* ---------- Prizes: bậc thang ---------- */
/* Mobile: bậc thang đổ xuống (thanh ngắn dần). Desktop: bậc thang đi lên từ trái sang phải. */
.stairs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.stair { display: flex; align-items: center; gap: 12px; }
.stair-2 { padding-right: 7%; }
.stair-3 { padding-right: 14%; }
.stair-kk { padding-right: 21%; }
.stair-art { flex: none; width: 60px; height: 72px; display: block; }
.stair-1 .stair-art { width: 72px; height: 72px; }
.stair-step { position: relative; flex: 1; min-width: 0; overflow: hidden; border-radius: var(--radius); padding: 14px 18px; background: var(--surface-blush); border: 1px solid var(--line-pink); }
/* Số chìm trang trí: đặt trong ::before để không phải là nội dung chữ */
.stair-num { position: absolute; right: 10px; bottom: -.28em; font-size: 88px; font-weight: 800; line-height: 1; color: var(--pink-ink); opacity: .1; pointer-events: none; font-variant-numeric: tabular-nums; }
.stair-num::before { content: attr(data-n); }
.stair-rank { position: relative; margin: 0 0 2px; font-weight: 800; color: var(--ink); font-size: 1rem; }
.stair-rank span { font-weight: 600; color: var(--muted); }
.stair-amount { position: relative; margin: 0; font-weight: 800; font-size: clamp(1.4rem, 6vw, 2rem); line-height: 1.15; color: var(--pink-ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.stair-amount span { font-size: .6em; margin-left: 2px; }
.stair-1 .stair-step { background: var(--grad-deep); border-color: transparent; }
.stair-1 .stair-rank, .stair-1 .stair-rank span, .stair-1 .stair-amount { color: #fff; }
.stair-1 .stair-num { color: #fff; opacity: .16; }
.stair-1 .stair-amount { font-size: clamp(1.75rem, 7.5vw, 2.6rem); }
.stair-2 .stair-step { background: var(--surface-pink); }
.stair-3 .stair-step { background: var(--peach); }
.stair-3 .stair-amount { color: var(--red-ink); }
.stair-kk .stair-amount { color: var(--red-ink); }

.stairs-floor { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; padding: 14px 18px; border-radius: var(--radius); background: var(--ink); color: rgba(255, 255, 255, .86); font-size: 15px; }
.stairs-floor b { color: #fff; }
.stairs-floor .ic { color: #FF8CC6; margin-top: 3px; }

@media (min-width: 820px) {
  .stairs { flex-direction: row-reverse; align-items: flex-end; gap: 0; }
  .stair { flex: 1 1 0; flex-direction: column; align-items: stretch; gap: 0; padding: 0 !important; }
  .stair + .stair { margin-right: -1px; }
  .stair-art { width: 88px; height: 104px; margin: 0 auto 12px; }
  .stair-1 .stair-art { width: 132px; height: 132px; }
  .stair-step { flex: none; border-radius: var(--radius) var(--radius) 0 0; border-bottom: 0; padding: 22px 22px; text-align: center; }
  .stair-1 .stair-step { height: 260px; }
  .stair-2 .stair-step { height: 205px; }
  .stair-3 .stair-step { height: 160px; }
  .stair-kk .stair-step { height: 118px; }
  .stair-num { right: 50%; transform: translateX(50%); bottom: -.22em; font-size: 150px; }
  .stair-1 .stair-num { font-size: 200px; }
  .stair-amount { font-size: clamp(1.5rem, 2.4vw, 2rem); }
  .stair-1 .stair-amount { font-size: clamp(2rem, 3.4vw, 2.8rem); }
  .stairs-floor { margin-top: 0; border-radius: 0 0 var(--radius) var(--radius); justify-content: center; text-align: center; }
}

/* Khoảnh khắc chuyển động duy nhất của trang: các bậc mọc lên khi cuộn tới (chỉ khi JS bật). */
@media (min-width: 820px) and (prefers-reduced-motion: no-preference) {
  .stairs.is-armed .stair-step { clip-path: inset(100% 0 0 0 round var(--radius) var(--radius) 0 0); }
  .stairs.is-armed .stair-art { opacity: 0; transform: translateY(24px); }
  .stairs.is-in .stair-step { clip-path: inset(0 0 0 0 round var(--radius) var(--radius) 0 0); transition: clip-path .9s cubic-bezier(.16, 1, .3, 1) calc(var(--i) * 120ms); }
  .stairs.is-in .stair-art { opacity: 1; transform: none; transition: opacity .5s ease-out calc(var(--i) * 120ms + 450ms), transform .7s cubic-bezier(.16, 1, .3, 1) calc(var(--i) * 120ms + 450ms); }
}

/* Đối tượng: 28 chấm = 28 nhân sự */
.people { display: grid; grid-template-columns: repeat(7, 18px); gap: 8px; margin: 4px 0 10px; }
.people span { width: 18px; height: 18px; border-radius: 50%; background: var(--pink-ink); }
.people span.intern { background: #fff; border: 2.5px solid var(--pink-ink); }
.people-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px; color: var(--muted); margin: 0 0 14px !important; }
.lg-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pink-ink); display: inline-block; }
.lg-dot.intern { background: #fff; border: 2px solid var(--pink-ink); margin-left: 8px; }

/* ---------- Rubric ---------- */
.rubric-bar { display: flex; height: 40px; border-radius: 999px; overflow: hidden; margin-bottom: 20px; font-weight: 800; color: #fff; }
.rubric-bar span { display: grid; place-items: center; }
.rubric-bar span:nth-child(1) { background: var(--pink-ink); }
.rubric-bar span:nth-child(2) { background: var(--red-ink); }
.rubric-bar span:nth-child(3) { background: var(--ink); }
.rubric-top { display: flex; justify-content: space-between; align-items: flex-start; }
.rubric-pts { font-size: 2.2rem; font-weight: 800; color: var(--pink-ink); line-height: 1; margin: 0; }
.rubric-pts small { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.rubric:nth-child(2) .rubric-pts, .rubric:nth-child(2) .card-icon { color: var(--red-ink); }
.rubric:nth-child(3) .rubric-pts, .rubric:nth-child(3) .card-icon { color: var(--ink); }
.rubric:nth-child(3) .card-icon { background: var(--peach); }

/* ---------- Form ---------- */
.submit-layout { display: grid; gap: 20px; }
@media (min-width: 1000px) { .submit-layout { grid-template-columns: 340px minmax(0, 1fr); align-items: start; } .submit-side { position: sticky; top: calc(var(--header-h) + 16px); } }
.submit-side { display: grid; gap: 16px; }
.tip-card h3 { display: flex; align-items: center; gap: 8px; font-size: 1rem; }
.tip-card h3 .ic { color: var(--pink-ink); }
.tip-card p, .tip-card li { font-size: 14px; }
.share-guide { scroll-margin-top: 88px; }
.share-why { margin: 0 0 12px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-blush); color: var(--ink); }
.name-rule { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 2px; }
.name-rule > code { align-self: flex-start; font-size: 14px; font-weight: 700; padding: 3px 8px; }
.name-rule small { color: var(--muted); font-size: 12.5px; }
.file-kinds { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.file-kinds li { font-size: 13.5px; }
.file-kinds span { display: inline-block; min-width: 58px; margin-right: 6px; padding: 1px 8px; border-radius: 999px; background: var(--pink-ink); color: #fff; font-size: 12px; font-weight: 700; text-align: center; }
.btn-drive { width: 100%; margin-top: 14px; }
.share-kind { margin: 14px 0 8px; }
.share-kind span { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--pink-ink); color: #fff; font-size: 13px; font-weight: 700; }
.share-guide .num-list { margin-bottom: 0; }
.num-list .file-kinds li { counter-increment: none; padding-left: 0; margin-bottom: 0; }
.num-list .file-kinds li::before { content: none; }
.share-guide code { font-size: 12.5px; padding: 1px 5px; border-radius: 4px; background: var(--surface-pink); color: var(--pink-ink); }
.share-note { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--surface-pink); color: var(--muted); }

.form-card { padding: 20px; }
@media (min-width: 768px) { .form-card { padding: 28px; } }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 680px) { .form-grid { grid-template-columns: 1fr 1fr; gap: 18px 20px; } .field-full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 600; color: var(--ink); font-size: 15px; margin-bottom: 6px; }
.req { color: var(--pink-ink); }
.opt { color: var(--muted); font-weight: 400; font-size: 13px; }
input[type=text], input[type=email], input[type=url], input[type=tel], select, textarea {
  width: 100%; font: inherit; font-size: 16px; /* 16px để iOS không tự zoom */
  color: var(--ink); background: #fff; border: 1.5px solid var(--line-pink); border-radius: var(--radius-sm);
  padding: 11px 14px; min-height: 48px; transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none;
}
textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #756C71; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-pink); box-shadow: 0 0 0 4px rgba(236, 28, 142, .12); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); background: #FFFBFC; }
.select-wrap { position: relative; }
.select-wrap select { padding-right: 40px; cursor: pointer; }
.select-wrap .ic { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); }
.field-hint { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.field-error { font-size: 13px; color: var(--danger); margin: 6px 0 0; font-weight: 500; }
.field-error:empty { display: none; }
.field-meta { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.counter { font-size: 12px; color: var(--muted); margin-top: 6px; margin-left: auto; font-variant-numeric: tabular-nums; }
.counter.is-over { color: var(--danger); font-weight: 700; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.checkbox { display: flex !important; gap: 12px; align-items: flex-start; cursor: pointer; font-weight: 500 !important; padding: 14px; border-radius: var(--radius-sm); background: var(--surface-blush); border: 1.5px solid var(--line-pink); }
.checkbox input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.checkbox .box { flex: none; width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--brand-pink); background: #fff; display: grid; place-items: center; color: #fff; margin-top: 1px; }
.checkbox .box .ic { width: 16px; height: 16px; stroke-width: 3; opacity: 0; }
.checkbox input:checked + .box { background: var(--grad-deep); border-color: transparent; }
.checkbox input:checked + .box .ic { opacity: 1; }
.checkbox input:focus-visible + .box { box-shadow: 0 0 0 4px rgba(236, 28, 142, .25); }
.field.has-error .checkbox { border-color: var(--danger); }

.form-actions { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.form-note { font-size: 13px; color: var(--muted); margin: 0; }
@media (max-width: 560px) { .form-actions .btn { width: 100%; } }

.form-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 14px; background: var(--danger-bg); color: var(--danger); border: 1px solid #F5C2CA; }
.form-alert.is-info { background: var(--surface-blush); color: var(--ink); border-color: var(--line-pink); }
.form-alert .ic { margin-top: 2px; }

.closed-box { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: var(--radius); background: var(--ink); color: #fff; margin-bottom: 16px; }
.closed-box > .ic { width: 28px; height: 28px; color: var(--pink-ink); }
.closed-box h3 { color: #fff; margin-bottom: 4px; }
.closed-box p { margin: 0; color: rgba(255, 255, 255, .85); }
.closed-box b { color: #fff; }
.closed-box a { color: #FF8CC6; }
.form-card.is-locked { opacity: .5; pointer-events: none; filter: grayscale(.4); }

/* Confirmation */
.confirm-card { border-color: var(--brand-pink); box-shadow: var(--shadow-lg); outline: none; }
.confirm-head { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.confirm-head h3 { margin: 0 0 2px; font-size: 1.3rem; }
.confirm-head p { margin: 0; color: var(--muted); }
.confirm-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--success-bg); color: var(--success); flex: none; }
.confirm-icon .ic { width: 28px; height: 28px; }
.code-box { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 16px 18px; border-radius: 14px; background: var(--grad-deep); color: #fff; margin-bottom: 14px; }
.code-label { font-size: 13px; font-weight: 600; opacity: .9; width: 100%; }
.code-value { font-size: clamp(2rem, 9vw, 2.6rem); font-weight: 800; letter-spacing: .04em; line-height: 1.1; margin-right: auto; }
.code-box .btn-outline { border-color: #fff; }
.confirm-mail { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; margin-bottom: 16px; }
.confirm-mail .ic { color: var(--pink-ink); margin-top: 3px; }
.confirm-mail.is-warn .ic { color: var(--red-ink); }
.summary { margin: 0 0 18px; display: grid; grid-template-columns: 1fr; border: 1px solid var(--surface-pink); border-radius: 12px; overflow: hidden; }
.summary div { display: grid; grid-template-columns: 1fr; padding: 10px 14px; border-bottom: 1px solid var(--surface-pink); }
.summary div:last-child { border-bottom: 0; }
.summary dt { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.summary dd { margin: 2px 0 0; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
@media (min-width: 680px) { .summary div { grid-template-columns: 180px 1fr; gap: 12px; } .summary dd { margin: 0; } }
.confirm-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 560px) { .confirm-actions .btn { width: 100%; } }

/* Lookup */
.lookup { margin-top: 32px; padding: 22px; border-radius: var(--radius); background: var(--surface-blush); border: 1px solid var(--line-pink); }
.lookup-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.lookup-head .card-icon { margin: 0; }
.lookup-head h3 { margin-bottom: 2px; }
.lookup-head p { margin: 0; color: var(--muted); font-size: 14px; }
.lookup-form { display: grid; gap: 12px; }
@media (min-width: 720px) { .lookup-form { grid-template-columns: minmax(0, 360px) auto; align-items: end; } }
.lookup .form-alert { margin: 14px 0 0; }
.lookup-result { margin-top: 16px; background: #fff; border: 1px solid var(--line-pink); border-radius: 14px; padding: 18px; }
.lookup-result-head { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 12px; }
.lookup-result-head .code-pill { font-size: 1.3rem; }
.code-pill { display: inline-block; font-weight: 800; color: #fff; background: var(--grad-deep); padding: 2px 12px; border-radius: 999px; letter-spacing: .03em; }
.meta { font-size: 13px; color: var(--muted); }
.score-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.score-strip div { background: var(--surface-blush); border-radius: 10px; padding: 8px; text-align: center; }
.score-strip b { display: block; font-size: 1.3rem; color: var(--pink-ink); }
.score-strip span { font-size: 11px; color: var(--muted); line-height: 1.3; display: block; }

/* ---------- Results ---------- */
.results-empty { text-align: center; padding: 40px 20px; }
.results-empty .big-ic { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-deep); color: #fff; }
.results-empty .big-ic .ic { width: 30px; height: 30px; }
.results-empty h3 { font-size: clamp(1.25rem, 4vw, 1.6rem); }
.results-empty p { color: var(--muted); max-width: 520px; margin: 0 auto; }

.honors { margin-bottom: 32px; }
.honors-title { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; margin-bottom: 16px; }
.honors-title .ic { color: var(--pink-ink); }
.podium { display: grid; gap: 14px; }
@media (min-width: 820px) { .podium { grid-template-columns: 1fr 1.15fr 1fr; align-items: end; } .podium .hon-1 { order: 2; } .podium .hon-2 { order: 1; } .podium .hon-3 { order: 3; } }
.hon { border-radius: var(--radius); padding: 22px 18px; background: #fff; border: 1px solid var(--line-pink); box-shadow: var(--shadow); text-align: center; position: relative; }
.hon-1 { background: var(--grad-deep); color: #fff; border: 0; box-shadow: var(--shadow-lg); padding: 30px 18px; }
.hon-1 h4, .hon-1 .hon-name, .hon-1 .hon-prize { color: #fff; }
.hon-medal { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center; }
.hon-medal .ic { width: 28px; height: 28px; }
.hon-1 .hon-medal { background: rgba(255, 255, 255, .22); color: #fff; }
.hon-2 .hon-medal { background: #EEF0F4; color: var(--silver); }
.hon-3 .hon-medal { background: var(--peach); color: var(--bronze); }
.hon-label { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .85; margin: 0; }
.hon-name { font-size: 1.25rem; font-weight: 800; color: var(--ink); margin: 4px 0 2px; }
.hon-team { font-size: 13px; margin: 0 0 8px; opacity: .85; }
.hon-work { font-size: 14px; margin: 0 0 12px; }
.hon-prize { font-weight: 800; font-size: 1.35rem; color: var(--pink-ink); margin: 0; }
.hon-kk { margin-top: 14px; display: grid; gap: 10px; }
@media (min-width: 680px) { .hon-kk { grid-template-columns: repeat(2, 1fr); } }
.hon-kk-item { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line-pink); border-radius: 14px; padding: 12px 14px; }
.hon-kk-item .hon-medal { width: 40px; height: 40px; margin: 0; background: var(--surface-blush); color: var(--red-ink); flex: none; }
.hon-kk-item .hon-medal .ic { width: 20px; height: 20px; }
.hon-kk-item p { margin: 0; }
.hon-kk-item .grow { flex: 1; min-width: 0; }
.hon-kk-item b { display: block; }
.hon-kk-item .amt { font-weight: 800; color: var(--red-ink); white-space: nowrap; }

.results-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; max-width: 100%; }
.filter-chip { flex: none; font: inherit; font-size: 14px; font-weight: 600; padding: 8px 14px; min-height: 40px; border-radius: 999px; border: 1.5px solid var(--line-pink); background: #fff; color: var(--ink); cursor: pointer; white-space: nowrap; }
.filter-chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter-chip .n { opacity: .6; margin-left: 4px; font-weight: 500; }
.updated { font-size: 13px; color: var(--muted); }

.lb { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line-pink); border-radius: var(--radius); overflow: hidden; font-size: 14px; }
.lb th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--surface-pink); padding: 12px; font-weight: 700; white-space: nowrap; }
.lb td { padding: 12px; border-top: 1px solid var(--surface-pink); vertical-align: top; }
.lb .num { text-align: center; font-variant-numeric: tabular-nums; }
.lb .total { font-weight: 800; color: var(--pink-ink); font-size: 1.05rem; }
.lb .rank { font-weight: 800; color: var(--ink); font-size: 1.05rem; text-align: center; width: 56px; }
.lb .who b { display: block; }
.lb .who span { font-size: 13px; color: var(--muted); }
.lb .work { font-weight: 600; color: var(--ink); }
.lb .cmt { color: var(--body); font-size: 13px; max-width: 280px; }
.lb tr.is-top5 td { background: #FFF8FB; }
.lb tr.is-top5 td:first-child { box-shadow: inset 4px 0 0 var(--brand-pink); }
.badge-final { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; background: var(--grad-deep); color: #fff; padding: 2px 8px; border-radius: 999px; margin-top: 4px; }
.badge-final .ic { width: 12px; height: 12px; }
.badge-award { display: inline-block; font-size: 11px; font-weight: 800; background: var(--peach); color: var(--red-ink); padding: 2px 8px; border-radius: 999px; margin: 4px 0 0 4px; }
.rank-medal { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #fff; font-weight: 800; }
.rank-medal.r1 { background: var(--gold); }
.rank-medal.r2 { background: var(--silver); }
.rank-medal.r3 { background: var(--bronze); }
.lb-empty { text-align: center; color: var(--muted); padding: 28px; }

@media (max-width: 820px) {
  .lb, .lb tbody { display: block; border: 0; background: none; }
  .lb thead { display: none; }
  .lb tr { display: grid; grid-template-columns: 48px 1fr auto; gap: 4px 12px; background: #fff; border: 1px solid var(--line-pink); border-radius: 14px; padding: 14px; margin-bottom: 10px; }
  .lb tr.is-top5 { border-color: var(--brand-pink); background: #FFF8FB; }
  .lb td { display: block; padding: 0; border: 0; background: none !important; box-shadow: none !important; }
  .lb .rank { grid-row: 1 / span 2; width: auto; }
  .lb .who { grid-column: 2; }
  .lb .total { grid-column: 3; grid-row: 1; text-align: right; font-size: 1.4rem; }
  .lb .work { grid-column: 2 / -1; }
  .lb .s { display: none; }
  .lb .scores-m { display: flex !important; grid-column: 1 / -1; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
  .lb .cmt { grid-column: 1 / -1; max-width: none; margin-top: 4px; }
}
.lb .scores-m { display: none; }
.pill-score { font-size: 12px; background: var(--surface-blush); border: 1px solid var(--line-pink); border-radius: 999px; padding: 2px 10px; color: var(--ink); }
.pill-score b { color: var(--pink-ink); }

.skeleton { border-radius: var(--radius); background: linear-gradient(90deg, #fff 0%, var(--surface-pink) 50%, #fff 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Đăng ký tham gia ---------- */
.hero-link { display: inline-block; margin-top: 4px; color: #fff; font-weight: 600; font-size: 15px; text-underline-offset: 4px; }
.section-register { padding-top: 48px; }
.register { display: grid; gap: 24px; }
@media (min-width: 900px) { .register { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 48px; align-items: center; } }
.register-intro h2 { margin-bottom: 10px; }
.register-intro p { max-width: 520px; }
.register-steps { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.register-steps li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink); }
.register-steps span { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface-pink); color: var(--pink-ink); font-weight: 800; font-size: 14px; }
.register-form { display: grid; gap: 14px; padding: 22px; }
.register-form .btn { width: 100%; margin-top: 4px; }
.register-form .form-alert { margin: 0; }
.register-done { text-align: center; padding: 28px 22px; outline: none; }
.register-done .confirm-icon { margin: 0 auto 12px; }
.register-done h3 { font-size: 1.3rem; margin-bottom: 6px; }
.register-done p { color: var(--body); margin-bottom: 18px; }
.register-done .confirm-actions { justify-content: center; }
.link-btn { margin-top: 14px; background: none; border: 0; padding: 6px; font: inherit; font-size: 14px; font-weight: 600; color: var(--pink-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Tab: Danh sách tham dự / Bảng điểm ---------- */
.view-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line-pink); max-width: 100%; }
.view-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 16px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 15px; font-weight: 700; color: var(--ink); cursor: pointer; white-space: nowrap; }
.view-tab .ic { color: var(--pink-ink); }
.view-tab .n { font-size: 12px; font-weight: 800; padding: 1px 8px; border-radius: 999px; background: var(--surface-pink); color: var(--pink-ink); }
.view-tab .n:empty { display: none; }
.view-tab.is-active { background: var(--ink); color: #fff; }
.view-tab.is-active .ic { color: #FF8CC6; }
@media (max-width: 420px) { .view-tabs { display: flex; } .view-tab { flex: 1; justify-content: center; padding: 8px 10px; font-size: 14px; } .view-tab .ic { display: none; } }

.people-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding: 16px 18px; margin-bottom: 14px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line-pink); }
.people-stats .stat b { font-size: 1.6rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; margin-right: 6px; }
.people-stats .stat span { color: var(--muted); font-size: 14px; }
.people-bar { flex: 1 1 200px; height: 10px; border-radius: 999px; background: var(--surface-pink); overflow: hidden; }
.people-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand-pink), var(--brand-red)); transition: width .8s cubic-bezier(.16, 1, .3, 1); }

.people-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
@media (min-width: 600px) { .people-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .people-list { grid-template-columns: repeat(3, 1fr); } }
.person { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border: 1px solid var(--line-pink); border-radius: 14px; min-width: 0; }
.person-ava { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface-pink); color: var(--pink-ink); font-weight: 800; font-size: 15px; }
.person.is-done .person-ava { background: var(--grad-deep); color: #fff; }
.person-info { flex: 1; min-width: 0; }
.person-info b { display: block; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-info span { display: block; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge-done, .badge-wait { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.badge-done { background: var(--success-bg); color: #10714f; }
.badge-done .ic { width: 13px; height: 13px; stroke-width: 3; }
.badge-wait { background: var(--surface-blush); color: var(--muted); border: 1px solid var(--line-pink); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line-pink); border-radius: 14px; overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; font-weight: 700; color: var(--ink); min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--pink-ink); transition: transform .2s; }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details[open] summary { color: var(--pink-ink); }
.faq details p { padding: 0 18px 16px; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .75); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); font-size: 14px; }
.site-footer b { color: #fff; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; }
.footer-inner p { margin: 0; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; z-index: 200; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); max-width: calc(100% - 32px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Thể lệ ---------- */
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 700px) { .rules { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .rules { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.rule { padding: 20px; }
.rule-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.rule-head .i3d { width: 46px; height: 46px; }
.rule-no { display: block; font-size: 22px; font-weight: 900; line-height: 1; letter-spacing: -.01em; color: var(--pink-ink); font-variant-numeric: tabular-nums; margin-bottom: 2px; }
.rule h3 { margin: 0; font-size: 1.1rem; }
.rule p { margin: 0; font-size: 14.5px; }
.rule code { font-size: 12.5px; padding: 1px 5px; border-radius: 4px; background: var(--surface-pink); color: var(--pink-ink); }
.rule .rule-formula { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.rule-formula span { padding: 3px 10px; border-radius: 999px; background: var(--surface-blush); border: 1px solid var(--line-pink); font-size: 13px; font-weight: 700; color: var(--ink); }
.rule-formula b { color: var(--pink-ink); }
.rule-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 8px; }
.rule-steps li { counter-increment: s; position: relative; padding-left: 30px; font-size: 14.5px; }
.rule-steps li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-deep); color: #fff; font-size: 12px; font-weight: 800; }
.rules-note { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--surface-blush); border: 1px solid var(--line-pink); font-size: 14.5px; color: var(--ink); }
.rules-note .i3d { width: 32px; height: 32px; }

/* Nộp bài: nhãn bước */
.step-tag { display: inline-block; margin: 0 0 10px; padding: 3px 12px; border-radius: 999px; background: var(--pink-ink); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .02em; }

/* Điện thoại: ẩn 2 thẻ minh họa ở hero cho nút bấm lên gần */
@media (max-width: 767px) { .hero-art { display: none; } }

/* ---------- Bảng điểm vòng loại: danh sách có vạch Chung kết ---------- */
.lb2-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 10px; font-size: 12.5px; color: var(--muted); }
.lb2-legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.lb2-legend .k1::before, .lb2-bar .b1 { background: #c31072; }
.lb2-legend .k2::before, .lb2-bar .b2 { background: #ec5fa6; }
.lb2-legend .k3::before, .lb2-bar .b3 { background: #f7a9cd; }
.lb2 { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line-pink); border-radius: var(--radius); overflow: hidden; }
.lb2-row + .lb2-row { border-top: 1px solid var(--surface-pink); }
.lb2-row.is-fin { background: #fff7fb; }
.lb2-main { width: 100%; display: grid; grid-template-columns: 72px minmax(0, 1.5fr) minmax(0, 1fr) 92px 24px; gap: 16px; align-items: center; padding: 14px 18px; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.lb2-main:hover { background: rgba(236, 28, 142, .04); }
.lb2-rank { position: relative; display: grid; place-items: center; height: 52px; }
.lb2-art { width: 46px; height: 52px; }
.lb2-rank .lb2-art + .lb2-n { position: absolute; right: 4px; bottom: -2px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px; background: var(--pink-ink); color: #fff; font-size: 12px; font-weight: 900; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; }
.lb2-n { font-size: 24px; font-weight: 900; color: var(--muted); font-variant-numeric: tabular-nums; }
.lb2-who b { display: block; font-size: 15.5px; line-height: 1.3; }
.lb2-who > span { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.lb2-tag { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: var(--grad-deep); color: #fff; font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; vertical-align: 2px; }
.lb2-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: #f1e6ec; }
.lb2-bar i { display: block; height: 100%; }
.lb2-tot { text-align: right; font-size: 26px; font-weight: 900; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.lb2-tot small { font-size: 13px; font-weight: 600; color: var(--muted); }
.is-fin .lb2-tot { color: var(--pink-ink); }
.is-out .lb2-who, .is-out .lb2-tot, .is-out .lb2-bar { opacity: .75; }
.lb2-chev .ic { width: 18px; height: 18px; color: var(--muted); transition: transform .2s ease; }
.is-open .lb2-chev .ic { transform: rotate(180deg); }
.lb2-more { padding: 0 18px 16px 106px; }
.lb2-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.lb2-cmt { margin: 0; font-size: 14px; color: var(--body); }
.lb2-cut { display: flex; align-items: center; padding: 10px 18px; background: var(--grad-deep); color: #fff; font-weight: 900; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.lb2-cut span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.lb2-cut .ic { width: 16px; height: 16px; }
.lb2-cut::after { content: ''; flex: 1; margin-left: 12px; border-top: 2px dashed rgba(255, 255, 255, .7); }
@media (max-width: 720px) {
  .lb2-main { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 8px 12px; padding: 12px 14px; }
  .lb2-rank { grid-row: 1 / span 2; height: 46px; }
  .lb2-art { width: 40px; height: 46px; }
  .lb2-bar { grid-column: 2 / -1; grid-row: 2; }
  .lb2-tot { font-size: 22px; }
  .lb2-chev { display: none; }
  .lb2-tag { display: table; margin: 4px 0 0; }
  .lb2-more { padding: 0 14px 14px; }
  .lb2-cut { font-size: 12px; padding: 9px 14px; }
}
