.dr{max-width:1400px;padding:18px 16px 30px}.drHead{display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;align-items:end;margin-bottom:12px}
.drHead h1{margin:4px 0 0;font-size:clamp(22px,3vw,32px);letter-spacing:-.5px}
.seg{display:flex;background:#dfe8f2;border-radius:14px;padding:4px}.seg button{border:0;background:none;padding:10px 16px;border-radius:11px;font:700 15px system-ui;color:#33485c;cursor:pointer}
.seg button[aria-pressed=true]{background:#fff;color:#0b4f6c;box-shadow:0 2px 8px rgba(40,70,110,.18)}
.drGrid{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:14px;align-items:start}
.stage{position:relative;border-radius:20px;overflow:hidden;background:#101c29;box-shadow:var(--shadow)}
.stage canvas{display:block;width:100%;height:auto;touch-action:manipulation;cursor:crosshair}
#why{position:absolute;left:12px;top:12px;padding:7px 12px;border-radius:11px;background:rgba(255,255,255,.94);color:#13263a;font:700 14px system-ui}#why.bad{background:#b81b31;color:#fff}
#pad{position:absolute;right:12px;bottom:12px;display:grid;grid-template-columns:repeat(3,58px);gap:6px}#pad[hidden]{display:none}
#pad button{height:58px;border:0;border-radius:14px;background:rgba(255,255,255,.88);color:#13263a;font:700 22px system-ui;touch-action:none;user-select:none;-webkit-user-select:none}#pad button.on{background:#0ea5c6;color:#fff}
.drSide{padding:14px;border-radius:20px;background:var(--glass);border:1px solid var(--glass-b);box-shadow:var(--shadow)}
#halt{width:100%;min-height:54px;border:0;border-radius:14px;background:#b81b31;color:#fff;font:800 17px system-ui;cursor:pointer}#halt.on{background:#0a7147}
.drSide dl{margin:12px 0}.drSide dl div{display:flex;justify-content:space-between;gap:10px;padding:5px 0;border-bottom:1px solid #d9e3ee}.drSide dt{color:#4c6177}.drSide dd{margin:0;font-weight:700;text-align:right}
.drSide h2{font-size:14px;margin:12px 0 6px}.tries{display:flex;flex-wrap:wrap;gap:6px}.tries button{border:1px solid #c9d6e3;background:#fff;color:#13263a;border-radius:11px;padding:8px 10px;font:600 13.5px system-ui;cursor:pointer}
.tries button[aria-pressed=true]{background:#dff1f8;border-color:#0ea5c6}.tries button.bad{background:#ffe1e6;border-color:#d9667a;color:#96142a}
#log{margin:0;padding-left:18px;font-size:13.5px;color:#33485c;min-height:110px}#log li:first-child{font-weight:700;color:#13263a}.fine{font-size:12.5px;color:#4c6177;margin:10px 0 0}
@media (max-width:980px){.drGrid{grid-template-columns:1fr}}
@media (max-width:640px){.stage{overflow:visible;background:none;box-shadow:none}.stage canvas{border-radius:16px}#pad{position:static;justify-content:center;padding:10px 0;grid-template-columns:repeat(3,76px)}#pad button{background:#fff;height:62px;box-shadow:0 2px 8px rgba(40,70,110,.18)}#why{font-size:12px;left:6px;top:6px;padding:5px 9px}}
