:root { color-scheme: light; font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; background: #ececec; color: #151515; }
.topbar { min-height: 52px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; background: #111; color: #fff; }
.version, .prototype { color: #cfcfcf; font-size: .86rem; }
.layout { display: grid; grid-template-columns: minmax(560px, 1fr) 330px; gap: 16px; max-width: 1320px; margin: 16px auto; padding: 0 16px; align-items: start; }
.game-card, .panel section { background: #fff; border: 1px solid #cfcfcf; border-radius: 8px; }
.game-card { padding: 12px; }
.statusline { display: flex; gap: 14px; align-items: center; min-height: 32px; font-size: .92rem; }
.badge { padding: 3px 8px; border-radius: 999px; background: #e7e7e7; font-weight: 650; }
canvas { display: block; width: min(100%, 820px); height: auto; margin: 8px auto; background: #fff; border: 1px solid #111; image-rendering: crisp-edges; }
.hint, .small { color: #5a5a5a; font-size: .82rem; line-height: 1.35; }
.panel { display: grid; gap: 10px; }
.panel section { padding: 11px; }
h2 { font-size: .98rem; margin: 0 0 9px; }
label { display: grid; grid-template-columns: 105px 1fr; align-items: center; gap: 8px; margin: 7px 0; font-size: .9rem; }
input, select, textarea, button { font: inherit; }
input, select, textarea { width: 100%; border: 1px solid #bdbdbd; border-radius: 5px; padding: 6px 7px; background: #fff; }
textarea { resize: vertical; margin: 4px 0 7px; }
.buttons { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; }
button { border: 1px solid #aaa; border-radius: 5px; background: #f4f4f4; padding: 6px 9px; cursor: pointer; }
button:hover { background: #e9e9e9; }
button.primary { background: #222; border-color: #222; color: #fff; }
.compact button { padding: 5px 7px; font-size: .82rem; }
.selected-speed { outline: 2px solid #444; }
.checks { margin: 4px 0 8px 105px; display: grid; gap: 4px; }
.checks label { grid-template-columns: 22px 1fr; margin: 0; }
.checks input { width: auto; }
.events { margin: 0; padding-left: 21px; font-size: .78rem; max-height: 126px; overflow: auto; }
.events li { margin: 3px 0; }
pre { white-space: pre-wrap; font-size: .75rem; background: #f3f3f3; border: 1px solid #ddd; padding: 7px; border-radius: 5px; max-height: 150px; overflow: auto; }
.stars { display: flex; gap: 1px; margin: 3px 0 6px; }
.stars button { border: 0; background: transparent; font-size: 1.55rem; padding: 0 2px; line-height: 1; }
.stars button.active { color: #111; }
@media (max-width: 930px) { .layout { grid-template-columns: 1fr; } .panel { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
