:root {
            --bg: #0f1117;
            --card-bg: #1a1d27;
            --text: #e2e8f0;
            --accent: #4f46e5;
            --border: #334155;
            --brutal-shadow: 6px 6px 0px #000;
            --progress-w: 0%;
            --status-color: var(--accent);
        }

        body {
            background-color: var(--bg);
            color: var(--text);
            font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
            margin: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            line-height: 1.6;
            transition: background-color 0.5s ease;
        }

        .container {
            width: 90%;
            max-width: 500px;
            padding: 2.5rem 2rem;
            background: var(--card-bg);
            border: 3px solid var(--border);
            box-shadow: var(--brutal-shadow);
            text-align: center;
            position: relative;
            overflow: hidden;
            box-sizing: border-box;
        }

        .progress-container {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 6px;
            background: var(--border);
            z-index: 5;
        }
        .progress-bar {
            height: 100%;
            width: var(--progress-w);
            background: var(--accent);
            transition: width 0.3s ease-out;
        }

        .lang-switch {
            position: absolute;
            top: 15px;
            right: 15px;
            display: flex;
            gap: 5px;
            z-index: 20;
        }

        .lang-btn {
            background: var(--border);
            color: var(--text);
            border: none;
            padding: 4px 8px;
            font-size: 12px;
            cursor: pointer;
            border-radius: 4px;
        }

        .lang-btn.active {
            background: var(--accent);
        }

        h1 {
            font-size: 1.8rem;
            margin: 0.5rem 0 1rem 0;
            border-bottom: 3px solid var(--accent);
            display: inline-block;
            padding-bottom: 0.5rem;
        }

        .screen {
            display: none;
        }

        .screen.active {
            display: block;
            animation: fadeIn 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(15px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .btn {
            background-color: var(--accent);
            color: white;
            border: 2px solid #000;
            padding: 1rem 2rem;
            font-size: 1.1rem;
            font-weight: bold;
            cursor: pointer;
            margin: 10px 0;
            width: 100%;
            box-shadow: 4px 4px 0px #000;
            transition: all 0.2s;
            position: relative;
            overflow: hidden;
            box-sizing: border-box;
        }

        .btn:active {
            transform: translate(2px, 2px) scale(0.98);
            box-shadow: 2px 2px 0px #000;
        }

        .option-btn {
            background-color: transparent;
            color: var(--text);
            border: 2px solid var(--border);
            text-align: left;
            padding: 1rem 1.2rem;
            min-height: auto;
            display: flex;
            align-items: center;
            margin-bottom: 12px;
        }

        .option-btn:hover {
            background-color: var(--border);
            border-color: var(--accent);
        }

        .menu-btn {
            background-color: #2d3748;
            border: 2px solid var(--border);
            margin: 8px 0;
            font-size: 1rem;
        }

        .result-score {
            font-size: 3.5rem;
            font-weight: 800;
            color: var(--status-color);
            margin: 1rem 0;
            text-shadow: 3px 3px 0px #000;
        }

        .share-btn {
            background-color: #000;
            border-color: #555;
            margin-top: 2rem;
        }

        .progress-text {
            font-size: 0.85rem;
            color: #94a3b8;
            margin-bottom: 1rem;
            font-weight: bold;
            letter-spacing: 0.05em;
        }

        p.description {
            color: #94a3b8;
            margin-bottom: 2rem;
            font-size: 0.95rem;
        }

        .speed-badge {
            font-size: 0.75rem;
            background: #ef4444;
            color: white;
            padding: 2px 8px;
            border-radius: 4px;
            display: inline-block;
            margin-bottom: 0.5rem;
            visibility: hidden;
        }

        .loader {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 15px;
            padding: 2rem 0;
        }
        .spinner {
            width: 40px;
            height: 40px;
            border: 4px solid var(--border);
            border-top: 4px solid var(--accent);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        #audio-status {
            position: fixed;
            bottom: 10px;
            left: 10px;
            font-size: 10px;
            color: #64748b;
            pointer-events: none;
            z-index: 100;
        }