#astral-dragon-wrapper {
    position: relative;
    width: 800px;
    max-width: 100%;
    height: 600px;
    margin: 0 auto;
    background-color: #05020c;
    color: #fff;
    font-family: 'Courier New', monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
#astral-dragon-wrapper canvas {
    background: #000;
    display: block;
    border: 2px solid #ff007f;
    max-width: 100%;
    object-fit: contain;
}
#astral-dragon-wrapper canvas.ingame { cursor: none; }
#astral-dragon-wrapper .ui-screen {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    background: rgba(5, 2, 12, 0.9);
    z-index: 10;
}
#astral-dragon-wrapper #start-screen { justify-content: flex-end; padding-bottom: 100px; background: transparent; }
#astral-dragon-wrapper button {
    background: #ff007f; color: #fff; border: none; padding: 15px 30px;
    font-size: 20px; font-family: inherit; cursor: pointer;
    box-shadow: 0 0 10px #ff007f; font-weight: bold;
}
#astral-dragon-wrapper button:hover { background: #39ff14; box-shadow: 0 0 15px #39ff14; color: #000; }
#astral-dragon-wrapper .game-ui {
    position: absolute; top: 10px; font-size: 18px; color: #39ff14;
    display: none; z-index: 5; pointer-events: none; font-weight: bold;
    text-shadow: 0 0 5px #000;
}
#astral-dragon-wrapper #game-ui-left { left: 10px; }
#astral-dragon-wrapper #game-ui-right { right: 10px; text-align: right; }
#astral-dragon-wrapper #hp-bar { width: 150px; height: 15px; border: 1px solid #39ff14; margin-top: 5px; background: rgba(0,0,0,0.5); }
#astral-dragon-wrapper #hp-bar-fill { width: 100%; height: 100%; background: #39ff14; transition: width 0.1s; }