:root { --bg: #0a1f12; --panel: #10301d; --ink: #e8f1e4; --dim: #9db8a2; --gold: #f2b134; --line: #1f4a2e; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--gold); }
code, kbd { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .92em; }
kbd { background: var(--panel); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 0 .35em; }
code { color: var(--gold); }

.top { height: 64px; display: flex; align-items: baseline; gap: 16px; padding: 10px 24px 0; overflow: hidden; }
.top h1 { margin: 0; font-size: 26px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.top p { margin: 0; color: var(--dim); font-size: 15px; }

#play { position: relative; height: calc(100vh - 64px); min-height: 520px; }
#stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
canvas { display: block; background: var(--bg); outline: none; image-rendering: pixelated; touch-action: none; }
#mute { position: absolute; top: 8px; right: 12px; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; font: inherit; font-size: 13px; cursor: pointer; }
#mute:hover { border-color: var(--gold); }
#mute[aria-pressed="true"] { color: var(--dim); }

#small { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; }
#small h2 { margin: 0 0 8px; color: var(--gold); }
#small p { margin: 0; color: var(--dim); }
.narrow #stage { display: none; }
.narrow #small { display: flex; }

.info { padding: 40px 24px 24px; border-top: 1px solid var(--line); }
.cols { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.info h2 { margin: 0 0 8px; font-size: 18px; color: var(--gold); }
.info ul { margin: 0; padding-left: 1.2em; }
.info li { margin: 0 0 6px; }
.info p { margin: 0 0 10px; }
.info .note { color: var(--dim); font-size: 14px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th { text-align: left; font: inherit; font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--gold); white-space: nowrap; padding: 3px 14px 3px 0; vertical-align: top; }
td { padding: 3px 0; color: var(--ink); }
.credit { text-align: center; padding: 24px; color: var(--dim); font-size: 14px; }

/* Inside an iframe only the game shows, full viewport. */
.embedded .landing { display: none; }
.embedded #play { height: 100vh; min-height: 0; }
