body {
    font-family: system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 20px;
    background: #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    padding: 0;
    margin: 0;
    border-radius: 0;
    background: black;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.fullscreen.cursor-hidden, #gameCanvas.cursor-hidden {
    cursor: none;
}

.fullscreen #gameCanvas {
    max-width: 100%;
    max-height: 100vh;
}

.fullscreen .controls {
    position: fixed;
    bottom: 20px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 8px;
    transition: opacity 0.3s ease;
}

.fullscreen .rules {
    position: fixed;
    top: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    border-radius: 8px;
    transition: opacity 0.3s ease;
}

.hidden {
    opacity: 0;
    pointer-events: none;
    cursor: none;
}

#gameCanvas {
    border: 1px solid #ccc;
    cursor: pointer;
}

.controls {
    margin: 20px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    background: #007bff;
    color: white;
    cursor: pointer;
    transition: background 0.2s;
}

button:hover {
    background: #0056b3;
}

.rules {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.rules label {
    display: block;
    margin: 10px 0;
}

input[type="number"] {
    width: 60px;
    padding: 4px;
    margin: 0 5px;
}

.time-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.time-control input[type="range"] {
    width: 150px;
}

.fullscreen .rules label,
.fullscreen .time-control {
    color: white;
}
