/* --- Dark / Industrial Theme --- */
    :root {
        --bg-dark: #282828;
        --panel-dark: #3a3a3a;
        --text-main: #eee;
        --text-dim: #aaa;
        --accent-red: #e80012;
        --accent-hover: #ff1f32;
    }

    .dsst-container {
        max-width: 800px;
        margin: 2rem auto;
        padding: 2rem;
        font-family: 'Dosis', system-ui, -apple-system, sans-serif;
        background-color: var(--bg-dark);
        color: var(--text-main);
        border-radius: 8px;
        border: 1px solid #444;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
        text-align: center;
        user-select: none; /* 防止快速点击时选中文本 */
    }

    .dsst-screen {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        width: 100%;
    }

    /* --- Typography --- */
    .dsst-title {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
        color: #fff;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        font-weight: 800;
    }
    .dsst-subtitle {
        color: var(--text-dim);
        margin-bottom: 2rem;
        font-size: 1.1rem;
    }

    /* --- Instructions --- */
    .dsst-instructions {
        text-align: left;
        background: #303030;
        padding: 1.5rem;
        border-radius: 6px;
        margin-bottom: 1.5rem;
        border: 1px solid #444;
        max-width: 500px;
        width: 100%;
    }
    .dsst-instructions__title {
        margin-top: 0;
        color: var(--accent-red);
        font-size: 1.2rem;
        text-transform: uppercase;
    }
    .dsst-instructions__list {
        margin-top: 0.5rem;
        padding-left: 1.5rem;
        color: #ccc;
        line-height: 1.6;
    }

    /* --- Buttons --- */
    .dsst-btn {
        padding: 12px 40px;
        font-size: 1.4rem;
        background-color: var(--accent-red);
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        transition: all 0.1s;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        font-weight: 700;
        font-family: 'Dosis', sans-serif;
        outline: none;
    }
    .dsst-btn:hover { 
        background-color: var(--accent-hover); 
        transform: translateY(-2px);
    }
    .dsst-btn:active { transform: translateY(0); }

    /* --- Key Panel --- */
    .dsst-key-panel {
        width: 100%;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid #444;
    }
    .dsst-key-grid {
        display: grid;
        grid-template-columns: repeat(9, 1fr);
        gap: 8px;
        margin-top: 1rem;
    }
    @media (max-width: 640px) {
        .dsst-key-grid { grid-template-columns: repeat(5, 1fr); }
    }

    .dsst-key-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        border: 1px solid #555;
        border-radius: 4px;
        padding: 8px 4px;
        background: var(--panel-dark);
    }
    .dsst-key-item__digit {
        font-weight: bold;
        font-size: 1.2rem;
        border-bottom: 1px solid #555;
        width: 100%;
        text-align: center;
        margin-bottom: 4px;
        padding-bottom: 4px;
        color: var(--text-dim);
    }
    .dsst-key-item__symbol {
        font-size: 1.8rem;
        color: #fff;
        line-height: 1;
    }

    /* --- Stats & Game Area --- */
    .dsst-game-area {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    .dsst-stats {
        display: flex;
        gap: 3rem;
        font-size: 1.5rem;
        font-weight: 700;
        background: #303030;
        padding: 1rem 2.5rem;
        border-radius: 50px;
        border: 1px solid #444;
    }
    .dsst-stat-item { color: var(--text-dim); }
    .dsst-stat-item__value { color: #fff; margin-left: 0.5rem; }
    .dsst-stat-item__value--time { color: var(--accent-red); font-variant-numeric: tabular-nums; }

    .dsst-test-zone {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    .dsst-target-digit {
        font-size: 5rem;
        font-weight: 800;
        color: #282828;
        background: #eee;
        width: 120px;
        height: 120px;
        line-height: 120px;
        border-radius: 16px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    }

    /* --- Options --- */
    .dsst-options-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    .dsst-option {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
        background: var(--panel-dark);
        border: 2px solid #555;
        border-radius: 8px;
        cursor: pointer;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.1s, transform 0.1s;
        -webkit-tap-highlight-color: transparent;
    }
    .dsst-option:hover { border-color: #777; }
    .dsst-option:active { transform: scale(0.92); }

    /* --- Results --- */
    .dsst-results { margin-bottom: 2rem; }
    .dsst-results__score { font-size: 6rem; font-weight: 800; color: var(--accent-red); margin: 0; line-height: 1; }

    /* --- Flash Animations --- */
    .dsst-option.correct-flash { animation: flash-green 0.15s ease-out forwards; }
    .dsst-option.incorrect-flash { animation: flash-red 0.15s ease-out forwards; }
    @keyframes flash-green { 0% { background: #22c55e; border-color: #22c55e; } 100% { background: var(--panel-dark); } }
    @keyframes flash-red { 0% { background: var(--accent-red); border-color: var(--accent-red); } 100% { background: var(--panel-dark); } }
