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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(to bottom, #16213e 0%, #0f3460 100%);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    font-family: monospace;
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

#game-container {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(100vw, calc(100svh * 500 / 720));
    height: 100svh;
}

#game-canvas {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 4px;
    image-rendering: auto;
}

/* Modal overlay for boss prompt */
#modal-container {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    z-index: 10;
    padding: 20px;
}

.modal-title {
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    font-family: monospace;
}

.modal-body {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    text-align: center;
    font-family: monospace;
    max-width: 300px;
    line-height: 1.5;
}

#boss-input {
    width: 260px;
    padding: 12px 16px;
    font-size: 18px;
    font-family: monospace;
    font-weight: bold;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #e94560;
    border-radius: 8px;
    color: #fff;
    outline: none;
    transition: border-color 0.2s;
}

#boss-input:focus {
    border-color: #ff6b81;
    background: rgba(255, 255, 255, 0.15);
}

#boss-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

#boss-submit {
    padding: 12px 32px;
    font-size: 16px;
    font-family: monospace;
    font-weight: bold;
    background: #e94560;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

#boss-submit:hover {
    background: #ff6b81;
    transform: scale(1.05);
}

#boss-submit:active {
    transform: scale(0.95);
}
