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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #1a1a2e;
    font-family: Arial, sans-serif;
}

#game-container {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
}

#game-container canvas {
    display: block;
}

#io {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal {
    background: #16213e;
    border: 2px solid #00ff88;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #0f3460;
    color: #ffffff;
    font-size: 16px;
}

.close-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
}

.modal-content {
    padding: 16px;
    max-height: calc(90vh - 50px);
    overflow-y: auto;
}

.fullscreen-btn {
    margin-top: 10px;
    padding: 8px 16px;
    background: #00ff88;
    color: #1a1a2e;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}