:root { color-scheme: light; --game-bg: #F6F3EC; }
.bg-game { background: #F6F3EC; padding-bottom: 0; }
/* Shared UI reserves standalone bottom room; portal embeds use data-safe-shell. */
.bg-run-label { display: none; }
.bg-canvas { cursor: grab; touch-action: none; }
.bg-canvas:active { cursor: grabbing; }
.cm-tools { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.cm-tools[hidden] { display: none; }
.cm-tool { position: absolute; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px; min-height: 48px; padding: 4px; border: 2px solid #9B7B72; border-radius: 12px; background: #E9C6BB; color: #17171C; font: 800 14px/1 var(--f-display); pointer-events: auto; cursor: pointer; touch-action: manipulation; }
.cm-tool:nth-child(2) { background: #E8BB54; border-color: #A2823B; }
.cm-tool:nth-child(3) { background: #B9D4D3; border-color: #819594; }
.cm-tool[aria-pressed="true"] { outline: 3px solid #95454E; outline-offset: 2px; }
.cm-tool small { font: 700 11px/1 var(--f-ui); }
.cm-tool:focus-visible { outline: 3px solid #17171C; outline-offset: 2px; }
.cm-tool:active { transform: translateY(2px); }
.cm-tool > span { display: flex; align-items: center; justify-content: center; gap: 5px; }
.cm-tool svg { width: 18px; height: 18px; flex: 0 0 18px; }
.cm-tool:disabled { background: #D5D2CB; border: 2px solid #95918A; color: #68646B; cursor: default; }
.cm-tool:disabled:active { transform: none; }
