/* The archived game page is a black canvas surround with a single 25px stone navigation bar. */
:root { color-scheme: dark; color: #fff; background: #000; font: 11px Arial, Helvetica, sans-serif; }
body { margin: 0; }
a { color: #90c040; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible { outline: 1px solid #ffe139; outline-offset: -2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 0; top: -40px; z-index: 5; padding: 7px; background: #000; }
.skip-link:focus { top: 0; }
/* The game determines the column width; the navigation must never enlarge or scale it. */
.client-shell { position: relative; width: max-content; margin: 0 auto; padding-top: 25px; }
.main-navigation { position: absolute; top: 0; left: 0; display: flex; width: 100%; min-width: 0; height: 25px; padding: 0; overflow-x: auto; scrollbar-width: none; background: #382418 url('assets/theme/navbar.gif') center top; }
.main-navigation::-webkit-scrollbar { display: none; }
.main-navigation a, .main-navigation button { display: flex; flex: 1 0 auto; align-items: center; justify-content: center; height: 25px; padding: 0 5px; box-sizing: border-box; border: 0; border-radius: 0; background: none; color: #fff; font: 11px Arial, Helvetica, sans-serif; white-space: nowrap; text-decoration: underline; }
.main-navigation img { flex: none; }
.main-navigation a:hover, .main-navigation button:hover:not(:disabled) { color: #ffe139; }
.game-stage { width: max-content; padding: 0; margin: 0; background: #000; }
.game-surface { position: relative; width: max-content; margin: 0; padding: 0; }
.client-shell.resizable-client { width: 100%; margin: 0; }
.resizable-client .game-stage { width: 100%; min-width: 765px; height: calc(100vh - 25px); height: calc(100dvh - 25px); min-height: 503px; }
.resizable-client .game-surface { width: 100%; height: 100%; }
/* platform.js owns exact native-pixel CSS dimensions and mouse mapping. */
#game-container { width: 765px; height: 503px; margin: 0; padding: 0; border: 0; box-sizing: content-box; background: #000; }
#game { display: block; width: 765px; height: 503px; margin: 0; padding: 0; border: 0; box-sizing: content-box; background: #000; image-rendering: pixelated; outline: none; }
.launch-screen { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: #000; }
.launch-screen p { max-width: 90%; margin: 0; text-align: center; }
.stone-button, dialog button { border: 3pt outset #373737; border-radius: 0; padding: 5px 15px; color: #fff; background: #474747 url('assets/theme/stoneback.gif'); }
.stone-button:active:not(:disabled), dialog button:active { border-style: inset; }
#start { min-width: 104px; font-weight: bold; }
.game-stage:fullscreen { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; background: #000; }
.resizable-client .game-stage:fullscreen { width: 100%; height: 100%; }
dialog { width: min(500px, calc(100vw - 54px)); max-height: calc(100vh - 54px); box-sizing: border-box; overflow: auto; padding: 18px; border: 2px solid #382418; background: #000; color: #fff; font: 11px/1.5 Arial, Helvetica, sans-serif; }
dialog::backdrop { background: #000b; }
dialog h2 { margin: 0 0 16px; font-size: 13px; }
dialog p { margin: 0 0 12px; }
.dialog-close { float: right; margin: -5px -5px 8px 12px; }
.dialog-close button { padding: 3px 9px; }
.controls-list { display: grid; grid-template-columns: 80px 1fr; gap: 6px 10px; }
.controls-list dt { font-weight: bold; }
.controls-list dd { margin: 0; }
.server-label { display: block; margin-bottom: 6px; }
select { padding: 4px 8px; margin-bottom: 12px; background: #b1977e; color: #111; }
select:disabled { opacity: 1; }
.diagnostics { margin-top: 16px; padding-top: 12px; border-top: 1px solid #373737; }
.diagnostics summary, .startup-log summary { color: #90c040; cursor: pointer; }
.diagnostics p, #release-version { display: block; margin: 9px 0; }
.diagnostic-controls label { display: block; }
.diagnostic-controls input { max-width: 100%; margin: 4px 0 8px; padding: 4px; border: 1px solid #62543a; background: #171714; color: #fff; }
.diagnostic-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
#performance-status { display: block; margin-top: 9px; }
#cpu-profiling { min-width: 0; margin: 12px 0; }
#cpu-profiling button { margin: 4px; }
.startup-log { margin-top: 12px; }
pre { max-height: 220px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; color: #c7c2ae; font: 11px/1.4 Consolas, monospace; }
.credits { margin-top: 18px; color: #aaa; font-size: 10px; }
