/* ==========================================================================
   SainEco - Game Petualangan untuk Bumi Lebih Lestari
   Desain UI/UX Murni CSS3: Responsif, Ceria, & Ramah Anak SD
   Karya: Sigit Waskito Adi, S.Pd
   ========================================================================== */

/* 1. RESET & VARIABLE PALET WARNA ALAM */
:root {
    /* Nuansa Alam: Hijau Daun & Hutan */
    --color-forest-dark: #1b5e20;
    --color-forest-primary: #2e7d32;
    --color-forest-light: #4caf50;
    --color-leaf-mint: #81c784;
    --color-forest-soft: #e8f5e9;

    /* Nuansa Alam: Biru Air & Langit */
    --color-ocean-dark: #01579b;
    --color-ocean-primary: #0288d1;
    --color-sky-blue: #29b6f6;
    --color-water-soft: #e1f5fe;

    /* Nuansa Alam: Cokelat Tanah & Batang Pohon */
    --color-earth-dark: #4e342e;
    --color-earth-primary: #6d4c41;
    --color-earth-light: #8d6e63;
    --color-earth-soft: #efebe9;

    /* Nuansa Hangat: Mentari Kuning & Oranye */
    --color-sun-gold: #ffb300;
    --color-sun-light: #ffe082;
    --color-sun-soft: #fff8e1;
    --color-amber-warning: #ff9800;

    /* Nuansa Khusus CT */
    --color-ct-pola: #0288d1;
    --color-ct-dekom: #388e3c;
    --color-ct-abs: #f57c00;
    --color-ct-algo: #7b1fa2;
    --color-ct-aksi: #00897b;

    /* Netral & Kartu */
    --bg-light: #f4fbf7;
    --bg-white: #ffffff;
    --text-main: #1f2937;
    --text-muted: #52606d;
    --border-color: #d1e7dd;
    --card-shadow: 0 8px 24px rgba(46, 125, 50, 0.12);
    --card-shadow-hover: 0 14px 32px rgba(46, 125, 50, 0.2);

    /* Radius & Spasi */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 9999px;
    --font-heading: 'Fredoka', cursive, -apple-system, sans-serif;
    --font-body: 'Nunito', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    min-height: 100%;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

/* 2. BACKGROUND ALAM & AWAN CERIA */
.nature-bg {
    background: linear-gradient(180deg, #b3e5fc 0%, #c8e6c9 50%, #e8f5e9 100%);
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

.clouds-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 180px;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.cloud::before, .cloud::after {
    content: '';
    position: absolute;
    background: inherit;
    border-radius: 50%;
}

.cloud-1 {
    width: 140px;
    height: 45px;
    top: 25px;
    left: 10%;
    animation: floatCloud 28s linear infinite;
}
.cloud-1::before { width: 55px; height: 55px; top: -25px; left: 20px; }
.cloud-1::after { width: 45px; height: 45px; top: -15px; right: 25px; }

.cloud-2 {
    width: 190px;
    height: 55px;
    top: 60px;
    right: -100px;
    animation: floatCloud 36s linear infinite reverse;
}
.cloud-2::before { width: 70px; height: 70px; top: -35px; left: 30px; }
.cloud-2::after { width: 55px; height: 55px; top: -20px; right: 35px; }

.cloud-3 {
    width: 110px;
    height: 38px;
    top: 90px;
    left: 55%;
    opacity: 0.7;
    animation: floatCloud 32s linear infinite;
}

@keyframes floatCloud {
    0% { transform: translateX(-150px); }
    100% { transform: translateX(110vw); }
}

/* 3. HALAMAN UTAMA / COVER & LOGIN */
.cover-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    padding: 1.5rem 1rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cover-header {
    text-align: center;
    margin-bottom: 1.5rem;
    width: 100%;
}

.badge-sd {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ffffff;
    border: 2px solid var(--color-leaf-mint);
    color: var(--color-forest-dark);
    font-size: 0.88rem;
    font-weight: 700;
    padding: 0.35rem 1rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    margin-bottom: 1rem;
}

.hero-mascot {
    width: 96px;
    height: 96px;
    margin: 0 auto 0.75rem;
    filter: drop-shadow(0 8px 16px rgba(46, 125, 50, 0.25));
}

.mascot-svg {
    width: 100%;
    height: 100%;
}

.main-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--color-forest-dark);
    letter-spacing: -0.5px;
    line-height: 1.1;
    margin-bottom: 0.25rem;
    text-shadow: 2px 2px 0 #ffffff;
}

.sub-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-ocean-dark);
    margin-bottom: 0.75rem;
}

.creator-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-color);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    color: var(--color-earth-dark);
}

.cover-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    border: 3px solid var(--color-leaf-mint);
    padding: 2rem 1.75rem;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.card-ribbon {
    background: linear-gradient(90deg, var(--color-forest-primary), var(--color-ocean-primary));
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    padding: 0.6rem 1rem;
    margin: -2rem -1.75rem 1.5rem;
    letter-spacing: 0.3px;
}

.identity-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    color: var(--color-forest-dark);
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    min-height: 50px;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    border: 2px solid #cfd8dc;
    border-radius: var(--radius-md);
    background-color: #fafafa;
    color: var(--text-main);
    transition: all 0.2s ease;
    outline: none;
}

.form-input:focus {
    border-color: var(--color-forest-light);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.2);
}

.ct-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 2px dashed var(--border-color);
}

.ct-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    background: #f1f8e9;
    color: var(--color-forest-dark);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-pill);
    border: 1px solid #dcedc8;
}

.pill-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.cover-footer {
    margin-top: 1.75rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.btn-teacher-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ffffff;
    color: var(--color-ocean-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-pill);
    border: 2px solid #b3e5fc;
    box-shadow: 0 4px 10px rgba(2, 136, 209, 0.12);
    transition: all 0.2s ease;
}

.btn-teacher-link:hover {
    background: var(--color-water-soft);
    border-color: var(--color-ocean-primary);
    transform: translateY(-2px);
}

.copyright-text {
    font-size: 0.82rem;
    color: var(--color-earth-dark);
    font-weight: 600;
}

/* 4. TOMBOL-TOMBOL (BUTTONS) DENGAN TOUCH MIN-HEIGHT 48PX */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-height: 48px;
    padding: 0.65rem 1.4rem;
    user-select: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn:active {
    transform: scale(0.96);
}

.btn-touch {
    min-height: 48px;
    touch-action: manipulation;
}

.btn-large {
    min-height: 56px;
    font-size: 1.15rem;
    padding: 0.85rem 1.8rem;
    border-radius: var(--radius-lg);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    min-height: 40px;
    font-size: 0.88rem;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-sm);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-forest-primary), var(--color-forest-light));
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(46, 125, 50, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1b5e20, #388e3c);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 125, 50, 0.45);
}

.btn-success {
    background: linear-gradient(135deg, #2e7d32, #66bb6a);
    color: #ffffff;
}

.btn-secondary {
    background: #eceff1;
    color: #37474f;
}
.btn-secondary:hover {
    background: #cfd8dc;
}

.btn-warning {
    background: linear-gradient(135deg, #f57c00, #ffb300);
    color: #ffffff;
}

.btn-danger-soft {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.btn-outline-white {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
}

.btn-outline-primary {
    background: #ffffff;
    color: var(--color-forest-primary);
    border: 2px solid var(--color-forest-primary);
}

/* 5. TOP BAR & NAVIGASI DALAM GAME (4 IKON WAJIB: PETA, SCORE, GURU, KELUAR) */
.game-body {
    background-color: #e8f5e9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.game-header {
    background: linear-gradient(90deg, #1b5e20, #2e7d32 40%, #0288d1 100%);
    color: #ffffff;
    padding: 0.6rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.player-profile-badge {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.player-avatar {
    width: 44px;
    height: 44px;
    background: #ffffff;
    border: 2.5px solid var(--color-leaf-mint);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.player-details {
    display: flex;
    flex-direction: column;
}

.player-name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.1;
    color: #ffffff;
}

.player-meta {
    font-size: 0.78rem;
    color: #e0f2f1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

/* 4 IKON NAVIGASI */
.game-nav-icons {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--radius-md);
    padding: 0.35rem 0.65rem;
    min-width: 58px;
    min-height: 48px;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: all 0.2s ease;
    position: relative;
}

.nav-btn:hover, .nav-btn.active {
    background: #ffffff;
    color: var(--color-forest-dark);
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.nav-btn.active .nav-icon {
    transform: scale(1.15);
}

.nav-icon {
    font-size: 1.15rem;
    line-height: 1;
    margin-bottom: 2px;
    transition: transform 0.2s ease;
}

.nav-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.nav-counter {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--color-sun-gold);
    color: #3e2723;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: var(--radius-pill);
    border: 1.5px solid #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* 6. CONTAINER GAME UTAMA */
.game-main-content {
    flex: 1;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 1rem 0.85rem 2.5rem;
}

.game-view {
    width: 100%;
}

/* VIEW 1: MAP WORLD 5 SITUASI */
.map-banner {
    background: linear-gradient(135deg, #ffffff, #f1f8e9);
    border: 2px solid var(--color-leaf-mint);
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.4rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--card-shadow);
}

.map-banner-text h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-forest-dark);
}

.map-banner-text p {
    font-size: 0.92rem;
    color: var(--text-muted);
}

.map-banner-badge {
    background: var(--color-sun-soft);
    border: 2px solid var(--color-sun-gold);
    color: #e65100;
    padding: 0.45rem 1rem;
    border-radius: var(--radius-pill);
    font-weight: 800;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.map-island-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.situation-node {
    background: #ffffff;
    border: 3px solid #e0e0e0;
    border-radius: var(--radius-lg);
    padding: 1.4rem;
    position: relative;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    box-shadow: var(--card-shadow);
}

.situation-node:hover {
    transform: translateY(-6px);
    border-color: var(--color-forest-light);
    box-shadow: var(--card-shadow-hover);
}

.situation-node.completed {
    border-color: #66bb6a;
    background: #f9fbf9;
}

.node-pin-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #e8f5e9;
    color: var(--color-forest-dark);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
    border: 1px solid #c8e6c9;
}

.node-icon-circle {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

.bg-node-1 { background: linear-gradient(135deg, #ffe082, #ffb300); }
.bg-node-2 { background: linear-gradient(135deg, #81d4fa, #0288d1); }
.bg-node-3 { background: linear-gradient(135deg, #a5d6a7, #388e3c); }
.bg-node-4 { background: linear-gradient(135deg, #ce93d8, #7b1fa2); }
.bg-node-5 { background: linear-gradient(135deg, #ffab91, #d84315); }

.node-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-forest-dark);
    line-height: 1.2;
}

.node-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.node-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.5rem;
    border-top: 1px dashed #e0e0e0;
}

.node-badge {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-pill);
    background: #eeeeee;
    color: #616161;
}

.node-badge.done {
    background: #e8f5e9;
    color: #2e7d32;
}

.node-score {
    font-weight: 800;
    color: var(--color-ocean-dark);
    font-size: 0.95rem;
}

/* 7. VIEW 2: ARENA SITUASI & 5 LEVEL CT */
.situation-active-header {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-color);
    padding: 1rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.sit-info-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sit-tag {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--color-ocean-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sit-name {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--color-forest-dark);
    line-height: 1.2;
}

.sit-score-right {
    text-align: right;
}

.sit-score-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.sit-score-val {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-forest-primary);
}

/* STEPPER 5 LEVEL BERPIKIR KOMPUTASIONAL */
.ct-stepper {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.4rem 0.2rem 0.8rem;
    margin-bottom: 1rem;
    scrollbar-width: thin;
}

.step-item {
    flex: 1;
    min-width: 140px;
    background: #ffffff;
    border: 2px solid #cfd8dc;
    border-radius: var(--radius-md);
    padding: 0.6rem 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.step-item.active {
    border-color: var(--color-forest-primary);
    background: #e8f5e9;
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.15);
}

.step-item.completed {
    border-color: #81c784;
    background: #f1f8e9;
}

.step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #eceff1;
    color: #455a64;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
}

.step-item.active .step-num {
    background: var(--color-forest-primary);
    color: #ffffff;
}

.step-item.completed .step-num {
    background: #4caf50;
    color: #ffffff;
}

.step-label {
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
}

/* KARTU ARENA LEVEL UTAMA */
.level-card-arena {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 3px solid var(--color-leaf-mint);
    padding: 1.75rem;
    box-shadow: var(--card-shadow);
    min-height: 520px;
}

.level-intro-ribbon {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.ribbon-blue { background: #e1f5fe; color: #01579b; border-left: 6px solid #0288d1; }
.ribbon-green { background: #e8f5e9; color: #1b5e20; border-left: 6px solid #2e7d32; }
.ribbon-orange { background: #fff3e0; color: #e65100; border-left: 6px solid #f57c00; }
.ribbon-purple { background: #f3e5f5; color: #4a148c; border-left: 6px solid #7b1fa2; }
.ribbon-teal { background: #e0f2f1; color: #004d40; border-left: 6px solid #00897b; }

.ribbon-icon {
    font-size: 2rem;
    line-height: 1;
}

.level-intro-ribbon h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 0.15rem;
}

.level-intro-ribbon p {
    font-size: 0.88rem;
}

/* FEEDBACK BOX UMUM EDUKATIF */
.feedback-box {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    animation: popIn 0.3s ease;
}

.feedback-box.feedback-success {
    background: #e8f5e9;
    border: 2px solid #81c784;
    color: #1b5e20;
}

.feedback-box.feedback-wrong {
    background: #ffebee;
    border: 2px solid #e57373;
    color: #b71c1c;
}

.feedback-icon {
    font-size: 2rem;
    line-height: 1;
}

.feedback-content h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.feedback-content p {
    font-size: 0.95rem;
    line-height: 1.5;
}

.level-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 2px solid #f0f0f0;
    gap: 0.75rem;
}

/* 8. LEVEL 1: PENGENALAN POLA (PATTERN RECOGNITION) */
.pattern-scenario-box {
    background: #fafafa;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.scenario-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    color: var(--color-ocean-dark);
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.scenario-desc {
    font-size: 1.02rem;
    line-height: 1.6;
    color: var(--text-main);
}

.quiz-options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

.quiz-opt-btn {
    background: #ffffff;
    border: 2.5px solid #cfd8dc;
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1.02rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-height: 54px;
}

.quiz-opt-btn:hover {
    border-color: var(--color-sky-blue);
    background: #f0f9ff;
    transform: translateX(4px);
}

.quiz-opt-letter {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #eceff1;
    color: #455a64;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    flex-shrink: 0;
}

.quiz-opt-btn.correct {
    border-color: #2e7d32;
    background: #e8f5e9;
    color: #1b5e20;
}
.quiz-opt-btn.correct .quiz-opt-letter {
    background: #2e7d32;
    color: #ffffff;
}

.quiz-opt-btn.wrong {
    border-color: #c62828;
    background: #ffebee;
    color: #b71c1c;
}
.quiz-opt-btn.wrong .quiz-opt-letter {
    background: #c62828;
    color: #ffffff;
}

/* 9. LEVEL 2: DEKOMPOSISI (DRAG & DROP / KLIK KATEGORI) */
.mobile-tip-banner {
    background: #fff8e1;
    border: 1px solid #ffe082;
    color: #8d6e63;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    margin-bottom: 1.25rem;
}

.decomposition-deck-section {
    margin-bottom: 1.5rem;
}

.decomposition-deck-section h4 {
    font-family: var(--font-heading);
    color: var(--color-forest-dark);
    margin-bottom: 0.65rem;
}

.card-deck {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    min-height: 70px;
    background: #fafafa;
    border: 2px dashed #cfd8dc;
    border-radius: var(--radius-md);
    padding: 0.85rem;
}

.decom-card {
    background: #ffffff;
    border: 2px solid #b0bec5;
    border-radius: var(--radius-md);
    padding: 0.65rem 0.95rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-main);
    cursor: grab;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
    min-height: 48px;
    touch-action: none;
}

.decom-card:active {
    cursor: grabbing;
}

.decom-card.selected-for-mobile {
    border-color: var(--color-ocean-primary);
    background: #e1f5fe;
    box-shadow: 0 0 0 3px rgba(2, 136, 209, 0.3);
    transform: scale(1.05);
}

.categories-drop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.drop-zone-box {
    background: #fdfdfd;
    border: 2.5px dashed #90caf9;
    border-radius: var(--radius-md);
    padding: 1rem;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
}

.drop-zone-box.drag-over {
    border-color: var(--color-ocean-primary);
    background: #e3f2fd;
    transform: scale(1.02);
}

.drop-zone-box.ready-to-tap {
    border-color: #ff9800;
    background: #fff8e1;
}

.drop-zone-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--color-ocean-dark);
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #e3f2fd;
}

.dropped-cards-container {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex: 1;
}

/* 10. LEVEL 3: ABSTRAKSI (MESIN PENYARING INFORMASI) */
.filter-machine-wrapper {
    background: #fcfdfd;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.machine-status-bar {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    color: var(--color-forest-dark);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eeeeee;
}

.machine-active-card-container {
    max-width: 520px;
    margin: 0 auto 1.75rem;
    text-align: center;
}

.machine-funnel-top {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-ct-abs);
    margin-bottom: 0.65rem;
}

.current-filter-card {
    background: #ffffff;
    border: 3px solid #ffb74d;
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
    box-shadow: 0 10px 24px rgba(245, 124, 0, 0.15);
    margin-bottom: 1.25rem;
    position: relative;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.filter-card-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #f57c00;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.2rem 0.85rem;
    border-radius: var(--radius-pill);
}

.filter-card-text {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.5;
}

.machine-decision-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.btn-filter {
    padding: 1rem 0.85rem;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    min-height: 72px;
}

.btn-important {
    background: linear-gradient(135deg, #2e7d32, #4caf50);
    color: #ffffff;
}
.btn-important:hover {
    background: linear-gradient(135deg, #1b5e20, #388e3c);
}

.btn-unimportant {
    background: linear-gradient(135deg, #78909c, #90a4ae);
    color: #ffffff;
}
.btn-unimportant:hover {
    background: linear-gradient(135deg, #546e7a, #607d8b);
}

.btn-filter .btn-emoji {
    font-size: 1.4rem;
}

.btn-filter .btn-caption {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
}

.btn-filter small {
    font-size: 0.75rem;
    opacity: 0.9;
}

.filter-results-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.result-col {
    background: #fafafa;
    border-radius: var(--radius-md);
    padding: 0.85rem;
    border: 1px solid #e0e0e0;
}

.result-col h5 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
    color: var(--text-muted);
}

.mini-card-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-height: 150px;
    overflow-y: auto;
}

.mini-filter-item {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.6rem;
    border-radius: var(--radius-sm);
    background: #ffffff;
    border: 1px solid #e0e0e0;
}

/* 11. LEVEL 4: ALGORITMA (SUSUN LANGKAH & SIMULASI KARAKTER) */
.algorithm-builder-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .algorithm-builder-grid {
        grid-template-columns: 1fr;
    }
}

.algo-bank-col h4, .algo-sequence-col h4 {
    font-family: var(--font-heading);
    color: var(--color-ct-algo);
    margin-bottom: 0.65rem;
}

.algo-deck {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    background: #fbfbfc;
    border: 2px dashed #ce93d8;
    border-radius: var(--radius-md);
    padding: 0.85rem;
    min-height: 220px;
}

.algo-card {
    background: #ffffff;
    border: 2px solid #ba68c8;
    border-radius: var(--radius-md);
    padding: 0.75rem 0.9rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: #4a148c;
    cursor: grab;
    user-select: none;
    box-shadow: 0 2px 6px rgba(123, 31, 162, 0.1);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-height: 48px;
}

.algo-card:hover {
    border-color: #7b1fa2;
    background: #f3e5f5;
}

.sequence-slots {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.algo-slot {
    background: #f5f5f5;
    border: 2px dashed #9e9e9e;
    border-radius: var(--radius-md);
    padding: 0.6rem 0.85rem;
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    transition: all 0.2s ease;
}

.algo-slot.drag-over {
    border-color: #7b1fa2;
    background: #ede7f6;
}

.slot-index {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #7b1fa2;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.slot-placeholder {
    font-size: 0.85rem;
    color: #9e9e9e;
    font-style: italic;
}

.algo-controls {
    display: flex;
    gap: 0.65rem;
}

/* STAGE SIMULASI KARAKTER VISUAL */
.algo-simulation-stage {
    background: #e8f5e9;
    border: 3px solid #81c784;
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-top: 1rem;
    overflow: hidden;
}

.stage-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-forest-dark);
    margin-bottom: 0.85rem;
}

.stage-track {
    background: #ffffff;
    border: 2px solid #a5d6a7;
    border-radius: var(--radius-md);
    padding: 1.5rem 1rem;
    position: relative;
    min-height: 110px;
    display: flex;
    align-items: center;
}

.character-hero {
    position: absolute;
    left: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: left 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
}

.char-sprite {
    font-size: 2.2rem;
    line-height: 1;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.char-name {
    background: var(--color-forest-dark);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: var(--radius-pill);
    margin-top: 2px;
}

.stage-nodes-flex {
    display: flex;
    justify-content: space-around;
    width: 100%;
    padding-left: 60px;
}

.stage-node-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.stage-node-item.active-step {
    opacity: 1;
    transform: scale(1.15);
}

.stage-node-icon {
    font-size: 1.8rem;
}

.stage-node-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-forest-dark);
}

.simulation-log {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-forest-dark);
    background: rgba(255, 255, 255, 0.7);
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-sm);
}

/* 12. LEVEL 5: AKSI NYATA (CHECKLIST DUNIA NYATA) */
.real-action-card {
    background: #f7faf8;
    border: 2px solid #b2dfdb;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.action-card-header {
    margin-bottom: 1.25rem;
}

.badge-hero {
    background: #e0f2f1;
    color: #00796b;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
    display: inline-block;
    margin-bottom: 0.4rem;
}

.action-card-header h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: #004d40;
}

.action-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.checklist-item {
    background: #ffffff;
    border: 2px solid #cfd8dc;
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 52px;
}

.checklist-item:hover {
    border-color: #80cbc4;
    background: #f0fdf4;
}

.checklist-item.checked {
    border-color: #00897b;
    background: #e0f2f1;
}

.custom-checkbox {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 2px solid #78909c;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #ffffff;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.checklist-item.checked .custom-checkbox {
    background: #00897b;
    border-color: #00897b;
}

.checklist-text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
}

.pledge-confirmation-box {
    text-align: center;
}

.situation-finish-celebration {
    text-align: center;
    padding: 2.5rem 1rem;
    background: linear-gradient(135deg, #ffffff, #f1f8e9);
    border: 3px solid #66bb6a;
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 28px rgba(46, 125, 50, 0.2);
    animation: popIn 0.4s ease;
}

.celebrate-badge {
    display: inline-block;
    background: var(--color-sun-gold);
    color: #3e2723;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    padding: 0.4rem 1.25rem;
    border-radius: var(--radius-pill);
    margin-bottom: 0.75rem;
}

.situation-finish-celebration h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-forest-dark);
}

.earned-stars-row {
    font-size: 2.5rem;
    margin: 1rem 0 1.5rem;
    letter-spacing: 0.2rem;
}

.celebrate-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* 13. MODAL SCORE, GURU, & LOGOUT */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-dialog {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 3px solid var(--color-leaf-mint);
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
}

.modal-sm {
    max-width: 400px;
}

.modal-header {
    background: linear-gradient(90deg, #1b5e20, #2e7d32);
    color: #ffffff;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title-flex {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.modal-icon {
    font-size: 1.6rem;
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    line-height: 1.1;
}

.modal-header small {
    opacity: 0.9;
    font-size: 0.78rem;
}

.btn-close-modal {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.btn-close-modal:hover {
    background: rgba(255, 255, 255, 0.4);
}

.modal-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.total-score-banner {
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    border: 2px solid var(--color-sun-gold);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    text-align: center;
}

.big-score-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: #e65100;
    line-height: 1;
}

.big-score-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: #6d4c41;
}

.stars-preview {
    font-size: 1.6rem;
    margin-top: 0.4rem;
}

.score-breakdown-section h4 {
    font-family: var(--font-heading);
    font-size: 1.02rem;
    color: var(--color-forest-dark);
    margin-bottom: 0.65rem;
}

.modal-score-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.score-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
    border: 1px solid #eeeeee;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.score-item-row strong {
    color: var(--color-forest-primary);
}

.ct-score-bars {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.ct-score-item .ct-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.progress-track {
    width: 100%;
    height: 10px;
    background: #e0e0e0;
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: var(--radius-pill);
    transition: width 0.6s ease;
}

.fill-blue { background: #0288d1; }
.fill-green { background: #2e7d32; }
.fill-orange { background: #f57c00; }
.fill-purple { background: #7b1fa2; }
.fill-gold { background: #ffb300; }

.modal-footer {
    padding: 0.85rem 1.25rem;
    background: #fafafa;
    border-top: 1px solid #eeeeee;
}

/* 14. DASHBOARD GURU STYLING */
.dashboard-body {
    background-color: #f1f8f4;
}

.top-nav-bar {
    background: linear-gradient(90deg, #1b5e20, #004d40);
    color: #ffffff;
    padding: 0.75rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.brand-logo {
    font-size: 1.8rem;
}

.brand-text strong {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    display: block;
    line-height: 1.1;
}

.brand-text small {
    font-size: 0.78rem;
    color: #b2dfdb;
}

.nav-actions {
    display: flex;
    gap: 0.5rem;
}

.dashboard-container {
    max-width: 1120px;
    margin: 1.5rem auto;
    padding: 0 1rem;
}

.teacher-login-box {
    max-width: 480px;
    margin: 3rem auto;
}

.login-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 3px solid var(--color-leaf-mint);
    box-shadow: var(--card-shadow);
    padding: 2.25rem 1.75rem;
    text-align: center;
}

.login-badge-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.login-card h2 {
    font-family: var(--font-heading);
    color: var(--color-forest-dark);
    margin-bottom: 0.4rem;
}

.login-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.login-hint {
    margin-top: 1.25rem;
    font-size: 0.85rem;
    color: #689f38;
}

.dashboard-header-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dashboard-header-title h1 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-forest-dark);
}

.dashboard-header-title p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.export-actions {
    display: flex;
    gap: 0.65rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.stat-card-green { border-left: 6px solid #2e7d32; }
.stat-card-blue { border-left: 6px solid #0288d1; }
.stat-card-gold { border-left: 6px solid #ffb300; }

.stat-icon {
    font-size: 2.5rem;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.situation-summary-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.situation-summary-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-forest-dark);
    margin-bottom: 1rem;
}

.situation-bars {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.sit-bar-item .sit-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    margin-bottom: 0.25rem;
}

.table-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.table-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.table-header-flex h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-forest-dark);
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table th, .data-table td {
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid #eeeeee;
    text-align: left;
}

.data-table th {
    background: #f5f5f5;
    font-family: var(--font-heading);
    color: var(--color-forest-dark);
    font-weight: 700;
}

.data-table tbody tr:hover {
    background: #f9fbf9;
}

.tag-kelas {
    background: #e3f2fd;
    color: #0277bd;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
}

.score-highlight {
    color: #2e7d32;
    font-size: 1.05rem;
}

.badge-predikat {
    font-size: 0.78rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    display: inline-block;
}

.badge-gold { background: #fff8e1; color: #f57f17; border: 1px solid #ffe082; }
.badge-silver { background: #eceff1; color: #455a64; border: 1px solid #cfd8dc; }
.badge-bronze { background: #efebe9; color: #5d4037; border: 1px solid #d7ccc8; }

/* 15. ALERTS & ANIMATIONS */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.92rem;
    font-weight: 600;
}

.alert-error {
    background: #ffebee;
    border: 1.5px solid #ef9a9a;
    color: #c62828;
}

.alert-success {
    background: #e8f5e9;
    border: 1.5px solid #a5d6a7;
    color: #2e7d32;
}

@keyframes bounceGentle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes popIn {
    0% { transform: scale(0.92); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.animate-bounce-gentle {
    animation: bounceGentle 3s ease-in-out infinite;
}

.animate-pop-in {
    animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 16. RESPONSIVE MEDIA QUERIES (MOBILE / TABLET / PC) */
@media (max-width: 640px) {
    .main-title {
        font-size: 2.2rem;
    }
    
    .cover-card {
        padding: 1.5rem 1rem;
    }

    .card-ribbon {
        margin: -1.5rem -1rem 1.25rem;
        font-size: 0.9rem;
    }

    .game-header {
        padding: 0.5rem 0.75rem;
    }

    .player-meta {
        display: none;
    }

    .nav-btn {
        min-width: 48px;
        padding: 0.25rem 0.4rem;
    }

    .nav-label {
        font-size: 0.65rem;
    }

    .level-card-arena {
        padding: 1.1rem;
    }

    .machine-decision-buttons {
        grid-template-columns: 1fr;
    }

    .filter-results-columns {
        grid-template-columns: 1fr;
    }

    .stage-track {
        padding: 1.5rem 0.5rem;
    }

    .stage-nodes-flex {
        padding-left: 45px;
    }
}
