:root {
    --bg: #f8fafc;
    --text: #1e293b;
    --accent: #3498db;
    --card: #ffffff;
}

body {
    font-family: 'Outfit', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--bg);
    margin: 0;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.container {
    text-align: center;
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

#colorDisplay {
    font-size: 64px;
    font-weight: 800;
    margin: 20px 0;
    letter-spacing: 2px;
}

.options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 30px 0;
}

.o-btn {
    aspect-ratio: 1;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.1s;
}

.o-btn:active {
    transform: scale(0.9);
}

#score {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
}

/* Sidebar & Overlays */
.game-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 300;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}

.game-overlay.active {
    opacity: 1;
    visibility: visible;
}

.overlay-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    border: 3px solid var(--accent);
}



.btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
}

#shareBtn {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
}

#shareBtn:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

#shareBtn:active {
    transform: translateY(0);
}


.in-game-menu {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 20px;
}

.menu-btn {
    padding: 6px 15px;
    background: #fff;
    color: var(--text);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}

.menu-btn.exit { background: #e74c3c; color: white; border-color: #e74c3c; }

.timer-container {
    width: 100%;
    height: 8px;
    background: rgba(0,0,0,0.05);
    border-radius: 4px;
    margin-bottom: 20px;
    overflow: hidden;
}

.timer-bar {
    width: 100%;
    height: 100%;
    background: var(--accent);
    transition: width 0.1s linear;
}