.wave5-board{padding:10px!important;min-width:0}.wave5-game{max-width:460px;margin:auto;color:#173f45}.wave5-button{min-width:44px;min-height:44px;border:1px solid #9bbdb4;border-radius:12px;background:#fff;color:#173f45;font:inherit;font-weight:650;cursor:pointer;touch-action:manipulation}.wave5-button:focus-visible{outline:3px solid #257864;outline-offset:3px}.wave5-button.is-selected{background:#176c5b;color:white;box-shadow:0 0 0 3px #e8bd62}.wave5-button:disabled{opacity:.5;cursor:default}.wave5-summary,.wave5-note{margin:8px 0;text-align:center}.wave5-note{font-size:.8rem;color:#58706d}.untangle-diagram{position:relative;width:100%;max-width:350px;aspect-ratio:1;margin:auto}.untangle-diagram svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}.untangle-diagram line{stroke:#28796b;stroke-width:.75}.untangle-diagram line.is-crossed{stroke:#b35d3d;stroke-dasharray:2 1;stroke-width:.9}.untangle-vertex{position:absolute;width:44px;height:44px;padding:0;border-radius:50%;transform:translate(-50%,-50%);box-shadow:0 3px 9px #1233;font-size:14px}.untangle-vertex.is-fixed{background:#e9efd9;border-radius:10px;border-width:2px}.fourline-controls{display:grid;grid-template-columns:repeat(var(--columns),minmax(0,1fr));gap:5px;margin-bottom:10px}.fourline-controls button{min-width:0;font-size:12px;min-height:44px;padding:5px}.fourline-grid{display:grid;grid-template-columns:repeat(var(--columns),minmax(0,1fr));gap:5px;background:#175b67;border-radius:16px;padding:9px}.fourline-disc{aspect-ratio:1;display:grid;place-items:center;border-radius:50%;background:#f0f5f2;font-size:clamp(18px,5vw,34px);line-height:1}.fourline-disc.player{background:#f2d47f;color:#705006}.fourline-disc.opponent{background:#dde9e8;color:#17434b}.fourline-disc.empty{color:#b8cfce}.balance-tray{display:flex;flex-wrap:wrap;justify-content:center;gap:7px;margin:8px 0 14px}.balance-tray .wave5-button{background:#f6e4b1;min-width:48px}.balance-tray .is-used{background:#e2efdf}.balance-tray .is-selected{background:#176c5b}.balance-beam{border:1px solid #c4d9d3;border-radius:14px;padding:12px;margin-block:12px;background:#f8fbf8}.balance-beam h4{margin:0 0 6px}.balance-summary{font-size:13px;margin:0 0 10px;overflow-wrap:anywhere}.balance-slots{display:flex;gap:6px;border-bottom:5px solid #47736d;padding-bottom:6px}.balance-slots button{white-space:pre-line;flex:1;min-width:44px;min-height:54px}.balance-pivot{text-align:center;line-height:1;color:#a77935;font-size:24px}.wave5-steps{font-variant-numeric:tabular-nums}.lesson .wave5-game{max-width:330px}.lesson .wave5-note{display:none}@media(max-width:600px){.wave5-board{padding:3px!important}.fourline-controls{grid-template-columns:repeat(3,minmax(0,1fr))}.fourline-controls button{font-size:13px;min-width:44px}.untangle-diagram{max-width:300px}.balance-beam{padding:8px}.wave5-note{margin-block:6px}}@media(prefers-reduced-motion:reduce){.wave5-game *{transition:none!important;animation:none!important}}

/* The legacy board line rule has an ID;scope overrides to this engine only. */
#board.wave5-board .untangle-diagram svg line,[data-board-slot=board].wave5-board .untangle-diagram svg line{stroke:#28796b;stroke-width:.65px}
#board.wave5-board .untangle-diagram svg line.is-crossed,[data-board-slot=board].wave5-board .untangle-diagram svg line.is-crossed{stroke:#b35d3d;stroke-width:.7px;stroke-dasharray:2 1}
@media(max-width:600px){.wave5-note{display:none}.fourline-grid{max-width:270px;margin-inline:auto}.balance-beam{padding:6px 8px;margin-block:8px}.balance-beam h4{display:inline;font-size:12px;margin-inline-end:8px}.balance-summary{display:inline;font-size:12px;line-height:1.3}.balance-slots{margin-top:6px;padding-bottom:0}.balance-slots button{min-height:44px}.balance-pivot{font-size:12px;line-height:8px}.balance-tray{margin-block:6px 10px}}

/* The established #board is a clue grid;these three engines own their layout. */
#board.wave5-board,[data-board-slot=board].wave5-board{display:block!important;width:100%;box-sizing:border-box}.wave5-board>.wave5-game{width:100%;box-sizing:border-box}
