:root { color-scheme: dark; font-family: system-ui, sans-serif; color: #e4e8ee; background: #11151c; }
* { box-sizing: border-box; }
body { margin: 0; background: #11151c !important; }
a { color: inherit; text-underline-offset: 4px; }
header, main, footer { max-width: 1180px; margin: auto; padding: 12px 24px; }
header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #303642; }
.brand { font-weight: 750; font-size: 24px; text-decoration: none; }
.brand span { display: inline; font-size: 12px; color: #9daaba; font-weight: 400; margin-left: 12px; }
nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 8px; margin: 0 0 12px; }
nav a { display: block; text-decoration: none; padding: 10px 12px; border: 1px solid #333c4b; border-radius: 6px; background: #1a202a; font-size: 14px; }
nav span { display: block; margin-top: 4px; color: #a9b5c5; font-size: 12px; line-height: 1.4; }
nav a:hover, nav a[aria-current="page"] { border-color: #8de3b6; }
.toolbar { display: flex; justify-content: space-between; align-items: center; }
h1 { font-size: 17px; margin: 0; }
.toolbar { margin-bottom: 10px; }
.terminal-frame { position: relative; height: clamp(300px, 58vh, 680px); border: 1px solid #333c4b; border-radius: 10px; overflow: hidden; background: #1e1e1e; padding: 8px; }
#terminal { height: 100%; width: 100%; }
#status, #help, footer { color: #a9b5c5; font-size: 13px; line-height: 1.8; }
#status[data-error] { color: #ffaaa1; }
footer { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 24px; border-top: 1px solid #303642; margin-top: 24px; }
footer .credit { margin-left: auto; text-align: right; }
a:focus-visible { outline: 2px solid #8de3b6; outline-offset: 4px; }
@media (max-width: 650px) { header, main, footer { padding: 10px 14px; } .brand span { display: none; } }

#controls { margin-bottom: 12px; }
.booba-action { min-height: 42px; }

#controls { display: flex; flex-wrap: wrap; gap: 6px; }
#controls button { min-height: 42px; padding: 8px 12px; border: 1px solid #333c4b; border-radius: 6px; background: #1a202a; color: inherit; font: inherit; font-size: 13px; cursor: pointer; }
#controls button:hover:not(:disabled) { border-color: #8de3b6; }
#controls button:disabled { opacity: .45; cursor: default; }
button:focus-visible { outline: 2px solid #8de3b6; outline-offset: 3px; }
.about { margin-top: 24px; color: #a9b5c5; font-size: 14px; line-height: 1.7; }
.about h2 { color: #e4e8ee; font-size: 16px; }
.about code { display: inline-block; padding: 10px 14px; border: 1px solid #333c4b; border-radius: 6px; color: #8de3b6; background: #1a202a; }
/* Ebitengine's GPU host remains alive but never participates in page layout.
   The terminal's canvas is nested under #terminal and is not matched here. */
body > canvas { position: fixed !important; left: -10000px !important; top: 0 !important; width: 1px !important; height: 1px !important; pointer-events: none !important; }
