/* Ver.54.2 — mobile-friendly tapped race finish, light/dark compatible */
.v55-tap-result{border:1px solid var(--border,#bacbd4);background:var(--white,#fff);border-radius:12px;padding:14px;margin:12px 0 16px;color:var(--text,#203746)}
.v55-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:9px;margin-bottom:13px}
.v55-heading strong{font-size:17px}.v55-heading p{font-size:12px;color:var(--muted,#677e88);margin:5px 0 0;line-height:1.45}
.v55-reset{border:1px solid var(--border,#bacbd4);background:transparent;color:inherit;border-radius:8px;padding:9px 11px;font-size:13px;font-weight:750;white-space:nowrap;min-height:41px}
.v55-buttons{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}
.v55-buttons .v55-boat{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:70px;min-width:0;padding:7px 2px;border:1px solid var(--border,#bacbd4);border-radius:10px;background:var(--bg,#f6f9fa);color:var(--text,#203746);cursor:pointer;touch-action:manipulation}
.v55-buttons .v55-boat.active{background:rgba(0,138,147,.14);border:2px solid #0398a6;padding:6px 1px}
.v55-buttons .v55-boat:focus-visible,.v55-reset:focus-visible,.v55-clear:focus-visible{outline:3px solid #4bb3dc;outline-offset:2px}
.v55-buttons .v54-boat-number{width:34px;height:34px;font-size:20px;border-radius:8px}
.v55-boat-position{font-size:12px;color:var(--muted,#677e88);font-weight:800;min-height:17px}
.v55-buttons .v55-boat.active .v55-boat-position{color:#087987}
.v55-status{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px;background:var(--bg,#f2f6f8);border-radius:8px;padding:8px 12px;font-size:13px}
.v55-status strong{font-size:21px;font-variant-numeric:tabular-nums;letter-spacing:.04em}
.v55-summary,.v55-message{font-size:12px;line-height:1.55;margin:10px 0 0;color:var(--muted,#677e88)}
.v55-summary b{color:var(--text,#203746)}
.v55-clear{margin-top:12px;background:transparent;color:var(--muted,#677e88);border:1px solid var(--border,#bacbd4);border-radius:8px;font-size:12px;padding:7px 10px;min-height:36px}
.v55-manual{margin:8px 0 12px;font-size:12px;color:var(--muted,#677e88)}.v55-manual summary{cursor:pointer}.v55-manual-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:8px 0}
.v55-manual-grid label{display:flex;flex-direction:column;gap:5px;font-weight:700}.v55-manual-grid input{border-radius:8px;border:1px solid var(--border);background:var(--bg);color:var(--text);min-height:42px;padding:8px;width:100%;box-sizing:border-box}
:root[data-theme="dark"] .v55-buttons .v55-boat{background:#172633;border-color:#496071;color:#edf5f9}
:root[data-theme="dark"] .v55-buttons .v55-boat.active{background:#164455;border-color:#58c0d0}
:root[data-theme="dark"] .v55-buttons .v55-boat.active .v55-boat-position{color:#90ecf2}
:root[data-theme="light"] .v55-buttons .v55-boat{background:#fff;border-color:#d7e4ea}
:root[data-theme="light"] .v55-buttons .v55-boat.active{background:#e8f8f8;border-color:#008c96}
@media(max-width:650px){.v55-tap-result{padding:10px}.v55-buttons{gap:4px}.v55-buttons .v55-boat{min-height:62px;padding:4px 1px}.v55-buttons .v54-boat-number{width:27px;height:27px;font-size:17px}.v55-boat-position{font-size:11px}.v55-heading strong{font-size:15px}.v55-reset{padding:7px;font-size:12px}.v55-status strong{font-size:18px}.v55-manual-grid{grid-template-columns:1fr}}
