body {
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}
#game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: calc(100vh - 64px);
    background: #0e0e1a;
    padding: 6px 8px;
    gap: 6px;
    overflow: hidden;
}
#stats {
    display: flex;
    gap: 16px;
    padding: 6px 16px;
    background: #16213e;
    border-radius: 8px;
    font-family: monospace;
    font-size: 14px;
    flex-wrap: wrap;
    justify-content: center;
    flex-shrink: 0;
}
.stat { white-space: nowrap; }
.stat-val { font-weight: bold; }
.s-hp { color: #e74c3c; }
.s-atk { color: #e67e22; }
.s-def { color: #3498db; }
.s-gold { color: #f1c40f; }
.s-depth { color: #9b59b6; }
.s-xp { color: #2ecc71; }
#zoom-controls {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}
.zoom-btn {
    width: 32px;
    height: 28px;
    background: #16213e;
    border: 1px solid #4a4a6e;
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 18px;
    font-family: monospace;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}
.zoom-btn:hover { background: #1f3060; }
.zoom-btn:active { background: #2a4080; }
#game-canvas {
    border: 2px solid #1a1a30;
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
}
#log {
    width: 100%;
    max-width: 1100px;
    height: 56px;
    background: #16213e;
    border-radius: 8px;
    padding: 6px 12px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 12px;
    line-height: 1.3;
    flex-shrink: 0;
}
.log-combat { color: #e74c3c; }
.log-item { color: #f1c40f; }
.log-info { color: #3498db; }
.log-good { color: #2ecc71; }
.log-lvl { color: #9b59b6; }
#help-text {
    font-size: 11px;
    color: #555;
    font-family: monospace;
    text-align: center;
    flex-shrink: 0;
}
.overlay {
    display: none;
    position: fixed;
    top: 64px; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.88);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 100;
    font-family: monospace;
    text-align: center;
    color: #e0e0e0;
}
.overlay.show { display: flex; }
.overlay h1 { font-size: 42px; margin-bottom: 12px; }
.overlay h2 { font-size: 20px; margin-bottom: 20px; color: #888; }
.overlay .final-stats { font-size: 15px; margin-bottom: 20px; line-height: 2; }
.overlay .final-stats span { font-weight: bold; }
.game-btn {
    padding: 10px 28px;
    font-size: 16px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: monospace;
    margin: 4px;
}
.game-btn:hover { background: #c0392b; }
.game-btn.green { background: #27ae60; }
.game-btn.green:hover { background: #219a52; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
#start-screen .controls {
    font-size: 13px;
    color: #888;
    line-height: 1.8;
    margin-bottom: 20px;
}
#damage-flash {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(231, 76, 60, 0.25);
    z-index: 50;
    pointer-events: none;
}
#tooltip {
    display: none;
    position: fixed;
    background: #1a1a30;
    border: 1px solid #4a4a6e;
    border-radius: 6px;
    padding: 6px 10px;
    font-family: monospace;
    font-size: 13px;
    color: #e0e0e0;
    pointer-events: none;
    z-index: 90;
    white-space: nowrap;
    line-height: 1.6;
}
#tooltip .tt-name { font-weight: bold; font-size: 14px; }
#tooltip .tt-stat { font-size: 12px; }
