*{box-sizing:border-box}body{margin:0;background:#e8e2d8;color:#20292b;font:15px system-ui,sans-serif}#app{max-width:1280px;margin:auto;padding:14px}header{display:flex;justify-content:space-between;gap:12px;padding:8px 4px 14px;flex-wrap:wrap}main{display:grid;grid-template-columns:minmax(480px,960px) 240px;gap:16px;align-items:start}#game{width:100%;aspect-ratio:3/2;background:#f4efe5;box-shadow:0 4px 24px #40352a22}#game canvas{display:block;width:100%;height:100%;touch-action:none}aside{display:flex;flex-direction:column;gap:9px}aside p{line-height:1.8;margin:0 0 8px}button{font:inherit;padding:9px;border:1px solid #8a8882;border-radius:6px;background:#fff;cursor:pointer}button:hover{background:#e2eee9}small{line-height:1.5;color:#665c52;margin-top:10px}#panel{display:none;max-height:300px;overflow:auto;white-space:pre-wrap;font-size:11px;background:#fff;padding:8px}#panel.open{display:block}@media(max-width:850px){main{grid-template-columns:1fr}aside{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}aside p,small,#panel{grid-column:1/-1}#stats{font-size:12px}}.diagnostic-box{border:1px solid #b9b2a8;border-radius:6px;background:#f8f6f1;padding:9px;display:flex;flex-direction:column;gap:7px}.diagnostic-box pre{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font:11px/1.5 ui-monospace,monospace;min-height:70px}.diagnostic-box small{margin:0}.diagnostic-box textarea{width:100%;height:80px;resize:vertical;font:10px ui-monospace,monospace}
