/* PotShot Panic — retro arcade page theme */

:root {
    --bg: #12121c;
    --bg-raise: #1c1c2a;
    --edge: #2e2e44;
    --text: #d8d8e4;
    --text-dim: #8a8aa0;
    --accent: #ffb020;
    --accent-hot: #ff5533;
    --go-green: #6abe30;
    --pixel-font: "Press Start 2P", monospace;
}

* {
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    background: radial-gradient(ellipse at top, #1a1a2e 0%, var(--bg) 65%);
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* Visually hidden, but still read by screen readers (aria-live HUD mirror). */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

header {
    padding: 26px 0 10px;
    text-align: center;
    width: 100%;
}

header h1 {
    font-family: var(--pixel-font);
    font-size: 34px;
    margin: 0 0 14px;
    color: var(--accent);
    text-shadow:
        3px 3px 0 var(--accent-hot),
        6px 6px 0 rgba(0, 0, 0, 0.55);
    letter-spacing: 2px;
}

header .subtitle {
    margin: 0;
    color: var(--text-dim);
    font-size: 15px;
}

main {
    padding: 18px 20px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Cabinet bezel around the screen */
#game-container {
    padding: 10px;
    background: linear-gradient(#262638, #16161f);
    border: 2px solid var(--edge);
    border-radius: 10px;
    box-shadow:
        0 0 0 1px #000,
        0 12px 34px rgba(0, 0, 0, 0.65),
        inset 0 0 18px rgba(0, 0, 0, 0.8);
    margin-bottom: 18px;
}

#gameCanvas {
    border-radius: 4px;
}

#ui-controls {
    text-align: center;
}

#ui-controls button {
    font-family: var(--pixel-font);
    font-size: 11px;
    margin: 4px 7px;
    padding: 13px 22px 11px;
    color: #0e1508;
    background: linear-gradient(#8ede4e, var(--go-green));
    border: 2px solid #0c0c14;
    border-radius: 6px;
    box-shadow: 0 4px 0 #3d7415, 0 6px 12px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    text-transform: uppercase;
}

#ui-controls button:hover {
    filter: brightness(1.1);
}

#ui-controls button:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 #3d7415, 0 2px 6px rgba(0, 0, 0, 0.5);
}

#ui-controls button:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

footer {
    width: 100%;
    max-width: 860px;
    margin: 14px auto 0;
    padding: 0 20px 34px;
    text-align: center;
    font-size: 0.95em;
}

.controls-info {
    background: var(--bg-raise);
    border: 2px solid var(--edge);
    border-radius: 10px;
    padding: 16px 26px 20px;
    text-align: left;
}

.controls-info h3 {
    font-family: var(--pixel-font);
    font-size: 13px;
    color: var(--accent);
    text-align: center;
    margin: 4px 0 16px;
}

.controls-info ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 9px 26px;
}

.controls-info li {
    color: var(--text-dim);
    line-height: 1.55;
}

.controls-info strong {
    color: var(--text);
}

kbd {
    font-family: var(--pixel-font);
    font-size: 10px;
    color: var(--accent);
    background: #0c0c14;
    border: 1px solid var(--edge);
    border-bottom-width: 3px;
    border-radius: 4px;
    padding: 3px 7px 2px;
    white-space: nowrap;
}

footer .game-info {
    margin-top: 16px;
    color: var(--text-dim);
    font-size: 0.85em;
}

footer .game-info p {
    margin: 3px 0;
}
