/* 삼국지 홀덤 — 판 화면 (공통 core.css 뒤에 읽음) */
html[data-game=holdem] { --acc:#1f5f55; --acc-hi:#3d7a70; --acc-lo:#14403a; }
#stage .hd { position:absolute; inset:0; display:flex; flex-direction:column; gap:6px; padding:6px 8px max(8px,env(safe-area-inset-bottom));
  max-width:560px; margin:0 auto; box-sizing:border-box; }
/* 상대 자리 */
#stage .opps { display:flex; justify-content:center; align-items:flex-end; gap:6px; flex:none; padding-top:4px; min-height:0; }
#stage .seat { position:relative; display:flex; flex-direction:column; align-items:center; width:24%; max-width:104px; transition:opacity .3s, filter .3s; }
#stage .seat.boss { width:36%; max-width:160px; order:2; }
#stage .opps .seat:nth-child(2) { order:1; } #stage .opps .seat:nth-child(3) { order:3; }
#stage .seat .pt { position:relative; width:100%; aspect-ratio:3/4; border:2px solid var(--rc); border-radius:4px; overflow:hidden; background:#ddd5c7;
  box-shadow:0 2px 6px #0003; }
#stage .seat.boss .pt { aspect-ratio:4/5; }
#stage .seat .pt img { width:100%; height:100%; object-fit:cover; object-position:50% 12%; display:block; }
#stage .seat .bt:not(:empty) { position:absolute; left:3px; top:3px; width:20px; height:20px; border-radius:50%; background:#fbf6ea; border:1px solid #8d6c34;
  color:#5e4a26; font:700 12px/20px sans-serif; text-align:center; }
#stage .seat .nm { font-size:13px; margin-top:2px; white-space:nowrap; } #stage .seat .nm b { font-size:14px; } #stage .seat .nm small { margin-left:2px; font-size:10px; }
#stage .seat .sty { font-size:11px; color:#7a5a20; white-space:nowrap; }
#stage .seat .ch { font-size:13px; color:var(--dim); } #stage .seat .ch b { color:var(--ink); font-size:14px; }
#stage .seat .ch .ai, #stage .mi .ai { margin-left:4px; font-size:11px; background:#b0302a; color:#fff; padding:0 4px; border-radius:2px; }
#stage .seat .hc { display:flex; justify-content:center; gap:2px; min-height:4px; margin-top:2px; --cw:min(9vw,40px); }
#stage .seat.boss .hc { --cw:min(11vw,48px); }
#stage .seat .bet { min-height:20px; font-size:13px; }
#stage .seat .bet span { display:inline-block; padding:1px 8px; border-radius:10px; background:#2b2722; color:#f3e3b8; font-weight:700; }
#stage .seat .bet span::before { content:"● "; color:#e8c27a; font-size:10px; }
#stage .seat .bet i { font-style:normal; color:var(--dim); }
#stage .seat.turn .pt { box-shadow:0 0 0 3px #e2b35a, 0 0 14px #e2b35a; animation:hpulse 1s ease-in-out infinite alternate; }
@keyframes hpulse { from { box-shadow:0 0 0 2px #e2b35a, 0 0 6px #e2b35a; } to { box-shadow:0 0 0 3px #e2b35a, 0 0 18px #e2b35a; } }
#stage .seat.fold { opacity:.45; } #stage .seat.out { filter:grayscale(1); opacity:.35; }
#stage .seat.win .pt { box-shadow:0 0 0 3px #f0c24a, 0 0 22px #f0c24a; }
#stage .seat .say { position:absolute; left:50%; top:6px; transform:translate(-50%,-8px) scale(.9); opacity:0; pointer-events:none; z-index:5;
  background:#fffdf8; color:#2b2722; border:1px solid #b39a6c; border-radius:6px; padding:5px 9px; font-size:13px; font-weight:600; white-space:nowrap;
  box-shadow:0 3px 8px #0003; transition:opacity .2s, transform .2s; max-width:56vw; overflow:hidden; text-overflow:ellipsis; }
#stage .seat.boss .say { font-size:14px; }
#stage .seat .say.on { opacity:1; transform:translate(-50%,-14px) scale(1); }
/* 탁자 */
#stage .felt { position:relative; flex:1 1 auto; min-height:120px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px;
  border-radius:60px / 50px; background:radial-gradient(ellipse at 50% 40%, #2b7566, #17493f 70%, #10362f); border:3px solid #b8955a;
  box-shadow:inset 0 0 0 2px #0004, inset 0 6px 24px #0006, 0 2px 0 #fff8; padding:8px; }
#stage .felt .pot { color:#f3e3b8; font-size:14px; min-height:20px; } #stage .felt .pot b { font-size:18px; color:#ffe39a; }
#stage .felt .board { display:flex; gap:4px; --cw:min(15vw,62px); }
#stage .felt .res { color:#fff7df; font-size:14px; text-align:center; min-height:20px; line-height:1.5; }
#stage .felt .res b { color:#ffe39a; } #stage .felt .res small { color:#cfe6dc; margin-left:4px; }
/* 카드 */
.pc { position:relative; width:var(--cw,48px); aspect-ratio:5/7; border-radius:calc(var(--cw,48px) * .09); background:linear-gradient(#fffefb,#f1ece2);
  border:1px solid #b9ad97; box-shadow:0 2px 4px #0004; overflow:hidden; flex:none; color:var(--sc); font-family:"Gowun Batang","Batang",serif; }
.pc.s0 { --sc:#2a56a0; } .pc.s1 { --sc:#2f7a45; } .pc.s2 { --sc:#b52e25; } .pc.s3 { --sc:#9a6a12; }
.pc .ix { position:absolute; left:6%; top:3%; display:flex; flex-direction:column; align-items:center; line-height:1; z-index:2; }
.pc .ix em { font-style:normal; font-weight:800; font-size:calc(var(--cw,48px) * .3); font-family:Georgia,"Times New Roman",serif; letter-spacing:-.04em; }
.pc .ix i { font-style:normal; font-size:calc(var(--cw,48px) * .22); margin-top:1px; }
.pc .md { position:absolute; inset:22% 10% 14% 22%; display:flex; align-items:center; justify-content:center; }
.pc .md b { font-size:calc(var(--cw,48px) * .5); font-weight:700; opacity:.92; }
.pc.face .md { inset:4% 4% 4% 26%; border-radius:3px; overflow:hidden; }
.pc.face .md img { width:100%; height:100%; object-fit:cover; object-position:50% 10%; border:1px solid var(--sc); border-radius:3px; box-sizing:border-box; }
.pc .hz { position:absolute; right:6%; bottom:3%; font-size:calc(var(--cw,48px) * .2); opacity:.8; }
.pc.face .hz { display:none; }
.pc.back { background:repeating-linear-gradient(45deg,#7a2a22 0 6px,#8e352b 6px 12px); border:2px solid #f3e3b8; box-shadow:0 0 0 1px #6b2018, 0 2px 4px #0004; }
.pc.back i { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:#f3e3b8; font-style:normal; font-size:calc(var(--cw,48px) * .26); letter-spacing:.05em; writing-mode:vertical-rl; }
.pc.slot { background:#0002; border:1px dashed #ffffff40; box-shadow:none; }
.pc.dim { opacity:.45; }
.pc.hl { box-shadow:0 0 0 3px #f0c24a, 0 0 12px #f0c24a; transform:translateY(-3px); }
.pc.flip { animation:cflip .45s ease-out; }
@keyframes cflip { from { transform:rotateY(90deg) translateY(-6px); opacity:.3; } to { transform:none; opacity:1; } }
/* 내 자리 */
#stage .mine { display:flex; align-items:center; justify-content:center; gap:12px; flex:none; }
#stage .mine .mc { display:flex; gap:5px; --cw:min(19vw,82px); }
#stage .mine .mi { display:flex; flex-direction:column; gap:2px; font-size:14px; min-width:110px; }
#stage .mine .mi b { font-size:17px; } #stage .mine .mi em { font-style:normal; color:#7a5a20; font-weight:700; font-size:15px; }
#stage .mine .mi span:empty { display:none; }
#stage .mine .mi .tag { align-self:flex-start; font-size:11px; padding:0 6px; border:1px solid #b39a6c; border-radius:2px; color:#5e4a26; }
#stage .msg { flex:none; padding:7px 10px; font-size:14.5px; line-height:1.45; min-height:22px; }
#stage .msg small { font-size:12.5px; }
/* 행동 단추 */
#stage .acts { flex:none; display:flex; gap:6px; min-height:52px; }
#stage .acts > .btn { flex:1; min-height:52px; font-size:17px; font-weight:700; padding:6px 4px; }
#stage .acts .btn.wide { flex:1; }
html body #stage .acts .btn.fold { background:var(--tit); border:1px solid #b2aa9c; color:#6e2a22; }
html body #stage .acts .btn.call { background:var(--tit); border:1px solid #8a8274; color:var(--ink); }
html body #stage .acts .btn.go { background:linear-gradient(var(--acc-hi),var(--acc)); border:1px solid var(--acc-lo); color:#fff; text-shadow:0 1px 0 #0005; box-shadow:0 2px 0 var(--acc-lo); }
#stage .acts .wait { flex:1; display:flex; align-items:center; justify-content:center; color:var(--dim); font-size:14px; }
#stage .acts .rz { flex:1; display:flex; flex-direction:column; gap:6px; }
#stage .acts .rz .qk { display:flex; gap:5px; } #stage .acts .rz .qk .btn { flex:1; font-size:14px; padding:7px 2px; min-height:36px; }
#stage .acts .rz input[type=range] { width:100%; accent-color:var(--acc); height:26px; }
#stage .acts .rz .row2 { display:flex; gap:6px; } #stage .acts .rz .row2 .btn { min-height:46px; font-size:16px; font-weight:700; }
#stage .acts .rz .row2 .btn.sub { flex:0 0 30%; } #stage .acts .rz .row2 .btn.go { flex:1; }
#stage .tools { flex:none; display:flex; gap:6px; }
#stage .tools .btn { flex:1; font-size:14px; padding:6px 4px; min-height:38px; }
/* 족보 창 */
#modal .ranks { text-align:left; max-height:56vh; overflow:auto; border-top:1px solid var(--rule2); }
#modal .ranks .rr { display:flex; gap:10px; align-items:center; padding:6px 2px; border-bottom:1px solid var(--rule2); }
#modal .ranks .no { width:20px; text-align:center; color:var(--dim); font-size:13px; }
#modal .ranks b { font-size:14px; } #modal .ranks small { margin-left:6px; font-size:12px; color:var(--dim); }
#modal .ranks .mini { display:flex; gap:2px; margin-top:3px; --cw:30px; }
/* 낮은 화면(가로·작은 폰) */
@media (max-height:700px) {
  #stage .seat.boss { max-width:118px; } #stage .seat { max-width:80px; }
  #stage .seat.boss .pt { aspect-ratio:1/1; }
  #stage .mine .mc { --cw:min(15vw,62px); } #stage .felt .board { --cw:min(12vw,50px); }
  #stage .msg { font-size:13.5px; padding:5px 8px; }
}
@media (max-height:560px) {
  #stage .seat .pt { aspect-ratio:1/1; } #stage .seat.boss { max-width:90px; } #stage .seat { max-width:64px; }
  #stage .seat .hc { display:none; }
}
