/* Крупная учебная доска, контрастная запись и минимум лишних элементов. */
.sim-game-replay{background:#fffdf8;border:1px solid #e2d8c3;border-radius:15px;padding:18px;margin:18px 0}
.sim-replay-layout{display:grid;grid-template-columns:minmax(0,510px) minmax(0,1fr);align-items:start;gap:22px}.sim-replay-main,.sim-replay-side{min-width:0}
.sim-replay-board{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));grid-template-rows:repeat(8,minmax(0,1fr));width:100%;max-width:510px;min-width:0;aspect-ratio:1 / 1;height:auto;border:5px solid #456752;border-radius:6px;overflow:hidden;container-type:inline-size;contain:layout;box-sizing:border-box}
.sim-replay-cell{position:relative;display:block;min-width:0;min-height:0;width:100%;height:100%;overflow:hidden}
.sim-replay-cell.light{background:#f1debc}.sim-replay-cell.dark{background:#9d7f5d}
.sim-replay-cell.last-move{box-shadow:inset 0 0 0 999px #f3c96a55}
.sim-replay-piece{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;min-width:0;min-height:0;font-family:'Segoe UI Symbol','DejaVu Sans',serif;font-size:clamp(18px,9cqw,55px);line-height:1;user-select:none;white-space:nowrap;pointer-events:none}
.sim-replay-piece.white-piece{color:#fffdf4;-webkit-text-stroke:.9px #1f3028;text-shadow:0 1px 2px #26352d}
.sim-replay-piece.black-piece{color:#15231b;-webkit-text-stroke:.3px #f7f3e5}
.sim-replay-coord{position:absolute;left:2px;bottom:1px;font:600 clamp(8px,2cqw,11px)/1.1 system-ui,sans-serif;color:#334838;pointer-events:none;white-space:pre;z-index:1}
.sim-replay-cell.dark .sim-replay-coord{color:#fff1d8}
.sim-replay-caption{font-weight:700;margin:8px 0 11px;text-align:center;color:#15392d}
.sim-replay-controls{display:flex;gap:7px;flex-wrap:wrap;justify-content:center}
.sim-replay-controls button,.sim-replay-moves button,.sim-replay-moment{border:1px solid #bfcbbf;background:#f5f3ed;border-radius:8px;padding:9px 12px;color:#18372d;cursor:pointer;font:600 14px system-ui,sans-serif}
.sim-replay-controls button{min-width:49px}.sim-replay-controls button:hover:not(:disabled),.sim-replay-move:hover,.sim-replay-moment:hover{background:#e8d7ad}
.sim-replay-controls button:disabled{opacity:.38;cursor:not-allowed}
.sim-replay-controls button:focus-visible,.sim-replay-moves button:focus-visible,.sim-replay-moment:focus-visible{outline:3px solid #ba8f42;outline-offset:2px}
.sim-replay-side h3{font:700 22px Georgia,serif;margin:0 0 11px;color:#163a2d}
.sim-replay-moves{border:1px solid #e4dfd3;border-radius:10px;background:#fbf8f1;max-height:175px;overflow:auto;display:flex;flex-wrap:wrap;gap:5px;padding:10px;align-content:flex-start}
.sim-replay-moves button{padding:6px 8px;background:transparent;border:0;font-size:13px;border-radius:5px}
.sim-replay-moves button.active{background:#e9cd8e;color:#122f25}
.sim-replay-note{margin:16px 0;padding:15px;border-left:4px solid #bfa05a;background:#f9f3e3;border-radius:4px 10px 10px 4px;min-height:90px;line-height:1.56}
.sim-replay-note strong{font-size:17px;color:#183a2e}.sim-replay-note p{margin:8px 0}.sim-replay-note details{margin-top:10px}.sim-replay-note summary{cursor:pointer;font-weight:700;color:#355d43}.sim-replay-note small{display:block;margin-top:10px;color:#68766b}
.sim-replay-moments{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.sim-replay-moment{font-size:12px;padding:7px 9px}
.sim-game-meta{display:flex;gap:8px;align-items:center;flex-wrap:wrap;color:#486252;margin-bottom:12px}
.sim-game-meta span{border-radius:15px;background:#f1e5c9;padding:5px 9px;font-size:13px}
.sim-game-links{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0 20px}
.sim-game-links a{display:inline-flex;align-items:center;border-radius:8px;border:1px solid #bda267;padding:9px 14px;font-weight:650;font-size:14px;text-decoration:none}
.sim-game-pick{display:flex;gap:10px;align-items:start;padding:15px 0;border-bottom:1px solid #e7dfd0}
.sim-game-pick small{color:#63786b}.sim-game-pick a{font-size:17px;font-weight:700;color:#163d2f;text-decoration:none}
.sim-game-tips{background:#f6f2e8;border:1px solid #e2d5bd;padding:16px;border-radius:11px;margin-top:20px}
.sim-game-tips ol{margin:7px 0 0 20px}
@media(max-width:850px){.sim-replay-layout{grid-template-columns:minmax(0,1fr)}.sim-replay-board{max-width:510px;margin:auto}}
@media(max-width:500px){.sim-game-replay{padding:9px}.sim-replay-board{border-width:3px}.sim-replay-moves{max-height:110px}}
@media print{.sim-replay-controls,.sim-replay-moves,.sim-replay-moments{display:none}.sim-replay-layout{display:block}.sim-replay-board{max-width:420px}.sim-replay-note{min-height:0}}

/* v2.8: fixed square grid rows + absolutely positioned figures: moves must never resize cells. */
