/* Pitstop II — C64 / CRT tema */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

body {
    background: radial-gradient(circle at 50% 20%, #14203a 0%, #08090d 70%);
    color: #fff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Press Start 2P', cursive;
    padding: 14px;
}

.arcade-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 700px;
}

.game-top-bar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 10px;
}

.nav-btn {
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 14px;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    background: #cc2222;
    box-shadow: 0 0 12px rgba(204, 34, 34, 0.6);
    transform: translateX(-2px);
}

.game-heading {
    font-size: 1rem;
    color: #eeee77;
    text-shadow: 0 0 10px rgba(238, 238, 119, 0.45);
    margin: 0;
}

.arcade-tag {
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    color: #aaffee;
    letter-spacing: 1px;
}

#game-container {
    position: relative;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.85), 0 0 26px rgba(238, 238, 119, 0.12);
    border: 6px solid #2b2f38;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    max-width: 652px;
    background: #000;
}

canvas {
    width: 100%;
    height: auto;
    aspect-ratio: 640 / 400;
    background-color: #000;
    display: block;
    outline: none;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.crt-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.22) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 5;
}

.controls-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    width: 100%;
    margin-top: 16px;
}

.ctrl-block {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(170, 255, 238, 0.18);
    border-radius: 10px;
    padding: 12px 14px;
}

.ctrl-block h2 {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.62rem;
    color: #eeee77;
    margin-bottom: 10px;
}

.ctrl-block p {
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    color: #d7dee8;
    line-height: 1.7;
}

.ctrl-block strong {
    color: #aaffee;
}

.ctrl-block.tip {
    border-color: rgba(238, 238, 119, 0.25);
}

.sw {
    display: inline-block;
    width: 14px;
    height: 8px;
    border: 1px solid #667;
    vertical-align: middle;
    border-radius: 2px;
}

.game-footer {
    margin-top: 16px;
    text-align: center;
}

.game-footer p {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    color: #64748b;
}
