Switch to chips-only play: real cards at the table, winners picked on screen
- Remove the deck, hole cards, board, hand evaluator and reveal logic (cards are dealt physically; the site only tracks bets, pots and stacks) - Showdown now waits for a winner per pot (main/side), chosen by a player still in the hand or the host; multiple winners split the pot - All-in with no further betting goes straight to showdown - Remove the 30s action clock / auto sit-out (everyone is at the same table) - UI: winner picker panel (main winner auto-fills side pots), compact table Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
8de55f7ca5
commit
b5d84e5f65
11 files changed
+408
-605
No files matched your search
+17
-81
@@ -319,8 +319,8 @@ input.invalid { border-color: var(--red); }
|
||||
.felt-area {
|
||||
position: relative;
|
||||
flex: 1;
|
||||
min-height: 400px;
|
||||
margin: 30px 0 26px;
|
||||
min-height: 340px;
|
||||
margin: 20px 0 24px;
|
||||
}
|
||||
.felt {
|
||||
position: absolute;
|
||||
@@ -411,11 +411,11 @@ input.invalid { border-color: var(--red); }
|
||||
justify-content: center;
|
||||
border: 2px solid #222;
|
||||
}
|
||||
.chip-marker.dealer { background: #fff; color: #111; top: 22px; right: -16px; z-index: 2; }
|
||||
.chip-marker.dealer { background: #fff; color: #111; top: -4px; right: -8px; z-index: 2; }
|
||||
.blind-marker {
|
||||
position: absolute;
|
||||
top: 26px;
|
||||
left: -20px;
|
||||
top: -4px;
|
||||
left: -10px;
|
||||
z-index: 2;
|
||||
font-size: 10px;
|
||||
font-weight: 900;
|
||||
@@ -509,57 +509,6 @@ input.invalid { border-color: var(--red); }
|
||||
z-index: 30;
|
||||
}
|
||||
|
||||
/* ---------- カード ---------- */
|
||||
.card {
|
||||
display: inline-flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex: none;
|
||||
width: 28px;
|
||||
height: 40px;
|
||||
background: #fff;
|
||||
border-radius: 5px;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
|
||||
font-weight: 900;
|
||||
line-height: 1;
|
||||
user-select: none;
|
||||
transition: filter 0.2s;
|
||||
}
|
||||
.card b { font-size: 15px; letter-spacing: -0.05em; }
|
||||
.card i { font-style: normal; font-size: 13px; margin-top: 1px; }
|
||||
.suit-s { color: #1a1a1a; }
|
||||
.suit-h { color: #d62839; }
|
||||
.suit-d { color: #1f6fd1; }
|
||||
.suit-c { color: #16884a; }
|
||||
.card.back {
|
||||
background: repeating-linear-gradient(45deg, #c0392b 0 3px, #a93226 3px 6px);
|
||||
border: 2px solid #fff;
|
||||
}
|
||||
.card.slot { background: rgba(0, 0, 0, 0.12); box-shadow: none; border: 1px dashed rgba(255, 255, 255, 0.3); }
|
||||
.card.deal { animation: deal 0.35s ease-out both; }
|
||||
@keyframes deal {
|
||||
from { opacity: 0; transform: translateY(-10px) scale(0.8); }
|
||||
}
|
||||
.card.dim { filter: brightness(0.5); }
|
||||
.card.hl { box-shadow: 0 0 0 2px var(--gold), 0 0 10px rgba(246, 199, 68, 0.8); }
|
||||
|
||||
.board { display: flex; gap: 3px; margin-top: 8px; min-height: 40px; }
|
||||
|
||||
.hole {
|
||||
position: absolute;
|
||||
top: -18px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
display: flex;
|
||||
gap: 2px;
|
||||
z-index: 1;
|
||||
}
|
||||
.hole .card { width: 25px; height: 35px; border-radius: 4px; }
|
||||
.hole .card b { font-size: 13px; }
|
||||
.hole .card i { font-size: 11px; }
|
||||
.hole .card.back { border-width: 1.5px; }
|
||||
|
||||
/* ---------- 席の状態 ---------- */
|
||||
.seat.folded .avatar, .seat.folded .nameplate { opacity: 0.45; }
|
||||
.seat.away .avatar { opacity: 0.4; }
|
||||
@@ -568,17 +517,7 @@ input.invalid { border-color: var(--red); }
|
||||
box-shadow: 0 0 0 3px rgba(246, 199, 68, 0.35), 0 0 18px rgba(246, 199, 68, 0.7);
|
||||
}
|
||||
.seat.winner .nameplate { box-shadow: 0 0 0 2px var(--gold), 0 0 12px rgba(246, 199, 68, 0.6); }
|
||||
.nameplate .phand {
|
||||
font-size: 10px;
|
||||
font-weight: 700;
|
||||
color: var(--gold);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.seat-timer { height: 3px; background: rgba(255, 255, 255, 0.15); border-radius: 2px; margin-top: 3px; overflow: hidden; }
|
||||
.seat-timer i, .turn-progress i { display: block; height: 100%; width: 100%; background: var(--green); transition: width 0.2s linear; }
|
||||
.seat-timer i.low, .turn-progress i.low { background: var(--red); }
|
||||
.seat.contender .avatar { border-color: var(--orange); }
|
||||
|
||||
.act-tag {
|
||||
position: absolute;
|
||||
@@ -625,12 +564,13 @@ input.invalid { border-color: var(--red); }
|
||||
border: 2px dashed #fff;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.bet.above { bottom: calc(100% + 20px); }
|
||||
.bet.above { bottom: calc(100% + 4px); }
|
||||
.bet.below { top: calc(100% + 4px); }
|
||||
.bet.win { background: var(--gold); color: #111; padding: 2px 8px; }
|
||||
.bet.win::before { display: none; }
|
||||
|
||||
.phase.paused { background: var(--red); }
|
||||
.phase.showdown { background: var(--orange); color: #111; }
|
||||
.result {
|
||||
margin-top: 6px;
|
||||
background: rgba(0, 0, 0, 0.4);
|
||||
@@ -646,35 +586,31 @@ input.invalid { border-color: var(--red); }
|
||||
.pot-tag { font-size: 9px; background: rgba(255, 255, 255, 0.2); padding: 0 4px; border-radius: 4px; margin-right: 4px; }
|
||||
|
||||
/* 7人以上 */
|
||||
.felt-area.crowded { min-height: 470px; }
|
||||
.felt-area.crowded { min-height: 420px; }
|
||||
.crowded .seat { width: 80px; }
|
||||
.crowded .avatar { width: 46px; height: 46px; }
|
||||
.crowded .avatar svg { width: 22px; height: 22px; }
|
||||
.crowded .nameplate { min-width: 72px; max-width: 80px; padding: 3px 6px; }
|
||||
.crowded .nameplate .pname { font-size: 11px; }
|
||||
.crowded .nameplate .pstack { font-size: 12px; }
|
||||
.crowded .hole { top: -12px; }
|
||||
.crowded .hole .card { width: 20px; height: 28px; }
|
||||
.crowded .hole .card b { font-size: 11px; }
|
||||
.crowded .hole .card i { font-size: 9px; }
|
||||
.crowded .chip-marker.dealer { top: 14px; }
|
||||
.crowded .blind-marker { top: 18px; }
|
||||
|
||||
/* ---------- 自分の操作エリア ---------- */
|
||||
.turn-progress { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: rgba(255, 255, 255, 0.08); }
|
||||
.me-row { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
|
||||
.my-cards { display: flex; gap: 4px; flex: none; }
|
||||
.my-cards .card { width: 42px; height: 58px; border-radius: 6px; }
|
||||
.my-cards .card b { font-size: 22px; }
|
||||
.my-cards .card i { font-size: 19px; }
|
||||
.me-info { flex: 1; min-width: 0; }
|
||||
.me-sub { font-size: 12px; color: var(--muted); display: flex; gap: 8px; margin-top: 3px; white-space: nowrap; }
|
||||
.me-sub .my-hand { color: var(--gold); font-weight: 800; }
|
||||
.me-sub .my-bet { color: var(--gold); font-weight: 700; }
|
||||
.me-sub .plus { color: var(--green); }
|
||||
.me-sub .minus { color: var(--red); }
|
||||
.status-line { text-align: center; font-size: 12px; color: var(--muted); margin-bottom: 8px; min-height: 16px; }
|
||||
.status-line.my-turn { color: var(--gold); font-weight: 800; }
|
||||
.raise-panel { margin-bottom: 8px; }
|
||||
.award-panel { margin-bottom: 4px; }
|
||||
.award-pot { background: var(--panel-2); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; }
|
||||
.award-title { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
|
||||
.award-title b { color: var(--gold); font-size: 14px; }
|
||||
.picks { display: flex; flex-wrap: wrap; gap: 6px; }
|
||||
.picks .pick { background: var(--input); color: var(--text); border: 2px solid transparent; }
|
||||
.picks .pick.on { background: rgba(246, 199, 68, 0.18); border-color: var(--gold); color: var(--gold); }
|
||||
.presets { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
|
||||
.presets .btn { padding: 8px 0; font-size: 13px; }
|
||||
.presets .btn.active { background: var(--orange); color: #111; }
|
||||
|
||||
Reference in new issue
Block a user