/* =========================================================
   Bảng màu & kiểu chữ – Chạm Nhãn Giới. Đổi ở đây là đổi toàn trang.
   Bốn màu nhận diện: #a60260, #e61c84, #7fcbe0, #f5e4ec.
   --text / --text-soft là màu chữ thân, pha đậm từ #a60260 để đọc lâu không mỏi.
   ========================================================= */
:root {
    --magenta: #a60260;      /* màu chính: tiêu đề, nút, footer */
    --pink: #e61c84;         /* điểm nhấn: viền, icon, chữ rất lớn */
    --sky: #7fcbe0;          /* màu phụ: nhãn, thẻ; chỉ dùng chữ tối trên nền này */
    --blush: #f5e4ec;        /* nền ô nhập, tab, ô ảnh */
    --page-bg: #e6c4d6;     /* nền cả trang: đậm hơn --blush 1–2 tông, có dải thiên hà phía sau */
    --white: #ffffff;
    --text: #2a1220;
    --text-soft: #5c3a4c;

    /* Font theo bản web cũ: Playfair Display cho tiêu đề mục, Be Vietnam Pro cho hero/số liệu/tiêu đề thẻ */
    --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
    --font-title: "Be Vietnam Pro", "Afacad", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-body: "Afacad", system-ui, -apple-system, "Segoe UI", sans-serif;

    --radius-lg: 24px;
    --radius-md: 16px;
    --pill: 999px;
    --nav-h: 76px;
    --gutter: clamp(16px, 6vw, 96px);
    --shadow: 0 18px 50px rgba(166, 2, 96, .12);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    color: var(--text);
    background: var(--page-bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
.site-footer :focus-visible, .cta-band :focus-visible, .page-ar :focus-visible { outline-color: var(--white); }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
strong { font-weight: 700; }

/* =========================================================
   Mảng màu mờ phía sau
   ========================================================= */
.ambience { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ambience i {
    position: absolute; border-radius: 50%; filter: blur(70px); opacity: .45;
    animation: drift 22s ease-in-out infinite alternate;
}
.ambience i:nth-child(1) { width: 420px; height: 420px; top: -120px; right: -80px; background: var(--pink); opacity: .22; }
.ambience i:nth-child(2) { width: 360px; height: 360px; top: 40%; left: -140px; background: var(--sky); animation-delay: -6s; }
.ambience i:nth-child(3) { width: 300px; height: 300px; bottom: -100px; right: 20%; background: var(--sky); opacity: .35; animation-delay: -12s; }
.ambience i:nth-child(4) { width: 240px; height: 240px; top: 18%; left: 38%; background: var(--pink); opacity: .12; animation-delay: -3s; }
@keyframes drift { to { transform: translate(40px, 30px) scale(1.08); } }

/* Dải thiên hà / mây đêm: các đám tinh vân hồng–tím–xanh kéo chéo màn hình, trôi rất chậm */
.ambience::after {
    content: ""; position: absolute; inset: -20%;
    background:
        /* lõi sáng của dải thiên hà */
        radial-gradient(ellipse 55% 9% at 50% 50%, rgba(255, 246, 251, .75), transparent 70%),
        radial-gradient(ellipse 70% 18% at 50% 50%, rgba(255, 255, 255, .35), transparent 72%),
        /* các đám mây tinh vân hai bên lõi */
        radial-gradient(ellipse 30% 14% at 20% 42%, rgba(110, 18, 100, .42), transparent 70%),
        radial-gradient(ellipse 26% 12% at 36% 58%, rgba(92, 160, 210, .45), transparent 70%),
        radial-gradient(ellipse 32% 15% at 58% 40%, rgba(166, 2, 96, .34), transparent 70%),
        radial-gradient(ellipse 24% 12% at 74% 60%, rgba(130, 70, 190, .38), transparent 70%),
        radial-gradient(ellipse 22% 10% at 88% 46%, rgba(92, 160, 210, .35), transparent 70%);
    filter: blur(22px);
    transform: rotate(-16deg);
    animation: nebula 70s ease-in-out infinite alternate;
}
@keyframes nebula { to { transform: rotate(-12deg) translate(3%, -2%) scale(1.06); } }

/* Sao: chấm trắng có quầng hồng, lặp theo ô 260px; lấp lánh */
.ambience::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background-image:
        radial-gradient(2.4px 2.4px at 12% 18%, #fff 40%, rgba(255, 180, 220, .5) 70%, transparent),
        radial-gradient(1.8px 1.8px at 37% 72%, #fff 40%, transparent),
        radial-gradient(3px 3px at 64% 34%, #fff 35%, rgba(255, 180, 220, .5) 70%, transparent),
        radial-gradient(1.6px 1.6px at 83% 81%, #fff 40%, transparent),
        radial-gradient(2px 2px at 91% 12%, #fff 40%, transparent),
        radial-gradient(1.6px 1.6px at 48% 8%, #fff 40%, transparent),
        radial-gradient(2.2px 2.2px at 6% 60%, #fff 40%, rgba(255, 180, 220, .45) 70%, transparent),
        radial-gradient(1.5px 1.5px at 27% 46%, rgba(110, 18, 100, .7), transparent),
        radial-gradient(1.5px 1.5px at 56% 88%, rgba(110, 18, 100, .6), transparent),
        radial-gradient(1.4px 1.4px at 74% 58%, rgba(110, 18, 100, .6), transparent);
    background-size: 260px 260px;
    animation: twinkle 4s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .45; } to { opacity: 1; } }
/* Lớp sao thứ hai, thưa và to hơn, lấp lánh lệch nhịp với lớp trên */
body::before {
    content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background-image:
        radial-gradient(3.2px 3.2px at 20% 30%, #fff 35%, rgba(255, 190, 225, .55) 70%, transparent),
        radial-gradient(2.6px 2.6px at 70% 15%, #fff 35%, rgba(200, 230, 255, .55) 70%, transparent),
        radial-gradient(2.8px 2.8px at 45% 75%, #fff 35%, rgba(255, 190, 225, .55) 70%, transparent),
        radial-gradient(2.2px 2.2px at 88% 62%, #fff 40%, transparent);
    background-size: 520px 520px; background-position: 130px 90px;
    animation: twinkle 6s ease-in-out -3s infinite alternate;
}

/* Bong bóng trong suốt chứa biểu tượng ♂ ♀, bay lên từ đáy trang.
   Mỗi bong bóng tự chỉnh qua biến trong layout.html. --o: độ đậm chung (nhỏ = mờ hơn). */
.ambience-defs { position: absolute; }
.ambience .g {
    --o: .6;
    position: absolute; bottom: -80px; left: var(--x);
    width: var(--s); height: var(--s);
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .75);
    background:
        radial-gradient(circle at 32% 28%, rgba(255,255,255,.95), rgba(255,255,255,.25) 30%, transparent 55%),
        radial-gradient(circle, transparent 58%, color-mix(in srgb, currentColor 22%, transparent) 100%);
    box-shadow: inset 0 0 6px rgba(255, 255, 255, .5);
    opacity: 0;
    animation: bubble-rise var(--t) linear var(--d) infinite,
               bubble-sway 5s ease-in-out var(--d) infinite alternate;
}
.ambience .g svg {
    width: 52%; height: 52%; stroke-width: 2.2; opacity: .55;
    animation: bubble-wobble 7s ease-in-out var(--d) infinite alternate;
}
.ambience .g.is-pink { color: var(--pink); }
.ambience .g.is-sky { color: var(--sky); }
.ambience .g.is-magenta { color: var(--magenta); }
@keyframes bubble-rise {
    0%   { transform: translateY(0); opacity: 0; }
    10%  { opacity: var(--o); }
    85%  { opacity: var(--o); }
    100% { transform: translateY(calc(-100vh - 160px)); opacity: 0; }
}
@keyframes bubble-sway { to { translate: 26px 0; } }
@keyframes bubble-wobble { from { rotate: -14deg; } to { rotate: 14deg; } }

/* =========================================================
   Menu viên thuốc nổi
   ========================================================= */
.site-nav {
    position: fixed; z-index: 50;
    top: 20px; left: var(--gutter); right: var(--gutter);
    height: var(--nav-h);
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 0 14px 0 30px;
    border-radius: var(--pill);
    border: 1.5px solid rgba(166, 2, 96, .18);
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    transition: box-shadow .3s ease, transform .3s ease, background .3s ease;
}
.site-nav.is-solid { background: rgba(255, 255, 255, .94); box-shadow: var(--shadow); }
.site-nav.is-hidden { transform: translateY(-150%); }

.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 52px; width: auto; }
.brand-text { display: inline-flex; align-items: flex-end; gap: 6px; color: var(--magenta); line-height: .85; }
.brand-text small { width: min-content; font-size: 15px; font-weight: 600; line-height: 1.05; }
.brand-text b { font-family: var(--font-title); font-size: 38px; font-weight: 800; text-transform: uppercase; }
.brand-text-lg { color: var(--white); }
.brand-text-lg { flex-direction: column; align-items: flex-start; gap: 4px; }
.brand-text-lg small { width: auto; font-size: 22px; }
.brand-text-lg b { font-size: clamp(56px, 7vw, 88px); }

.nav-links { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 34px); }
.nav-links a {
    position: relative; padding: 8px 0;
    color: var(--magenta); text-decoration: none;
    font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
}
.nav-links a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
    background: var(--pink); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links .nav-cta {
    padding: 12px 22px; border-radius: var(--pill);
    background: var(--magenta); color: var(--white);
}
.nav-links .nav-cta::after { display: none; }
.nav-links .nav-cta:hover { background: var(--pink); }

.nav-toggle {
    display: none; width: 48px; height: 48px; padding: 0;
    flex-direction: column; justify-content: center; align-items: center; gap: 6px;
    background: none; border: 0; cursor: pointer;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--magenta); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* =========================================================
   Chữ, nút & chi tiết dùng chung
   ========================================================= */
main { position: relative; z-index: 2; }
.eyebrow {
    margin: 0 0 14px;
    font-size: 15px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--pink);
}
.display-title {
    margin: 0;
    font-family: var(--font-display); font-weight: 900;
    font-size: clamp(28px, 3.4vw, 48px);
    line-height: 1.2; letter-spacing: -.01em; text-transform: uppercase;
    color: var(--magenta);
    overflow-wrap: anywhere;
}
.divider {
    display: block; width: min(320px, 60%); height: 4px; margin: 26px 0 28px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--magenta), var(--pink) 55%, var(--sky));
}

.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    min-height: 56px; padding: 0 28px;
    border-radius: var(--pill); border: 2px solid transparent; cursor: pointer;
    font-size: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
    text-decoration: none; text-align: center;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.button svg { font-size: 20px; transition: transform .2s ease; }
.button:hover svg { transform: translateX(4px); }
.button-primary { background: var(--magenta); color: var(--white); box-shadow: 0 10px 28px rgba(166, 2, 96, .28); }
.button-primary:hover { transform: translateY(-2px); background: #8c0251; }
.button-ghost { background: transparent; color: var(--magenta); border-color: var(--magenta); }
.button-ghost:hover { background: var(--magenta); color: var(--white); }
.button-light { background: var(--white); color: var(--magenta); }
.button-light:hover { transform: translateY(-2px); background: var(--blush); }

.text-link {
    display: inline-flex; align-items: center; gap: 10px;
    font-weight: 700; font-size: 16px; text-transform: uppercase; letter-spacing: .08em;
    color: var(--magenta); text-decoration: none;
}
.text-link svg { font-size: 18px; transition: transform .2s ease; }
.text-link:hover svg { transform: translateX(5px); }

/* Tiêu đề nhỏ trong thẻ cũng dùng font tiêu đề */
.journey h3, .phase-card h3, .timeline h3, .info-card h3, .story-body h2, .story-body h3,
.article-content h2, .article-content h3, .label-card { font-family: var(--font-title); font-weight: 800; }

/* Hiện dần khi cuộn tới */
/* Chỉ ẩn khi có JS (html.js); dùng animation + translate để không đè hiệu ứng hover dùng transform. --rd: độ trễ lần lượt */
.js .reveal { opacity: 0; translate: 0 48px; }
.js .reveal.is-visible { animation: reveal-up 1s cubic-bezier(.2,.7,.2,1) var(--rd, 0ms) both; }
@keyframes reveal-up { from { opacity: 0; translate: 0 48px; } to { opacity: 1; translate: 0 0; } }

.section { position: relative; padding: clamp(56px, 7vw, 100px) var(--gutter); max-width: 1240px; margin: 0 auto; }
.section-head { max-width: 900px; margin-bottom: 34px; }
.section-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head-row > div { max-width: 820px; }
.section-lede { margin: -20px 0 30px; color: var(--text-soft); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
    position: relative; min-height: 100vh; max-width: 1240px; margin: 0 auto;
    display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: center;
    padding: calc(var(--nav-h) + 80px) var(--gutter) 80px;
}
.hero-title {
    margin: 0;
    font-family: var(--font-title); font-weight: 900; text-transform: uppercase;
    font-size: clamp(84px, 15vw, 220px); line-height: .95; letter-spacing: -.02em;
    color: var(--magenta);
    animation: rise 1s cubic-bezier(.2,.7,.2,1) both;
}
.hero-title span {
    display: block; margin-bottom: .45em; /* chừa chỗ cho dấu của chữ to bên dưới */
    font-size: .28em; letter-spacing: .02em; line-height: 1; color: var(--pink);
}
.hero-title.has-logo { line-height: 0; }
.hero-logo { width: min(100%, 500px); height: auto; }
.hero-lede {
    margin: 30px 0 40px; max-width: 620px;
    font-size: clamp(18px, 1.3vw, 20px); line-height: 1.6; color: var(--text-soft);
    animation: rise 1s .12s cubic-bezier(.2,.7,.2,1) both;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; animation: rise 1s .24s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.hero-labels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: center; gap: 22px 18px; padding: 20px; }
.hero-labels span {
    padding: 14px 20px; border-radius: var(--pill); text-align: center;
    background: var(--white); color: var(--magenta); border: 2px solid var(--magenta);
    font-size: clamp(15px, 1.25vw, 19px); font-weight: 700; white-space: nowrap;
    box-shadow: var(--shadow);
    transform: rotate(var(--r));
    animation: bob 6s ease-in-out infinite; animation-delay: var(--d);
}
.hero-labels .is-sky { background: var(--sky); color: var(--text); border-color: var(--sky); }
.hero-labels .is-pink { background: var(--pink); color: var(--white); border-color: var(--pink); }
@keyframes bob { 50% { translate: 0 -10px; } }

/* =========================================================
   Khái niệm
   ========================================================= */
.concept-card {
    padding: clamp(26px, 3.5vw, 48px); border-radius: var(--radius-lg);
    background: var(--white); box-shadow: var(--shadow);
    border-left: 10px solid var(--pink);
}
.concept-text { margin: 24px 0 0; max-width: 980px; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.6; }
.concept-text strong { color: var(--magenta); }

/* =========================================================
   Vấn đề: thẻ "nhãn" lật được
   ========================================================= */
.label-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.label-card {
    position: relative; min-height: 150px; padding: 22px;
    display: flex; align-items: center; justify-content: center; text-align: center;
    border-radius: var(--radius-md); border: 2px solid var(--magenta); cursor: pointer;
    background: var(--white); color: var(--magenta);
    font-size: clamp(18px, 1.4vw, 21px); font-weight: 700; line-height: 1.3;
    transition: transform .35s ease, background .35s ease, color .35s ease;
}
.label-card::before { /* lỗ xỏ dây như một chiếc nhãn mác */
    content: ""; position: absolute; top: 16px; left: 50%; width: 14px; height: 14px; margin-left: -7px;
    border-radius: 50%; border: 2px solid currentColor; opacity: .5;
}
.label-card.is-sky { background: var(--sky); color: var(--text); border-color: var(--sky); }
.label-card.is-pink { background: var(--pink); color: var(--white); border-color: var(--pink); }
.label-card:hover { transform: rotate(-2deg) translateY(-4px); }
.label-card.is-flipped { background: var(--magenta); color: var(--white); border-color: var(--magenta); transform: rotate(1deg); }
.label-card [hidden] { display: none; }

.problem-copy { margin-top: 44px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.problem-copy p { margin: 0; font-size: 18px; color: var(--text-soft); }
.problem-copy strong { color: var(--magenta); }
.pull-quote {
    margin: 0; padding: 0 0 0 28px; border-left: 4px solid var(--pink);
    font-family: var(--font-display); font-size: clamp(20px, 1.8vw, 28px); font-weight: 900; line-height: 1.35;
    color: var(--magenta);
}

/* =========================================================
   Thực trạng: số liệu
   ========================================================= */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.stat-card {
    padding: 26px; border-radius: var(--radius-md);
    background: var(--white); box-shadow: var(--shadow);
    display: flex; flex-direction: column; gap: 12px;
}
.stat-card.is-wide { grid-column: span 2; background: var(--magenta); color: var(--white); }
.stat-number {
    margin: 0; font-family: var(--font-title); font-weight: 800; line-height: 1;
    font-size: clamp(32px, 3vw, 46px); color: var(--pink);
}
.stat-card.is-wide .stat-number { color: var(--white); }
.stat-number small { font-size: .38em; font-weight: 600; letter-spacing: .02em; }
.stat-text { margin: 0; font-size: 17px; }
.stat-source { margin: auto 0 0; padding-top: 8px; font-size: 15px; color: var(--text-soft); }
.stat-card.is-wide .stat-source { color: var(--blush); }
.stats-note { margin: 34px 0 0; max-width: 980px; color: var(--text-soft); }
.stats-note strong { color: var(--magenta); }

/* =========================================================
   Hành trình 5 bước
   ========================================================= */
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; counter-reset: none; }
.journey li {
    position: relative; padding: 22px 20px 24px; border-radius: var(--radius-md);
    background: var(--white); border-top: 6px solid var(--magenta);
}
.journey li:nth-child(2) { border-top-color: var(--pink); }
.journey li:nth-child(3) { border-top-color: var(--sky); }
.journey li:nth-child(4) { border-top-color: var(--pink); }
.journey-no { font-family: var(--font-title); font-size: 30px; font-weight: 800; color: var(--pink); line-height: 1; }
.journey h3 { margin: 10px 0 8px; font-size: 20px; text-transform: uppercase; color: var(--magenta); }
.journey p { margin: 0; font-size: 17px; color: var(--text-soft); }

/* =========================================================
   Ba giai đoạn
   ========================================================= */
/* Timeline dọc: mỗi giai đoạn là một <details>, bấm để xổ chi tiết */
.phase-timeline { list-style: none; margin: 0; padding: 0; max-width: 980px; display: flex; flex-direction: column; gap: 18px; position: relative; }
.phase-timeline::before { /* trục dọc nối các chấm */
    content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 4px; border-radius: 2px;
    background: linear-gradient(var(--pink), var(--sky));
}
.phase-timeline > li { position: relative; display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 20px; align-items: start; }
.phase-dot {
    position: relative; z-index: 1; width: 58px; height: 58px; border-radius: 50%;
    display: grid; place-items: center;
    font-family: var(--font-title); font-weight: 800; font-size: 24px;
    background: var(--white); color: var(--magenta); border: 4px solid var(--pink);
}
.phase-timeline > li.is-done .phase-dot { background: var(--pink); color: var(--white); }
.phase-timeline > li.is-current .phase-dot { background: var(--magenta); color: var(--white); border-color: var(--magenta); box-shadow: 0 0 0 8px rgba(230, 28, 132, .2); }
.phase-item { border-radius: var(--radius-md); background: var(--white); box-shadow: var(--shadow); overflow: hidden; }
.phase-timeline > li.is-current .phase-item { outline: 3px solid var(--magenta); }
.phase-item summary {
    list-style: none; cursor: pointer; position: relative;
    padding: 18px 56px 18px 24px; display: flex; flex-direction: column; gap: 6px;
}
.phase-item summary::-webkit-details-marker { display: none; }
.phase-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.phase-title { font-family: var(--font-title); font-weight: 800; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.3; color: var(--magenta); }
.phase-status { padding: 4px 12px; border-radius: var(--pill); background: var(--pink); color: var(--white); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.phase-status.is-done { background: var(--blush); color: var(--text-soft); }
.phase-chevron { position: absolute; right: 24px; top: 28px; font-size: 26px; color: var(--magenta); transition: transform .25s ease; }
.phase-item[open] .phase-chevron { transform: rotate(180deg); }
.phase-body { padding: 0 24px 22px; display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--blush); padding-top: 18px; }
.phase-body p { margin: 0; font-size: 17px; }

/* ----- Trang chủ: slogan, tầm nhìn & sứ mệnh, giá trị cốt lõi ----- */
.hero-slogan {
    margin: 22px 0 0; font-family: var(--font-display); font-weight: 900; font-style: italic;
    font-size: clamp(22px, 2vw, 30px); line-height: 1.25; color: var(--pink);
    animation: rise 1s .06s cubic-bezier(.2,.7,.2,1) both;
}
.hero-slogan + .hero-lede { margin-top: 18px; }
.vision-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.vision-card { padding: clamp(22px, 2.4vw, 32px); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.vision-card.is-magenta { background: var(--magenta); color: var(--white); }
.vision-card p { margin: 0; font-size: 17px; line-height: 1.65; }
.vision-card .vision-tag {
    display: inline-block; margin-bottom: 16px; padding: 6px 16px; border-radius: var(--pill);
    background: var(--sky); color: var(--text); font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
/* ----- Tầm nhìn & Sứ mệnh: khối lớn tràn màn hình, nền trong suốt để liền với nền thiên hà của trang ----- */
.statement {
    position: relative; overflow: hidden; isolation: isolate;
    min-height: min(80vh, 760px);
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 40px;
    padding: clamp(64px, 8vw, 110px) max(var(--gutter), calc((100% - 1240px) / 2 + var(--gutter)));
    /* Muốn dùng ảnh nền riêng: đặt --statement-img trên thẻ section */
    background: var(--statement-img, none) center / cover no-repeat;
}
/* quầng sáng trắng hồng mờ phía sau phần hình, hòa vào nền trang */
.statement::before {
    content: ""; position: absolute; z-index: -1; pointer-events: none;
    width: 46%; aspect-ratio: 1; top: 50%; left: var(--glow-x, 25%); transform: translate(-50%, -50%);
    border-radius: 50%; background: radial-gradient(circle, rgba(255, 248, 252, .7), rgba(255, 248, 252, 0) 68%);
    filter: blur(10px);
}
.statement-vision { --glow-x: 25%; }
.statement-mission { --glow-x: 75%; }
.statement-copy { position: relative; z-index: 1; max-width: 620px; }
.statement-vision .statement-copy { grid-column: 2; }
/* Tầm nhìn: kính viễn vọng ngắm sao bên trái (SVG trong index.html) */
.art-photo { grid-column: 1; grid-row: 1; display: grid; place-items: center; min-height: 0; }
.statement-mission .statement-copy { grid-column: 1; grid-row: 1; }
.statement-title {
    margin: 0; font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
    font-size: clamp(44px, 5.8vw, 92px); line-height: 1; letter-spacing: -.01em; white-space: nowrap;
    color: var(--magenta); text-shadow: 0 8px 36px rgba(255, 255, 255, .6);
}
.statement-line {
    display: block; width: min(480px, 80%); height: 2px; margin: 28px 0 26px;
    background: linear-gradient(90deg, var(--magenta), var(--pink) 45%, rgba(230, 28, 132, 0));
}
.statement-copy p { margin: 0; font-size: clamp(18px, 1.45vw, 22px); line-height: 1.75; color: var(--text-soft); }
.statement-copy strong { color: var(--magenta); font-weight: 700; }
.statement-link {
    display: inline-flex; align-items: center; gap: 10px; margin-top: 30px;
    color: var(--magenta); text-decoration: none; font-weight: 700; font-size: 16px; letter-spacing: .16em; text-transform: uppercase;
}
.statement-link svg { font-size: 20px; transition: transform .2s ease; }
.statement-link:hover svg { transform: translateX(5px); }

.statement-art { position: relative; height: 100%; min-height: 380px; }
/* Sứ mệnh: cái cân thăng bằng, ♀ và ♂ ngang nhau (màu vẽ ngay trong SVG ở index.html) */
.art-symbol { display: grid; place-items: center; }

/* Khung chứa hình minh họa (không viền, không nền); hình trong suốt bớt và trôi nhẹ */
.art-bubble {
    display: grid; place-items: center; width: min(100%, 440px);
    animation: float-sym 9s ease-in-out infinite alternate;
}
.art-symbol .art-bubble { animation-duration: 8s; animation-delay: -3s; }
.art-bubble svg {
    width: 100%; height: auto; overflow: visible; opacity: .6;
    stroke: none; stroke-width: 0;   /* bỏ nét viền chung của icon; nét nào cần đã ghi trong SVG */
}
@keyframes float-sym { to { transform: translateY(-12px); } }

.values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.value-card { padding: 24px; border-radius: var(--radius-lg); background: var(--white); border-top: 6px solid var(--pink); box-shadow: var(--shadow); }
.value-card.is-sky { background: var(--sky); border-top-color: var(--magenta); }
.value-no { font-family: var(--font-title); font-size: 30px; font-weight: 800; color: var(--pink); line-height: 1; }
.value-card.is-sky .value-no { color: var(--magenta); }
.value-card h3 { margin: 12px 0 10px; font-family: var(--font-title); font-weight: 800; font-size: 21px; text-transform: uppercase; color: var(--magenta); }
.value-card p { margin: 0; font-size: 16px; }
.value-card.is-sky p { color: var(--text); }

.phase-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.phase-card {
    padding: 26px; border-radius: var(--radius-lg);
    background: var(--white); box-shadow: var(--shadow);
    display: flex; flex-direction: column; gap: 14px;
}
.phase-card.is-highlight { background: var(--sky); }
.phase-tag {
    align-self: flex-start; margin: 0; padding: 6px 16px; border-radius: var(--pill);
    background: var(--magenta); color: var(--white);
    font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.phase-card h3 { margin: 0; font-size: 21px; line-height: 1.25; color: var(--magenta); }
.phase-card p { margin: 0; }
.phase-date { font-weight: 700; color: var(--text-soft); }
.phase-card.is-highlight .phase-date { color: var(--text); }
.phase-card .text-link { margin-top: auto; padding-top: 8px; }

/* =========================================================
   Dải kêu gọi (hài độc thoại)
   ========================================================= */
.cta-band { position: relative; z-index: 2; padding: 0 var(--gutter); }
.cta-inner {
    max-width: 1300px; margin: 0 auto; padding: clamp(36px, 6vw, 72px);
    border-radius: var(--radius-lg);
    background: linear-gradient(120deg, var(--magenta), var(--pink));
    color: var(--white);
    display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-inner > div { max-width: 760px; }
.cta-inner .eyebrow { color: var(--blush); }
.cta-inner .display-title { color: var(--white); font-size: clamp(26px, 3vw, 40px); }
.cta-inner p:not(.eyebrow) { margin: 18px 0 0; font-size: 19px; }

/* =========================================================
   Thẻ bài viết
   ========================================================= */
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.story-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.story-card > a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.story-image { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sky); display: flex; align-items: center; justify-content: center; }
.story-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.story-card:hover .story-image img { transform: scale(1.05); }
.img-placeholder { color: var(--text); font-size: 16px; }
.story-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.story-meta { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pink); }
.story-body h2, .story-body h3 { margin: 0; font-size: 20px; line-height: 1.3; color: var(--magenta); }
.story-summary {
    margin: 0; color: var(--text-soft);
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.read-more { margin-top: auto; padding-top: 12px; font-size: 15px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--magenta); }
.read-more span { display: inline-block; transition: transform .2s ease; }
.story-card:hover .read-more span { transform: translateX(6px); }

/* =========================================================
   FOOTER + đơn vị tổ chức, nhà tài trợ
   ========================================================= */
.site-footer { position: relative; z-index: 2; margin-top: clamp(72px, 10vw, 140px); background: var(--magenta); color: var(--white); }
.footer-main {
    max-width: 1440px; margin: 0 auto; padding: 72px var(--gutter) 48px;
    display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px;
}
.footer-brand { display: inline-block; text-decoration: none; }
.footer-brand img { width: min(240px, 60vw); height: auto; }
.footer-tagline { margin: 18px 0 6px; max-width: 460px; font-size: 20px; }
.footer-hashtag { margin: 0; font-weight: 700; color: var(--blush); }
.footer-label { margin: 0 0 14px; font-size: 15px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blush); }
.footer-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.footer-nav a { font-size: 19px; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
    width: 50px; height: 50px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 1.5px solid rgba(255,255,255,.6); font-size: 20px;
    transition: background .2s ease, color .2s ease;
}
.footer-socials a:hover { background: var(--white); color: var(--magenta); }
.footer-email { display: inline-block; margin-top: 14px; overflow-wrap: anywhere; }

.partners {
    max-width: 1440px; margin: 0 auto 40px; padding: 30px clamp(20px, 3vw, 44px);
    background: var(--white); color: var(--text); border-radius: var(--radius-lg);
    width: calc(100% - 2 * var(--gutter));
}
.partners-organizers { text-align: center; padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--blush); }
.partners-organizers .partners-logos { justify-content: center; }
.partners-groups { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 44px; }
.partners-group { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.partners-group .partners-logos { justify-content: center; }
.partners-label { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--magenta); }
.partners-group .partners-label { margin: 0; }
.footer-brand img { filter: brightness(0) invert(1); } /* logo màu magenta → trắng trên nền footer */
.partners-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.partners-logos img { height: 52px; width: auto; max-width: 180px; object-fit: contain; }
.partners-organizers .partners-logos img { height: 64px; }
.logo-placeholder {
    display: inline-flex; align-items: center; justify-content: center; text-align: center;
    min-height: 52px; padding: 8px 16px; border: 1.5px dashed var(--pink); border-radius: 14px;
    font-size: 15px; font-weight: 600; color: var(--text-soft);
}
.footer-bottom {
    max-width: 1440px; margin: 0 auto;
    display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
    padding: 20px var(--gutter) 26px; border-top: 1px solid rgba(255,255,255,.25);
    font-size: 15px; color: var(--blush);
}
.footer-bottom p { margin: 0; }

/* =========================================================
   Cụm nút nổi bên trái
   ========================================================= */
.floating-tools {
    position: fixed; left: 28px; bottom: 28px; z-index: 40;
    display: flex; flex-direction: column; gap: 12px;
}
.floating-tool {
    width: 56px; height: 56px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--white); color: var(--magenta);
    border: 2px solid var(--magenta);
    font-size: 24px; cursor: pointer; text-decoration: none;
    box-shadow: var(--shadow);
    transition: transform .2s ease, background .2s ease, color .2s ease;
}
.floating-tool:hover { transform: scale(1.06); background: var(--magenta); color: var(--white); }
.floating-tool[hidden] { display: none; }
.photobooth-tool { background: var(--pink); color: var(--white); border-color: var(--pink); position: relative; }
.photobooth-tool::before { /* vòng tỏa quanh nút photobooth */
    content: ""; position: absolute; inset: -10px; border-radius: 50%;
    border: 2px solid var(--pink); opacity: .5;
    animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse { from { transform: scale(.85); opacity: .6; } to { transform: scale(1.25); opacity: 0; } }
.ambient-toggle .icon-playing { display: none; }
.ambient-toggle:not(.is-muted) .icon-playing { display: block; }
.ambient-toggle:not(.is-muted) .icon-muted { display: none; }

/* =========================================================
   Trang con
   ========================================================= */
.page-sub { min-height: 100vh; }
.sub-main { position: relative; z-index: 2; padding: calc(var(--nav-h) + 70px) var(--gutter) 0; max-width: 1240px; margin: 0 auto; }
.sub-hero { margin-bottom: 40px; }
.sub-lede { margin: 0; max-width: 780px; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.6; color: var(--text-soft); }
.sub-lede strong { color: var(--magenta); }

.coming-soon {
    padding: 40px; border-radius: var(--radius-lg); border: 2px dashed var(--pink);
    background: rgba(255,255,255,.6);
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.coming-soon p { margin: 0; font-size: 18px; color: var(--text-soft); }

.article { max-width: 780px; margin: 0 auto; }
.back-link { display: inline-block; margin-bottom: 26px; font-weight: 700; color: var(--magenta); text-decoration: none; }
.article h1 { margin: 12px 0 18px; font-family: var(--font-display); font-weight: 900; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; color: var(--magenta); }
.article-lede { font-size: 19px; line-height: 1.65; color: var(--text-soft); }
.article-cover { width: 100%; border-radius: var(--radius-lg); margin: 28px 0; }
.article-content { font-size: 19px; line-height: 1.8; }
.article-content h2, .article-content h3 { color: var(--magenta); line-height: 1.25; }
.article-content a { color: var(--magenta); }
.article-content img { border-radius: var(--radius-md); margin: 24px 0; }

/* G-Frame */
.contest-block { margin-bottom: clamp(48px, 5.5vw, 76px); }
.block-title { margin: 0 0 24px; font-family: var(--font-display); font-weight: 900; font-size: clamp(22px, 2.2vw, 30px); text-transform: uppercase; color: var(--magenta); }
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.info-card { padding: 24px; border-radius: var(--radius-md); background: var(--white); box-shadow: var(--shadow); }
.info-card.is-sky { background: var(--sky); }
.info-card.is-pink { background: var(--magenta); color: var(--white); }
.info-card h3 { margin: 0 0 10px; font-size: 20px; color: var(--magenta); }
.info-card.is-sky h3 { color: var(--text); }
.info-card.is-pink h3 { color: var(--white); }
.info-card p { margin: 0; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.facts div { padding: 18px 22px; border-radius: var(--radius-md); background: var(--white); }
.facts dt { font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pink); }
.facts dd { margin: 6px 0 0; font-size: 17px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.timeline > li { position: relative; padding: 24px; border-radius: var(--radius-md); background: var(--white); border-left: 6px solid var(--pink); }
.timeline > li:last-child { background: var(--magenta); color: var(--white); border-left-color: var(--sky); }
.timeline-date { margin: 0; font-weight: 700; color: var(--pink); }
.timeline > li:last-child .timeline-date { color: var(--blush); }
.timeline h3 { margin: 6px 0 8px; font-size: 20px; text-transform: uppercase; color: var(--magenta); }
.timeline > li:last-child h3 { color: var(--white); }
.timeline p:last-child { margin: 0; }
.timeline-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.timeline ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 17px; }
.block-note { margin: -12px 0 20px; color: var(--text-soft); }
.topic-list { margin: 0; padding: 0; list-style: none; counter-reset: topic; display: flex; flex-direction: column; gap: 12px; }
.topic-list li {
    counter-increment: topic; display: flex; gap: 18px; align-items: baseline;
    padding: 16px 22px; border-radius: var(--radius-md); background: var(--white);
}
.topic-list li::before {
    content: counter(topic, decimal-leading-zero); flex: none;
    font-family: var(--font-title); font-weight: 800; font-size: 22px; color: var(--pink);
}

/* ----- Về chúng tôi ----- */
.block-title small { font-family: var(--font-body); font-size: .5em; font-weight: 700; color: var(--text-soft); text-transform: none; }
.team-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.team-card { padding: 20px; border-radius: var(--radius-md); background: var(--white); display: flex; flex-direction: column; gap: 6px; }
.team-card span { font-size: 14px; font-weight: 700; letter-spacing: .08em; line-height: 1.6; min-height: 3.2em; text-transform: uppercase; color: var(--pink); }   /* chức vụ luôn chiếm 2 dòng để tên các thẻ thẳng hàng */
.team-card strong { font-family: var(--font-title); font-weight: 800; font-size: 19px; line-height: 1.3; color: var(--magenta); text-wrap: balance; }
.team-card.is-lead { background: var(--magenta); }
.team-card.is-lead span { color: var(--blush); }
.team-card.is-lead strong { color: var(--white); }
.list-label { margin: 0 0 12px; font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-soft); }

/* ----- Cơ cấu giải thưởng: 5 thẻ theo poster, Giải Nhất ở giữa nổi nhất ----- */
.prize-row {
    list-style: none; margin: 0; padding: 28px 0 0;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.2fr) repeat(2, minmax(0, 1fr)); gap: 14px; align-items: stretch;
}
.prize-card {
    position: relative; text-align: center;
    padding: 32px 12px 16px; border-radius: var(--radius-md); background: var(--white);
    border: 2px solid #f4a6cb; box-shadow: inset 0 0 0 5px var(--white), inset 0 0 0 6.5px #f9cfe2, var(--shadow);
    display: flex; flex-direction: column; align-items: center;
}
.prize-card p { margin: 0; }
.prize-name {   /* nhãn tên giải nằm vắt trên mép thẻ */
    position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
    padding: 7px 18px; border-radius: 10px; white-space: nowrap;
    background: var(--white); border: 2px solid var(--pink); color: var(--pink);
    font-family: var(--font-title); font-weight: 800; font-size: 15px; text-transform: uppercase;
}
.prize-label { margin-top: 10px !important; font-family: var(--font-title); font-weight: 800; font-size: 15px; text-transform: uppercase; color: var(--magenta); }
.prize-money {
    font-family: var(--font-title); font-weight: 800; font-size: clamp(19px, 1.65vw, 25px); line-height: 1.15; color: var(--pink);
    font-variant-numeric: tabular-nums;
}
.prize-money small { margin-left: 3px; font-size: .4em; vertical-align: super; }
.prize-gift { margin-top: 6px !important; font-size: 13px; line-height: 1.45; color: var(--text-soft); }
.prize-qty { margin-top: 12px !important; font-size: 13px; font-weight: 700; color: var(--magenta); text-decoration: underline; text-underline-offset: 3px; }
.prize-card.is-first {
    padding: 44px 18px 22px; border-color: var(--pink); border-width: 3px;
    box-shadow: inset 0 0 0 5px var(--white), inset 0 0 0 7px #f7b8d6, 0 20px 50px rgba(230, 28, 132, .22);
}
.prize-card.is-first .prize-name { background: var(--pink); color: var(--white); font-size: 18px; padding: 9px 20px; }
.prize-card.is-first .prize-money { font-size: clamp(23px, 2.1vw, 31px); }
.prize-card.is-first { margin: -18px 0; }   /* nhô cao hơn các thẻ hai bên */
.prize-qty { margin-top: auto !important; padding-top: 12px; }   /* số lượng luôn nằm đáy thẻ */
@media (max-width: 1180px) {
    .prize-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 16px; }
    .prize-card.is-first { grid-column: 1 / -1; order: -1; margin: 0; }   /* màn hình hẹp: Giải Nhất lên đầu, rộng hết hàng */
}
@media (max-width: 600px) { .prize-row { grid-template-columns: minmax(0, 1fr); } }

/* ----- Kết quả: bục vinh danh (Nhì – Nhất – Ba), hàng dưới Khuyến khích – Yêu thích nhất ----- */
.podium { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 20px; align-items: end; }
.podium-more { grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; margin-top: 28px; }
.winner { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.winner-photo {
    display: block; padding: 0; border: 0; cursor: zoom-in; background: none;
    border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease;
}
.winner-photo:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(166, 2, 96, .2); }
.winner-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.winner figcaption { text-align: center; display: flex; flex-direction: column; gap: 2px; }
.winner-rank { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pink); }
.winner figcaption strong { font-family: var(--font-title); font-weight: 800; font-size: 19px; color: var(--magenta); }
.winner figcaption small { font-size: 15px; font-weight: 600; color: var(--text-soft); }
.winner.is-first .winner-photo { outline: 4px solid var(--pink); outline-offset: 4px; }
.winner.is-first figcaption strong { font-size: 23px; }
.winner.is-second, .winner.is-third { padding-bottom: 36px; }   /* thấp hơn Giải Nhất như bục nhận giải */
.zoom-dialog { padding: 0; border: 0; border-radius: var(--radius-md); max-width: min(92vw, 820px); background: transparent; overflow: visible; }
.zoom-dialog::backdrop { background: rgba(42, 18, 32, .78); }
.zoom-dialog img { width: 100%; height: auto; border-radius: var(--radius-md); }
.zoom-close {
    position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
    border: 0; background: var(--white); color: var(--magenta); font-size: 26px; line-height: 1; box-shadow: var(--shadow);
}
@media (max-width: 900px) {
    .podium { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .winner.is-first { grid-column: 1 / -1; order: -1; max-width: 460px; justify-self: center; }
    .winner.is-second, .winner.is-third { padding-bottom: 0; }
}
@media (max-width: 600px) { .podium, .podium-more { grid-template-columns: minmax(0, 1fr); } }

/* ----- Cửa sổ đề tài Giải Nhất (infographic + PDF) ----- */
.paper-link {
    align-self: center; margin-top: 6px; padding: 6px 14px; border-radius: var(--pill); cursor: pointer;
    border: 1.5px solid var(--pink); background: var(--white); color: var(--pink); font-weight: 700; font-size: 14px;
}
.paper-link:hover { background: var(--pink); color: var(--white); }
.paper-dialog {
    width: min(94vw, 900px); height: min(90vh, 900px); padding: 0; border: 0; border-radius: var(--radius-lg);
    background: var(--white); box-shadow: 0 30px 80px rgba(42, 18, 32, .35); overflow: hidden;
}
.paper-dialog[open] { display: flex; flex-direction: column; }
.paper-dialog::backdrop { background: rgba(42, 18, 32, .7); }
.paper-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 14px; border-bottom: 1px solid var(--blush); }
.paper-head h3 { margin: 4px 0 2px; font-family: var(--font-title); font-weight: 800; font-size: clamp(17px, 2vw, 22px); line-height: 1.3; color: var(--magenta); }
.paper-badge { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pink); }
.paper-sub { margin: 0; font-size: 14px; color: var(--text-soft); }
.paper-close { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; background: var(--blush); color: var(--magenta); font-size: 26px; line-height: 1; }
.paper-tabs { display: flex; gap: 6px; padding: 12px 24px; }
.paper-tabs button { border: 0; border-radius: var(--pill); padding: 9px 18px; cursor: pointer; font-weight: 700; background: var(--blush); color: var(--magenta); }
.paper-tabs button[aria-selected="true"] { background: var(--magenta); color: var(--white); }
.paper-body { flex: 1; min-height: 0; padding: 0 24px 22px; }
.paper-info { height: 100%; overflow-y: auto; border-radius: var(--radius-md); background: var(--blush); }
.paper-info img { width: 100%; max-width: 620px; margin: 0 auto; }
.paper-missing { margin: 0; padding: 40px 24px; text-align: center; color: var(--text-soft); }
.paper-pdf { height: 100%; display: flex; flex-direction: column; gap: 12px; }
.paper-pdf[hidden] { display: none; }
.paper-pdf iframe { flex: 1; width: 100%; min-height: 0; border: 1px solid var(--blush); border-radius: var(--radius-md); background: #f3f3f3; }
.paper-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.paper-actions .button { min-height: 44px; padding: 0 20px; font-size: 14px; width: auto; }
@media (max-width: 600px) {
    .paper-dialog { width: 100vw; height: 100dvh; max-width: none; max-height: none; border-radius: 0; }
    .paper-head, .paper-tabs { padding-left: 16px; padding-right: 16px; }
    .paper-body { padding: 0 16px 16px; }
}

/* ----- Dải thẻ lướt ngang (Các hoạt động đã tổ chức) ----- */
.carousel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.carousel-head .block-title { margin: 0; }
.carousel-nav { display: flex; gap: 10px; flex: none; }
.carousel-btn {
    width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
    display: grid; place-items: center; font-size: 22px;
    border: 1.5px solid var(--magenta); background: var(--white); color: var(--magenta);
    transition: background .2s ease, color .2s ease, opacity .2s ease;
}
.carousel-btn:hover:not(:disabled) { background: var(--magenta); color: var(--white); }
.carousel-btn:disabled { opacity: .35; cursor: default; }
.carousel-track {
    display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 20px) / 3); gap: 20px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    /* chừa chỗ cho bóng đổ của thẻ để không bị cắt thành khung; lề âm giữ thẻ thẳng hàng với tiêu đề */
    padding: 12px 16px 40px; margin: -12px -16px -26px; scroll-padding-inline: 16px;
    scrollbar-width: thin; scrollbar-color: rgba(166, 2, 96, .35) transparent;
}
.carousel-track:focus-visible { outline-offset: 6px; border-radius: var(--radius-lg); }
.carousel-track > * { scroll-snap-align: start; }
.carousel-track .story-card { display: flex; flex-direction: column; }
.carousel-track .story-image { aspect-ratio: 16 / 10; }
.carousel-track .story-body { padding: 18px 20px 22px; gap: 6px; }
.carousel-track .story-body h3 { font-size: 18px; }
@media (max-width: 900px) { .carousel-track { grid-auto-columns: calc((100% - 20px) / 2); } }
@media (max-width: 600px) {
    .carousel-track { grid-auto-columns: 82%; }   /* hé thẻ tiếp theo để biết còn vuốt được */
    .carousel-btn { width: 40px; height: 40px; font-size: 19px; }
}

/* ----- Tin tức: tab danh mục ----- */
.news-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: -20px 0 36px; padding: 6px; border-radius: var(--pill); background: var(--white); width: fit-content; max-width: 100%; }
.news-tabs a { padding: 10px 20px; border-radius: var(--pill); font-weight: 700; text-decoration: none; color: var(--magenta); }
.news-tabs a:hover { background: var(--blush); }
.news-tabs a[aria-current="page"] { background: var(--magenta); color: var(--white); }
.prize-total { margin: -8px 0 20px; font-size: 19px; }
.prize-total strong { color: var(--magenta); }
.prize-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.prize-list li { padding: 20px 18px; border-radius: var(--radius-md); background: var(--white); display: flex; flex-direction: column; gap: 4px; }
.prize-list li.is-first { background: var(--magenta); color: var(--white); }
.prize-list span { font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 15px; }
.prize-list strong { font-family: var(--font-title); font-weight: 800; font-size: clamp(18px, 1.35vw, 20px); line-height: 1.2; color: var(--pink); }
.prize-list li.is-first strong { color: var(--white); }
.prize-list small { font-size: 15px; color: var(--text-soft); }
.prize-list li.is-first small { color: var(--blush); }

/* Form cam kết */
.pledge-form {
    max-width: 680px; padding: 40px; border-radius: var(--radius-lg);
    background: var(--white); box-shadow: var(--shadow);
    display: flex; flex-direction: column; gap: 24px;
}
.field { display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 700; font-size: 17px; margin-bottom: 4px; color: var(--magenta); }
.field input[type=text], .field input[type=email], .field input[type=tel], .field textarea {
    min-height: 52px; padding: 12px 18px; border-radius: 16px;
    border: 1.5px solid rgba(166, 2, 96, .35); background: var(--blush); color: var(--text);
    font: inherit; font-size: 18px;
}
.field input:focus-visible, .field textarea:focus-visible { border-color: var(--magenta); }
.choice { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-weight: 500 !important; color: var(--text) !important; cursor: pointer; }
.choice input { width: 20px; height: 20px; accent-color: var(--magenta); flex: none; }
.field-error { margin: 0; color: var(--magenta); font-size: 16px; font-weight: 600; }
.field-error::before { content: "⚠ "; }
.pledge-form .button { align-self: flex-start; }
.pledge-success {
    max-width: 680px; margin-bottom: 28px; padding: 20px 26px; border-radius: var(--radius-md);
    background: var(--sky); color: var(--text); font-size: 18px;
}

/* =========================================================
   Photobooth (/ar): chụp ảnh trơn → chọn khung → tải / chia sẻ
   ========================================================= */
.page-ar { background: #000; overflow: hidden; }
.ar-stage { position: fixed; inset: 0; }
.ar-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ar-video.is-mirrored { transform: scaleX(-1); }
.ar-start {
    position: absolute; inset: 0; z-index: 3;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
    padding: 30px 16px; text-align: center;
    background: var(--magenta);
    color: var(--white);
}
.ar-start .display-title { color: var(--white); font-size: clamp(40px, 8vw, 90px); }
.ar-start p { margin: 0; max-width: 520px; font-size: 19px; line-height: 1.55; }
.ar-start .button-primary { background: var(--white); color: var(--magenta); }
.ar-start .text-link { color: var(--white); }
.ar-error { padding: 12px 18px; border-radius: 14px; background: var(--white); color: var(--magenta); font-weight: 600; }
.ar-controls {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
    padding: 0 16px max(28px, env(safe-area-inset-bottom, 0px));
    display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.ar-hint {
    margin: 0; padding: 6px 14px; border-radius: var(--pill);
    background: rgba(42, 18, 32, .6); color: var(--white); font-size: 15px;
}
.ar-controls-row { display: flex; align-items: center; justify-content: center; gap: 44px; }
.ar-shutter {
    width: 78px; height: 78px; border-radius: 50%; cursor: pointer;
    background: var(--white); border: 6px solid rgba(255,255,255,.45); background-clip: padding-box;
}
.ar-shutter:active { transform: scale(.92); }

.ar-result {
    position: absolute; inset: 0; z-index: 5; overflow-y: auto;
    padding: 24px 16px max(24px, env(safe-area-inset-bottom, 0px));
    display: flex; flex-direction: column; align-items: center; gap: 18px;
    background: var(--text); color: var(--white);
}
.ar-result-title { margin: 0; font-family: var(--font-title); font-weight: 800; font-size: 22px; text-transform: uppercase; }
.ar-photo { max-width: min(100%, 720px); max-height: 52vh; width: auto; border-radius: var(--radius-md); box-shadow: 0 18px 50px rgba(0,0,0,.4); }
.ar-frames {
    display: flex; gap: 12px; max-width: 100%; overflow-x: auto; padding: 4px 4px 8px;
    scroll-snap-type: x proximity;
}
.ar-frame-option {
    flex: none; width: 108px; padding: 6px; border-radius: 16px; cursor: pointer; scroll-snap-align: start;
    background: rgba(255,255,255,.08); border: 2px solid transparent; color: var(--white);
    display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.ar-frame-option img { width: 100%; height: 76px; object-fit: contain; border-radius: 10px; background: rgba(0,0,0,.25); }
.ar-frame-option span { font-size: 14px; font-weight: 600; line-height: 1.2; text-align: center; }
.ar-frame-option[aria-pressed="true"] { border-color: var(--pink); background: rgba(230, 28, 132, .25); }
.ar-result-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.ar-result .button-ghost { color: var(--white); border-color: var(--white); }
.ar-result .button-ghost:hover { background: var(--white); color: var(--magenta); }

/* =========================================================
   Cam kết: form ký tên + bức tường chữ ký (/cam-ket)
   ========================================================= */
.pledge-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 48px; align-items: start; }
.pledge-intro .sub-hero { margin-bottom: 0; position: sticky; top: calc(var(--nav-h) + 50px); }
.pledge-intro .pledge-form { max-width: none; }
.field-label { font-weight: 700; font-size: 17px; color: var(--magenta); }
.field-hint { margin: 0; font-size: 15px; color: var(--text-soft); }
.pledge-custom textarea { width: 100%; margin-top: 4px; }
.sig-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--pill); background: var(--blush); align-self: flex-start; flex-wrap: wrap; }
.sig-tabs button { border: 0; background: transparent; border-radius: var(--pill); padding: 8px 16px; font-weight: 700; font-size: 15px; color: var(--magenta); cursor: pointer; }
.sig-tabs button[aria-selected="true"] { background: var(--magenta); color: var(--white); }
.sig-pad { position: relative; }
.sig-pad canvas {
    display: block; width: 100%; height: auto; aspect-ratio: 600 / 220;
    border-radius: 16px; border: 2px dashed rgba(166, 2, 96, .35); background: var(--blush);
    touch-action: none; cursor: crosshair;
}
.sig-pad canvas.is-auto { cursor: default; }
.sig-clear {
    position: absolute; top: 10px; right: 10px; border: 0; border-radius: var(--pill);
    padding: 6px 14px; background: var(--magenta); color: var(--white); font-weight: 700; font-size: 14px; cursor: pointer;
}
.pledge-note { margin: 0; font-size: 15px; color: var(--text-soft); }

.pledge-wall-section { margin-top: clamp(64px, 8vw, 110px); }
.pledge-wall-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 28px; }
.pledge-wall-head .block-title { margin: 0; }
.pledge-bar {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center;
    padding: 6px 6px 6px 22px; border-radius: var(--pill); background: var(--white); box-shadow: var(--shadow);
}
.pledge-count { margin: 0; font-size: 17px; font-weight: 600; color: var(--text-soft); }
.pledge-count strong { font-family: var(--font-title); font-size: 30px; color: var(--magenta); font-variant-numeric: tabular-nums; }
.pledge-view-tabs { display: flex; gap: 4px; }
.pledge-view-tabs button { border: 0; border-radius: var(--pill); padding: 10px 18px; background: var(--blush); color: var(--magenta); font-weight: 700; cursor: pointer; }
.pledge-view-tabs button[aria-selected="true"] { background: var(--magenta); color: var(--white); }

.pledge-wall {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    max-width: 1000px; margin: 0 auto;   /* khung ngang, thấp: biểu tượng ở giữa, hai bên thoáng */
    /* Trời đêm: hai tông mận tối chuyển nhẹ; sao và sao băng vẽ trong canvas (pledge.js, drawNight) */
    background: linear-gradient(160deg, #2e0a27 0%, #4a1440 100%);
    box-shadow: var(--shadow);
}
.pledge-wall canvas { display: block; width: 100%; }
.wall-card {
    position: absolute; z-index: 2; width: 240px; padding: 12px; border-radius: 18px; pointer-events: none;
    background: var(--white); color: var(--text); box-shadow: 0 16px 40px rgba(0,0,0,.35);
    display: flex; flex-direction: column; gap: 4px; text-align: center;
}
.wall-card img { width: 100%; height: 84px; object-fit: contain; border-radius: 10px; background: var(--blush); }
.wall-card strong { font-family: var(--font-title); color: var(--magenta); font-size: 17px; }
.wall-card span { font-size: 14px; line-height: 1.4; color: var(--text-soft); }
.wall-empty { position: absolute; left: 0; right: 0; top: 16px; margin: 0; text-align: center; color: var(--blush); font-weight: 600; }
.wall-hint { position: absolute; left: 0; right: 0; bottom: 12px; margin: 0; text-align: center; font-size: 14px; color: #fff; text-shadow: 0 1px 6px rgba(106, 26, 82, .8); pointer-events: none; }

.pledge-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.pledge-card { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: var(--radius-md); background: var(--white); box-shadow: var(--shadow); }
.pledge-card img { flex: none; width: 110px; height: 64px; object-fit: contain; border-radius: 10px; background: var(--blush); }
.pledge-card div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pledge-card strong { font-family: var(--font-title); color: var(--magenta); overflow-wrap: anywhere; }
.pledge-card span { font-size: 15px; line-height: 1.4; color: var(--text-soft); }
.pager { margin-top: 24px; display: flex; justify-content: center; align-items: center; gap: 20px; font-weight: 600; }
.pager a { color: var(--magenta); }

@media (max-width: 900px) {
    .pledge-intro { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .pledge-intro .sub-hero { position: static; }
    .pledge-bar { border-radius: var(--radius-md); padding: 10px 14px; }
}

/* =========================================================
   Minigame ghép hình "Có thể bạn chưa biết" (/thu-thach)
   ========================================================= */
.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.puzzle-levels-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; margin-bottom: 20px; }
.puzzle-levels-head .block-title { margin: 0; }
.puzzle-progress { margin: 0; font-weight: 600; color: var(--text-soft); }
.puzzle-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.puzzle-card {
    width: 100%; height: 100%; padding: 0; border: 2px solid transparent; border-radius: var(--radius-md);
    background: var(--white); box-shadow: var(--shadow); cursor: pointer; text-align: left; overflow: hidden;
    display: flex; flex-direction: column; transition: transform .2s ease, border-color .2s ease;
}
.puzzle-card:hover { transform: translateY(-4px); border-color: var(--pink); }
.puzzle-thumb { display: block; aspect-ratio: 1; overflow: hidden; background: var(--blush); }
.puzzle-thumb img { width: 100%; height: 100%; object-fit: cover; }
.puzzle-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.puzzle-no { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pink); }
.puzzle-name { font-family: var(--font-title); font-weight: 800; font-size: 19px; line-height: 1.3; color: var(--magenta); }
.puzzle-field { font-size: 15px; color: var(--text-soft); }
.puzzle-status { margin-top: auto; padding-top: 8px; font-size: 15px; font-weight: 600; color: var(--text-soft); }
.puzzle-card.is-done .puzzle-status { color: var(--magenta); }

.puzzle-play { max-width: 620px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.puzzle-back { align-self: flex-start; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; font-weight: 700; }
.puzzle-play-head .eyebrow { margin-bottom: 6px; }
.puzzle-title { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: clamp(22px, 3vw, 30px); line-height: 1.2; text-transform: uppercase; color: var(--magenta); }
.puzzle-stats { display: flex; gap: 12px; }
.puzzle-stats p { margin: 0; padding: 8px 16px; border-radius: var(--pill); background: var(--white); font-size: 15px; color: var(--text-soft); }
.puzzle-stats strong { margin-left: 6px; font-family: var(--font-title); font-size: 18px; color: var(--magenta); font-variant-numeric: tabular-nums; }
.puzzle-board-wrap { position: relative; width: 100%; aspect-ratio: 1; }
.puzzle-board {
    position: absolute; inset: 0; padding: 6px; gap: 6px;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr));
    border-radius: var(--radius-md); background: var(--magenta); box-shadow: var(--shadow);
    transition: padding .5s ease, gap .5s ease;
}
.puzzle-tile {
    position: relative; padding: 0; border: 0; border-radius: 10px; cursor: grab;
    background-image: var(--puzzle-img); background-size: 300% 300%; background-repeat: no-repeat;
    touch-action: none; user-select: none; -webkit-user-select: none;
    transition: transform .15s ease, border-radius .5s ease, box-shadow .15s ease;
}
.puzzle-tile:focus-visible { outline: 4px solid var(--sky); outline-offset: -4px; }
.puzzle-tile.is-selected { box-shadow: inset 0 0 0 5px var(--pink); transform: scale(.94); }
.puzzle-tile.is-target { box-shadow: inset 0 0 0 5px var(--sky); }
.puzzle-tile.is-dragging { z-index: 3; cursor: grabbing; transition: none; box-shadow: 0 18px 40px rgba(42, 18, 32, .45); }
/* Chấm báo mảnh đã đúng chỗ */
.puzzle-tile.is-correct::after {
    content: ""; position: absolute; top: 8px; right: 8px; width: 14px; height: 14px; border-radius: 50%;
    background: var(--sky); border: 2px solid var(--white); box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
/* Ghép xong: viền chia cắt biến mất, tranh liền lại */
.puzzle-board.is-solved { padding: 0; gap: 0; }
.puzzle-board.is-solved .puzzle-tile { border-radius: 0; cursor: default; }
.puzzle-board.is-solved .puzzle-tile:first-child { border-top-left-radius: var(--radius-md); }
.puzzle-board.is-solved .puzzle-tile:nth-child(3) { border-top-right-radius: var(--radius-md); }
.puzzle-board.is-solved .puzzle-tile:nth-child(7) { border-bottom-left-radius: var(--radius-md); }
.puzzle-board.is-solved .puzzle-tile:last-child { border-bottom-right-radius: var(--radius-md); }
.puzzle-board.is-solved .puzzle-tile::after { display: none; }
.puzzle-hint { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-md); border: 6px solid var(--pink); }
.puzzle-help { margin: 0; font-size: 16px; color: var(--text-soft); }
.puzzle-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.fact-dialog {
    width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto;
    padding: 32px clamp(20px, 4vw, 40px); border: 0; border-radius: var(--radius-lg);
    background: var(--white); color: var(--text);
}
.fact-dialog::backdrop { background: rgba(42, 18, 32, .7); }
.fact-close {
    position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%;
    border: 0; background: var(--blush); color: var(--magenta); font-size: 20px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.fact-dialog .eyebrow { margin-bottom: 8px; }
.fact-title { margin: 0 44px 16px 0; font-family: var(--font-display); font-weight: 900; font-size: clamp(22px, 3vw, 28px); line-height: 1.2; text-transform: uppercase; color: var(--magenta); }
.fact-image { width: 100%; max-height: 260px; object-fit: cover; border-radius: var(--radius-md); }
.fact-result { margin: 14px 0 0; display: inline-block; padding: 6px 14px; border-radius: var(--pill); background: var(--sky); color: var(--text); font-weight: 600; font-size: 15px; }
.fact-text { margin: 16px 0 0; font-size: 18px; line-height: 1.7; }
.fact-lesson { margin: 14px 0 0; padding-left: 16px; border-left: 4px solid var(--pink); font-weight: 700; color: var(--magenta); }
.fact-source { margin: 14px 0 0; font-size: 14px; color: var(--text-soft); }
.fact-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 600px) {
    .puzzle-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .puzzle-card-body { padding: 12px; }
    .puzzle-name { font-size: 16px; }
    .puzzle-field { display: none; }
    .puzzle-board { padding: 4px; gap: 4px; }
    .puzzle-tile.is-correct::after { width: 10px; height: 10px; top: 5px; right: 5px; }
}

/* =========================================================
   Trang lỗi 404 / 500
   ========================================================= */
.error-main { min-height: 70vh; }
.error-code {
    margin: 0 0 8px;
    font-family: var(--font-display); font-weight: 900;
    font-size: clamp(80px, 16vw, 220px); line-height: 1;
    color: var(--pink); opacity: .35;
}
.error-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
    :root { --nav-h: 68px; }
    .nav-toggle { display: flex; }
    .nav-links {
        position: absolute; top: calc(100% + 10px); left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        padding: 12px 24px 20px; border-radius: 28px;
        background: var(--white); box-shadow: var(--shadow);
        opacity: 0; visibility: hidden; transform: translateY(-8px);
        transition: opacity .25s, transform .25s, visibility .25s;
    }
    .site-nav.is-open .nav-links { opacity: 1; visibility: visible; transform: none; }
    .nav-links a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--blush); }
    .nav-links a::after { display: none; }
    .nav-links .nav-cta { margin-top: 12px; text-align: center; border-bottom: 0; }

    .label-grid, .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .journey { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .prize-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .site-nav { top: 12px; padding: 0 8px 0 20px; }
    .brand img { height: 42px; }
    .brand-text b { font-size: 32px; }
    .hero { grid-template-columns: minmax(0, 1fr); min-height: auto; padding-top: calc(var(--nav-h) + 60px); }
    .hero-labels { padding: 0; gap: 14px 12px; }
    .problem-copy, .info-grid, .facts, .timeline, .phase-grid, .story-grid,
    .vision-grid, .values { grid-template-columns: minmax(0, 1fr); }
    .news-tabs { border-radius: var(--radius-md); }
    .statement { grid-template-columns: minmax(0, 1fr); gap: 8px; min-height: 0; }
    .statement-mission .statement-copy, .statement-vision .statement-copy, .art-photo { grid-column: auto; grid-row: auto; }
    .art-bubble { width: min(100%, 300px); }
    .statement-art { min-height: 240px; }
    .footer-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .footer-about { grid-column: 1 / -1; }
    .floating-tools { left: 14px; bottom: 14px; gap: 10px; }
    .floating-tool { width: 50px; height: 50px; font-size: 22px; }
}
@media (max-width: 600px) {
    body { font-size: 17px; }
    .label-grid, .stat-grid, .journey, .prize-list { grid-template-columns: minmax(0, 1fr); }
    .stat-card.is-wide { grid-column: auto; }
    .phase-timeline::before { left: 19px; }
    .phase-timeline > li { grid-template-columns: 42px minmax(0, 1fr); gap: 12px; }
    .phase-dot { width: 42px; height: 42px; font-size: 18px; border-width: 3px; }
    .phase-item summary { padding: 18px 52px 18px 20px; }
    .phase-chevron { right: 16px; top: 22px; }
    .phase-body { padding: 16px 20px 22px; }
    .topic-list li { padding: 18px 20px; gap: 12px; }
    .label-card { min-height: 140px; }
    .hero-labels span { padding: 10px 18px; white-space: normal; }
    .footer-main { grid-template-columns: minmax(0, 1fr); }
    /* Màn hình nhỏ: bớt một nửa biểu tượng, nhỏ và mờ hơn để không rối chữ */
    .ambience .g:nth-of-type(odd) { display: none; }
    .ambience .g { width: calc(var(--s) * .75); height: calc(var(--s) * .75); }
    .ambience .g { --o: .45; }
    .pledge-form, .coming-soon { padding: 26px 20px; }
    .button { width: 100%; }
    .nav-links .button, .ar-controls .button { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .reveal, .js .reveal.is-visible { opacity: 1; translate: none; animation: none; }
    /* Không bay: rải biểu tượng đứng yên trên nền */
    .ambience .g { bottom: auto; top: var(--y); opacity: var(--o); }
}

/* =========================================================
   Cực quang trên nền hồng: giữ nền hồng gốc + thêm rèm cực quang lay động chậm
   và ánh phản chiếu ở chân trời. Không theo chuột. Muốn bỏ: xóa cả khối này.
   ========================================================= */
.ambience {
    background:
        radial-gradient(ellipse 75% 24% at 50% 103%, rgba(230, 28, 132, .22), transparent 70%),
        radial-gradient(ellipse 55% 12% at 50% 100%, rgba(127, 203, 224, .30), transparent 70%);
}
.ambience::after {
    inset: -10% -20% 25% -20%;
    background:
        repeating-linear-gradient(100deg, rgba(255, 255, 255, 0) 0 16px, rgba(255, 255, 255, .28) 22px, rgba(255, 255, 255, 0) 30px),
        radial-gradient(ellipse 42% 22% at 22% 40%, rgba(127, 203, 224, .50), transparent 70%),
        radial-gradient(ellipse 40% 26% at 52% 30%, rgba(230, 28, 132, .30), transparent 70%),
        radial-gradient(ellipse 36% 20% at 80% 42%, rgba(150, 90, 200, .28), transparent 70%),
        radial-gradient(ellipse 52% 16% at 46% 50%, rgba(255, 255, 255, .55), transparent 72%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 25%, #000 62%, transparent 100%);
            mask-image: linear-gradient(to bottom, transparent 0, #000 25%, #000 62%, transparent 100%);
    filter: blur(24px);
    transform: none; transform-origin: 50% 0;
    animation: aurora 26s ease-in-out infinite alternate;
}
@keyframes aurora {
    0%   { transform: translateX(0) skewX(0deg) scaleY(1); opacity: .85; }
    50%  { transform: translateX(-3%) skewX(-5deg) scaleY(1.08); opacity: 1; }
    100% { transform: translateX(2%) skewX(4deg) scaleY(.95); opacity: .8; }
}

/* ----- Nền sáng hơn, chỉ các sắc hồng đậm nhạt (bỏ xanh, tím) ----- */
:root { --page-bg: #f4dfea; }
.ambience {
    background: radial-gradient(ellipse 75% 24% at 50% 103%, rgba(230, 28, 132, .20), transparent 70%);
}
.ambience::after {
    background:
        repeating-linear-gradient(100deg, rgba(255, 255, 255, 0) 0 16px, rgba(255, 255, 255, .35) 22px, rgba(255, 255, 255, 0) 30px),
        radial-gradient(ellipse 42% 22% at 22% 40%, rgba(240, 130, 185, .32), transparent 70%),
        radial-gradient(ellipse 40% 26% at 52% 30%, rgba(230, 28, 132, .22), transparent 70%),
        radial-gradient(ellipse 36% 20% at 80% 42%, rgba(200, 60, 140, .22), transparent 70%),
        radial-gradient(ellipse 52% 16% at 46% 50%, rgba(255, 255, 255, .65), transparent 72%);
}
/* mảng màu mờ và bong bóng: chỉ hồng */
.ambience i:nth-child(1), .ambience i:nth-child(4) { background: #f06aa8; }
.ambience i:nth-child(2), .ambience i:nth-child(3) { background: #f7a8cf; }
.ambience .g.is-sky { color: #f06aa8; }
/* sao lớp 2: quầng hồng thay cho quầng xanh */
body::before {
    background-image:
        radial-gradient(3.2px 3.2px at 20% 30%, #fff 35%, rgba(255, 190, 225, .55) 70%, transparent),
        radial-gradient(2.6px 2.6px at 70% 15%, #fff 35%, rgba(255, 190, 225, .55) 70%, transparent),
        radial-gradient(2.8px 2.8px at 45% 75%, #fff 35%, rgba(255, 190, 225, .55) 70%, transparent),
        radial-gradient(2.2px 2.2px at 88% 62%, #fff 40%, transparent);
}
