.tools-main { max-width: 1160px; }
.tools-main h1 { margin-bottom: 13px; }
.tools-layout { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(280px,.9fr); gap: 22px; margin-top: 26px; align-items: start; }
.tool-board { position: relative; max-width: 570px; margin: auto; line-height: 0; border: 5px solid #eee7d7; box-shadow: 0 8px 20px #3244323d; }
.tool-board img { display: block; width: 100%; height: auto; }
.tool-pawn { position: absolute; display: grid; place-items: center; width: 24px; height: 24px; transform: translate(-50%,-50%); border: 2px solid white; border-radius: 50%; background: var(--pawn-color); color: white; box-shadow: 0 2px 7px #172b24b3; font: 800 12px system-ui,sans-serif; line-height: 1; }
.die-result { display: grid; place-items: center; width: 82px; height: 82px; margin: 10px 0 18px; border: 3px solid #2a604c; border-radius: 14px; background: #fffaf0; color: #284738; font: 700 3.5rem Georgia,serif; }
.tool-player { padding: 13px 0; border-top: 1px solid var(--line); }
.tool-player label { margin: 6px 0; font-size: .87rem; }
.tool-player .player-fields { display: grid; grid-template-columns: minmax(100px,1fr) 75px; gap: 10px; }
.tool-player input, .tool-player select { min-height: 40px; padding: 7px; margin-top: 4px; }
.tool-player .player-label { display: flex; align-items: center; gap: 8px; }
.tool-player .key-dot { display: inline-block; flex: none; width: 13px; height: 13px; border-radius: 50%; }
@media(max-width: 780px) { .tools-layout { grid-template-columns: 1fr; } .tools-layout aside { display: contents; } }
