        :root {
            --bg-color: #050505;
            --card-bg: #1a1a1a;
            --text-main: #e0e0e0;
            --accent-traffic: #00ff9d;
            /* Green */
            --accent-panic: #ff3838;
            /* Red */
            --accent-suspicion: #bdc3c7;
            /* Grey */
            --card-light-border: #3498db;
            /* Blue */
            --card-heavy-border: #e74c3c;
            /* Red */
            --glitch-color: #ff00ff;
        }

        * {
            box-sizing: border-box;
            user-select: none;
            -webkit-tap-highlight-color: transparent;
        }

        body {
            margin: 0;
            padding: 0;
            background-color: var(--bg-color);
            color: var(--text-main);
            font-family: 'Courier New', Courier, monospace;
            /* Hacker style */
            height: 100vh;
            display: flex;
            flex-direction: column;
            overflow-y: auto;
            /* Allow scrolling if cards are too tall */
        }

        /* --- Dashboard (Stats) --- */
        #dashboard {
            background: rgba(20, 20, 20, 0.95);
            border-bottom: 2px solid #333;
            padding: 10px 15px;
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 10px;
            z-index: 10;
        }

        .stat-box {
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .stat-label {
            font-size: 0.75rem;
            opacity: 0.8;
            margin-bottom: 4px;
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            /* Align bottom to handle different font sizes */
        }

        .stat-name {
            font-size: 1.5rem;
            /* Enlarge Chinese text */
            font-weight: bold;
            line-height: 1;
        }

        .stat-value {
            font-weight: bold;
        }

        .progress-track {
            height: 8px;
            background: #333;
            border-radius: 4px;
            overflow: hidden;
            position: relative;
        }

        .progress-bar {
            height: 100%;
            width: 0%;
            transition: width 0.5s ease-out, background-color 0.3s;
        }

        #bar-traffic {
            background-color: var(--accent-traffic);
            box-shadow: 0 0 10px var(--accent-traffic);
        }

        #bar-panic {
            background-color: var(--accent-panic);
            box-shadow: 0 0 10px var(--accent-panic);
        }

        #bar-suspicion {
            background-color: var(--accent-suspicion);
        }

        /* Panic Shield Effect on Suspicion Bar */
        .shield-active #bar-suspicion {
            background-color: #f1c40f;
            /* Yellow shield */
            box-shadow: 0 0 5px #f1c40f;
        }

        /* --- Game Area --- */
        #game-area {
            flex: 1;
            display: flex;
            flex-direction: column;
            padding: 15px;
            position: relative;
            max-width: 1000px;
            margin: 0 auto;
            width: 100%;
        }

        /* --- Scenario Text --- */
        #scenario-container {
            text-align: center;
            margin-bottom: 20px;
            animation: fadeIn 0.8s ease;
        }

        #scenario-desc {
            font-size: 1rem;
            color: #aaa;
            border-left: 3px solid var(--accent-panic);
            padding-left: 10px;
            display: inline-block;
            text-align: left;
            max-width: 90%;
            background: rgba(255, 255, 255, 0.05);
            padding: 10px;
        }

        /* --- Cards --- */
        #cards-container {
            flex: 1;
            display: flex;
            gap: 20px;
            justify-content: center;
            align-items: stretch;
            perspective: 1000px;
        }

        .card {
            flex: 1;
            background: var(--card-bg);
            border: 2px solid #444;
            border-radius: 8px;
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s, border-color 0.3s;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            max-width: 400px;
            position: relative;
        }

        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
        }

        .card:active {
            transform: scale(0.98);
        }

        /* Option A: Light */
        .card.light:hover {
            border-color: var(--card-light-border);
            box-shadow: 0 0 15px rgba(52, 152, 219, 0.3);
        }

        .card.light .card-type {
            color: var(--card-light-border);
        }

        /* Option B: Heavy */
        .card.heavy:hover {
            border-color: var(--card-heavy-border);
            box-shadow: 0 0 15px rgba(231, 76, 60, 0.3);
        }

        .card.heavy .card-type {
            color: var(--card-heavy-border);
        }

        .card-image-box {
            height: 300px;
            /* Changed from 180px to 300px (4:3 aspect ratio for ~400px width) */
            background: #000;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            border-bottom: 1px solid #333;
        }

        .card-image-box img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: 0.8;
            transition: opacity 0.3s;
        }

        .card:hover .card-image-box img {
            opacity: 1;
        }

        .card-content {
            padding: 20px;
            /* 從 10px 增加到 20px，讓邊框與文字距離加倍 */
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        /* 移除 card-type 樣式，因為元素已被刪除 */

        .card-text {
            font-size: 1.1rem;
            /* 稍微調大一點字體，配合變大的框框 */
            line-height: 1.6;
            /* 增加行高，提升閱讀舒適度 */
            color: #fff;
            overflow-y: auto;
            /* Handle long text gracefully */
        }

        /* 移除提示的樣式，保留代碼結構但不再使用或直接刪除 */
        /* .card-stats-hint { ... } */

        .icon {
            font-family: sans-serif;
        }

        /* --- Feedback Overlay --- */
        #overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.92);
            z-index: 100;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s;
            text-align: center;
            padding: 20px;
        }

        #overlay.active {
            opacity: 1;
            pointer-events: auto;
        }

        #overlay-title {
            font-size: 2.5rem;
            margin-bottom: 20px;
            text-transform: uppercase;
            letter-spacing: 5px;
        }

        #overlay-msg {
            font-size: 1.2rem;
            color: #ccc;
            margin-bottom: 30px;
            max-width: 600px;
            line-height: 1.6;
        }

        #overlay-stats {
            display: flex;
            flex-direction: column;
            gap: 10px;
            background: #111;
            padding: 20px;
            border: 1px solid #333;
            border-radius: 5px;
            width: 100%;
            max-width: 400px;
            font-family: monospace;
            text-align: left;
        }

        .stat-change {
            display: flex;
            justify-content: space-between;
        }

        .stat-change span:last-child {
            font-weight: bold;
        }

        .positive {
            color: var(--accent-traffic);
        }

        .negative {
            color: var(--accent-panic);
        }

        /* Logic context: Panic gain is usually "good" for player, but visually red */
        .danger {
            color: var(--card-heavy-border);
        }

        #overlay-btn {
            margin-top: 30px;
            background: transparent;
            border: 2px solid #fff;
            color: #fff;
            padding: 10px 40px;
            font-size: 1.2rem;
            font-family: inherit;
            cursor: pointer;
            transition: all 0.3s;
        }

        #overlay-btn:hover {
            background: #fff;
            color: #000;
        }

        /* --- End Game Specifics --- */
        .win-screen #overlay-title {
            color: var(--accent-panic);
            text-shadow: 0 0 10px var(--accent-panic);
        }

        .lose-screen #overlay-title {
            color: #7f8c8d;
            text-shadow: 0 0 10px #fff;
        }

        /* --- Responsive --- */
        @media (max-width: 768px) {
            #cards-container {
                flex-direction: column;
            }

            .card {
                max-width: 100%;
                flex: 1;
            }

            .card-image-box {
                height: 120px;
            }

            #scenario-desc {
                font-size: 0.9rem;
            }
        }

        /* Utility */
        .hidden {
            display: none !important;
        }

        .blink {
            animation: blinker 1s linear infinite;
        }

        @keyframes blinker {
            50% {
                opacity: 0;
            }
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }

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

        /* --- Start Screen --- */
        #start-screen {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: #000;
            z-index: 200;
            /* Higher than overlay */
            display: flex;
            flex-direction: column;
            /* align-items: center; */
            /* justify-content: center; */
            overflow-y: auto;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.5s;
            padding: 10px;
        }

        #start-screen.active {
            opacity: 1;
            pointer-events: auto;
        }

        .start-content {
            max-width: 500px;
            width: 100%;
            border: 1px solid #333;
            padding: 20px;
            background: #0a0a0a;
            box-shadow: 0 0 30px rgba(0, 255, 157, 0.1);
            text-align: center;
            margin: auto;
        }

        .start-content h1 {
            color: var(--text-main);
            font-size: 1.5rem;
            letter-spacing: 3px;
            margin-bottom: 15px;
            border-bottom: 1px solid #333;
            padding-bottom: 10px;
        }

        .user-info {
            text-align: left;
            margin-bottom: 15px;
            font-family: monospace;
            background: #111;
            padding: 10px;
            border-left: 3px solid var(--accent-traffic);
            font-size: 0.9rem;
        }

        .user-info p {
            margin: 3px 0;
            color: #888;
        }

        .user-info .highlight {
            color: var(--accent-traffic);
            font-weight: bold;
        }

        .user-info .highlight-danger {
            color: var(--accent-panic);
            font-weight: bold;
        }

        .mission-brief {
            text-align: left;
            margin-bottom: 15px;
            color: #ccc;
            line-height: 1.4;
            font-size: 0.95rem;
        }

        .mission-brief h3 {
            color: #fff;
            margin-top: 0;
            margin-bottom: 10px;
            font-size: 1.1rem;
        }

        .stats-guide {
            list-style: none;
            padding: 0;
            margin: 10px 0;
        }

        .stats-guide li {
            display: flex;
            align-items: flex-start;
            margin-bottom: 8px;
        }

        .stats-guide .icon {
            font-size: 1.2rem;
            margin-right: 10px;
            min-width: 25px;
            text-align: center;
        }

        .stats-guide .text strong {
            display: block;
            color: #fff;
            margin-bottom: 1px;
            font-size: 0.95rem;
        }

        .stats-guide .text small {
            color: #888;
            font-size: 0.8rem;
        }

        .warning {
            color: var(--card-heavy-border);
            font-style: italic;
            text-align: center;
            margin-top: 15px;
            font-size: 0.85rem;
        }

        #start-btn {
            background: var(--accent-traffic);
            color: #000;
            border: none;
            padding: 12px 30px;
            font-size: 1.1rem;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s;
            text-transform: uppercase;
            letter-spacing: 2px;
            width: 100%;
            margin-top: 10px;
        }

        #start-btn:hover {
            box-shadow: 0 0 20px var(--accent-traffic);
        }

        .achievement-text {
            color: #f1c40f;
            /* Gold */
            font-weight: bold;
            font-size: 1.4rem;
            margin-top: 15px;
            padding: 10px;
            border: 1px solid #f1c40f;
            background: rgba(241, 196, 15, 0.1);
            text-shadow: 0 0 10px rgba(241, 196, 15, 0.5);
            animation: pulse 2s infinite;
        }

        .warning-text {
            color: #e74c3c;
            /* Red */
            font-weight: bold;
            font-size: 1.2rem;
            margin-top: 10px;
            padding: 10px;
            border: 1px solid #e74c3c;
            background: rgba(231, 76, 60, 0.1);
            text-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
            animation: pulse-fast 1s infinite;
        }

        @keyframes pulse {
            0% {
                transform: scale(1);
            }

            50% {
                transform: scale(1.05);
            }

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

        @keyframes pulse-fast {
            0% {
                opacity: 1;
            }

            50% {
                opacity: 0.7;
            }

            100% {
                opacity: 1;
            }
        }