* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: linear-gradient(135deg, #0b3b5f 0%, #1b5a7a 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
}

.app {
    width: 100%;
    max-width: 1000px;
    margin: 20px;
}

/* ========== MENU SCREEN ========== */
.menu-screen {
    background: linear-gradient(135deg, #1a3a5c 0%, #0f2a44 100%);
    border-radius: 40px;
    padding: 50px 30px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.2);
}

.game-title {
    font-size: 56px;
    font-weight: bold;
    color: white;
    text-shadow: 4px 4px 0 #E63946;
    letter-spacing: 4px;
    margin-bottom: 10px;
}

.game-tagline {
    color: #FFD166;
    font-size: 16px;
    letter-spacing: 4px;
    margin-bottom: 50px;
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 280px;
    margin: 0 auto 40px;
}

.btn {
    padding: 16px 24px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 60px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #E63946, #C1121F);
    color: white;
    box-shadow: 0 5px 0 #8B0000;
}

.btn-primary:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #8B0000;
}

.btn-secondary {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

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

.menu-footer {
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    margin-top: 30px;
}

/* ========== GAME SCREEN ========== */
.game-screen {
    display: none;
}

.game-container {
    background: #1a3a5c;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

canvas {
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: grab;
    touch-action: none;
    width: 100%;
    height: auto;
}

canvas:active {
    cursor: grabbing;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    color: white;
    padding: 0 10px;
}

.back-btn {
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
}

.score-display {
    font-size: 24px;
    font-weight: bold;
    background: rgba(0,0,0,0.5);
    padding: 5px 15px;
    border-radius: 30px;
}

.instruction {
    text-align: center;
    margin-top: 15px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.brand {
    text-align: center;
    margin-top: 15px;
    color: rgba(255,255,255,0.5);
    font-size: 11px;
}