/* =====================================================
           MINDCLEAR: MODERN REDESIGN (MATCHING SPECIFICATION)
           ===================================================== */
:root {
    --primary: #0f4a3b;
    --primary-dark: #062e24;
    --primary-emerald: #059669;
    --primary-light: #e6f7f2;
    --primary-gradient: linear-gradient(135deg, #064e3b 0%, #047857 50%, #059669 100%);

    --ink-red: #dc2626;
    --ink-blue: #2563eb;
    --ink-green: #059669;
    --ink-yellow: #d97706;

    --bg-page: #f4f7f6;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-light: #e2e8f0;

    --font-main: 'Plus Jakarta Sans', 'Noto Sans Sinhala', 'Noto Sans Tamil', -apple-system, sans-serif;
    --font-serif: 'Playfair Display', 'Noto Serif Sinhala', serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-page);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.5;
    overflow-x: hidden;
    touch-action: manipulation;
}

/* ── Page Wrapper ── */
.bf-page-wrapper {
    flex: 1;
    padding-bottom: 70px;
    width: 100%;
}

.bf-container {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ── Breadcrumb ── */
.bf-breadcrumb {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: #64748b;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.bf-breadcrumb a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    transition: color 0.2s;
}

.bf-breadcrumb a:hover {
    color: #1a7a62;
}

.bf-breadcrumb .sep {
    color: #cbd5e1;
    font-size: 0.95rem;
}

.bf-breadcrumb .current {
    color: #475569;
    font-weight: 700;
}

/* ── Top Sound Control Bar ── */
.bf-card-topbar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.bf-icon-btn {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.bf-icon-btn.active {
    color: var(--primary);
    background: var(--primary-light);
    border-color: #a7f3d0;
}

/* ── Main Game Card ── */
.bf-game-card {
    width: 100%;
    background: var(--bg-card);
    border-radius: 28px;
    padding: 30px 24px;
    box-shadow: 0 16px 36px -8px rgba(15, 74, 59, 0.08), 0 4px 12px -2px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(226, 232, 240, 0.9);
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    overflow: hidden;
    scroll-margin-top: 80px;
}

/* ==============================================
           SCREEN 1: WELCOME SCREEN (IMAGE 1 SPEC)
           ============================================== */
.screen-welcome {
    text-align: center;
    position: relative;
}

/* Hero Header with Background Brain Artwork */
.welcome-hero-section {
    position: relative;
    min-height: 175px;
    padding-right: 175px;
    margin-bottom: 24px;
}

.welcome-hero-art {
    position: absolute;
    top: -15px;
    right: -10px;
    width: 210px;
    height: 200px;
    background: url('../../uploads/brain-land-image.png') no-repeat right top;
    background-size: contain;
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 520px) {
    .welcome-hero-section {
        padding-right: 0;
        min-height: auto;
    }

    .welcome-hero-art {
        position: relative;
        top: 0;
        right: 0;
        width: 100%;
        height: 140px;
        background-position: center center;
        margin-bottom: 12px;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e6f7f2;
    color: #047857;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 12px;
    border: 1px solid #a7f3d0;
    letter-spacing: 0.3px;
}

.game-title {
    font-family: var(--font-serif);
    font-size: 2.1rem;
    font-weight: 800;
    color: #0f4a3b;
    line-height: 1.18;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.game-title span {
    color: #092e25;
}

.game-desc {
    font-size: 0.94rem;
    color: #64748b;
    line-height: 1.55;
    max-width: 420px;
}

/* How to Play Container */
.how-to-play-box {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 22px;
    padding: 20px;
    margin-bottom: 22px;
}

.how-to-play-title-wrap {
    margin-bottom: 14px;
}

.how-to-play-title {
    font-size: 0.98rem;
    font-weight: 800;
    color: #0f172a;
    display: inline-block;
    position: relative;
    padding-bottom: 6px;
}

.how-to-play-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 38px;
    height: 3px;
    background: #059669;
    border-radius: 999px;
}

.tutorial-interactive-panel {
    background: #f0fdf9;
    border: 1px solid #d1fae5;
    border-radius: 16px;
    padding: 16px 14px;
}

.tutorial-flow-row {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 10px;
    margin-bottom: 12px;
}

.demo-stimulus-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 10px 18px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    flex: 1;
    max-width: 170px;
}

.demo-stimulus-word {
    font-size: 1.35rem;
    font-weight: 900;
    color: #2563eb;
    letter-spacing: 1px;
    line-height: 1.1;
}

.demo-stimulus-ink-label {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 600;
    margin-top: 2px;
}

.demo-arrow-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #d1fae5;
    color: #047857;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.demo-target-tap-btn {
    background: linear-gradient(145deg, #2563eb, #2563eb);
    color: #ffffff;
    border-radius: 14px;
    padding: 12px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 800;
    box-shadow: 0 6px 16px rgba(11, 37, 74, 0.35);
    flex: 1;
    max-width: 170px;
    animation: gentle-pulse 2s infinite ease-in-out;
}

@keyframes gentle-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }
}

.tutorial-tip-line {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.84rem;
    color: #334155;
    line-height: 1.4;
}

.tutorial-tip-line i {
    color: #059669;
    font-size: 1.05rem;
    flex-shrink: 0;
}

/* Primary Big Start Button */
.btn-start-scanner {
    width: 100%;
    background: var(--primary-gradient);
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(6, 78, 59, 0.32);
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-start-scanner:active {
    transform: scale(0.98);
    box-shadow: 0 4px 12px rgba(6, 78, 59, 0.2);
}

.btn-start-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-start-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #ffffff;
    flex-shrink: 0;
}

.btn-start-text {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.btn-start-arrow {
    font-size: 1.3rem;
    line-height: 1;
    color: #ffffff;
}

.trust-badges-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 600;
}

.trust-badges-row i {
    color: #059669;
}

/* ==============================================
           SCREEN 2: 3-2-1 COUNTDOWN SCREEN
           ============================================== */
.screen-countdown {
    display: none;
    text-align: center;
    padding: 50px 10px;
}

.countdown-number {
    font-size: 6.5rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 12px;
    animation: zoom-fade 1s ease-out infinite;
}

@keyframes zoom-fade {
    0% {
        transform: scale(0.6);
        opacity: 0;
    }

    50% {
        transform: scale(1.15);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.9;
    }
}

.countdown-prompt {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-muted);
}

/* ==============================================
           SCREEN 3: GAMEPLAY ARENA (IMAGE 2 SPEC)
           ============================================== */
.screen-gameplay {
    display: none;
    flex-direction: column;
    width: 100%;
}

/* Modern HUD */
.game-hud {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.hud-stat-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hud-icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e6f7f2;
    color: #047857;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.hud-icon-circle.error-icon {
    background: #fee2e2;
    color: #ef4444;
}

.hud-info-col {
    display: flex;
    flex-direction: column;
}

.hud-stat-label {
    font-size: 0.72rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hud-stat-val {
    font-size: 1.25rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.1;
}

.hud-stat-val.error-val {
    color: #ef4444;
}

/* Progress Bar */
.game-progress-bar-wrap {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 20px;
}

.game-progress-fill {
    height: 100%;
    width: 5%;
    background: linear-gradient(90deg, #059669, #10b981);
    border-radius: 999px;
    transition: width 0.2s ease;
}

/* Stimulus Word Card */
.stroop-stimulus-box {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 24px;
    min-height: 165px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 20px;
    padding: 30px 20px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    overflow: hidden;
}

.stroop-stimulus-box.flash-error {
    background: #fef2f2 !important;
    border-color: #ef4444 !important;
    animation: shake-error 0.35s ease-in-out;
}

.stroop-stimulus-box.flash-success {
    background: #f0fdf4 !important;
    border-color: #22c55e !important;
}

@keyframes shake-error {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-8px);
    }

    40%,
    80% {
        transform: translateX(8px);
    }
}

.stimulus-target-word {
    font-size: 3.4rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-align: center;
    line-height: 1.1;
    margin-bottom: 6px;
    transition: transform 0.1s ease;
}

@media (max-width: 440px) {
    .stimulus-target-word {
        font-size: 2.6rem;
        letter-spacing: 1px;
    }
}

.stimulus-hint {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* 2x2 Massive Color Tap Pads (Image 2 style) */
.color-pads-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    width: 100%;
}

.color-pad-btn {
    border: none;
    border-radius: 20px;
    min-height: 84px;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    font-family: inherit;
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transition: transform 0.08s ease, filter 0.15s ease;
    position: relative;
    overflow: hidden;
    touch-action: manipulation;
}

.color-pad-btn:active {
    transform: scale(0.95);
    filter: brightness(1.12);
}

.pad-target-indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2.5px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pad-target-indicator::after {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ffffff;
}

.pad-red {
    background: linear-gradient(145deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.35);
}

.pad-blue {
    background: linear-gradient(145deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.pad-green {
    background: linear-gradient(145deg, #10b981 0%, #059669 100%);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
}

.pad-yellow {
    background: linear-gradient(145deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35);
}

/* Centered Restart Button */
.gameplay-footer-actions {
    width: 100%;
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.btn-gameplay-restart {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 999px;
    padding: 10px 24px;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.btn-gameplay-restart:hover {
    background: #f8fafc;
    color: #0f172a;
    border-color: #cbd5e1;
}

.btn-gameplay-restart i {
    font-size: 1rem;
    color: var(--primary);
}

/* ==============================================
           SCREEN 4: RESULTS & SOCIAL SHARING (IMAGE 3 SPEC)
           ============================================== */
.screen-results {
    display: none;
    text-align: center;
}

/* Top Hero Card with Brain Silhouette & Glow */
.results-hero-card {
    background: linear-gradient(145deg, #052e24 0%, #0a4637 55%, #041f18 100%);
    border-radius: 24px;
    padding: 32px 20px 28px;
    color: #ffffff;
    margin-bottom: 20px;
    box-shadow: 0 14px 32px rgba(5, 46, 36, 0.3);
    position: relative;
    overflow: hidden;
}

.results-hero-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 180px;
    height: 100%;
    background: radial-gradient(circle at 80% 50%, rgba(52, 211, 153, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 18px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.tier-sharp {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
    border: 1px solid rgba(52, 211, 153, 0.5);
}

.tier-normal {
    background: rgba(245, 158, 11, 0.2);
    color: #fde68a;
    border: 1px solid rgba(251, 191, 36, 0.5);
}

.tier-fog {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(248, 113, 113, 0.5);
}

.score-number {
    font-size: 4.8rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -2px;
    color: #ffffff;
    margin-bottom: 6px;
}

.score-divider-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.score-divider-line {
    width: 32px;
    height: 1.5px;
    background: rgba(167, 243, 208, 0.5);
}

.score-total-txt {
    font-size: 0.9rem;
    font-weight: 700;
    color: #a7f3d0;
    letter-spacing: 0.5px;
}

/* Force high-contrast vibrant colors for the result headline */
.results-hero-card .tier-headline {
    font-size: 1.55rem;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.25;
}

.results-hero-card .tier-headline.tier-txt-sharp {
    color: #6ee7b7 !important;
}

.results-hero-card .tier-headline.tier-txt-normal {
    color: #fde68a !important;
}

.results-hero-card .tier-headline.tier-txt-fog {
    color: #fca5a5 !important;
}

.tier-description {
    font-size: 0.92rem;
    color: #e2e8f0;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

/* 4 Metrics Cards (2x2 Grid with Top Accent Stripes) */
.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.metric-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 16px 14px;
    text-align: left;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.metric-top-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.bar-green {
    background: #10b981;
}

.bar-emerald {
    background: #059669;
}

.bar-pink {
    background: #f43f5e;
}

.bar-purple {
    background: #8b5cf6;
}

.metric-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.icon-bg-mint {
    background: #ecfdf5;
    color: #059669;
}

.icon-bg-green {
    background: #e6f7f2;
    color: #047857;
}

.icon-bg-pink {
    background: #fff1f2;
    color: #f43f5e;
}

.icon-bg-purple {
    background: #f5f3ff;
    color: #8b5cf6;
}

.metric-content {
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-size: 0.72rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 2px;
}

.metric-val {
    font-size: 1.35rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.1;
}

.metric-sub {
    font-size: 0.74rem;
    color: #64748b;
    font-weight: 700;
    margin-top: 2px;
    transition: color 0.2s ease;
}

/* Social Share Section (Image 3 Spec) */
.social-share-section {
    background: #ffffff;
    border: 1.5px solid #dcfce7;
    border-radius: 22px;
    padding: 22px 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(15, 74, 59, 0.04);
    position: relative;
}

.share-section-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.share-divider-line {
    flex: 1;
    height: 1px;
    background: #d1fae5;
    max-width: 60px;
}

.share-title-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f4a3b;
}

.share-buttons-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

@media (max-width: 560px) {
    .share-buttons-row {
        grid-template-columns: 1fr 1fr;
    }
}

.btn-share-social {
    border: none;
    border-radius: 14px;
    padding: 12px 10px;
    font-size: 0.85rem;
    font-weight: 800;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-share-social:active {
    transform: scale(0.96);
}

.btn-share-native {
    background: #0f4a3b;
}

.btn-share-whatsapp {
    background: #25d366;
}

.btn-share-facebook {
    background: #1877f2;
}

.btn-share-copy {
    background: #334155;
}

/* Retest Button */
.btn-restart {
    width: 100%;
    background: #ffffff;
    color: #0f4a3b;
    border: 2px solid #0f4a3b;
    border-radius: 18px;
    padding: 15px 20px;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-restart:hover {
    background: #e6f7f2;
}

/* Expandable Brain Health Nursing Guide */
.tips-accordion {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 20px;
    text-align: left;
}

.tips-accordion-header {
    padding: 16px 18px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    gap: 12px;
}

.tips-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tips-bulb-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fef3c7;
    color: #d97706;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.tips-header-text-col {
    display: flex;
    flex-direction: column;
}

.tips-header-title {
    font-size: 0.94rem;
    font-weight: 800;
    color: #0f172a;
}

.tips-header-sub {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 500;
}

.tips-accordion-body {
    display: none;
    padding: 18px;
    font-size: 0.88rem;
    color: #334155;
    line-height: 1.6;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.tips-accordion-body.open {
    display: block;
}

.tips-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tips-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.tips-list li span.bullet-icon {
    font-size: 1.1rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ── Medical Disclaimer (Images Spec) ── */
.medical-disclaimer-card {
    width: 100%;
    background: #fef9ee;
    border: 1px solid #fef3c7;
    border-radius: 18px;
    padding: 16px 18px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 18px;
    text-align: left;
}

.disclaimer-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fef3c7;
    color: #d97706;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.disclaimer-text {
    font-size: 0.82rem;
    color: #92400e;
    line-height: 1.55;
}

.disclaimer-text strong {
    font-weight: 800;
}

/* ── Toast Notification ── */
.bf-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #0f172a;
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.bf-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ── Mobile Screen Optimization & Viewport Fit ── */
@media (max-width: 600px) {
    .bf-page-wrapper {
        padding-bottom: 40px;
    }

    .bf-game-card {
        padding: 20px 16px;
        border-radius: 24px;
    }

    .game-hud {
        margin-bottom: 10px;
    }

    .hud-icon-circle {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .hud-stat-val {
        font-size: 1.15rem;
    }

    .game-progress-bar-wrap {
        height: 6px;
        margin-bottom: 14px;
    }

    .stroop-stimulus-box {
        min-height: 125px;
        padding: 18px 12px;
        border-radius: 20px;
        margin-bottom: 14px;
    }

    .stimulus-target-word {
        font-size: 2.6rem;
        letter-spacing: 1px;
        margin-bottom: 4px;
    }

    .stimulus-hint {
        font-size: 0.72rem;
        letter-spacing: 1px;
    }

    .color-pads-grid {
        gap: 10px;
    }

    .color-pad-btn {
        min-height: 70px;
        padding: 10px 8px;
        border-radius: 16px;
        font-size: 1.05rem;
    }

    .pad-target-indicator {
        width: 14px;
        height: 14px;
    }

    .gameplay-footer-actions {
        margin-top: 14px;
    }

    .btn-gameplay-restart {
        padding: 8px 18px;
        font-size: 0.82rem;
    }

    .score-number {
        font-size: 4rem;
    }
}