:root {
    --ikea-blue: #0058ab;
    --ikea-yellow: #fbd914;
    --ikea-black: #111111;
    --ikea-grey: #f5f5f5;
    --g-blue: #4285F4;
    --g-red: #EA4335;
    --g-yellow: #FBBC05;
    --g-green: #34A853;
}

* { box-sizing: border-box; }

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    overflow: hidden;
    transition: background 0.2s ease-out;
}

.ikea-theme { background-color: var(--ikea-grey); font-family: 'Arial', sans-serif; }
.google-theme { background-color: #ffffff; font-family: 'Arial', sans-serif; }

.card {
    background: white;
    padding: 40px;
    width: 95%;
    max-width: 480px;
    border: 1px solid #dfdfdf;
}

.ikea-theme .card { border-radius: 0; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.google-theme .card { border-radius: 24px; border: none; box-shadow: 0 10px 25px rgba(0,0,0,0.1); }

.header-top { display: flex; justify-content: space-between; align-items: flex-start; }

#themeToggle {
    background: #eee;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 10px;
    cursor: pointer;
}

.brand-title {
    font-weight: 900;
    margin: 0 0 10px 0;
    height: 44px;
    display: flex;
    align-items: center;
    font-size: 36px;
}

.ikea-theme .brand-title { color: var(--ikea-blue); letter-spacing: -2px; }

.score-container {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #111;
}

.google-theme .score-container { border-bottom-color: #eee; }

.label {
    font-weight: 700;
    font-size: 10px;
    text-transform: uppercase;
    display: block;
}

.score-box span:not(.label) {
    font-size: 24px;
    font-weight: 900;
    display: block;
}

.game-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 15px;
}

.canvas-main {
    position: relative;
    border: 2px solid #111;
    background: #fff;
    line-height: 0;
}

.google-theme .canvas-main { border: 1px solid #dadce0; border-radius: 12px; }

.sidebar {
    width: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

#overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    text-align: center;
    backdrop-filter: blur(2px);
}

.ikea-theme #overlay { background: rgba(0, 88, 171, 0.9); color: white; }
.google-theme #overlay { background: rgba(255,255,255,0.92); color: #3c4043; }

.overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    width: 100%;
}

#startBtn {
    border: none;
    padding: 16px 32px;
    font-size: 14px;
    font-weight: 900;
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    margin-top: 10px;
}

.ikea-theme #startBtn { background: var(--ikea-yellow); color: #111; }
.google-theme #startBtn { background: var(--g-blue); color: white; }

#pauseMsg {
    position: absolute;
    top: 12px;
    right: 12px;
    color: white;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 900;
    z-index: 15;
    letter-spacing: 0.5px;
}

.ikea-theme #pauseMsg { background: #111; border-radius: 0; }
.google-theme #pauseMsg { background: var(--g-blue); border-radius: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }

#comboDisplay { font-size: 12px; font-weight: 900; color: var(--g-red); margin-top: 10px; height: 1.2em; }
footer p { font-size: 10px; color: #999; margin-top: 15px; }
.hidden { display: none !important; }