.tug-game{width:100%;max-width:900px;margin:auto}
.tug-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 4px;color:var(--ink)}
.tug-heading strong{font-size:clamp(14px,2.3vw,19px)}
.tug-time{font-variant-numeric:tabular-nums;font-weight:800;white-space:nowrap}
.tug-meter{position:relative;height:12px;border-radius:20px;margin:2px 6px 12px;background:linear-gradient(to right,#f9b29c 0 49.8%,#d1c5f2 50%);border:1px solid #fff}
.tug-meter>span{position:absolute;left:50%;height:100%;width:2px;background:#25314d44}
.tug-meter>i{position:absolute;left:50%;top:-5px;height:20px;width:13px;border-radius:6px;background:#25314d;transform:translateX(-50%);transition:left .08s linear}
.tug-stage,.tug-court{min-width:0}
.tug-canvas{display:block;width:100%;height:auto;border-radius:18px;touch-action:none}
.tug-status{text-align:center;min-height:2.7em;font-size:14px;color:var(--muted);margin:14px 0 10px}
.tug-controls{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.tug-controls.tug-solo{grid-template-columns:minmax(0,440px);justify-content:center}
.tug-tap{position:relative;min-width:0;min-height:126px;padding:14px 8px;display:grid;place-items:center;border:0;border-bottom:5px solid #dc5d42;border-radius:16px;background:#fff0e9;color:#9e3f2a;cursor:pointer;user-select:none;touch-action:none;-webkit-tap-highlight-color:transparent}
.tug-tap-1{border-color:#6e5bb6;background:#f0ecfc;color:#604caa}
.tug-tap-label{display:grid;gap:5px;width:100%;min-width:0;pointer-events:none}
.tug-player-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700;font-size:16px}
.tug-tap-label>strong{font-size:25px;line-height:1.15;letter-spacing:.04em}
.tug-tap-label>small{font-size:14px}
.tug-tap-meta{display:flex;justify-content:center;align-items:center;gap:12px;font-size:14px;font-variant-numeric:tabular-nums;white-space:nowrap}
.tug-count{opacity:.85}
.tug-player-time{display:none;font-weight:800}
.tug-tap:active{transform:translateY(3px);border-bottom-width:2px}
.tug-tap:disabled{opacity:.75;cursor:default}
.tug-tap:focus-visible{outline:3px solid var(--ink);outline-offset:3px}
.tug-note{margin-top:14px}

/* A shared field between two separate, independently touchable end pads. */
.tug-game[data-table-view="face"]{max-width:none}
.tug-game[data-table-view="face"] .tug-heading{display:none}
.tug-game[data-table-view="face"] .tug-meter{height:8px;margin:5px clamp(78px,11vw,122px) 9px}
.tug-game[data-table-view="face"] .tug-meter>i{height:17px;top:-5px;width:11px}
.tug-game[data-table-view="face"] .tug-stage{position:relative;display:grid;grid-template-columns:clamp(76px,10vw,112px) minmax(0,1fr) clamp(76px,10vw,112px);grid-template-rows:minmax(0,1fr);gap:10px;height:var(--table-stage-height,320px);min-height:150px;touch-action:none;user-select:none;-webkit-user-select:none}
.tug-game[data-table-view="face"] .tug-court{grid-column:2;grid-row:1;display:flex;align-items:center;justify-content:center;min-height:0;overflow:hidden;border-radius:18px;background:#badcc4}
.tug-game[data-table-view="face"] .tug-canvas{width:100%;max-width:calc(var(--table-stage-height,320px) * 2.117647);height:auto;aspect-ratio:720/340;border-radius:14px}
.tug-game[data-table-view="face"] .tug-controls{display:contents}
.tug-game[data-table-view="face"] .tug-tap{grid-row:1;min-height:0;height:100%;padding:0;border:2px solid #edaa94;border-bottom-width:5px;border-radius:18px;overflow:hidden}
.tug-game[data-table-view="face"] .tug-tap-0{grid-column:1}
.tug-game[data-table-view="face"] .tug-tap-1{grid-column:3;border-color:#b4a5df}
.tug-game[data-table-view="face"] .tug-tap-label{position:absolute;left:50%;top:50%;width:calc(var(--table-stage-height,320px) - 24px);max-width:480px;gap:4px;transform:translate(-50%,-50%) rotate(90deg)}
.tug-game[data-table-view="face"] .tug-tap-1 .tug-tap-label{transform:translate(-50%,-50%) rotate(-90deg)}
.tug-game[data-table-view="face"] .tug-tap-label>strong{font-size:24px}
.tug-game[data-table-view="face"] .tug-player-name{font-size:14px;line-height:1.2}
.tug-game[data-table-view="face"] .tug-tap-label>small{display:none}
.tug-game[data-table-view="face"] .tug-tap-meta{font-size:14px;line-height:1.15;gap:10px}
.tug-game[data-table-view="face"] .tug-player-time{display:inline}
.tug-game[data-table-view="face"] .tug-tap:active{transform:none;background:#ffddce}
.tug-game[data-table-view="face"] .tug-tap-1:active{background:#e2d9fa}
.tug-game[data-table-view="face"] .tug-note{display:none}
.tug-game[data-table-view="face"] .tug-status{position:absolute;width:1px;height:1px;min-height:0;overflow:hidden;clip-path:inset(50%);margin:0;padding:0;pointer-events:none}
.tug-game[data-table-view="face"].tug-settled .tug-status{width:auto;height:auto;left:clamp(86px,11vw,122px);right:clamp(86px,11vw,122px);bottom:8px;clip-path:none;overflow:visible;padding:7px 10px;border-radius:12px;background:#fff9edeb;color:#423a35;font-size:14px;font-weight:750}

@media(max-width:500px){
 .tug-controls{gap:9px}
 .tug-tap{min-height:135px;padding:14px 5px}
 .tug-tap-label>strong{font-size:23px}
 .tug-tap-label>small{font-size:12px}
 .tug-heading{padding-top:2px}
 .tug-status{font-size:14px}
 .tug-game[data-table-view="face"] .tug-stage{grid-template-columns:70px minmax(0,1fr) 70px;gap:6px}
 .tug-game[data-table-view="face"] .tug-tap-label>strong{font-size:22px}
 .tug-game[data-table-view="face"] .tug-tap-meta{font-size:13px;gap:8px}
 .tug-game[data-table-view="face"] .tug-meter{margin-left:77px;margin-right:77px}
 .tug-game[data-table-view="face"].tug-settled .tug-status{left:77px;right:77px;font-size:12px;padding:6px}
}
@media(prefers-reduced-motion:reduce){.tug-meter>i{transition:none}}
