:root {
    --primary-color: #0334ac;
    /* Brand Blue */
    --secondary-color: #80D0C7;
    --text-color: #333;
    --bg-color: #f0f8ff;
    --positive-color: #4CAF50;
    --negative-color: #F44336;
    --white: #ffffff;
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: #ffffff;
    /* Clean white background */
    background-image: none;
    height: 100vh;
    overflow: hidden;
    color: var(--text-color);
    touch-action: none;
    /* Prevent browser zooming/scrolling */
    user-select: none;
    /* Prevent text selection */
    -webkit-user-select: none;
}

#game-container {
    width: 100%;
    height: 100%;
    position: relative;
    touch-action: none;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
    z-index: 10;
}

.screen.hidden {
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

.screen.active {
    opacity: 1;
    pointer-events: all;
    z-index: 10;
}

.content-wrapper {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 90%;
    width: 500px;
    backdrop-filter: blur(10px);
}

.brand-logo {
    max-width: 200px;
    margin-bottom: 2rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.main-title {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.description {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.5;
}

.primary-btn {
    background: var(--primary-color);
    border: none;
    padding: 1.5rem 3.5rem;
    /* Larger touch target */
    font-size: 1.5rem;
    /* Larger text */
    color: var(--white);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.primary-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 147, 233, 0.4);
}

.primary-btn:active {
    transform: translateY(1px) scale(0.98);
}

/* Game Screen */
#screen-game {
    background: transparent;
    touch-action: none;
    /* Ensure flexbox centers items, but we will position logo absolutely or flexily */
    justify-content: flex-start;
    /* Align to top */
}

.game-logo {
    max-width: 150px;
    margin-top: 20px;
    z-index: 5;
    opacity: 0.8;
}

#game-canvas {
    width: 100%;
    height: 100%;
    display: block;
    touch-action: none;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.hud {
    position: absolute;
    top: 30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 5vw;
    /* Responsive padding */
    font-size: 2rem;
    /* Larger HUD for TV */
    font-weight: bold;
    color: var(--primary-color);
    pointer-events: none;
}

.lives-container {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--negative-color);
    /* Red hearts */
    text-shadow: none;
    z-index: 20;
    pointer-events: none;
}

/* Result Screen */
.result-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.final-score-text {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.result-message {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #444;
}