* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    color: #e0e6ed;
    background-color: #0b0f19;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    user-select: none;
    overflow-x: hidden;
}

#app {
    width: 100vw;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, #152238 0%, #070a12 100%);
    padding: 12px;
}

.arcade-cabinet {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #0f172a;
    border: 3px solid #1e293b;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 200, 255, 0.15);
    padding: 12px;
    max-width: 820px;
    width: 100%;
}

.arcade-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    background: #1e293b;
    border-radius: 8px 8px 4px 4px;
    margin-bottom: 10px;
    border-bottom: 2px solid #334155;
}

.title-glow {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.arcade-title {
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: 26px;
    color: #ffdd00;
    letter-spacing: 2px;
    text-shadow: 0 0 8px rgba(255, 221, 0, 0.6), 2px 2px 0px #b30000;
}

.arcade-badge {
    font-size: 11px;
    font-weight: 700;
    color: #38bdf8;
    letter-spacing: 1.5px;
    background: rgba(56, 189, 248, 0.15);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.header-controls {
    display: flex;
    gap: 10px;
}

.arcade-btn {
    font-family: monospace;
    font-weight: bold;
    font-size: 13px;
    padding: 6px 14px;
    background: #1e293b;
    color: #e2e8f0;
    border: 1px solid #475569;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.arcade-btn:hover {
    background: #334155;
    border-color: #38bdf8;
    color: #38bdf8;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

.arcade-btn.primary {
    background: #0284c7;
    border-color: #38bdf8;
    color: #ffffff;
}

.arcade-btn.primary:hover {
    background: #0369a1;
}

.screen-frame {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #020617;
    border: 4px solid #0f172a;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.9);
}

#game-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-height: 768px;
}

#game-container canvas {
    display: block;
    max-width: 100%;
    height: auto;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.arcade-footer {
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    padding: 8px 12px;
    background: #1e293b;
    border-radius: 4px 4px 8px 8px;
}

.control-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.control-tag .key {
    background: #0f172a;
    color: #f59e0b;
    border: 1px solid #334155;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-weight: bold;
}

.control-tag .label {
    color: #94a3b8;
}