:root {
    --bg-dark: #0f172a;
    --panel-bg: rgba(15, 23, 42, 0.9);
    --text-light: #f8fafc;
    --accent: #38bdf8;
    --accent-red: #fb7185;
}
body, html {
    margin: 0; padding: 0; width: 100%; height: 100%;
    background-color: #000; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-light); overflow: hidden;
}
#game-container {
    display: flex; width: 100vw; height: 100vh;
}
#sidebar {
    width: 300px; background: var(--panel-bg); padding: 20px;
    border-right: 1px solid rgba(255,255,255,0.1); display: flex; flex-direction: column;
    z-index: 10;
}
#main-view {
    flex: 1; position: relative;
}
#gameCanvas {
    display: block; width: 100%; height: 100%; object-fit: cover;
}
#hud {
    position: absolute; top: 20px; left: 20px; right: 20px;
    display: flex; justify-content: space-between; pointer-events: none;
}
.hud-box {
    background: rgba(0,0,0,0.6); padding: 10px 20px; border-radius: 8px;
    font-size: 24px; font-weight: bold; border: 1px solid var(--accent);
    text-shadow: 0 0 5px var(--accent);
}
.sidebar-title { color: var(--accent); font-size: 1.5rem; margin-bottom: 15px; }
.controls-list { list-style: none; padding: 0; font-size: 0.9rem; line-height: 1.6; }
.controls-list li span { color: var(--accent-red); font-weight: bold; }
#play-btn {
    margin-top: auto; padding: 15px; background: var(--accent); color: #000;
    border: none; border-radius: 5px; font-size: 1.2rem; font-weight: bold; cursor: pointer;
    transition: 0.2s;
}
#play-btn:hover { background: #0ea5e9; transform: scale(1.05); }
.message-overlay {
    position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%);
    font-size: 3rem; font-weight: bold; color: #fff; text-shadow: 0 0 10px var(--accent-red);
    opacity: 0; pointer-events: none; transition: opacity 0.3s;
}

@media (max-width: 768px) {
    #game-container { flex-direction: column-reverse; }
    #sidebar { width: 100%; height: auto; max-height: 30vh; overflow-y: auto; padding: 10px; border-right: none; border-top: 1px solid rgba(255,255,255,0.1); }
    .hud-box { font-size: 16px; }
}