/* 穴の石の遊びの共通の見た目。common/sowing.js と組で使う。盤の色と穴の形は各ゲームの index.html で決める */
.controls { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; justify-content: center; }
.sow-wrap { display: grid; gap: 8px; width: min(760px, 100%); justify-self: center; min-width: 0; }
.sow-seat { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 4px 14px 4px 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); min-width: 0; transition: border-color .2s ease, box-shadow .2s ease; }
.sow-seat.now { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); background: var(--surface-2); }
.sow-seat.won { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.sow-seat .pic { flex: none; width: 44px; height: 44px; display: grid; place-items: center; }
.sow-seat .pic svg { width: 44px; height: 44px; }
.sow-seat .me { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #1a0e08; font-weight: 700; font-size: 17px; }
.sow-seat .who { display: grid; line-height: 1.3; min-width: 0; }
.sow-seat .who b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sow-seat .who small { color: var(--muted); font-size: 12px; }
.sow-seat .score { margin-left: auto; font: 700 26px/1 var(--display); color: var(--gold); font-variant-numeric: tabular-nums; min-width: 2ch; text-align: right; }
.sow-msg { margin: 0; min-height: 3em; font-size: 14px; text-align: center; }
.sow-msg b { color: var(--gold); }
.sow-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; min-height: 44px; }
.sow-acts .btn { min-width: 120px; }
.sow-stats { justify-content: center; }
.sow-opp { flex-wrap: wrap; }

/* 盤。穴は grid に並べ、手に持った石は盤の上を飛ぶ */
.sow-board { position: relative; display: grid; gap: 6px; padding: 10px; user-select: none; -webkit-user-select: none; touch-action: manipulation; min-width: 0; }
.pit { position: relative; min-width: 44px; min-height: 44px; padding: 0; margin: 0; border: 0; background: none; color: inherit; cursor: pointer; font: inherit; }
.pit:disabled { cursor: default; }
.pit .stones { position: absolute; inset: 12%; pointer-events: none; }
.pit .stones i { position: absolute; display: block; pointer-events: none; }
.pit .cnt { position: absolute; right: 4px; bottom: 2px; font-size: 12px; line-height: 1; color: #fff6e2; text-shadow: 0 1px 2px #000, 0 0 3px #000; pointer-events: none; font-variant-numeric: tabular-nums; }
.pit.can { box-shadow: 0 0 0 2px var(--gold), 0 0 10px rgba(255, 200, 90, .45); }
.pit.sel { box-shadow: 0 0 0 3px #ff7a5a, 0 0 14px rgba(255, 122, 90, .7); }
.pit.drop { animation: pitdrop .26s ease-out; }
@keyframes pitdrop { 40% { filter: brightness(1.45); } }
.sow-hand { position: absolute; left: 0; top: 0; z-index: 3; width: 34px; height: 34px; margin: -17px 0 0 -17px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 236, 200, .92); box-shadow: 0 6px 14px rgba(0, 0, 0, .55), 0 0 0 2px rgba(120, 70, 30, .8); pointer-events: none; transition-property: transform; transition-timing-function: ease-in-out; }
.sow-hand[hidden] { display: none; }
.sow-hand i { position: absolute; inset: 7px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fffaf0, #d9b98a 70%); }
.sow-hand b { position: relative; font-size: 13px; color: #3a1e0c; }
@media (prefers-reduced-motion: reduce) { .pit.drop { animation: none; } .sow-hand { transition: none; } .sow-seat { transition: none; } }
