From 9ec756bf38ccbae799e6b1d20de889ee373997ed Mon Sep 17 00:00:00 2001 From: EJClaw Date: Sat, 17 Oct 2026 01:03:22 +0900 Subject: [PATCH] =?UTF-8?q?=EC=84=AF=EB=8B=A4=20=ED=99=94=EB=A9=B4=20?= =?UTF-8?q?=EA=BE=B8=EB=B0=88=EC=9D=84=20=EC=82=AC=EC=9D=B4=ED=8A=B8=20?= =?UTF-8?q?=EB=94=94=EC=9E=90=EC=9D=B8=EC=9C=BC=EB=A1=9C:=20=ED=9D=B0=20?= =?UTF-8?q?=EC=B9=B4=EB=93=9C=20=EC=9E=90=EB=A6=AC=C2=B7=EC=95=84=EB=9E=98?= =?UTF-8?q?=20=ED=8C=90,=20=EB=8B=B4=EC=9A=94=20=EB=AC=B4=EB=8A=AC=20?= =?UTF-8?q?=ED=8E=A0=ED=8A=B8,=20=EB=82=99=EA=B4=80(=EB=8F=84=EC=9E=A5)=20?= =?UTF-8?q?=EC=A1=B1=EB=B3=B4=20=EC=9D=B4=EB=A6=84,=20=ED=8C=8C=EB=9E=80?= =?UTF-8?q?=20'=EB=82=B4=20=EC=B0=A8=EB=A1=80'=20=EB=9D=A0,=20=EB=8B=A4?= =?UTF-8?q?=ED=81=AC=20=EB=AA=A8=EB=93=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 사이트 공용 색 변수(--felt/--wood/--surface/--primary)를 써서 다크 모드에서도 맞음 - 족보판은 사이트 칩 모양, 내 족보 칸은 파란 강조 - 베팅 버튼은 흰 버튼, 누를 수 있을 때만 행동 색 테두리와 숫자 키 배지 - font 단축 속성에 inherit를 넣어 무효가 되던 글꼴(족보 칩·조합·키 배지)을 고침 Co-Authored-By: Claude Opus 5.5 --- apps/web/src/games/seotda/board.tsx | 151 +++++++++++++++------------- docs/games/seotda.md | 3 +- 2 files changed, 85 insertions(+), 69 deletions(-) diff --git a/apps/web/src/games/seotda/board.tsx b/apps/web/src/games/seotda/board.tsx index ff84233..c672d25 100644 --- a/apps/web/src/games/seotda/board.tsx +++ b/apps/web/src/games/seotda/board.tsx @@ -86,29 +86,41 @@ function bannerOf(v: SeotdaView): string | null { const isBig = (name: string) => /광땡|땡$|장땡/.test(name) && name !== '땡잡이'; const CSS = ` -.sd-wrap { width: 100%; max-width: 1060px; display: flex; flex-direction: column; gap: 10px; align-self: center; container: sd / inline-size; } -.sd-table { position: relative; width: 100%; aspect-ratio: 16 / 7.4; min-height: 380px; border-radius: 44px; border: 12px solid #5b3a1e; - background: radial-gradient(ellipse at 50% 45%, #2f8a5c 0%, #1d6a44 55%, #134b30 100%); box-shadow: inset 0 0 0 3px rgba(255,255,255,.08), inset 0 0 60px rgba(0,0,0,.35), 0 8px 24px rgba(0,0,0,.3); } -.sd-table::before { content: ''; position: absolute; inset: 14px; border-radius: 30px; border: 2px dashed rgba(255,255,255,.12); pointer-events: none; } -.sd-seat { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); width: 156px; z-index: 2; - background: rgba(10, 22, 16, .78); color: #f8fafc; border-radius: 12px; padding: 6px 8px; display: flex; flex-direction: column; gap: 3px; - border: 2px solid rgba(255,255,255,.12); box-shadow: 0 3px 10px rgba(0,0,0,.35); font-size: .82rem; transition: border-color .2s, opacity .2s; } -.sd-seat.turn { border-color: #fbbf24; box-shadow: 0 0 0 3px rgba(251,191,36,.35), 0 3px 10px rgba(0,0,0,.35); } -.sd-seat.out { opacity: .55; } -.sd-seat.win { border-color: #fde047; box-shadow: 0 0 0 3px rgba(253,224,71,.5), 0 0 22px rgba(253,224,71,.45); } +.sd-wrap { width: 100%; max-width: 1060px; display: flex; flex-direction: column; gap: 12px; align-self: center; container: sd / inline-size; } +/* 테이블: 사이트 공용 펠트·나무 색(다크 모드 따라감) 위에 화투판 담요 같은 마름모 무늬. */ +.sd-table { position: relative; width: 100%; aspect-ratio: 16 / 7.2; min-height: 370px; border-radius: 36px; border: 10px solid var(--wood); + background: + radial-gradient(ellipse at 50% 46%, rgba(255,255,255,.13) 0%, rgba(255,255,255,0) 58%), + repeating-linear-gradient(45deg, rgba(255,255,255,.045) 0 2px, transparent 2px 18px), + repeating-linear-gradient(-45deg, rgba(255,255,255,.045) 0 2px, transparent 2px 18px), + var(--felt); + box-shadow: inset 0 0 0 2px var(--wood-line), inset 0 0 50px rgba(0,0,0,.28), var(--shadow); } +.sd-table::before { content: ''; position: absolute; left: 50%; top: 48%; width: 300px; height: 190px; transform: translate(-50%, -50%); border-radius: 50%; + border: 2px dashed rgba(255,255,255,.16); background: rgba(0,0,0,.08); pointer-events: none; } +.sd-seat { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); width: 160px; z-index: 2; + background: var(--surface); color: var(--text); border-radius: var(--radius); padding: 7px 9px; display: flex; flex-direction: column; gap: 3px; + border: 2px solid transparent; box-shadow: var(--shadow), 0 4px 14px rgba(0,0,0,.18); font-size: .82rem; transition: border-color .2s, opacity .2s, box-shadow .2s; } +.sd-seat.turn { border-color: var(--focus); box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus) 35%, transparent), 0 4px 14px rgba(0,0,0,.18); } +.sd-seat.out { opacity: .6; } +.sd-seat.win { border-color: #eab308; box-shadow: 0 0 0 4px rgba(234,179,8,.4), 0 0 22px rgba(234,179,8,.45); } .sd-seat .nm { font-weight: 800; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } -.sd-money { font-variant-numeric: tabular-nums; font-weight: 800; color: #fde68a; white-space: nowrap; } -.sd-cards { display: flex; justify-content: center; min-height: 52px; align-items: flex-end; } +.sd-seat .sub { color: var(--text-sub); } +.sd-money { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--warning); white-space: nowrap; } +.sd-cards { display: flex; justify-content: center; min-height: 52px; align-items: flex-end; margin-top: -26px; } .sd-tag { display: inline-block; border-radius: 999px; padding: 0 7px; font-weight: 800; font-size: .74rem; line-height: 1.5; white-space: nowrap; } -.sd-act { position: absolute; top: -14px; right: -8px; z-index: 3; border-radius: 10px; padding: 1px 9px; font-weight: 900; font-size: .85rem; color: #fff; - box-shadow: 0 2px 6px rgba(0,0,0,.35); pointer-events: none; } -.sd-hand { text-align: center; font-weight: 900; font-size: .92rem; border-radius: 8px; padding: 1px 4px; background: rgba(255,255,255,.12); color: #fff; } -.sd-hand.big { background: linear-gradient(180deg, #fde047, #f59e0b); color: #422006; } +.sd-act { position: absolute; top: -12px; right: -8px; z-index: 3; border-radius: 999px; padding: 1px 10px; font-weight: 900; font-size: .85rem; color: #fff; + box-shadow: 0 2px 6px rgba(0,0,0,.3); pointer-events: none; } +/* 족보 이름은 붉은 낙관(도장)처럼, 땡 이상은 금 도장. */ +.sd-seal { display: inline-block; align-self: center; font-weight: 900; line-height: 1.2; border-radius: 7px; padding: 1px 10px; color: #fff; background: #c8102e; + box-shadow: inset 0 0 0 2px rgba(255,255,255,.55), 0 2px 4px rgba(0,0,0,.25); transform: rotate(-2deg); letter-spacing: .02em; white-space: nowrap; } +.sd-seal.big { background: linear-gradient(160deg, #fde047, #f59e0b); color: #5a2a00; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7), 0 0 0 2px #b45309, 0 2px 6px rgba(0,0,0,.25); } +.sd-seal.die { background: #64748b; transform: none; } +.sd-seat .sd-seal { font-size: .9rem; } .sd-delta { text-align: center; font-weight: 900; font-variant-numeric: tabular-nums; } -.sd-delta.plus { color: #86efac; } .sd-delta.minus { color: #fca5a5; } -.sd-center { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); text-align: center; color: #fff; z-index: 1; min-width: 220px; } -.sd-pot-label { display: inline-block; font-size: .9rem; font-weight: 800; letter-spacing: .1em; background: rgba(0,0,0,.35); border-radius: 999px; padding: 1px 12px; } -.sd-pot { font-size: 2.3rem; font-weight: 900; font-variant-numeric: tabular-nums; color: #fde68a; text-shadow: 0 2px 6px rgba(0,0,0,.55); line-height: 1.15; } +.sd-delta.plus { color: var(--success); } .sd-delta.minus { color: var(--danger); } +.sd-center { position: absolute; left: 50%; top: 48%; transform: translate(-50%, -50%); text-align: center; color: #fff; z-index: 1; min-width: 220px; } +.sd-pot-label { display: inline-block; font-size: .85rem; font-weight: 800; letter-spacing: .12em; background: rgba(255,255,255,.18); border-radius: 999px; padding: 1px 12px; } +.sd-pot { font-size: 2.3rem; font-weight: 900; font-variant-numeric: tabular-nums; color: #fde68a; text-shadow: 0 2px 6px rgba(0,0,0,.45); line-height: 1.15; } .sd-pile { position: relative; height: 34px; width: 120px; margin: 0 auto 2px; } .sd-pile i { position: absolute; bottom: 0; width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff7c2, #f5b301 55%, #b45309); border: 2px solid #92400e; box-shadow: 0 2px 3px rgba(0,0,0,.4); } @@ -119,56 +131,59 @@ const CSS = ` background: radial-gradient(circle at 35% 35%, #fff7c2, #f5b301 55%, #b45309); border: 2px solid #92400e; animation: sd-fly .55s cubic-bezier(.3,.7,.4,1) both; animation-delay: var(--d, 0ms); } @keyframes sd-fly { from { transform: translate(0, 0) scale(.9); opacity: 1; } 85% { opacity: 1; } to { transform: translate(var(--dx), var(--dy)) scale(.7); opacity: 0; } } -.sd-dock { position: relative; display: flex; gap: 12px; align-items: stretch; padding: 10px 12px; border-radius: 16px; color: #3b2306; - background: linear-gradient(180deg, #f8e3a3 0%, #ecc768 55%, #d9a744 100%); border: 3px solid #8a5a1c; - box-shadow: inset 0 0 0 2px rgba(255,255,255,.35), 0 6px 16px rgba(0,0,0,.25); transition: box-shadow .2s, border-color .2s; } -.sd-dock.turn { border-color: #f59e0b; box-shadow: inset 0 0 0 2px rgba(255,255,255,.35), 0 0 0 4px rgba(245,158,11,.45), 0 6px 16px rgba(0,0,0,.25); } -.sd-dock.win { border-color: #fde047; box-shadow: inset 0 0 0 2px rgba(255,255,255,.35), 0 0 0 4px rgba(253,224,71,.6), 0 0 24px rgba(253,224,71,.5); } -.sd-jokbo { flex: 0 0 262px; display: flex; flex-direction: column; gap: 5px; background: rgba(74,44,10,.88); color: #fdf6e3; border-radius: 10px; padding: 6px 8px; } -.sd-jokbo h3 { margin: 0; font-size: .95rem; font-weight: 900; color: #fde68a; letter-spacing: .2em; } +/* 아래 판: 사이트의 흰 카드(surface) 한 장에 족보·나·내 패·버튼. 내 차례면 파란 테두리와 "내 차례" 띠. */ +.sd-dock { position: relative; display: flex; gap: 10px; align-items: stretch; padding: 10px; border-radius: var(--radius-lg); color: var(--text); + background: var(--surface); border: 2px solid var(--border); box-shadow: var(--shadow); transition: box-shadow .2s, border-color .2s; } +.sd-dock.turn { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft), var(--shadow); } +.sd-dock.turn::before { content: '내 차례'; position: absolute; top: -13px; left: 50%; transform: translateX(-50%); z-index: 2; background: var(--primary); color: var(--primary-text); + font-weight: 900; font-size: .8rem; padding: 1px 14px; border-radius: 999px; box-shadow: var(--shadow); } +.sd-dock.win { border-color: #eab308; box-shadow: 0 0 0 4px rgba(234,179,8,.35), 0 0 24px rgba(234,179,8,.35); } +.sd-jokbo { flex: 0 0 266px; display: flex; flex-direction: column; gap: 6px; background: var(--surface-2); border-radius: var(--radius); padding: 8px; } +.sd-jokbo h3 { margin: 0; font-size: .92rem; font-weight: 900; display: flex; align-items: center; gap: 6px; } +.sd-jokbo h3::before { content: ''; width: 14px; height: 18px; border-radius: 3px; background: #c8102e; box-shadow: inset 0 0 0 2px #fff7, 3px 2px 0 -1px #f6c453; } .sd-jokbo ol { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; } -.sd-jokbo li button { width: 100%; text-align: left; border: 1px solid rgba(253,230,138,.25); border-radius: 4px; background: rgba(255,255,255,.08); color: inherit; - font: 700 .74rem/1.55 inherit; padding: 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; } -.sd-jokbo li button.sel { border-color: #fde68a; } -.sd-jokbo li button.hit { background: #c4b5fd; color: #2e1065; border-color: #ede9fe; } -.sd-jokbo-desc { display: flex; gap: 6px; align-items: center; font-size: .78rem; line-height: 1.3; margin-top: auto; padding-top: 4px; border-top: 1px solid rgba(253,230,138,.25); } +.sd-jokbo li button { width: 100%; text-align: left; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); + font-family: inherit; font-weight: 700; font-size: .78rem; line-height: 1.6; letter-spacing: -.01em; padding: 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; } +.sd-jokbo li button:hover { border-color: var(--text-sub); } +.sd-jokbo li button.sel { border-color: var(--text-sub); box-shadow: inset 0 0 0 1px var(--text-sub); } +.sd-jokbo li button.hit { background: var(--primary-soft); color: var(--primary); border-color: var(--primary); font-weight: 900; } +.sd-jokbo-desc { display: flex; gap: 6px; align-items: center; font-size: .78rem; line-height: 1.35; margin-top: auto; padding: 6px 8px; border-radius: 10px; background: var(--surface); } .sd-jokbo-desc .pics { display: flex; gap: 2px; flex: none; } -.sd-jokbo-desc strong { color: #fde68a; } .sd-prof { position: relative; flex: 0 0 104px; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; - background: rgba(255,255,255,.35); border-radius: 10px; padding: 8px 6px; } + background: var(--surface-2); border-radius: var(--radius); padding: 10px 6px; } .sd-prof .nm { font-size: .85rem; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } -.sd-prof .sd-money { color: #7c2d12; font-size: .95rem; } -.sd-prof .sd-delta.plus { color: #15803d; } .sd-prof .sd-delta.minus { color: #b91c1c; } -.sd-play { flex: 1; min-width: 0; display: flex; gap: 12px; align-items: stretch; } -.sd-handarea { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; - background: rgba(122,74,18,.18); border-radius: 10px; padding: 8px 6px; } +.sd-prof .sd-money { font-size: .95rem; } +.sd-play { flex: 1; min-width: 0; display: flex; gap: 10px; align-items: stretch; } +/* 내 패는 작은 담요(펠트) 위에. */ +.sd-handarea { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #fff; + background: repeating-linear-gradient(45deg, rgba(255,255,255,.045) 0 2px, transparent 2px 14px), repeating-linear-gradient(-45deg, rgba(255,255,255,.045) 0 2px, transparent 2px 14px), var(--felt); + border-radius: var(--radius); padding: 10px 6px; box-shadow: inset 0 0 0 2px rgba(0,0,0,.12), inset 0 0 24px rgba(0,0,0,.22); } .sd-handarea .mine { display: flex; gap: 8px; align-items: flex-end; justify-content: center; } .sd-handarea .under { display: flex; justify-content: center; } -.sd-handarea .hint { font-size: .8rem; text-align: center; opacity: .9; } -.sd-myhand { display: inline-block; font-size: 1.3rem; font-weight: 900; line-height: 1.2; padding: 1px 14px; border-radius: 999px; background: #3b2306; color: #fde047; } -.sd-myhand.big { background: linear-gradient(180deg, #fde047, #f59e0b); color: #422006; box-shadow: 0 0 0 2px #7c2d12; } -.sd-myhand.die { background: #7f1d1d; color: #fecaca; } +.sd-handarea .hint { font-size: .8rem; text-align: center; opacity: .92; } +.sd-handarea .sd-seal { font-size: 1.25rem; padding: 2px 16px; } .sd-combos { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; } -.sd-combo { border: 0; border-radius: 999px; padding: 2px 10px; font: 800 .9rem/1.4 inherit; background: #3b2306; color: #fde68a; } -.sd-combo.best { background: linear-gradient(180deg, #fde047, #f59e0b); color: #422006; box-shadow: 0 0 0 2px #7c2d12; } +.sd-combo { border: 0; border-radius: 7px; padding: 2px 10px; font-family: inherit; font-weight: 800; font-size: .88rem; line-height: 1.4; background: rgba(255,255,255,.92); color: #1c1e21; } +.sd-combo.best { background: linear-gradient(160deg, #fde047, #f59e0b); color: #5a2a00; box-shadow: 0 0 0 2px #b45309; } button.sd-combo { cursor: pointer; } -button.sd-combo[aria-pressed='true'] { outline: 3px solid #2563eb; outline-offset: 1px; } +button.sd-combo[aria-pressed='true'] { outline: 3px solid #93c5fd; outline-offset: 1px; } .sd-actions { flex: 0 0 236px; display: flex; flex-direction: column; justify-content: center; gap: 6px; } -.sd-actions p { margin: 0; font-size: .86rem; line-height: 1.4; } -.sd-result { display: flex; flex-direction: column; gap: 2px; font-size: .86rem; line-height: 1.4; background: rgba(255,255,255,.55); border-radius: 10px; padding: 8px 10px; } -.sd-bets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(38px, 1fr); gap: 6px; } -.sd-bet { position: relative; border: 1px solid #a07a3c; border-radius: 8px; padding: 0 8px 0 30px; cursor: pointer; display: flex; align-items: center; gap: 4px; - background: linear-gradient(180deg, #fffbeb, #f3dfa8); color: #3b2306; font-weight: 900; font-size: 1.05rem; line-height: 1.1; - box-shadow: inset 0 -2px 0 rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.2); } +.sd-actions p { margin: 0; font-size: .86rem; line-height: 1.45; } +.sd-result { display: flex; flex-direction: column; gap: 2px; font-size: .86rem; line-height: 1.4; background: var(--surface-2); border-radius: var(--radius); padding: 8px 10px; } +.sd-bets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(40px, 1fr); gap: 6px; } +.sd-bet { position: relative; border: 2px solid var(--border); border-radius: var(--radius); padding: 0 8px 0 32px; cursor: pointer; display: flex; align-items: center; gap: 4px; + background: var(--surface); color: var(--text); font-weight: 900; font-size: 1.05rem; line-height: 1.1; transition: background .12s, border-color .12s, transform .08s; } .sd-bet .lb { flex: 1; text-align: center; } -.sd-bet small { font-size: .72rem; font-weight: 800; color: var(--c); font-variant-numeric: tabular-nums; white-space: nowrap; } -.sd-bet kbd { position: absolute; left: 5px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; border-radius: 4px; display: flex; align-items: center; justify-content: center; - font: 800 .78rem/1 inherit; background: #e9d29a; color: #7a5520; border: 1px solid #c9a35a; } -.sd-bet.on { border-color: var(--c); box-shadow: inset 4px 0 0 var(--c), 0 0 0 1px var(--c), 0 2px 4px rgba(0,0,0,.25); } +.sd-bet small { font-size: .72rem; font-weight: 800; color: var(--text-sub); font-variant-numeric: tabular-nums; white-space: nowrap; } +.sd-bet kbd { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); width: 21px; height: 21px; border-radius: 6px; display: flex; align-items: center; justify-content: center; + font-family: inherit; font-weight: 800; font-size: .76rem; line-height: 1; background: var(--surface-2); color: var(--text-sub); } +.sd-bet.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 9%, var(--surface)); } .sd-bet.on .lb { color: var(--c); } -.sd-bet:disabled { opacity: .5; cursor: default; box-shadow: none; } -.sd-bet.on:hover { filter: brightness(1.06); } +.sd-bet.on kbd { background: var(--c); color: #fff; } +.sd-bet:disabled { opacity: .45; cursor: default; } +.sd-bet.on:hover { background: color-mix(in srgb, var(--c) 18%, var(--surface)); } .sd-bet.on:active { transform: translateY(1px); } +:root[data-theme='dark'] .sd-bet.on .lb { color: color-mix(in srgb, var(--c) 55%, #fff); } .sd-help { margin: 0; text-align: center; min-height: 1.4em; } @container sd (max-width: 899px) { .sd-dock { flex-wrap: wrap; } @@ -176,11 +191,11 @@ button.sd-combo[aria-pressed='true'] { outline: 3px solid #2563eb; outline-offse .sd-jokbo ol { grid-auto-flow: row; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: none !important; } } @media (max-width: 719px) { - .sd-table { aspect-ratio: auto; min-height: 0; border-width: 7px; border-radius: 22px; padding: 10px 8px; display: flex; flex-direction: column; gap: 8px; } - .sd-table::before { inset: 6px; border-radius: 16px; } - .sd-others { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 6px; } + .sd-table { aspect-ratio: auto; min-height: 0; border-width: 7px; border-radius: 22px; padding: 18px 8px 10px; display: flex; flex-direction: column; gap: 8px; } + .sd-table::before { display: none; } + .sd-others { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 8px 6px; } .sd-seat { position: relative; left: auto; top: auto; transform: none; width: auto; padding: 5px 6px; font-size: .76rem; } - .sd-cards { min-height: 40px; } + .sd-cards { min-height: 40px; margin-top: -16px; } .sd-act { top: -9px; right: auto; left: -4px; font-size: .74rem; padding: 0 7px; } .sd-center { position: relative; left: auto; top: auto; transform: none; min-width: 0; padding: 2px 0; } .sd-pot { font-size: 1.8rem; } @@ -192,7 +207,7 @@ button.sd-combo[aria-pressed='true'] { outline: 3px solid #2563eb; outline-offse .sd-prof .row { min-height: 0 !important; } .sd-play { flex: 1 1 100%; flex-direction: column; gap: 8px; } .sd-actions { flex: none; } - .sd-myhand { font-size: 1.1rem; } + .sd-handarea .sd-seal { font-size: 1.1rem; } .sd-bets { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 48px; } .sd-bets .sd-gap { display: none; } .sd-bet { justify-content: center; padding: 0 4px; flex-direction: column; gap: 0; } @@ -305,12 +320,12 @@ function Seat({ seat, view: v, players, me, deadline, pos, cardW, winner, setRef {formatWonShort(seat.stack)}원 {seat.matchBet > 0 && ( - + 건 돈 {formatWonShort(seat.matchBet)} )} - {seat.handName &&
{seat.handName}
} + {seat.handName &&
{seat.handName}
} {seat.handDelta !== null && seat.handDelta !== 0 && (
0 ? 'plus' : 'minus'}`}>{formatWonDelta(seat.handDelta)}
)} @@ -564,8 +579,8 @@ function Dock({ view: v, seat, players, act, pending, deadline, winner, setRef, // Under my cards: the 족보 (or, with 3 cards, every pair's 족보 like 한게임; clickable while choosing). let under: ReactNode = null; - if (seat?.handName) under = {seat.handName}; - else if (seat?.folded) under = 다이; + if (seat?.handName) under = {seat.handName}; + else if (seat?.folded) under = 다이; else if (playing && hints && v.myCombos && !v.myChosen) under = ( @@ -583,7 +598,7 @@ function Dock({ view: v, seat, players, act, pending, deadline, winner, setRef, )} ); - else if (playing && h) under = {h.name}; + else if (playing && h) under = {h.name}; let actions: ReactNode; if (opening) diff --git a/docs/games/seotda.md b/docs/games/seotda.md index 058867b..f8642c5 100644 --- a/docs/games/seotda.md +++ b/docs/games/seotda.md @@ -486,7 +486,8 @@ interface SeotdaResult /* extends GameResult */ { 한게임 섯다 화면을 본떴다(`apps/web/src/games/seotda/board.tsx`). -화면 배치 (2026-10-17 한게임 섯다 화면 사진대로 다시 짬): +화면 배치 (2026-10-17 한게임 섯다 화면 사진대로 다시 짬, 같은 날 사이트 디자인에 맞춰 다시 꾸밈): +- 꾸밈: 사이트 공용 색(`--felt`·`--wood`·`--surface`·`--primary`, 다크 모드 따라감)을 쓴다. 테이블과 내 패 자리는 화투판 담요처럼 마름모 무늬 펠트, 다른 사람 자리와 아래 판은 사이트의 흰 카드(둥근 모서리·옅은 그림자), 족보 이름은 붉은 낙관(도장)처럼(땡 이상은 금 도장), 내 차례면 아래 판에 파란 테두리와 "내 차례" 띠, 베팅 버튼은 흰 버튼에 누를 수 있을 때만 행동 색 테두리와 숫자 키 배지. - 테이블(위): 나무 테두리의 초록 테이블. 다른 사람 자리는 왼쪽 아래에서 위를 돌아 오른쪽 아래까지 둥글게, 자리마다 패가 위·이름과 돈이 아래. 가운데에 동전 더미와 **판돈** 큰 숫자, 그 밑에 판 수·기본금·현재 콜 금액. 재경기면 "재경기 2회차 · 구사" 띠. 내 자리는 테이블 안에 두지 않는다. - 자리 상자: 패(공개패·쇼다운 패는 앞면, 왼쪽 아래 큰 월 숫자), 아바타, 닉네임, 선 표시, 남은 시간 고리, 보유 금액(만 단위로 줄임), 이번 판에 건 돈, 마지막 행동 말풍선(콜·하프·다이 … 색 구분), 쇼다운 뒤 족보 이름(땡 이상은 금색)과 딴/잃은 금액, 이긴 자리는 금빛 테두리. - 아래 금색 판(PC, 왼쪽부터): **족보판**(3열 목록 `1.38광땡 … 14.망통`, 특수패는 `*땡잡이`처럼 켜진 것만, 내 지금 족보 칸을 보라색으로 강조, 칸을 누르면 아래 줄에 그 족보의 그림 2장과 설명, 기본은 내 족보) · 내 얼굴(아바타·닉네임·보유 금액·선·남은 시간, 쇼다운 뒤 딴/잃은 금액) · **내 패**(2~3장 크게, 그 밑에 지금 족보 이름, 3장일 때는 세 조합의 족보를 나란히 적고 가장 센 것을 금색으로, 그 밑에 한 줄 도움말) · **베팅 버튼** 두 줄(왼쪽 콜7·삥4·따당1·하프0, 오른쪽 다이8·체크5, 쿼터2·풀9를 켜면 오른쪽 빈칸). 버튼마다 숫자 키를 왼쪽에 적고, 내 차례일 때만 낼 금액이 나온다. 못 누르는 버튼은 흐리게 두고 자리를 바꾸지 않는다(오조작 방지). 마우스를 올리면 판 아래 줄에 "걸고 나면 내 돈 … 판돈 …"을 미리 보여 준다.