:root {
    --bg-color: #121214;
    --panel-color: #1a1a1e;
    --text-color: #ffffff;
    --accent-color: #ff4757;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

#game-container {
    width: 100%;
    max-width: 600px;
    height: 100vh;
    max-height: 800px;
    background: var(--panel-color);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

header {
    padding: 15px;
    text-align: center;
    border-bottom: 2px solid #2a2a30;
}

.brand {
    margin: 0;
    font-size: 24px;
    letter-spacing: 2px;
    color: var(--accent-color);
    text-transform: uppercase;
}

#score-board {
    display: flex;
    justify-content: space-around;
    margin-top: 10px;
    font-weight: bold;
}

#game-board {
    flex: 1;
    position: relative;
    margin: 20px;
    background: #222227;
    border-radius: 10px;
    overflow: hidden;
}

#game-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* Overlays */
#win-overlay, #gameover-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hidden { display: none !important; }

.overlay-content {
    background: #2a2a30;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    z-index: 12;
    max-width: 85%;
    max-height: 90%;
    overflow-y: auto;
}

.brand-overlay { color: var(--text-color); margin: 0; font-size: 18px;}
.wedding-text { color: #2ed573; margin: 10px 0; font-size: 26px; font-weight: bold;}

#match-summary {
    font-size: 14px;
    line-height: 1.5;
    color: #ced6e0;
    margin: 15px 0;
}

button {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.2s;
}

button:hover { transform: scale(1.05); }

/* Confetti */
#confetti-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    overflow: hidden;
    z-index: 11;
    pointer-events: none;
}
.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #f00;
    animation: fall linear infinite;
}
@keyframes fall {
    0% { transform: translateY(-20px) rotate(0deg); top: 0; }
    100% { transform: translateY(800px) rotate(360deg); top: 100%; }
}