:root { --bg: #0c1013; --panel: #141c24; --line: #2a3640; --text: #eef2ea; --muted: #8fa0a6; --lime: #c1ed83; color-scheme: dark; }
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 14px/1.6 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; }
header { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 52px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 700; letter-spacing: 3px; }
/* Three stacked bars: the slice motif. */
.mark { width: 18px; height: 14px; background: linear-gradient(var(--lime) 0 4px, transparent 4px 5px, #8fd4f2 5px 9px, transparent 9px 10px, #f0626a 10px 14px); }
.tools { display: flex; gap: 8px; }
button { font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line); padding: 6px 12px; cursor: pointer; touch-action: manipulation; }
button:hover { border-color: var(--muted); }
button:focus-visible, canvas:focus-visible, a:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
button[aria-pressed="true"] { color: var(--muted); text-decoration: line-through; }
main { max-width: 1960px; margin: 0 auto; padding: 16px 16px 40px; }
.stage-wrap { display: flex; justify-content: center; width: 100%; }
#stage { position: relative; background: #000; line-height: 0; box-shadow: 0 0 0 1px var(--line), 0 18px 60px #0008; }
#stage:fullscreen { display: flex; align-items: center; justify-content: center; width: 100vw; height: 100vh; box-shadow: none; }
canvas { display: block; image-rendering: pixelated; outline-offset: 3px; cursor: default; }
.keys { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin: 16px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 12px; }
kbd { display: inline-block; min-width: 20px; margin: 0 2px; padding: 0 5px; border: 1px solid var(--line); border-bottom-width: 2px; background: var(--panel); color: var(--text); font: inherit; text-align: center; }
.touch { display: none; justify-content: space-between; align-items: end; gap: 10px; margin-top: 12px; user-select: none; -webkit-user-select: none; }
.pad { display: flex; gap: 8px; }
.pad button { min-width: 72px; height: 64px; font-weight: 700; letter-spacing: 1px; }
.pad.small button { min-width: 46px; height: 44px; }
@media (pointer: coarse) { .touch { display: flex; } .keys { display: none; } }
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; max-width: 1080px; margin: 48px auto 0; padding-top: 32px; border-top: 1px solid var(--line); }
.about h2 { margin: 0 0 12px; font-size: 20px; line-height: 1.3; }
.about p { margin: 0 0 12px; color: #b9c4c6; max-width: 60ch; }
.about b { color: var(--lime); font-weight: 600; }
figure { margin: 0; }
figure img { display: block; width: 100%; image-rendering: pixelated; background: var(--panel); border: 1px solid var(--line); padding: 14px; }
figcaption { margin-top: 8px; color: var(--muted); font-size: 12px; }
footer { padding: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; text-align: center; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } header { padding: 0 12px; } main { padding: 10px 8px 32px; } }
@media (max-width: 520px) { .touch { gap: 6px; } .pad { gap: 4px; } .pad button { min-width: 0; width: 58px; padding: 0; font-size: 12px; } .pad.small button { width: 34px; } }
