:root {
            --bg: #f4f7f6;
            --card: #ffffff;
            --primary: #6c5ce7;
            --accent: #00cec9;
            --text: #2d3436;
            --radius: 15px;
        }

        body {
            margin: 0;
            padding: 20px;
            font-family: 'Segoe UI', sans-serif;
            background: var(--bg);
            color: var(--text);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
        }

        .card {
            background: var(--card);
            width: 100%;
            max-width: 600px;
            border-radius: var(--radius);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
            padding: 40px;
            text-align: center;
            display: none;
        }

        .card.active {
            display: block;
        }

        h1 {
            color: var(--primary);
            margin: 0 0 10px 0;
        }

        input {
            width: 100%;
            padding: 15px;
            margin-bottom: 15px;
            border: 2px solid #dfe6e9;
            border-radius: 10px;
            font-size: 1.1rem;
            text-align: center;
            box-sizing: border-box;
        }

        button {
            width: 100%;
            padding: 15px;
            border: none;
            border-radius: 10px;
            font-size: 1.2rem;
            font-weight: bold;
            color: white;
            cursor: pointer;
            margin-bottom: 10px;
        }

        .btn-join {
            background: var(--primary);
        }

        .btn-answer {
            background: #f1f2f6;
            color: var(--text);
            text-align: left;
            border: 2px solid transparent;
            width: 100%;
            margin-bottom: 8px;
        }

        .btn-answer:hover {
            border-color: var(--primary);
            background: #eef1ff;
        }

        .btn-answer:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

        .timer-bar {
            width: 100%;
            height: 10px;
            background: #eee;
            border-radius: 5px;
            margin: 20px 0;
            overflow: hidden;
            position: relative;
        }

        .timer-fill {
            height: 100%;
            background: var(--accent);
            width: 100%;
            position: absolute;
            left: 0;
            top: 0;
        }

        .q-image {
            max-width: 100%;
            max-height: 250px;
            border-radius: 10px;
            margin: 15px 0;
            display: none;
        }

        .ranking-item {
            display: flex;
            justify-content: space-between;
            padding: 10px;
            border-bottom: 1px solid #eee;
        }

        .myself {
            background: #eef1ff;
            border-left: 5px solid var(--primary);
        }

        /* 4-Color Scheme for Buttons */
        .color-0 {
            background-color: #e74c3c;
            color: white;
            border: none;
        }

        /* Red */
        .color-1 {
            background-color: #3498db;
            color: white;
            border: none;
        }

        /* Blue */
        .color-2 {
            background-color: #f1c40f;
            color: #333;
            border: none;
        }

        /* Yellow */
        .color-3 {
            background-color: #2ecc71;
            color: white;
            border: none;
        }

        /* Green */

        .btn-answer {
            width: 100%;
            padding: 20px;
            margin-bottom: 10px;
            border-radius: 10px;
            font-size: 1.2rem;
            font-weight: bold;
            cursor: pointer;
            transition: transform 0.1s;
            display: block;
        }

        .btn-answer:active {
            transform: scale(0.98);
        }

        .logo-top-left {
            position: absolute;
            top: 20px;
            left: 20px;
            width: 45px;
            height: auto;
            filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
            transition: transform 0.3s ease;
        }

        .logo-top-left:hover {
            transform: scale(1.05);
        }

        .floating-room-code {
            position: fixed;
            bottom: 10px;
            left: 10px;
            background: rgba(45, 52, 54, 0.9);
            color: white;
            padding: 5px 10px;
            border-radius: 5px;
            font-size: 0.8rem;
            font-weight: bold;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
            z-index: 9999;
            letter-spacing: 1px;
            display: none;
        }