*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root { --phosphor: #44ff77; --phosphor-dim: #33bb66; --phosphor-bright: #77ffbb; --amber: #ffaa00; --screen-bg: #0a0e0a; --cabinet: #1a1a2e; --coin-slot: #ffcc00; --border-glow: rgba(51,255,102,0.15); --cyan: #44dddd; --pink: #ff6699; }
html { font-size: 16px; }
body { background: var(--cabinet); color: var(--phosphor); font-family: 'Share Tech Mono', monospace; min-height: 100vh; overflow-x: hidden; line-height: 1.5; }
.scanlines { position: fixed; inset: 0; pointer-events: none; z-index: 1000; background: repeating-linear-gradient(0deg, rgba(0,0,0,0.12) 0px, rgba(0,0,0,0.12) 1px, transparent 1px, transparent 3px); }
.screen-wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px 20px; }
.header { text-align: center; padding: 16px 0 10px; }
.header .home { text-decoration: none; display: inline-block; }
.header .site { display: block; font-family: 'Press Start 2P', cursive; font-size: 0.9rem; color: var(--coin-slot); text-shadow: 0 0 20px rgba(255,204,0,0.5), 0 0 40px rgba(255,204,0,0.2); letter-spacing: 2px; line-height: 1.8; }
.header .subtitle { display: block; font-size: 0.8rem; color: var(--phosphor-dim); margin-top: 6px; letter-spacing: 1px; }
.crumbs { font-size: 0.74rem; color: #7a997a; margin: 18px 0 10px; }
.crumbs a { color: var(--phosphor-dim); text-decoration: none; }
.crumbs a:hover { color: var(--phosphor); }
h1 { font-size: 1.25rem; color: var(--phosphor-bright); font-weight: bold; margin: 6px 0 4px; }
.machine-meta { font-size: 0.82rem; color: #99bb99; margin-bottom: 10px; }
.machine-meta a { color: var(--cyan); }
.rom-name { color: #667766; }
.machine-aka, .aka { font-size: 0.8rem; color: #7a997a; font-style: italic; }
.machine-aka { margin: -6px 0 10px; }
.open-app { margin: 10px 0 16px; }
.btn { display: inline-block; padding: 8px 14px; background: rgba(68,255,119,0.1); border: 1px solid var(--phosphor-dim); color: var(--phosphor); text-decoration: none; font-size: 0.82rem; border-radius: 2px; }
.btn:hover { background: rgba(68,255,119,0.2); border-color: var(--phosphor); color: var(--phosphor-bright); box-shadow: 0 0 10px var(--border-glow); }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.spec-section { padding: 8px 10px; background: rgba(10,14,10,0.5); border-left: 2px solid #2a3a2a; }
.spec-title { font-size: 0.72rem; color: var(--amber); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; font-weight: normal; }
.spec-row { font-size: 0.78rem; color: var(--phosphor); padding: 1px 0; }
.spec-row .label, .label { color: #8aaa8a; }
.spec-row .val { color: var(--phosphor-bright); }
.dip-section, .manual-links { grid-column: 1 / -1; }
.dip-table { width: 100%; border-collapse: collapse; font-size: 0.76rem; margin-top: 4px; }
.dip-table th { text-align: left; padding: 4px 8px; color: var(--cyan); border-bottom: 1px solid #2a3a2a; font-weight: normal; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; }
.dip-table td { padding: 4px 8px; border-bottom: 1px solid #141e14; color: var(--phosphor); vertical-align: top; }
.dip-table td.dip-name { color: var(--phosphor-bright); white-space: nowrap; }
.dip-table td.dip-loc { color: var(--cyan); white-space: nowrap; font-size: 0.72rem; }
.dip-table td.dip-values { color: #99bb99; }
.dip-table td.dip-default { color: var(--amber); font-size: 0.74rem; }
.dip-table tr.dip-unknown td { opacity: 0.5; }
.dip-table tr.dip-unknown td.dip-name { font-style: italic; }
.dip-note { font-size: 0.7rem; color: #8a998a; font-style: italic; margin-bottom: 6px; }
.dip-note a { color: #8a998a; }
.dip-sw { font-size: 0.68rem; margin-right: 4px; }
.sw-on, .sw-off { display: inline-block; width: 32px; text-align: center; padding: 2px 0; border-radius: 2px; font-size: 0.65rem; margin-right: 2px; font-family: system-ui, -apple-system, sans-serif; letter-spacing: 0.5px; }
.sw-on { color: #000; background: var(--phosphor); font-weight: 700; }
.sw-off { color: #556655; background: rgba(255,255,255,0.08); }
.dip-sw-header { display: block; margin-bottom: 2px; }
.sw-label { display: inline-block; width: 32px; text-align: center; font-size: 0.56rem; color: var(--cyan); margin-right: 2px; }
.dip-opt { line-height: 1.8; display: block; }
.dip-opt-def { color: var(--phosphor-bright); }
.manual-link { display: inline-block; margin: 2px 6px 2px 0; padding: 3px 8px; background: rgba(255,170,0,0.08); border: 1px solid rgba(255,170,0,0.2); color: var(--amber); text-decoration: none; font-size: 0.74rem; border-radius: 1px; }
.manual-link:hover { background: rgba(255,170,0,0.2); border-color: var(--amber); }
.badge-manual { font-size: 0.66rem; padding: 1px 6px; background: rgba(255,170,0,0.15); color: var(--amber); border: 1px solid rgba(255,170,0,0.3); border-radius: 1px; white-space: nowrap; }
.index-page h1 { margin-top: 18px; }
.letters { margin: 10px 0 18px; font-size: 0.9rem; line-height: 2.2; }
.letters a { color: var(--cyan); text-decoration: none; padding: 2px 6px; border: 1px solid #2a3a2a; margin-right: 2px; }
.letters a:hover { border-color: var(--phosphor-dim); color: var(--phosphor); }
.index-page h2 { font-family: 'Press Start 2P', cursive; font-size: 0.85rem; color: var(--coin-slot); margin: 22px 0 8px; scroll-margin-top: 12px; }
.machine-list { list-style: none; columns: 2; column-gap: 24px; font-size: 0.8rem; }
.machine-list li { padding: 2px 0; break-inside: avoid; }
.machine-list a { color: var(--phosphor-bright); text-decoration: none; }
.machine-list a:hover { color: var(--phosphor); text-decoration: underline; }
.footer { text-align: center; padding: 40px 0 30px; font-size: 0.75rem; color: #7a997a; line-height: 1.8; }
.footer a { color: var(--phosphor-dim); text-decoration: none; }
.footer a:hover { color: var(--phosphor); }
@media (max-width: 640px) { .machine-list { columns: 1; } .dip-table td.dip-name { white-space: normal; } }
