
/* =====================================================
   ECO SORT AI - ECO FUTURE DESIGN SYSTEM
   ===================================================== */

:root {
    --bg: #f0f6f2;
    --paper: #ffffff;
    --ink: #193b30;
    --muted: #536c61;
    --green: #176b50;
    --dark: #103f35;
    --lime: #c6f59c;
    --line: #d6e5da;
    --soft: #e8f3e9;
    --radius: 22px;

    --shadow: 0 8px 28px rgba(22, 68, 46, .07);
    --shadow-hover: 0 14px 34px rgba(22, 68, 46, .13);
}


/* 01. FONT CHU VA CO CHU */

body {
    font-family: 'Be Vietnam Pro', system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.75;

    background:
        radial-gradient(
            ellipse at 95% 5%,
            #d8f1df 0%,
            transparent 38%
        ),
        #f0f6f2;
}

h1, h2, h3, h4 {
    font-weight: 750;
    line-height: 1.4;
    letter-spacing: -.025em;
}

h2 {
    font-size: clamp(23px, 2.2vw, 29px);
}

h3 {
    font-size: clamp(18px, 1.6vw, 21px);
}

h4 {
    font-size: 18px;
}

label {
    font-size: 16px;
}

.eyebrow {
    font-size: 12px;
    letter-spacing: .13em;
}

.hint,
.source-link,
.library-item p,
.notice,
.result {
    font-size: 15px;
}

.source-link {
    overflow-wrap: anywhere;
}

table,
.bar-row,
.range-labels,
.sequence span {
    font-size: 14px;
}


/* 02. HEADER */

.topbar {
    background: rgba(255,255,255,.93);
    backdrop-filter: blur(16px);
    box-shadow: 0 3px 18px rgba(20,65,45,.06);
}

.brand {
    font-size: 22px;
    font-weight: 800;
}

.brand small {
    font-size: 10px;
}

.logo {
    background: linear-gradient(
        145deg,
        #176b50,
        #39a875
    );

    box-shadow: 0 5px 14px rgba(23,107,80,.22);
}

.top-actions {
    font-size: 14px;
}

.status {
    font-size: 13px;
    padding: 7px 12px;
}


/* 03. SIDEBAR */

.layout {
    grid-template-columns: 280px minmax(0,1fr);
}

.sidebar {
    background: rgba(247,251,247,.86);
    padding: 24px 14px;
}

.sidebar nav {
    gap: 9px;
}

.sidebar nav a {
    --nav-color: #176b50;
    --nav-bg: #e1f2e3;

    padding: 13px 11px;
    border-radius: 14px;
    gap: 11px;

    transition:
        background .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}

.sidebar nav a[href="#scan"] {
    --nav-color: #1679ad;
    --nav-bg: #e2f3fc;
}

.sidebar nav a[href="#decomp"] {
    --nav-color: #a65e18;
    --nav-bg: #fff0d5;
}

.sidebar nav a[href="#solutions"] {
    --nav-color: #237a50;
    --nav-bg: #e0f5df;
}

.sidebar nav a[href="#game"] {
    --nav-color: #7650b3;
    --nav-bg: #eee5fc;
}

.sidebar nav a:hover,
.sidebar nav a.active {
    color: var(--nav-color);
    background: var(--nav-bg);
}

.sidebar nav a.active {
    box-shadow: inset 4px 0 var(--nav-color);
}

.sidebar nav a:hover {
    transform: translateX(3px);
}

.sidebar nav a .nav-number {
    display: grid;
    place-items: center;

    width: 32px;
    height: 32px;
    min-width: 32px;

    background: var(--nav-bg);
    color: var(--nav-color);

    border-radius: 10px;
    font-size: 13px;
}

.nav-copy {
    min-width: 0;
}

.nav-copy strong {
    display: block;
    font-size: 16px;
    font-weight: 750;
}

.nav-copy small {
    display: block;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
}

.side-note {
    font-size: 14px;
    border-radius: 16px;
    background: linear-gradient(
        135deg,
        #e0f1e1,
        #edf7e8
    );
}


/* 04. TRANG CHU */

.hero {
    isolation: isolate;

    padding: clamp(25px, 4vw, 52px);

    border-radius: 30px;

    background:
        radial-gradient(
            circle at 88% 20%,
            rgba(145,231,160,.23),
            transparent 45%
        ),
        linear-gradient(
            135deg,
            #103f35,
            #176b50 70%,
            #298665
        );

    box-shadow: 0 16px 40px rgba(19,79,54,.20);
}

.hero::before {
    content: '';

    position: absolute;
    inset: 0;

    z-index: -1;

    background-image:
        radial-gradient(
            rgba(255,255,255,.14) 1px,
            transparent 1px
        );

    background-size: 24px 24px;

    mask-image: linear-gradient(
        to left,
        black,
        transparent
    );

    pointer-events: none;
}

.hero h1 {
    font-size: clamp(32px, 3.8vw, 58px);
    font-weight: 800;
    line-height: 1.22;
}

.hero p:not(.eyebrow) {
    font-size: 17px;
    color: #e3f3e8;
}

.hero .light {
    color: #c6f59c;
}

.hero-art {
    filter: drop-shadow(
        0 12px 24px rgba(0,0,0,.12)
    );

    animation: ecoFloat 5s ease-in-out 2;
}

@keyframes ecoFloat {
    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}


/* 05. MAU RIENG CUA TUNG MODULE */

#scan {
    --module-accent: #1679ad;
    --module-soft: #e2f3fc;
}

#decomp {
    --module-accent: #a65e18;
    --module-soft: #fff0d5;
}

#solutions {
    --module-accent: #237a50;
    --module-soft: #e0f5df;
}

#game {
    --module-accent: #7650b3;
    --module-soft: #eee5fc;
}

.page-heading {
    background: linear-gradient(
        110deg,
        var(--module-soft, #e5f2e5),
        rgba(255,255,255,.90)
    );

    padding: clamp(22px, 3vw, 35px);

    border: 1px solid var(--line);
    border-left: 6px solid var(--module-accent, var(--green));
    border-radius: 22px;

    box-shadow: var(--shadow);
    margin-bottom: 25px;
}

.page-heading h1 {
    font-size: clamp(27px, 3.3vw, 43px);
    color: var(--module-accent, var(--dark));
    overflow-wrap: anywhere;
}

.page-heading .eyebrow {
    color: var(--module-accent, var(--green));
}


/* 06. THE TRUY CAP NHANH MODULE */

.eco-module-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 16px;
    margin: 18px 0 32px;
}

.eco-module-card {
    --card-color: #176b50;
    --card-bg: #e1f2e3;

    display: block;
    min-width: 0;

    background: linear-gradient(
        135deg,
        #ffffff,
        var(--card-bg)
    );

    padding: 23px;
    border: 1px solid var(--line);
    border-radius: 21px;

    color: var(--ink);
    box-shadow: var(--shadow);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.eco-module-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.eco-module-card.scan {
    --card-color: #1679ad;
    --card-bg: #e2f3fc;
}

.eco-module-card.impact {
    --card-color: #a65e18;
    --card-bg: #fff0d5;
}

.eco-module-card.solution {
    --card-color: #237a50;
    --card-bg: #e0f5df;
}

.eco-module-card.play {
    --card-color: #7650b3;
    --card-bg: #eee5fc;
}

.eco-module-icon {
    display: grid;
    place-items: center;

    width: 54px;
    height: 54px;

    font-size: 28px;
    border-radius: 15px;

    background: var(--card-bg);
}

.eco-module-card h3 {
    color: var(--card-color);
    font-size: 24px;
    margin: 15px 0 5px;
}

.eco-module-card p {
    margin: 5px 0;
}

.eco-module-card small {
    display: block;
    color: var(--card-color);
    font-weight: 700;
    margin-top: 15px;
}


/* 07. CAC THE NOI DUNG */

.panel {
    padding: clamp(18px, 2.5vw, 29px);
    box-shadow: var(--shadow);
    margin-bottom: 22px;
}

.library-item,
.impact-card,
.sp-detail,
.sp-tile {
    background: linear-gradient(
        145deg,
        #ffffff,
        #f1f8f2
    );

    border: 1px solid var(--line);
    border-radius: 18px;

    padding: clamp(15px, 2vw, 22px);

    transition:
        border-color .25s ease,
        box-shadow .25s ease,
        transform .25s ease;
}

.library-item:hover,
.impact-card:hover,
.sp-detail:hover {
    border-color: #a9cfb3;
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.library-item p,
.impact-card p,
.sp-detail p {
    color: #345448;
    font-size: 16px;
    line-height: 1.8;
}

.sp-detail h4,
.sp-tile strong {
    font-size: 18px;
}

.sp-tile span,
.sp-kicker {
    font-size: 14px;
}

.two-col,
.three-col,
.form-grid,
.library {
    gap: 18px;
}


/* 08. NAM NHOM CHAT THAI */

.waste-list {
    gap: 14px;
}

.waste-row {
    grid-template-columns: 48px minmax(0,1fr);

    background: linear-gradient(
        120deg,
        #ffffff,
        #f3f8f3
    );

    padding: 17px;
    border-radius: 17px;

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.waste-row:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.waste-number {
    width: 48px;
    height: 48px;

    border-radius: 13px;

    font-size: 16px;
}

.waste-row h3 {
    font-size: 19px;
    margin-bottom: 7px;
}

.waste-row p {
    font-size: 15px;
    line-height: 1.7;
}

.waste-wheel-svg {
    max-width: 490px;
}


/* 09. NUT BAM VA O NHAP LIEU */

.btn {
    font-size: 15px;
    min-height: 44px;

    padding: 12px 19px;
    border-radius: 13px;

    transition:
        background .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.btn.primary {
    background: linear-gradient(
        135deg,
        #176b50,
        #237b56
    );

    color: white;

    box-shadow: 0 5px 14px rgba(23,107,80,.15);
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
}

.btn:active:not(:disabled) {
    transform: translateY(0);
}

.btn.small {
    font-size: 14px;
}

.hero .btn.primary {
    color: #103f35;
    background: #c6f59c;
    border-color: #c6f59c;
}

.hero .btn.primary:hover {
    background: #dcf8c6;
}

input:not([type=checkbox]):not([type=range]):not([type=file]),
select,
textarea {
    font-size: 16px;
    padding: 12px 14px;

    border-radius: 12px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

input:not([type=checkbox]):not([type=range]):not([type=file]):focus,
select:focus,
textarea:focus {
    border-color: #62a67b;

    box-shadow: 0 0 0 4px rgba(98,166,123,.14);
}

input[type=checkbox] {
    width: 20px;
    height: 20px;
}

:focus-visible {
    outline: 3px solid #5a9859;
    outline-offset: 3px;
}


/* 10. KHU VUC MO PHONG VA PHAN HOI */

.visual,
.preview {
    background: radial-gradient(
        circle,
        #ffffff,
        #e5f1e6
    );

    border-radius: 19px;
    border: 1px solid #dce9dd;
}

.notice,
.result {
    border-radius: 14px;
    border-left-width: 4px;
    line-height: 1.75;
}

.big-number {
    font-size: clamp(30px, 4vw, 45px);
}

.sequence {
    padding: 15px;
    border-radius: 14px;
}

.metrics article {
    border-radius: 19px;
    box-shadow: var(--shadow);
}

.metrics strong {
    font-size: 37px;
}

.metrics small,
.metrics span {
    font-size: 14px;
}


/* 11. ECOPLAY */

#game .ep-shell .ep-banner {
    background:
        radial-gradient(
            circle at 90% 10%,
            #7756b2,
            transparent 70%
        ),
        linear-gradient(
            135deg,
            #203c35,
            #414572
        );

    box-shadow: var(--shadow-hover);
}

#game .ep-shell .ep-stat small {
    font-size: 14px;
}

#game .ep-shell .ep-level {
    font-size: 14px;
}

#game .ep-shell .ep-bin strong {
    font-size: 16px;
}

#game .ep-shell .ep-bin small {
    font-size: 13px;
}

#game .ep-shell .ep-object {
    background: radial-gradient(
        circle,
        #ffffff,
        #eee7fa
    );
}

#game .ep-shell .ep-bin:hover:not(:disabled) {
    border-color: #7650b3;
}


/* 12. HIEU UNG CHUYEN MODULE */

.view:not([hidden]) {
    animation: ecoPageIn .35s ease-out both;
}

@keyframes ecoPageIn {
    from {
        opacity: .4;
    }

    to {
        opacity: 1;
    }
}

.eco-reveal {
    animation: ecoReveal .45s ease-out both;
}

@keyframes ecoReveal {
    from {
        opacity: .45;
        transform: translateY(9px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

footer {
    font-size: 14px;
}


/* 13. RESPONSIVE */

@media (max-width: 850px) {

    .layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        width: min(290px, 90vw);
        background: #f5faf5;
    }

    .waste-overview {
        grid-template-columns: 1fr;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .hero-art {
        max-height: 220px;
    }

    .brand {
        font-size: 17px;
    }
}

@media (max-width: 600px) {

    body {
        font-size: 16px;
    }

    .eco-module-grid,
    .form-grid,
    .three-col,
    .library {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 33px;
    }

    .brand {
        font-size: 15px;
    }

    .status {
        font-size: 10px;
    }

    .metrics strong {
        font-size: 27px;
    }

    .metrics small,
    .metrics span {
        font-size: 11px;
    }

    .waste-row {
        padding: 13px;
    }

    .waste-row h3 {
        font-size: 17px;
    }

    #game .ep-shell .ep-bin strong {
        font-size: 14px;
    }
}


/* 14. HO TRO NGUOI DUNG NHAY CAM VOI CHUYEN DONG */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

@media print {
    body {
        background: white;
    }

    .panel {
        box-shadow: none;
    }

    * {
        animation: none !important;
        transition: none !important;
    }
}
/* LUU Y AN TOAN STEM */

.side-note {
    background: linear-gradient(
        135deg, #e2f2e3, #f1f8ec
    );
    border: 1px solid #d2e5d3;
    border-radius: 18px;
    padding: 16px;
}

.side-note h3 {
    color: #176b50;
    font-size: 16px;
    margin: 0 0 14px;
    line-height: 1.5;
}

.safety-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 12px;
}

.safety-item span {
    font-size: 19px;
    flex-shrink: 0;
}

.safety-item p {
    font-size: 13px;
    line-height: 1.7;
    color: #345448;
    margin: 0;
}

/* =====================================================
   ECO SORT AI - COLORFUL STEM EDITION
   Nang cap mau sac va trai nghiem thi giac
   ===================================================== */

@media screen {

/* 01. NEN TOAN WEBSITE */

body {
    background:
        radial-gradient(ellipse at 5% 0%,
            #d5f5df, transparent 40%),
        radial-gradient(ellipse at 95% 10%,
            #d9edff, transparent 38%),
        #f1f7f4;
}

.topbar {
    border-bottom: 3px solid #70c99a;
    background: rgba(255,255,255,.96);
}

.sidebar {
    background: linear-gradient(
        180deg,
        #ffffff,
        #e3f3e8
    );
}


/* 02. BANG MAU RIENG TUNG MODULE */

#scan {
    --module-accent: #075c98;
    --module-bright: #0284c7;
    --module-soft: #e1f4ff;
    --module-border: #9ad7f5;
}

#decomp {
    --module-accent: #a74315;
    --module-bright: #c45110;
    --module-soft: #fff0db;
    --module-border: #f6c38a;
}

#solutions {
    --module-accent: #086644;
    --module-bright: #16804c;
    --module-soft: #dcfce7;
    --module-border: #95dca7;
}

#game {
    --module-accent: #5925a9;
    --module-bright: #7c3aed;
    --module-soft: #f0e7ff;
    --module-border: #cfb4f5;
}


/* 03. TIEU DE LON CUA CAC MODULE */

:is(#scan, #decomp, #solutions, #game)
.page-heading {

    position: relative;
    isolation: isolate;
    overflow: hidden;

    background: linear-gradient(
        120deg,
        var(--module-accent),
        var(--module-bright)
    );

    border: none;
    border-radius: 25px;

    padding: clamp(24px, 4vw, 42px);

    box-shadow: 0 14px 32px #19372c20;
}

:is(#scan, #decomp, #solutions, #game)
.page-heading::before {

    content: '';

    position: absolute;
    inset: 0;
    z-index: -1;

    background-image:
        radial-gradient(
            #ffffff25 1.5px,
            transparent 1.5px
        );

    background-size: 22px 22px;

    pointer-events: none;
}

:is(#scan, #decomp, #solutions, #game)
.page-heading h1 {

    color: #ffffff;
    font-weight: 800;
}

:is(#scan, #decomp, #solutions, #game)
.page-heading p {

    color: #ffffff;
}

:is(#scan, #decomp, #solutions, #game)
.page-heading .eyebrow {

    color: #ffffff;
    letter-spacing: .17em;
}


/* 04. TRANG CHU NOI BAT */

.hero {

    background:
        radial-gradient(
            circle at 85% 20%,
            #5dbb7870,
            transparent 48%
        ),
        linear-gradient(
            125deg,
            #073b35,
            #126b50 65%,
            #207c51
        );

    border-radius: 30px;
    box-shadow: 0 18px 40px #126b5035;
}

.hero em {
    color: #bef264;
}

.hero .btn.primary {
    background: #bef264;
    color: #163b28;
    border-color: #bef264;
}

.hero .btn.ghost {
    background: #ffffff;
    color: #5925a9;
    border-color: #ffffff;
}

.hero .btn.ghost:hover {
    background: #f0e7ff;
}


/* 05. CAC THE MODULE TAI TRANG CHU */

.eco-module-card {

    border: 1px solid var(--card-bg);
    border-top: 6px solid var(--card-color);

    background: linear-gradient(
        145deg,
        var(--card-bg),
        #ffffff
    );
}

.eco-module-card.scan {
    --card-color: #075c98;
    --card-bg: #d5efff;
}

.eco-module-card.impact {
    --card-color: #a74315;
    --card-bg: #ffe9c8;
}

.eco-module-card.solution {
    --card-color: #086644;
    --card-bg: #d4f8d9;
}

.eco-module-card.play {
    --card-color: #5925a9;
    --card-bg: #eaddff;
}

.eco-module-icon {

    background: var(--card-bg);
    border: 2px solid var(--card-color);

    width: 62px;
    height: 62px;
    font-size: 32px;

    transition: transform .25s ease;
}

.eco-module-card:hover .eco-module-icon {
    transform: scale(1.10) rotate(-6deg);
}


/* 06. NAM NHOM CHAT THAI */

.waste-row {

    border-left: 5px solid var(--group-color);

    background: linear-gradient(
        110deg,
        color-mix(
            in srgb,
            var(--group-color) 14%,
            white
        ),
        #ffffff
    );
}

.waste-row h3 {

    color: #19372c;
    font-weight: 750;
}

.waste-number {

    box-shadow: 0 5px 12px #19372c20;
}

.waste-wheel-panel {

    background: radial-gradient(
        circle,
        #d9f3e2,
        #ffffff 75%
    );
}


/* 07. CAC KHUNG NOI DUNG THEO MODULE */

:is(#scan, #decomp, #solutions, #game)
.panel {

    border-color: var(--module-border);
    border-top: 4px solid var(--module-bright);
}

:is(#scan, #decomp, #solutions, #game)
.panel h2 {

    color: var(--module-accent);
}

:is(#scan, #decomp, #solutions, #game)
.panel .eyebrow {

    color: var(--module-accent);
}

:is(#scan, #decomp, #solutions, #game)
.visual,

:is(#scan, #decomp, #solutions, #game)
.preview {

    background: radial-gradient(
        circle,
        #ffffff,
        var(--module-soft)
    );

    border: 1px solid var(--module-border);
}


/* 08. THE KIEN THUC KHOA HOC */

#scan .sp-tile,
#scan .sp-detail {

    background: linear-gradient(
        145deg,
        #ffffff,
        #e1f4ff
    );

    border-left: 4px solid #0284c7;
}

#scan .sp-detail h4,
#scan .sp-sources h4 {

    color: #075c98;
}

#scan .sp-detail:nth-child(3n+2) {

    background: #e9f8e6;
    border-left-color: #16a34a;
}

#scan .sp-detail:nth-child(3n+3) {

    background: #fff2da;
    border-left-color: #c86a13;
}


/* 09. CAC THE TAC DONG MOI TRUONG */

#decomp .impact-card {

    --impact-color: #a74315;
    --impact-bg: #fff0db;

    background: linear-gradient(
        145deg,
        #ffffff,
        var(--impact-bg)
    );

    border-left: 4px solid var(--impact-color);
}

#decomp .impact-card:nth-child(1) {
    --impact-color: #52752b;
    --impact-bg: #edf8dd;
}

#decomp .impact-card:nth-child(2) {
    --impact-color: #075c98;
    --impact-bg: #dff3ff;
}

#decomp .impact-card:nth-child(3) {
    --impact-color: #536579;
    --impact-bg: #e7eef7;
}

#decomp .impact-card:nth-child(4) {
    --impact-color: #08784b;
    --impact-bg: #def8e8;
}

#decomp .impact-card:nth-child(5) {
    --impact-color: #a72f49;
    --impact-bg: #ffe8ee;
}

#decomp .impact-card:nth-child(6) {
    --impact-color: #a74315;
    --impact-bg: #ffecd6;
}

#decomp .impact-card h3 {
    color: var(--impact-color);
}

#decomp .impact-icon {
    background: var(--impact-bg);
    border: 1px solid var(--impact-color);
}


/* 10. ECOSOLUTION - PHONG THI NGHIEM */

#compost-lab {

    border-top: 5px solid #65a30d;

    background: linear-gradient(
        145deg,
        #ffffff,
        #f1fae8
    );
}

#recycling-factory {

    border-top: 5px solid #0284c7;

    background: linear-gradient(
        145deg,
        #ffffff,
        #eaf6ff
    );
}

#design-challenge {

    border-top: 5px solid #7c3aed;

    background: linear-gradient(
        145deg,
        #ffffff,
        #f2eaff
    );
}

#solutions .library-item {

    background: #ffffff;
    border-left: 4px solid #16804c;
}

#factory-options .btn {

    background: #e1f4ff;
    border-color: #9ad7f5;
    color: #075c98;
}

#factory-options .btn:hover:not(:disabled) {

    background: #bae6fd;
    border-color: #0284c7;
}


/* 11. NUT BAM DOI MAU THEO MODULE */

:is(#scan, #decomp, #solutions, #game)
.btn.primary {

    background: linear-gradient(
        135deg,
        var(--module-accent),
        var(--module-bright)
    );

    color: #ffffff;
    border-color: var(--module-accent);
}

:is(#scan, #decomp, #solutions, #game)
.btn.primary:hover:not(:disabled) {

    background: var(--module-accent);
    box-shadow: 0 8px 20px #19372c25;
}

:is(#scan, #decomp, #solutions, #game)
input[type="checkbox"],

:is(#scan, #decomp, #solutions, #game)
input[type="range"] {

    accent-color: var(--module-accent);
}


/* 12. THANH TIEN DO VA SO LIEU */

:is(#scan, #decomp, #solutions)
.big-number {

    color: var(--module-accent);
}

.metrics article:nth-child(1) {
    background: #e0f5e5;
    border-color: #a5d8b2;
}

.metrics article:nth-child(2) {
    background: #e1f4ff;
    border-color: #9ad7f5;
}

.metrics article:nth-child(3) {
    background: #f0e7ff;
    border-color: #cfb4f5;
}


/* 13. ECOPLAY - GIAO DIEN TRO CHOI */

#game .ep-shell .ep-banner {

    background:
        radial-gradient(
            circle at 90% 0%,
            #a855f7,
            transparent 55%
        ),
        linear-gradient(
            135deg,
            #34206f,
            #6230ae
        );

    border-radius: 25px;
    box-shadow: 0 15px 35px #5925a930;
}

#game .ep-shell .ep-stat {

    background: #ffffff18;
    border: 1px solid #ffffff35;
}

#game .ep-shell .ep-level.active {

    color: #5925a9;
    background: #e9d9ff;
    border-color: #7c3aed;
}

#game .ep-shell .ep-level.complete {

    background: #5925a9;
    color: #ffffff;
}

#game .ep-shell .ep-object {

    background: radial-gradient(
        circle,
        #ffffff,
        #e4d1ff
    );

    border-color: #cfb4f5;
}

#game .ep-shell #ep-progress-fill {

    background: linear-gradient(
        90deg,
        #bef264,
        #facc15
    );
}

#game .ep-shell .ep-big-score {

    color: #5925a9;
}


/* 14. HIEU UNG TUONG TAC */

@media (hover: hover) and (pointer: fine) {

    .eco-module-card:hover {

        transform: translateY(-6px);

        box-shadow:
            0 16px 32px #19372c20;
    }

    .waste-row:hover {

        transform: translateX(5px);
    }
}


/* 15. HAN CHE CHUYEN DONG KHI CAN */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

}
/* ===== Sửa ô liên kết EcoScan trong module 2 ===== */
#decomp .notice,
#decomp .notice *,
#decomp .link-note,
#decomp .link-note *,
#decomp .scan-link,
#decomp .scan-link * {
    color: #183b2b !important;
}

#decomp .notice strong,
#decomp .link-note strong,
#decomp .scan-link strong {
    color: #0f5132 !important;
}

#decomp .notice a,
#decomp .link-note a,
#decomp .scan-link a {
    color: #0b6b52 !important;
}
/* Thu gon khoang cach trong EcoImpact */

#impact-profile > h3 {
    margin: 0 0 10px;
}

#impact-profile p {
    color: #183b2b !important;
    margin: 6px 0;
}

/* An huong dan trung lap khi chua co ket qua */
#impact-profile:has(+ #impact-science-detail > .notice) > p {
    display: none;
}

#impact-science-detail > .notice {
    margin: 0 0 12px;
    padding: 12px 16px;
}

/* =====================================================
   ECOIMPACT - FIX MAU CHU VA KHOANG CACH
   ===================================================== */

/* Mau chu noi dung khoa hoc */

#decomp #impact-science-detail p {
    color: #243e34 !important;
    font-size: 16px;
    line-height: 1.7;
}

/* Khoang cach toan khu vuc phan tich */

#decomp .impact-knowledge {
    margin: 18px 0;
}

#decomp .impact-knowledge h2 {
    margin: 18px 0 10px;
}

#decomp .impact-knowledge > .hint {
    margin: 6px 0 14px;
}

/* Khoang cach giua cac the */

#decomp .impact-grid {
    gap: 14px;
    margin: 14px 0;
}

/* Thu gon tung the tac dong */

#decomp .impact-card {
    padding: 18px;
    min-height: 0;
    height: auto;
}

#decomp .impact-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 10px;
}

#decomp .impact-card h3 {
    margin: 0 0 8px;
    font-size: 19px;
}

#decomp .impact-card p {
    color: #243e34 !important;
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
}

/* Co che tac dong */

#decomp .impact-flow {
    gap: 10px;
    margin: 14px 0;
}

#decomp .impact-step {
    padding: 14px;
}

#decomp .impact-step span {
    margin-bottom: 6px;
}

/* Lien he thuc te va nguon khoa hoc */

#decomp .impact-school,
#decomp .impact-sources {
    margin-top: 16px;
    padding: 18px;
}

#decomp .impact-school p,
#decomp .impact-sources p {
    margin: 8px 0;
    color: #243e34 !important;
}

/* Giao dien dien thoai */

@media (max-width: 600px) {
    #decomp .impact-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    #decomp .impact-card {
        padding: 15px;
    }
}

/* =====================================================
   ECOSCAN - NHOM CHAT THAI TIEM NANG
   ===================================================== */

.scan-candidates {

    background: linear-gradient(
        135deg,
        #edf7ff,
        #ffffff
    );

    border: 1px solid #b9dff5;

    border-top: 5px solid #0284c7;

    border-radius: 20px;

    padding: clamp(16px, 2.5vw, 25px);

    margin-bottom: 22px;
}

#scan .scan-candidates h2 {

    color: #075c98;

    font-size: clamp(21px, 2.5vw, 27px);

    margin: 8px 0 12px;
}

#scan .scan-candidates p {

    color: #243e34;

    font-size: 15px;

    line-height: 1.7;
}

.candidate-list {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(min(240px, 100%), 1fr));

    gap: 14px;

    margin: 18px 0;
}

.candidate-card {

    display: flex;

    flex-direction: column;

    gap: 12px;

    width: 100%;

    min-width: 0;

    padding: 18px;

    text-align: left;

    font: inherit;

    color: #243e34;

    background: #ffffff;

    border: 2px solid #dce6df;

    border-left: 5px solid var(--candidate-color);

    border-radius: 17px;

    cursor: pointer;

    transition:
        transform .2s ease,
        background .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.candidate-card.active {

    border-color: var(--candidate-color);

    background: #f1f8fa;

    background: color-mix(
        in srgb,
        var(--candidate-color) 9%,
        white
    );

    box-shadow:
        0 5px 16px rgba(20,60,45,.10);
}

.candidate-top {

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    justify-content: space-between;

    gap: 10px;
}

.candidate-top strong {

    flex: 1 1 150px;

    font-size: 16px;

    line-height: 1.5;

    color: var(--candidate-color);
}

.candidate-score {

    font-size: 24px;

    font-weight: 800;

    color: var(--candidate-color);
}

.candidate-track {

    width: 100%;

    height: 9px;

    background: #dfe7e2;

    border-radius: 20px;

    overflow: hidden;
}

.candidate-fill {

    height: 100%;

    background: var(--candidate-color);

    border-radius: 20px;

    animation: candidateGrow .6s ease-out;
}

@keyframes candidateGrow {

    from {
        transform: scaleX(0);
        transform-origin: left;
    }

    to {
        transform: scaleX(1);
        transform-origin: left;
    }
}

.candidate-card small {

    font-size: 13px;

    font-weight: 650;

    color: var(--candidate-color);
}

#scan .candidate-note {

    color: #536c61;

    font-size: 13px;

    margin: 8px 0;
}

@media (hover: hover) and (pointer: fine) {

    .candidate-card:hover {

        transform: translateY(-3px);

        border-color: var(--candidate-color);

        box-shadow:
            0 8px 20px rgba(20,60,45,.12);
    }
}

@media (max-width: 600px) {

    .candidate-list {

        grid-template-columns: 1fr;
    }

    .candidate-card {

        padding: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .candidate-card,
    .candidate-fill {

        animation: none !important;

        transition: none !important;
    }
}
