* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
    overscroll-behavior: none;
    font-family: 'system-ui', 'system-ui', sans-serif;
    background: linear-gradient(180deg, #1a4d1a 0%, #0d2d0d 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #90EE90;
    overflow: hidden;
}

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

h1 {
    font-size: clamp(16px, 3.5vw, 28px);
    margin-bottom: 8px;
    color: #90EE90;
    text-shadow: 2px 2px 0 #1a4d1a, 0 0 10px #90EE90;
    letter-spacing: 2px;
}

.header {
    margin-bottom: 10px;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: clamp(11px, 2.2vw, 15px);
    font-weight: bold;
}

.stat {
    text-shadow: 0 0 5px currentColor;
}

#gameCanvas {
    background: #1a4d1a;
    border: 3px solid #90EE90;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(144, 238, 144, 0.3);
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

.instructions {
    margin-top: 10px;
    color: #5a8a5a;
    font-size: clamp(10px, 2vw, 13px);
}

.overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(13, 45, 13, 0.98);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    padding: 20px;
}

.overlay h2 {
    font-size: clamp(24px, 5.5vw, 42px);
    color: #90EE90;
    margin-bottom: 20px;
    text-shadow: 0 0 20px #90EE90;
    letter-spacing: 2px;
    line-height: 1.2;
}

.overlay p {
    font-size: clamp(13px, 2.8vw, 17px);
    margin: 8px 0;
    color: #7ab37a;
}

.overlay button {
    margin-top: 20px;
    padding: 12px 45px;
    font-size: clamp(14px, 2.8vw, 18px);
    font-weight: bold;
    font-family: inherit;
    color: #0d2d0d;
    background: linear-gradient(180deg, #90EE90 0%, #5ab35a 100%);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(144, 238, 144, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.overlay button:hover {
    background: linear-gradient(180deg, #a0f0a0 0%, #90EE90 100%);
    transform: translateY(-3px);
    box-shadow: 0 5px 25px rgba(144, 238, 144, 0.7);
}

.hidden { display: none !important; }
