/* 그리드벳 카드게임 테이블(/main/cardgame.php?table=) — 쇼부 holdem-table.css · cardgames-table.css · holdem.css(.pc)의 배치를 그대로 옮기고 색은 그리드벳 원본(남색 · 하늘색 · 파랑)으로 다시 칠했다.
   판(.ht-stage) 안은 두 테마 모두 짙은 펠트 위 흰 글자(밝은 테마는 펠트가 파랑으로 밝아진다), 판 밖(머리 줄 · 내 조작 줄 · 옆 칸)은 원본 면 색(--surface-*)을 따른다.
   섯다 · 로우바둑이 · 세븐포커 = 고리 배치(.cg-ring), 맞고 · 고스톱(.gs-*) · 윷놀이(.yt-*) = 판 전체를 덮는 배치(.cg-custom) */
.tr-cg{--cg-ease:cubic-bezier(.2,.8,.25,1)}
.cgt{--st-felt-a:#17405a;--st-felt-b:#0f2638;--st-felt-c:#081320;--st-trim:linear-gradient(180deg,#24d3eb 0%,#007bfe 100%);--st-rail:#0a0e16;--st-bg:radial-gradient(ellipse 70% 60% at 50% 45%,rgba(13,192,212,.08),transparent 70%);
  --st-tx:#fff;--st-tx2:rgba(255,255,255,.8);--st-tx3:rgba(255,255,255,.55);--st-box:rgba(6,12,22,.74);--st-line:rgba(255,255,255,.12);--st-hi:#3fe0f0;--st-hi-glow:rgba(13,192,212,.6);
  --st-btn:linear-gradient(180deg,#2dbbff 0%,#007bfe 100%);--st-warn:#ff7b62;--st-plus:#3fe0f0;--st-minus:#ff8f7d}
[data-theme-mode=light] .cgt{--st-felt-a:#3b82f6;--st-felt-b:#2563eb;--st-felt-c:#1e3a8a;--st-rail:#1e293b;--st-bg:radial-gradient(ellipse 70% 60% at 50% 45%,rgba(37,99,235,.1),transparent 70%);--st-box:rgba(10,22,52,.66);--st-hi:#7dd3fc;--st-hi-glow:rgba(125,211,252,.7)}

/* ───── 머리 줄 ───── */
.cgt-top{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:18px;padding:14px 18px;border-radius:10px;background:var(--surface-1)}
.cgt-back{display:inline-flex;align-items:center;gap:4px;height:38px;padding:0 14px 0 8px;border:1px solid var(--4246);border-radius:8px;background:var(--module-dark-button);font-family:'p6';font-size:13px;color:var(--font-color);white-space:nowrap}
.cgt-back svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.cgt-back:hover{border-color:var(--theme-color);color:var(--theme-color)}
.cgt-title{min-width:0}
.cgt-kicker{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;margin:0 0 4px;font-size:12px;color:var(--a3a3)}
.cgt-h{margin:0;overflow:hidden;font-family:'p7';font-weight:normal;font-size:20px;line-height:1.25;color:var(--font-color);white-space:nowrap;text-overflow:ellipsis}
.cgt-meta{display:flex;gap:24px;margin:0}
.cgt-meta div{display:flex;flex-direction:column;gap:3px}
.cgt-meta dt{font-size:11px;color:var(--a3a3)}
.cgt-meta dd{margin:0;font-family:'p7';font-size:16px;line-height:1.1;color:var(--font-color);font-variant-numeric:tabular-nums}
.cgt-meta dd.hi{color:var(--38ffa8)}
.cg-conn{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 10px;border-radius:999px;background:var(--surface-2);font-size:11.5px;color:var(--a3a3);white-space:nowrap}
.cg-conn em{font-style:normal}
.cg-conn i{width:7px;height:7px;border-radius:50%;background:var(--a3a3)}
.cg-conn[data-s="live"] i{background:#38e08a;box-shadow:0 0 8px rgba(56,224,138,.8)}
.cg-conn[data-s="reconnecting"] i,.cg-conn[data-s="connecting"] i{background:#f5a623;animation:cgBlink 1.1s infinite}
.cg-conn[data-s="closed"] i{background:#ef4444}
@keyframes cgBlink{50%{opacity:.35}}

.cgt-grid{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:14px;margin-top:14px;align-items:stretch}
.cgt-play{min-width:0}

/* ───── 무대와 테이블 ───── */
.ht-stage{position:relative;aspect-ratio:16 / 9.4;isolation:isolate;border-radius:14px;background:var(--st-bg),var(--surface-1);color:var(--st-tx)}
.ht-table{position:absolute;inset:13% 11% 15%;z-index:-1}
.ht-rail{position:absolute;inset:0;border-radius:999px;background:radial-gradient(ellipse 80% 60% at 50% 0%,#1b2433,var(--st-rail) 60%);box-shadow:0 34px 60px -24px rgba(0,0,0,.85),0 0 0 1px rgba(0,0,0,.6),inset 0 2px 1px rgba(255,255,255,.08),inset 0 -6px 14px rgba(0,0,0,.6)}
.ht-trim{position:absolute;inset:16px;border-radius:999px;background:var(--st-trim);box-shadow:0 0 22px rgba(13,192,212,.3)}
.ht-felt{position:absolute;inset:19px;overflow:hidden;border-radius:999px;background:radial-gradient(ellipse 62% 58% at 50% 42%,var(--st-felt-a) 0%,var(--st-felt-b) 52%,var(--st-felt-c) 100%);box-shadow:inset 0 0 70px rgba(0,0,0,.6),inset 0 0 0 1px rgba(0,0,0,.5)}
.ht-felt::before{content:"";position:absolute;inset:0;background:repeating-radial-gradient(circle at 37% 23%,rgba(255,255,255,.02) 0 1px,transparent 1px 3px),radial-gradient(ellipse 50% 34% at 50% 30%,rgba(255,255,255,.07),transparent 70%)}
.ht-line{position:absolute;inset:15% 12%;border-radius:999px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.14)}
.ht-brand{position:absolute;left:0;right:0;bottom:21%;text-align:center;font-family:'p7';font-size:13px;letter-spacing:.6em;color:rgba(255,255,255,.16)}

.ht-center{position:absolute;left:50%;top:47%;z-index:1;display:flex;flex-direction:column;align-items:center;gap:10px;transform:translate(-50%,-50%)}
.ht-pot{display:inline-flex;align-items:center;gap:8px;height:32px;margin:0;padding:0 14px 0 8px;border-radius:999px;background:var(--st-box);box-shadow:inset 0 0 0 1px var(--st-line);font-size:13px;color:var(--st-tx2);white-space:nowrap}
.ht-pot b{font-family:'p7';font-size:16px;font-variant-numeric:tabular-nums;color:var(--st-hi)}
.cg-call{margin-left:4px;padding-left:12px;border-left:1px solid var(--st-line)}
.cg-call b{font-size:15px;color:var(--st-tx)}
.ht-street{min-height:20px;margin:0;font-family:'p6';font-size:13.5px;line-height:1.5;color:var(--st-tx2);text-align:center;white-space:nowrap}
.cg-result{display:flex;flex-direction:column;align-items:center;gap:3px;max-width:320px;padding:8px 16px;border-radius:10px;background:var(--st-box);box-shadow:inset 0 0 0 1px var(--st-line);text-align:center;font-size:13.5px;color:var(--st-tx2)}
.cg-result b{color:var(--st-tx)}
.cg-result small{font-size:13px;color:var(--st-tx2)}
.cg-result span{font-variant-numeric:tabular-nums;color:var(--st-hi)}
.cgt .ht-stage:not(.ready) .ht-center{visibility:hidden}

/* 승자 알림 */
.ht-banner{position:absolute;left:50%;top:29%;z-index:8;display:flex;flex-direction:column;align-items:center;gap:2px;min-width:260px;padding:12px 26px 13px;border-radius:12px;transform:translate(-50%,-50%);background:linear-gradient(180deg,rgba(18,30,46,.97),rgba(9,15,26,.97));box-shadow:inset 0 0 0 1px var(--st-hi),0 0 0 4px rgba(6,12,22,.5),0 20px 50px rgba(0,0,0,.6),0 0 50px var(--st-hi-glow);text-align:center;color:#fff;animation:cgPop .6s var(--cg-ease) both;pointer-events:none}
.ht-banner b{font-family:'p7';font-weight:normal;font-size:21px;line-height:1.3}
.ht-banner span{font-size:13.5px;color:rgba(255,255,255,.8)}
.ht-banner em{font-style:normal;font-family:'p7';font-size:18px;color:var(--st-hi);font-variant-numeric:tabular-nums}
@keyframes cgPop{from{opacity:0;transform:translate(-50%,-40%) scale(.9)}}

/* 선(딜러) 표시 */
.ht-dealer{position:absolute;z-index:3;left:var(--x,50%);top:var(--y,50%);display:grid;place-items:center;width:28px;height:28px;border-radius:50%;transform:translate(-50%,-50%);background:radial-gradient(circle at 35% 30%,#fff,#e6eef8 60%,#b9c6d8);box-shadow:0 0 0 2px #0a0e16,0 0 0 3px var(--st-hi),0 6px 12px rgba(0,0,0,.5);font-family:'p7';font-size:12.5px;color:#0f172a;transition:left .7s var(--cg-ease),top .7s var(--cg-ease)}
.ht-chip{flex:none;width:18px;height:18px;border-radius:50%;background:radial-gradient(circle,#0b1220 0 34%,transparent 36%),repeating-conic-gradient(#3fe0f0 0 22.5deg,#ffffff 22.5deg 45deg);box-shadow:0 0 0 1px rgba(0,0,0,.6),inset 0 0 0 2px rgba(255,255,255,.35),0 2px 3px rgba(0,0,0,.5)}

/* ───── 자리 ───── */
.ht-seat{position:absolute;z-index:2;left:var(--x);top:var(--y);display:flex;flex-direction:column;align-items:center;width:132px;transform:translate(-50%,-50%)}
.s0{--x:50%;--y:88%}.s1{--x:11%;--y:72%}.s2{--x:11%;--y:27%}.s3{--x:50%;--y:10%}.s4{--x:89%;--y:27%}.s5{--x:89%;--y:72%}
.ht-ava{position:relative;z-index:1;display:grid;place-items:center;width:62px;height:62px;border-radius:50%;background:radial-gradient(circle at 35% 28%,#2a3a52,#0e1624 72%);box-shadow:0 0 0 2px #0a0e16,0 0 0 3px rgba(63,224,240,.45),0 10px 22px rgba(0,0,0,.55);font-family:'p7';font-size:24px;color:#e6f6fb;transition:filter .4s,box-shadow .4s}
.ht-seat.is-me .ht-ava{background:radial-gradient(circle at 35% 28%,#2b6cd6,#0f2f74 72%);box-shadow:0 0 0 2px #0a0e16,0 0 0 3px var(--st-hi),0 10px 22px rgba(0,0,0,.55)}
.ht-ring{position:absolute;inset:-7px;width:calc(100% + 14px);height:calc(100% + 14px);transform:rotate(-90deg);pointer-events:none;opacity:0;transition:opacity .2s}
.ht-ring circle{fill:none;stroke:var(--st-hi);stroke-width:5;stroke-linecap:round;stroke-dasharray:295.31;stroke-dashoffset:0;filter:drop-shadow(0 0 4px var(--st-hi-glow))}
.ht-seat.turn .ht-ring{opacity:1}
.ht-seat.late .ht-ring circle{stroke:var(--st-warn);filter:drop-shadow(0 0 4px rgba(255,110,80,.8))}
.ht-plate{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;gap:2px;min-width:112px;max-width:132px;margin-top:-10px;padding:6px 12px 7px;border-radius:10px;background:linear-gradient(180deg,rgba(22,32,48,.97),rgba(10,15,25,.97));box-shadow:inset 0 0 0 1px var(--st-line),0 8px 18px rgba(0,0,0,.5)}
.ht-nm{max-width:100%;overflow:hidden;font-family:'p6';font-size:13px;line-height:1.25;color:#fff;white-space:nowrap;text-overflow:ellipsis}
.ht-st{font-family:'p7';font-size:14.5px;line-height:1.2;color:var(--st-hi);font-variant-numeric:tabular-nums}
.ht-seat.is-me .ht-plate{box-shadow:inset 0 0 0 1px var(--st-hi),0 8px 18px rgba(0,0,0,.5),0 0 26px -6px var(--st-hi-glow)}
.ht-tag{position:absolute;z-index:3;left:50%;bottom:-12px;height:22px;padding:0 10px;border-radius:999px;transform:translate(-50%,0);background:#1a2638;box-shadow:inset 0 0 0 1px var(--st-line);font-family:'p7';font-size:11.5px;line-height:22px;color:#fff;white-space:nowrap;opacity:0;transition:opacity .25s}
.ht-tag.on{opacity:1;animation:cgTag .35s var(--cg-ease)}
@keyframes cgTag{from{transform:translate(-50%,-6px)}}
.ht-tag[data-k="check"]{color:rgba(255,255,255,.8)}
.ht-tag[data-k="call"]{background:#0d4a57;color:#9df1fa;box-shadow:inset 0 0 0 1px rgba(63,224,240,.45)}
.ht-tag[data-k="raise"]{background:var(--st-btn);color:#fff;box-shadow:none}
.ht-tag[data-k="allin"]{background:#d23b2a;color:#fff;box-shadow:0 0 14px rgba(210,59,42,.6)}
.ht-tag[data-k="fold"]{background:#141b26;color:rgba(255,255,255,.55)}
.ht-tag[data-k="hand"]{background:rgba(6,12,22,.92);color:#fff;box-shadow:inset 0 0 0 1px var(--st-hi)}
.ht-tag[data-k="win"]{background:var(--st-btn);color:#fff;box-shadow:0 0 18px var(--st-hi-glow)}
.ht-tag[data-k="lose"]{background:#1d1418;color:#ffb0a3;box-shadow:inset 0 0 0 1px rgba(224,80,59,.45)}
.ht-seat.folded .ht-ava{filter:grayscale(.8) brightness(.55)}
.ht-seat.folded .ht-plate{opacity:.6}
.ht-seat.win .ht-ava{box-shadow:0 0 0 2px #0a0e16,0 0 0 3px var(--st-hi),0 0 30px var(--st-hi-glow);animation:cgGlow 1.2s ease-in-out infinite alternate}
@keyframes cgGlow{to{box-shadow:0 0 0 2px #0a0e16,0 0 0 3px var(--st-hi),0 0 44px var(--st-hi-glow)}}
.ht-seat .ht-ini{pointer-events:none}
/* 빈 자리(눌러서 앉기) */
.ht-seat.ht-empty .ht-ava{font-family:'p6';font-size:30px;color:rgba(255,255,255,.45);background:radial-gradient(circle at 35% 28%,#1a2333,#0b111b 72%);box-shadow:0 0 0 2px #0a0e16,0 0 0 3px rgba(255,255,255,.14),0 10px 22px rgba(0,0,0,.45)}
.ht-seat.ht-empty .ht-plate{min-width:0;padding:5px 14px 6px;opacity:.65}
.ht-seat.ht-empty .ht-nm{color:rgba(255,255,255,.6)}
.ht-seat.ht-empty.open{cursor:pointer}
.ht-seat.ht-empty.open .ht-ava{color:var(--st-hi);box-shadow:0 0 0 2px #0a0e16,0 0 0 3px var(--st-hi),0 0 24px var(--st-hi-glow),0 10px 22px rgba(0,0,0,.45)}
.ht-seat.ht-empty.open .ht-plate{opacity:1}
.ht-seat.ht-empty.open:hover .ht-ava,.ht-seat.ht-empty.open:focus-visible .ht-ava{filter:brightness(1.25)}
.ht-seat.ht-empty.open:focus-visible{outline:2px solid var(--st-hi);outline-offset:4px;border-radius:12px}

/* 상대 패: 이름판 위에 작게 겹친다 */
.ht-cards{position:absolute;z-index:0;left:50%;bottom:calc(100% - 26px);display:flex;max-width:150px;transform:translateX(-50%)}
.cg-ring .ht-seat.is-me .ht-cards{display:none}
.cg-ring .ht-cards .pc+.pc{margin-left:-9px}
.cg-ring .ht-cards .hw{--w:32px}
.cg-ring .ht-cards .hw+.hw{margin-left:-6px}
.cg-ring .ht-cards .hw:first-child{transform:rotate(-5deg)}
.cg-ring .ht-cards .hw:last-child:not(:first-child){transform:rotate(5deg) translateY(2px)}
.ht-seat.folded .ht-cards .hw,.ht-seat.folded .ht-cards .pc{opacity:.35}

/* 걸린 칩 */
.ht-bet{position:absolute;z-index:2;left:var(--x);top:var(--y);transform:translate(-50%,-50%);pointer-events:none}
.ht-bet-in{display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 10px 0 4px;border-radius:999px;background:var(--st-box);box-shadow:inset 0 0 0 1px var(--st-line);font-family:'p7';font-size:13px;color:#fff;font-variant-numeric:tabular-nums;white-space:nowrap;opacity:0;transition:opacity .2s}
.ht-bet.on .ht-bet-in{opacity:1}
.b0{--x:50%;--y:68%}.b1{--x:26%;--y:66%}.b2{--x:26%;--y:34%}.b3{--x:50%;--y:27%}.b4{--x:74%;--y:34%}.b5{--x:74%;--y:66%}
.d0{--x:59%;--y:74%}.d1{--x:20%;--y:59%}.d2{--x:20%;--y:41%}.d3{--x:41%;--y:24%}.d4{--x:80%;--y:41%}.d5{--x:80%;--y:59%}

/* 연결 안내 덮개 */
.ht-over{position:absolute;inset:0;z-index:12;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:24px;border-radius:14px;background:rgba(6,10,18,.82);text-align:center;color:#fff}
.ht-over b{font-family:'p7';font-weight:normal;font-size:20px}
.ht-over p{max-width:360px;margin:0;font-size:14px;line-height:1.65;color:rgba(255,255,255,.8)}
.ht-over-act{display:flex;gap:8px;margin-top:6px}
.ht-over .cg-btn:not(.pri){border-color:rgba(255,255,255,.2);background:rgba(255,255,255,.06);color:#fff}

/* ───── 트럼프 패 .pc(크기 --w) ───── */
.pc{--w:56px;position:relative;display:inline-block;flex:none;width:var(--w);height:calc(var(--w) * 1.4);vertical-align:middle;transition:transform .35s var(--cg-ease),filter .35s}
.pc-f,.pc-b{position:absolute;inset:0;overflow:hidden;border-radius:calc(var(--w) * .1)}
.pc-f{color:#141a24;background:linear-gradient(160deg,#ffffff 0%,#f4f7fb 55%,#e2e8f1 100%);box-shadow:inset 0 0 0 1px rgba(20,30,50,.22),0 calc(var(--w) * .08) calc(var(--w) * .2) calc(var(--w) * -.06) rgba(0,0,0,.7)}
.pc.red .pc-f{color:#d0281a}
.pc.face .pc-f::before{content:"";position:absolute;inset:calc(var(--w) * .055);border-radius:calc(var(--w) * .06);box-shadow:inset 0 0 0 1px rgba(37,99,235,.35);pointer-events:none}
.pc-r{position:absolute;left:8%;top:2%;font-family:'p7';font-size:calc(var(--w) * .44);line-height:1.08;letter-spacing:-.06em}
.pc-s1{position:absolute;left:10%;top:42%;width:27%;height:auto;fill:currentColor}
.pc-s2{position:absolute;right:8%;bottom:6%;width:52%;height:auto;fill:currentColor}
.pc-b{background:repeating-linear-gradient(45deg,rgba(63,224,240,.22) 0 1px,transparent 1px 5px),repeating-linear-gradient(-45deg,rgba(63,224,240,.22) 0 1px,transparent 1px 5px),linear-gradient(160deg,#1a3a6e,#0b1630 70%);box-shadow:inset 0 0 0 calc(var(--w) * .05) #0a1226,inset 0 0 0 calc(var(--w) * .066) rgba(63,224,240,.75),0 calc(var(--w) * .08) calc(var(--w) * .2) calc(var(--w) * -.06) rgba(0,0,0,.7)}
.pc.win{transform:translateY(-9%)}
.pc.win .pc-f{box-shadow:inset 0 0 0 1px rgba(20,30,50,.22),0 0 0 2px var(--st-hi,#3fe0f0),0 0 calc(var(--w) * .4) var(--st-hi-glow,rgba(13,192,212,.6))}
.pc.dim{filter:brightness(.45) saturate(.5)}

/* ───── 화투 패 .hw(폭 --w, 높이는 그림 비율 248×404) ───── */
.hw{--w:40px;position:relative;display:inline-block;flex:none;width:var(--w);height:calc(var(--w) * 1.629);overflow:hidden;vertical-align:middle;border-radius:calc(var(--w) * .09);background:#efe6d2;box-shadow:0 2px 7px rgba(0,0,0,.55),inset 0 0 0 1px rgba(0,0,0,.4);transition:transform .18s,filter .25s,box-shadow .25s}
.hw-art{position:absolute;inset:0;background-position:50% 50%;background-size:cover;background-repeat:no-repeat}
.hw-mark{position:absolute;left:7%;top:4%;font-family:'p7';font-weight:normal;font-size:calc(var(--w) * .24);line-height:1;color:#ffe9a8;text-shadow:0 1px 3px #000,0 0 6px rgba(0,0,0,.8)}
.hw-pi{position:absolute;right:5%;bottom:4%;padding:1px calc(var(--w) * .07);border-radius:4px;background:rgba(0,0,0,.74);font-family:'p7';font-weight:normal;font-size:calc(var(--w) * .19);line-height:1.25;color:#ffe7a8}
.hw.dim{filter:brightness(.42) saturate(.45)}
.hw.glow{box-shadow:0 0 0 2px var(--st-hi,#3fe0f0),0 0 16px var(--st-hi-glow,rgba(13,192,212,.6)),0 2px 7px rgba(0,0,0,.55)}
.hw.win{box-shadow:0 0 0 2px var(--st-hi,#3fe0f0),0 0 18px var(--st-hi-glow,rgba(13,192,212,.6));transform:translateY(-5px)}
button.hw-btn{padding:0;border:0;background:none;border-radius:calc(var(--w,40px) * .09);cursor:pointer}
button.hw-btn:hover .hw,button.hw-btn:focus-visible .hw{transform:translateY(-8px)}
button.hw-btn:focus-visible{outline:2px solid var(--st-hi,#3fe0f0);outline-offset:3px}

/* ───── 내 조작 줄: 왼쪽 정보 · 가운데 내 패 · 오른쪽 단추 ───── */
.ht-act{display:grid;grid-template-columns:minmax(150px,.55fr) minmax(0,2fr) minmax(0,1.5fr);align-items:center;gap:18px;margin-top:12px;padding:14px 16px;border-radius:12px;background:var(--surface-1);box-shadow:inset 0 0 0 1px var(--module-panel-border);transition:box-shadow .3s}
.ht-act[data-state="me"]{box-shadow:inset 0 0 0 1px var(--theme-color),0 0 34px -14px var(--theme-color)}
.ht-act:has(.ht-alt:not([hidden])){grid-template-columns:minmax(0,1fr) auto}
.ht-me{display:flex;flex-direction:column;gap:3px;min-width:0}
.ht-me-top{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px}
.ht-me-k{font-size:12px;color:var(--a3a3)}
.ht-me b{overflow:hidden;font-family:'p7';font-weight:normal;font-size:16px;line-height:1.35;color:var(--font-color);white-space:nowrap;text-overflow:ellipsis}
.ht-turn{font-size:12.5px;color:var(--a3a3);font-variant-numeric:tabular-nums}
.ht-act[data-state="me"] .ht-turn{color:var(--theme-color)}
.cg-mini-act{display:inline-flex;gap:6px}
.ht-mini{min-height:30px;padding:0 11px;border:1px solid var(--4246);border-radius:6px;background:var(--module-dark-button);font-family:'p6';font-size:12px;color:var(--font-color);white-space:nowrap;cursor:pointer}
.ht-mini:hover{border-color:var(--theme-color)}
.ht-mini[aria-pressed="true"]{border-color:var(--theme-color);color:var(--theme-color)}
.ht-mini[disabled]{opacity:.45;cursor:default}
.ht-alt{display:flex;align-items:center;justify-content:flex-end;gap:16px;min-width:0}
.ht-alt p{margin:0;font-size:14px;line-height:1.55;color:var(--a3a3);text-align:right;word-break:keep-all}
.ht-alt .cg-btn{flex:none;min-width:150px}
.cg-hand{display:flex;align-items:flex-end;justify-content:center;gap:10px;min-width:0;min-height:88px;padding:8px 4px 4px}
.cg-hand-empty{align-self:center;font-size:13.5px;color:var(--a3a3)}
.cg-hand .pc{--w:58px}
.cg-hand-poker{gap:6px}
.cg-hand-seven{gap:3px}
.cg-hand .hw{--w:78px}
.cg-pick{position:relative;padding:0;border:0;background:none;border-radius:6px;cursor:pointer;transition:transform .16s}
.cg-pick:hover{transform:translateY(-6px)}
.cg-pick.on{transform:translateY(-16px)}
.cg-pick:focus-visible{outline:2px solid var(--theme-color);outline-offset:3px}
.cg-pick em{position:absolute;left:50%;top:-11px;padding:2px 8px;border-radius:999px;transform:translateX(-50%);background:var(--module-primary-gradient);font-style:normal;font-family:'p7';font-size:11.5px;line-height:1.3;color:#fff;white-space:nowrap;box-shadow:0 2px 6px rgba(0,0,0,.4)}
.cg-mine{position:relative;display:inline-block}
.cg-hand .cg-mine em{position:absolute;left:50%;bottom:-9px;padding:2px 8px;border-radius:999px;transform:translateX(-50%);background:var(--surface-4);font-style:normal;font-family:'p6';font-size:11px;line-height:1.3;color:var(--font-color);white-space:nowrap}
.cg-ctl{min-width:0}
.cg-ctl.busy{opacity:.7;pointer-events:none}
.cg-bets{display:grid;grid-template-columns:repeat(auto-fit,minmax(74px,1fr));gap:6px}
.cg-bet{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:56px;padding:6px 4px;border:1px solid var(--4246);border-radius:9px;background:var(--module-dark-button);font-family:'p7';font-size:15.5px;line-height:1;color:var(--font-color);cursor:pointer;transition:filter .15s,border-color .15s}
.cg-bet small{font-family:'p6';font-size:11.5px;color:var(--a3a3);font-variant-numeric:tabular-nums}
.cg-bet:hover{border-color:var(--theme-color)}
.cg-bet[data-kind="die"]{border-color:rgba(239,68,68,.45);color:#ff8f7d}
.cg-bet[data-kind="check"],.cg-bet[data-kind="call"]{border-color:transparent;background:var(--module-cyan-gradient);color:#fff}
.cg-bet[data-kind="bbing"],.cg-bet[data-kind="ddadang"],.cg-bet[data-kind="quarter"],.cg-bet[data-kind="half"]{border-color:transparent;background:var(--module-primary-gradient);color:#fff}
.cg-bet[data-kind="check"] small,.cg-bet[data-kind="call"] small,.cg-bet[data-kind="bbing"] small,.cg-bet[data-kind="ddadang"] small,.cg-bet[data-kind="quarter"] small,.cg-bet[data-kind="half"] small{color:rgba(255,255,255,.85)}
.cg-bet:hover{filter:brightness(1.08)}
.cg-wait{margin:0;padding:14px 10px;text-align:center;font-size:14px;color:var(--a3a3)}
.cg-drawbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px}
.cg-drawbar p{flex:1 1 140px;margin:0;font-size:14px;line-height:1.5;color:var(--theme-color)}
.cg-drawbar .cg-btn{min-width:96px}

/* 판 전체를 덮는 배치(맞고 · 고스톱 · 윷놀이) */
.cg-ring .cg-board,.cg-custom .ht-table,.cg-custom .ht-center,.cg-custom #htSeats,.cg-custom .ht-dealer{display:none}
.cg-custom .cg-board{position:absolute;inset:0;z-index:2;container-type:size}

/* ───── 옆 칸 ───── */
.cgt-side{position:relative;min-width:0;border-radius:12px;background:var(--surface-1);overflow:hidden}
/* 넓은 화면: 옆 칸은 무대 + 조작 줄 높이에 맞추고 안에서만 내린다(채팅이 길어도 줄이 늘지 않게 안쪽 상자를 띄운다) */
.cgt-in{position:absolute;inset:0;display:flex;flex-direction:column}
.cgt-tabs{display:flex;flex:none;border-bottom:1px solid var(--3838)}
.cgt-tabs button{position:relative;flex:1;height:46px;padding:0 6px;border:0;background:none;font-family:'p6';font-size:13px;color:var(--a3a3);cursor:pointer}
.cgt-tabs button[aria-selected="true"]{color:var(--font-color)}
.cgt-tabs button[aria-selected="true"]::after{content:"";position:absolute;left:18%;right:18%;bottom:-1px;height:2px;background:var(--theme-color)}
.cgt-panel{display:flex;flex:1;flex-direction:column;min-height:0}
.ht-chat{flex:1;min-height:0;max-height:100%;margin:0;padding:12px 14px;overflow-y:auto;list-style:none;display:flex;flex-direction:column;gap:8px;scrollbar-width:thin}
.ht-chat li{font-size:13px;line-height:1.5;color:var(--a3a3);word-break:break-all}
.ht-chat li b{margin-right:6px;font-family:'p6';font-weight:normal;color:var(--font-color)}
.ht-chat li.me b{color:var(--theme-color)}
.ht-chat li.sys{padding:6px 10px;border-radius:8px;background:var(--surface-2);font-size:12.5px}
.ht-say{display:flex;gap:8px;padding:10px;border-top:1px solid var(--3838)}
.ht-say input{flex:1;min-width:0;height:38px;padding:0 12px;border:1px solid var(--4246);border-radius:8px;background:var(--body-bg);font-family:'p6';font-size:13px;color:var(--font-color);outline:none}
.ht-say input:focus{border-color:var(--theme-color)}
.ht-say input:disabled{opacity:.6}
.ht-sub{margin:0;padding:12px 14px 6px;font-family:'p6';font-weight:normal;font-size:13.5px;color:var(--font-color)}
.ht-sub span{font-size:12px;color:var(--a3a3)}
.ht-log{max-height:210px;margin:0;padding:0 14px 8px;overflow-y:auto;list-style:none;scrollbar-width:thin}
.ht-log li{padding:3px 0;font-size:12.5px;color:var(--a3a3)}
.ht-log li.st{font-family:'p6';color:var(--theme-color)}
.ht-hist{flex:1;min-height:0;margin:0;padding:0 14px 12px;overflow-y:auto;list-style:none;scrollbar-width:thin}
.ht-hist li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 10px;padding:9px 0;border-top:1px solid var(--3838);font-size:12.5px}
.ht-hist li>span:first-child{display:flex;flex-direction:column;gap:2px;min-width:0}
.ht-hist li small{font-size:11.5px;color:var(--a3a3)}
.ht-hist li b{overflow:hidden;font-family:'p6';font-weight:normal;color:var(--font-color);white-space:nowrap;text-overflow:ellipsis}
.ht-hist li em{font-style:normal;font-size:12px;color:var(--38ffa8)}
.ht-hist li .r{text-align:right;color:var(--a3a3);font-variant-numeric:tabular-nums}
.ht-hist-empty{display:block!important;padding:10px 0;color:var(--a3a3);font-size:12.5px}
.ht-info{gap:12px;padding:14px;overflow-y:auto}
.ht-info .cg-kv dd{max-width:62%;font-size:12.5px;line-height:1.5}
.cg-note{margin:0;font-size:12px;line-height:1.6;color:var(--a3a3);word-break:keep-all}

/* ═════════ 맞고 · 고스톱 판(.gs-*) ═════════ */
.gs{--fw:clamp(36px,6.3cqw,66px);--cw:clamp(20px,3.2cqw,31px);position:absolute;inset:0;display:flex;flex-direction:column;gap:8px;padding:10px;overflow:hidden;border-radius:14px;background:radial-gradient(ellipse 70% 60% at 50% 45%,var(--st-felt-a) 0%,var(--st-felt-b) 55%,var(--st-felt-c) 100%);box-shadow:inset 0 0 0 1px rgba(63,224,240,.25),inset 0 0 70px rgba(0,0,0,.6);color:#fff}
.gs-opps{display:flex;flex:none;gap:8px}
.gs-opps:empty{display:none}
.gs-opps>.gs-strip{flex:1 1 0;min-width:0}
.gs-strip{position:relative;display:grid;grid-template-columns:minmax(124px,156px) minmax(0,1fr) auto;grid-template-areas:"prof cap sc";align-items:center;gap:10px;flex:none;padding:8px 10px 9px;overflow:hidden;border-radius:12px;background:var(--st-box);box-shadow:inset 0 0 0 1px var(--st-line);transition:box-shadow .25s}
.gs-strip[data-turn]{box-shadow:inset 0 0 0 1px var(--st-hi),0 0 24px -8px var(--st-hi-glow)}
.gs-opps[data-n="2"] .gs-strip{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"prof sc" "cap cap";gap:6px 8px}
.gs-prof{grid-area:prof;display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;min-width:0}
.gs-ava{flex:none;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:linear-gradient(180deg,#2a3a52,#0e1624);box-shadow:inset 0 0 0 1px rgba(63,224,240,.5);font-family:'p7';font-size:14px;color:#e6f6fb}
.gs-pi{display:flex;flex:1 1 60px;flex-direction:column;min-width:0}
.gs-nm{overflow:hidden;font-family:'p6';font-weight:normal;font-size:13.5px;line-height:1.3;color:#fff;white-space:nowrap;text-overflow:ellipsis}
.gs-money{font-style:normal;font-family:'p7';font-size:13px;line-height:1.3;color:var(--st-hi);font-variant-numeric:tabular-nums}
.gs-flags{display:inline-flex;flex-wrap:wrap;gap:3px}
.gs-flags i{padding:1px 6px;border-radius:999px;background:rgba(63,224,240,.16);font-style:normal;font-family:'p6';font-size:11.5px;line-height:1.5;color:#c9f6fb}
.gs-bars{display:inline-flex;align-items:center;gap:2px}
.gs-bars i{width:5px;height:13px;border-radius:1px;background:#c2392b}
.gs-peek{display:inline-flex;padding-left:6px}
.gs-peek .hw{--w:20px;margin-left:-6px}
.gs-delta{margin-left:auto;font-family:'p7';font-size:13px;font-variant-numeric:tabular-nums}
.gs-delta[data-sign="plus"]{color:var(--st-plus)}
.gs-delta[data-sign="minus"]{color:var(--st-minus)}
.gs-cap{grid-area:cap;display:flex;align-items:flex-end;gap:10px;min-width:0}
.gs-cap-none{align-items:center;min-height:40px;font-size:13px;color:var(--st-tx3)}
.gs-capg{display:flex;flex:0 1 auto;flex-direction:column;gap:3px;min-width:0}
.gs-capl{font-size:11.5px;line-height:1;color:var(--st-tx3);white-space:nowrap}
.gs-capl b{margin-left:4px;font-weight:normal;font-family:'p7';color:var(--st-hi);font-variant-numeric:tabular-nums}
.gs-capc{display:flex;min-height:calc(var(--cw) * 1.629)}
.gs-capc .hw{--w:var(--cw)}
.gs-capc .hw+.hw{margin-left:calc(var(--cw) * var(--ov,.2) * -1)}
.gs-capg[data-n="0"] .gs-capc::before{content:"";width:var(--cw);height:calc(var(--cw) * 1.629);border-radius:4px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.14)}
.gs-shown{display:inline-flex;align-items:flex-end;gap:2px;padding-left:4px}
.gs-shown .hw{--w:var(--cw)}
.gs-shown em{font-style:normal;font-family:'p7';font-size:11.5px;line-height:1;color:var(--st-hi)}
.gs-sc{grid-area:sc;display:flex;align-items:center;gap:8px}
.gs-sets{display:flex;flex-wrap:wrap;gap:3px;max-width:96px}
.gs-sets span{padding:2px 7px;border-radius:999px;background:var(--st-btn);font-family:'p7';font-size:11.5px;line-height:1.4;color:#fff}
.gs-score{display:inline-flex;align-items:baseline;gap:2px;padding:4px 11px;border-radius:10px;background:rgba(0,0,0,.35);box-shadow:inset 0 0 0 1px var(--st-line)}
.gs-score b{font-family:'p7';font-weight:normal;font-size:24px;line-height:1;color:#fff;font-variant-numeric:tabular-nums}
.gs-score span{font-size:12px;color:var(--st-tx3)}
.gs-score[data-reached="1"]{background:var(--st-btn);box-shadow:0 0 18px var(--st-hi-glow)}
.gs-score[data-reached="1"] span{color:rgba(255,255,255,.85)}
.gs-counts{display:flex;gap:3px;margin:0;padding:0;list-style:none}
.gs-counts li{padding:2px 6px;border-radius:6px;background:rgba(255,255,255,.06);font-size:11.5px;line-height:1.4;color:var(--st-tx3);white-space:nowrap}
.gs-counts li b{margin-left:2px;font-weight:normal;font-variant-numeric:tabular-nums}
.gs-counts li[data-on="1"]{background:rgba(63,224,240,.16);color:var(--st-hi)}
.gs-counts li[data-bad="1"][data-on="1"]{background:rgba(224,80,59,.18);color:var(--st-minus)}
.gs-timer{position:absolute;left:0;bottom:0;width:100%;height:3px;background:var(--st-hi);transform:scaleX(0);transform-origin:left}
.gs-timer[data-late="1"]{background:#e0503b}
.gs-strip:not([data-turn]) .gs-timer{display:none}
.gs-empty{grid-template-columns:minmax(0,1fr);justify-items:center;min-height:50px}
.gs-sit{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 16px;border:1px dashed rgba(63,224,240,.55);border-radius:999px;background:rgba(63,224,240,.08);font-family:'p6';font-size:14px;color:#c9f6fb;cursor:pointer}
.gs-sit i{font-style:normal;font-family:'p7';font-size:18px}
.gs-sit:hover{border-color:var(--st-hi);color:var(--st-hi)}
.gs-sit-no{font-size:13px;color:var(--st-tx3)}
.gs-mid{position:relative;display:flex;flex:1 1 0;flex-direction:column;gap:6px;min-height:0}
.gs-floor{display:grid;flex:1 1 0;grid-template-columns:repeat(3,minmax(0,1fr)) minmax(0,.85fr) repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:6px;align-items:center;min-height:0}
.gs-slot{position:relative;display:flex;align-items:center;justify-content:center;height:100%;min-width:0;border-radius:10px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);transition:box-shadow .2s,background .2s}
.gs-slot .hw{--w:var(--fw)}
.gs-slot>*+*{margin-left:calc(var(--fw) * -.58)}
.gs-slot>.gs-ppeok{margin-left:0}
.gs-slot[data-match="1"]{background:rgba(63,224,240,.07);box-shadow:inset 0 0 0 1px rgba(63,224,240,.55),0 0 16px -4px var(--st-hi-glow)}
.gs-slot[data-hover]{background:rgba(63,224,240,.14);box-shadow:inset 0 0 0 2px var(--st-hi),0 0 20px var(--st-hi-glow)}
.gs-ppeok{position:absolute;right:4px;top:2px;padding:1px 6px;border-radius:999px;background:#b1311f;font-family:'p7';font-size:11.5px;line-height:1.4;color:#fff;box-shadow:0 2px 6px rgba(0,0,0,.5)}
.gs-pile{position:relative;display:flex;grid-area:1 / 4 / span 2;align-items:center;justify-content:center;min-width:0}
.gs-pstack{position:relative;display:inline-block}
.gs-pstack .hw{--w:var(--fw)}
.gs-pstack[data-thick="2"] .hw{box-shadow:2px 2px 0 #c9d3e0,4px 4px 0 #7f8ba0,0 6px 12px rgba(0,0,0,.55)}
.gs-pstack[data-thick="3"] .hw{box-shadow:2px 2px 0 #c9d3e0,4px 4px 0 #a2adbf,6px 6px 0 #7f8ba0,8px 8px 0 #5d687c,0 10px 16px rgba(0,0,0,.55)}
.gs-pcount{position:absolute;left:50%;top:50%;min-width:26px;padding:2px 7px;transform:translate(-50%,-50%);border-radius:999px;background:rgba(6,12,22,.85);box-shadow:inset 0 0 0 1px var(--st-hi);font-family:'p7';font-size:13px;line-height:1.3;color:var(--st-hi);text-align:center;font-variant-numeric:tabular-nums}
.gs-pempty{width:var(--fw);height:calc(var(--fw) * 1.629);border-radius:6px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.14)}
.gs-flip{position:absolute;left:calc(50% + var(--fw) * .55);top:50%;transform:translateY(-50%) rotate(7deg)}
.gs-flip .hw{--w:var(--fw)}
.gs-status{align-self:center;margin:0;padding:5px 14px;border-radius:999px;background:var(--st-box);box-shadow:inset 0 0 0 1px var(--st-line);font-size:13px;line-height:1.4;color:var(--st-tx2);text-align:center}
.gs-status[data-turn="1"]{color:var(--st-hi);box-shadow:inset 0 0 0 1px var(--st-hi)}
.gs-carry{position:absolute;right:4px;top:-2px;margin:0;padding:2px 10px;border-radius:999px;background:#b1311f;font-family:'p7';font-size:12px;line-height:1.5;color:#fff}
.gs-mine{flex:none}
.hw.fresh{animation:gsFresh 1.6s var(--cg-ease) both}
@keyframes gsFresh{0%{transform:translateY(-14px) scale(1.18);box-shadow:0 0 0 2px var(--st-hi),0 0 26px var(--st-hi-glow)}35%{transform:none}100%{box-shadow:0 0 0 2px rgba(63,224,240,.5),0 2px 7px rgba(0,0,0,.55)}}
/* 고 · 스톱 물음 · 흔들기 물음 */
.gs-layer{position:absolute;inset:0;z-index:6;display:flex;align-items:center;justify-content:center;padding:12px;background:rgba(6,10,18,.6)}
.gs-ask{position:relative;display:flex;flex-direction:column;align-items:center;gap:10px;width:min(100%,420px);padding:20px 22px;border-radius:14px;background:linear-gradient(180deg,rgba(20,32,50,.98),rgba(10,16,28,.98));box-shadow:inset 0 0 0 1px var(--st-hi),0 24px 60px rgba(0,0,0,.7),0 0 50px var(--st-hi-glow);text-align:center;animation:gsPop .35s var(--cg-ease) both}
.gs-ask h3{margin:0;font-family:'p7';font-weight:normal;font-size:22px;line-height:1.3;color:#fff}
.gs-ask p{margin:0;font-size:13.5px;line-height:1.6;color:rgba(255,255,255,.8);word-break:keep-all}
.gs-ask-act{display:flex;gap:10px;width:100%;margin-top:4px}
.gs-ask-act>*{flex:1 1 0;min-height:54px;font-size:17px}
.gs-ask-act .cg-btn:not(.pri){border-color:rgba(255,255,255,.2);background:rgba(255,255,255,.06);color:#fff}
.gs-ask-cards{display:flex;gap:6px}
.gs-ask-cards .hw{--w:58px}
.gs-x{position:absolute;right:8px;top:6px;min-height:32px;padding:0 8px;border:0;background:none;font-family:'p6';font-size:12px;color:rgba(255,255,255,.55);cursor:pointer}
.gs-x:hover{color:var(--st-hi)}
.gs-fx{position:absolute;left:50%;top:46%;z-index:7;transform:translate(-50%,-50%);font-family:'p7';font-size:clamp(34px,7cqw,62px);line-height:1.1;letter-spacing:-.02em;white-space:nowrap;color:#fff;text-shadow:0 2px 0 #0a3d6b,0 0 26px var(--st-hi-glow),0 6px 22px #000;pointer-events:none;animation:gsFx 1.5s var(--cg-ease) both}
.gs-fx[data-k="ppeok"],.gs-fx[data-k="nagari"],.gs-fx[data-k="bomb"]{color:#ffc2b6;text-shadow:0 2px 0 #5a1810,0 0 26px rgba(224,80,59,.8),0 6px 22px #000}
.gs-fx[data-k="jappeok"],.gs-fx[data-k="firstPpeok"],.gs-fx[data-k="doublePpeok"],.gs-fx[data-k="triplePpeok"],.gs-fx[data-k="firstTtadak"],.gs-fx[data-k="bonus"],.gs-fx[data-k="steal"]{font-size:clamp(22px,4cqw,36px)}
@keyframes gsFx{0%{opacity:0;transform:translate(-50%,-50%) scale(.5)}15%{opacity:1;transform:translate(-50%,-50%) scale(1.15)}30%{transform:translate(-50%,-50%) scale(1)}80%{opacity:1}100%{opacity:0;transform:translate(-50%,-64%) scale(1)}}
@keyframes gsPop{from{opacity:0;transform:scale(.92)}}
.gs-res{position:absolute;left:50%;top:50%;z-index:5;width:min(92%,400px);transform:translate(-50%,-50%);pointer-events:none}
.gs-resbox,.yt-resbox{padding:14px 20px 12px;border-radius:14px;background:linear-gradient(180deg,rgba(20,32,50,.97),rgba(10,16,28,.97));box-shadow:inset 0 0 0 1px var(--st-hi),0 20px 50px rgba(0,0,0,.6),0 0 40px var(--st-hi-glow);text-align:center;color:#fff;animation:gsPop .45s var(--cg-ease) both}
.gs-resbox{animation-delay:.9s}
.gs-resbox[data-tone="lose"],.yt-resbox[data-tone="lose"]{box-shadow:inset 0 0 0 1px var(--st-line),0 20px 50px rgba(0,0,0,.6)}
.gs-resbox[data-tone="nagari"]{box-shadow:inset 0 0 0 1px rgba(224,80,59,.55),0 20px 50px rgba(0,0,0,.6)}
.gs-resbox strong,.yt-resbox strong{display:block;font-family:'p7';font-weight:normal;font-size:22px;line-height:1.3;color:#fff}
.gs-resbox[data-tone="win"] strong,.yt-resbox[data-tone="win"] strong{color:var(--st-hi)}
.gs-resbox p,.yt-resbox p{margin:2px 0 0;font-size:13.5px;color:rgba(255,255,255,.8)}
.gs-resbox ul{display:flex;flex-wrap:wrap;justify-content:center;gap:4px;margin:8px 0 0;padding:0;list-style:none}
.gs-resbox li{padding:2px 9px;border-radius:999px;background:rgba(63,224,240,.16);font-size:12px;color:var(--st-hi)}
.gs-resbox table,.yt-resbox table{width:100%;margin-top:8px;border-collapse:collapse;font-size:13px}
.gs-resbox th,.yt-resbox th{padding:3px 0;text-align:left;font-weight:normal;font-family:'p6';color:#fff}
.gs-resbox td,.yt-resbox td{padding:3px 6px;color:rgba(255,255,255,.8)}
.gs-resbox tr[data-you="1"] th,.yt-resbox tr[data-you="1"] th{color:var(--st-hi)}
td.gs-amt,td.yt-amt{text-align:right;font-family:'p7';font-variant-numeric:tabular-nums;white-space:nowrap}
.gs-resbox td[data-sign="plus"],.yt-resbox td[data-sign="plus"]{color:var(--st-plus)}
.gs-resbox td[data-sign="minus"],.yt-resbox td[data-sign="minus"]{color:var(--st-minus)}
.gs-resbox small,.yt-resbox small{display:block;margin-top:4px;font-size:12px;color:rgba(255,255,255,.55)}
/* 내 손패(맞고 · 고스톱): 판 아래 큰 패 */
.ht-act.cg-act-hw{grid-template-columns:minmax(170px,.6fr) minmax(0,3fr)}
.cg-act-hw .cg-ctl{display:none}
.cg-hand-hw{--cols:var(--n,10);--hw:min(88px,calc((100cqw - (var(--cols) - 1) * 6px) / var(--cols)));container-type:inline-size;flex-wrap:wrap;gap:14px 6px;min-height:0;padding:12px 2px 4px}
.cg-hand-hw .hw{--w:var(--hw)}
.cg-hs{position:relative;display:inline-block;flex:none}
.cg-shakehint{position:absolute;left:50%;top:-9px;padding:1px 8px;transform:translateX(-50%);border-radius:999px;background:var(--module-primary-gradient);font-family:'p7';font-size:11.5px;line-height:1.5;color:#fff;white-space:nowrap;box-shadow:0 2px 6px rgba(0,0,0,.4);pointer-events:none}
.cg-dummy{display:flex;flex:none;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:var(--hw);height:calc(var(--hw) * 1.629);border:1px dashed var(--theme-color);border-radius:8px;background:var(--accent-panel);font-family:'p7';font-size:15px;line-height:1.1;color:var(--theme-color);cursor:pointer}
.cg-dummy small{font-family:'p6';font-size:11.5px;color:var(--a3a3)}

/* ═════════ 윷놀이(.yt-*) ═════════ */
.yt{--bd:min(calc(100cqh - 20px),58cqw);position:absolute;inset:0;display:grid;grid-template-columns:minmax(0,1fr) var(--bd) minmax(0,1fr);gap:12px;align-items:stretch;padding:10px 12px;overflow:hidden;border-radius:14px;background:radial-gradient(ellipse 70% 60% at 50% 45%,var(--st-felt-a) 0%,var(--st-felt-b) 55%,var(--st-felt-c) 100%);box-shadow:inset 0 0 0 1px rgba(63,224,240,.25),inset 0 0 70px rgba(0,0,0,.6);color:#fff}
.yt-col{display:flex;flex-direction:column;justify-content:space-between;gap:10px;min-width:0}
.yt-mid{display:flex;align-items:center;justify-content:center;min-width:0}
.yt-boardbox{position:relative;width:var(--bd);height:var(--bd)}
.yt-svg{display:block;width:100%;height:100%;overflow:visible}
.yt-bg{fill:#0d1b2b;stroke:rgba(63,224,240,.45);stroke-width:.6}
.yt-lines polyline{fill:none;stroke:rgba(63,224,240,.55);stroke-width:1.1;stroke-linejoin:round;stroke-linecap:round}
.yt-st{fill:#16283d;stroke:rgba(63,224,240,.8);stroke-width:.6}
.yt-st.big{fill:#1d3a5c;stroke:#bdf6fc;stroke-width:.9}
.yt-lb{text-anchor:middle;font-family:'p7';font-size:calc(12px * var(--ux,.23));fill:#d6f7fb;pointer-events:none}
.yt-trail{fill:none;stroke:rgba(189,246,252,.9);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:2.2 2.6;animation:ytTrail 6s linear forwards;pointer-events:none}
@keyframes ytTrail{0%,80%{opacity:1}100%{opacity:0}}
.yt-prev{fill:none;stroke:rgba(189,246,252,.95);stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1.6 2.2;pointer-events:none}
.yt-pc{cursor:default}
.yt-pc.mv{cursor:pointer}
.yt-sh{fill:rgba(0,0,0,.45)}
.yt-pb{stroke-width:.7}
.yt-ph{fill:rgba(255,255,255,.45)}
.yt-cnt{text-anchor:middle;font-family:'p7';font-size:calc(13px * var(--ux,.23));fill:#fff;paint-order:stroke;stroke:rgba(0,0,0,.7);stroke-width:.7px;pointer-events:none}
.yt-ring{fill:none;stroke:#bdf6fc;stroke-width:.9;transform-box:fill-box;transform-origin:center;animation:ytPulse 1.2s ease-in-out infinite;pointer-events:none}
@keyframes ytPulse{50%{opacity:.35;transform:scale(1.14)}}
.yt-tg{cursor:pointer}
.yt-tgc{fill:rgba(63,224,240,.22);stroke:#bdf6fc;stroke-width:.9;transform-box:fill-box;transform-origin:center;animation:ytPulse 1.4s ease-in-out infinite}
.yt-tg[data-tone="capture"] .yt-tgc{fill:rgba(224,80,59,.34);stroke:#ff7a63}
.yt-tg[data-tone="finish"] .yt-tgc{fill:rgba(71,184,120,.3);stroke:#7fe0a8}
.yt-tgt{text-anchor:middle;font-family:'p7';font-size:calc(12px * var(--ux,.23));fill:#fff;paint-order:stroke;stroke:rgba(0,0,0,.75);stroke-width:.6px;pointer-events:none}
.yt-hit{fill:transparent;pointer-events:all}
.yt-tg:focus,.yt-pc:focus{outline:none}
.yt-tg:focus-visible .yt-tgc{stroke:#fff;stroke-width:1.6}
.yt-pc:focus-visible .yt-pb{stroke:#fff;stroke-width:1.4}
.yt-throw{position:absolute;inset:0;z-index:3;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;pointer-events:none;animation:ytThrowLife 2.3s linear both}
@keyframes ytThrowLife{0%,80%{opacity:1}100%{opacity:0}}
.yt-sticks-big{display:flex;gap:12px;padding:16px 22px;border-radius:16px;background:rgba(6,12,22,.7);box-shadow:inset 0 0 0 1px var(--st-line)}
.yt-stk{position:relative;width:18px;height:76px;border-radius:9px;background:linear-gradient(90deg,#7d4a22,#b77a40 42%,#86522a);box-shadow:0 6px 12px rgba(0,0,0,.6),inset 0 0 0 1px rgba(0,0,0,.45);animation:ytStk .6s cubic-bezier(.2,.8,.25,1) both;animation-delay:calc(var(--i) * 70ms)}
.yt-stk[data-flat="1"]{background:linear-gradient(90deg,#e3c98f,#f7e8c3 45%,#d8bb80)}
.yt-stk[data-flat="1"]::after{content:"";position:absolute;inset:12px 4px;border-radius:6px;background:repeating-linear-gradient(180deg,rgba(120,80,30,.5) 0 3px,transparent 3px 10px)}
.yt-stk[data-flat="1"][data-mark="1"]::before{content:"빽";position:absolute;left:50%;top:2px;transform:translateX(-50%);font-family:'p7';font-size:11.5px;line-height:1;color:#a8281a}
@keyframes ytStk{from{opacity:0;transform:translateY(-80px) rotate(calc(var(--i) * 80deg - 120deg)) scale(.8)}70%{opacity:1}}
.yt-tname{font-family:'p7';font-size:clamp(38px,8cqw,64px);line-height:1;color:#fff;text-shadow:0 2px 0 #0a3d6b,0 0 26px var(--st-hi-glow),0 6px 22px #000;animation:gsPop .5s var(--cg-ease) .3s both}
.yt-tname[data-name="yut"],.yt-tname[data-name="mo"]{color:#bdf6fc}
.yt-tname[data-name="backdo"],.yt-tname[data-name="nak"]{color:#ffc2b6}
.yt-call{position:absolute;left:50%;top:22%;z-index:4;transform:translateX(-50%);font-family:'p7';font-size:clamp(26px,5.4cqw,44px);line-height:1.1;white-space:nowrap;color:#fff;text-shadow:0 2px 0 #0a3d6b,0 0 24px var(--st-hi-glow),0 6px 20px #000;pointer-events:none;animation:ytCall 1.7s var(--cg-ease) both}
@keyframes ytCall{0%{opacity:0;transform:translateX(-50%) scale(.5)}18%{opacity:1;transform:translateX(-50%) scale(1.15)}32%{transform:translateX(-50%) scale(1)}80%{opacity:1}100%{opacity:0;transform:translateX(-50%) translateY(-14px)}}
.yt-res{position:absolute;left:50%;bottom:14px;z-index:5;width:min(92%,400px);transform:translateX(-50%);pointer-events:none}
.yt-pn{position:relative;display:flex;flex-direction:column;gap:8px;min-width:0;padding:10px 10px 10px 13px;border-radius:12px;background:var(--st-box);box-shadow:inset 0 0 0 1px var(--st-line),inset 4px 0 0 var(--pc,#666);transition:box-shadow .25s}
.yt-pn[data-turn]{box-shadow:inset 0 0 0 1px var(--st-hi),inset 4px 0 0 var(--pc,#666),0 0 24px -8px var(--st-hi-glow)}
.yt-pm{display:flex;align-items:center;gap:8px;min-width:0}
.yt-ava{position:relative;flex:none;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:linear-gradient(180deg,#2a3a52,#0e1624);box-shadow:inset 0 0 0 2px var(--pc,#666);font-family:'p7';font-size:15px;color:#e6f6fb}
.yt-pi{display:flex;flex:1 1 0;flex-direction:column;min-width:0}
.yt-nm{overflow:hidden;font-family:'p6';font-weight:normal;font-size:13.5px;line-height:1.3;color:#fff;white-space:nowrap;text-overflow:ellipsis}
.yt-money{font-style:normal;font-family:'p7';font-size:13px;line-height:1.3;color:var(--st-hi);font-variant-numeric:tabular-nums}
.yt-pi small{font-size:11.5px;line-height:1.3;color:var(--st-tx3);white-space:nowrap}
.yt-big{display:flex;flex:none;flex-direction:column;align-items:center;min-width:38px}
.yt-big b{font-family:'p7';font-weight:normal;font-size:24px;line-height:1;color:#fff;font-variant-numeric:tabular-nums}
.yt-big small{font-size:11.5px;color:var(--st-tx3)}
.yt-big[data-kind="time"] b{color:var(--st-hi)}
.yt-tray{display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px}
.yt-tp{position:relative;display:inline-flex;align-items:center;gap:4px;padding:0;border:0;background:none}
.yt-tp i{display:block;width:18px;height:18px;border-radius:50%;background:var(--pc,#888);box-shadow:inset 0 0 0 2px var(--pd,#333),0 2px 4px rgba(0,0,0,.5)}
.yt-tp[data-kind="board"] i{background:transparent;opacity:.55;box-shadow:inset 0 0 0 2px var(--pc,#888)}
.yt-tp[data-kind="done"] i{background:var(--st-btn);box-shadow:inset 0 0 0 2px #0b4fae}
.yt-tp[data-kind="done"] i::after{content:"✓";display:grid;place-items:center;width:100%;height:100%;font-family:'p7';font-size:11.5px;line-height:1;color:#fff}
.yt-newbtn{min-height:34px;padding:0 12px 0 8px;border-radius:999px;background:rgba(63,224,240,.16);box-shadow:inset 0 0 0 1px var(--st-hi);font-family:'p7';font-size:13px;line-height:1;color:var(--st-hi);white-space:nowrap;cursor:pointer;animation:ytGlow 1.4s ease-in-out infinite}
@keyframes ytGlow{50%{box-shadow:inset 0 0 0 1px #bdf6fc,0 0 14px var(--st-hi-glow)}}
.yt-trayw{margin:0;font-size:13px;color:var(--st-tx3)}
.yt-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 6px;min-height:22px}
.yt-lastact{margin-left:auto;padding:1px 8px;border-radius:999px;background:rgba(63,224,240,.16);font-style:normal;font-family:'p6';font-size:11.5px;line-height:1.5;color:#c9f6fb;white-space:nowrap}
.yt-delta{margin-left:6px;font-family:'p7';font-size:14px;font-variant-numeric:tabular-nums}
.yt-delta[data-sign="plus"]{color:var(--st-plus)}
.yt-delta[data-sign="minus"]{color:var(--st-minus)}
.yt-empty{flex-direction:row;align-items:center;justify-content:center;gap:10px;min-height:76px;border:0;font:inherit;color:var(--st-tx3);text-align:left}
.yt-empty i{display:grid;place-items:center;width:34px;height:34px;border:1px dashed rgba(63,224,240,.55);border-radius:50%;font-style:normal;font-family:'p7';font-size:18px;color:#c9f6fb}
.yt-empty span{display:flex;flex-direction:column}
.yt-empty b{font-family:'p6';font-weight:normal;font-size:14px;color:rgba(255,255,255,.85)}
.yt-empty small{font-size:12px}
button.yt-empty{cursor:pointer;background:rgba(63,224,240,.06)}
button.yt-empty:hover{box-shadow:inset 0 0 0 1px var(--st-hi)}
.ht-act.cg-act-yt{grid-template-columns:minmax(190px,.7fr) minmax(0,3fr)}
.cg-act-yt .cg-hand{display:none}
.cg-act-yt .ht-me b,.cg-act-hw .ht-me b{font-size:15px;line-height:1.35;white-space:normal}
.yt-ctl{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px}
.yt-info{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:0;font-size:14px;line-height:1.5;color:var(--a3a3)}
.yt-info[data-turn="1"]{color:var(--theme-color)}
.yt-pend,.yt-lastthrow{padding:2px 10px;border-radius:999px;background:var(--accent-panel);font-style:normal;font-family:'p6';font-size:13px;color:var(--theme-color)}
.yt-dock{display:flex;justify-content:flex-end;gap:8px}
.yt-throwbtn{display:inline-flex;align-items:center;gap:10px;min-height:56px;padding:0 24px;border:0;border-radius:12px;background:var(--module-primary-gradient);box-shadow:0 8px 20px -8px rgba(0,123,254,.6);font-family:'p7';font-size:17px;line-height:1;color:#fff;cursor:pointer}
.yt-throwbtn small{font-family:'p6';font-size:11.5px;opacity:.75}
.yt-throwbtn:disabled{opacity:.38;filter:grayscale(.5);box-shadow:none;cursor:default}
.yt-sticks{display:inline-flex;gap:3px}
.yt-sticks i{display:block;width:5px;height:22px;border-radius:3px;background:#6a431e}
.yt-sticks i:nth-child(odd){background:#f1dfae;box-shadow:inset 0 0 0 1px rgba(106,67,30,.6)}
.yt-results{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
.yt-chip{display:inline-flex;align-items:center;justify-content:center;gap:3px;min-width:62px;min-height:52px;padding:0 14px;border:1px solid var(--4246);border-radius:10px;background:var(--module-dark-button);font-family:'p7';font-size:18px;line-height:1;color:var(--font-color);cursor:pointer}
.yt-chip small{font-family:'p6';font-size:12px;color:var(--a3a3)}
.yt-chip[aria-pressed="true"]{border-color:transparent;background:var(--module-primary-gradient);color:#fff}
.yt-chip[aria-pressed="true"] small{color:rgba(255,255,255,.85)}
.yt-chip:disabled{opacity:.4;cursor:default}

/* ───── 모바일(390px) ───── */
html[device-mode="mobile"] .cgt-top{grid-template-columns:minmax(0,1fr) auto;gap:10px 12px;padding:12px}
html[device-mode="mobile"] .cgt-title{grid-column:1;grid-row:1}
html[device-mode="mobile"] .cgt-back{grid-column:2;grid-row:1;height:36px;padding:0 10px 0 6px;font-size:12px}
html[device-mode="mobile"] .cgt-meta{grid-column:1 / -1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
html[device-mode="mobile"] .cgt-meta div{min-width:0;padding:8px 10px;border-radius:8px;background:var(--surface-2)}
html[device-mode="mobile"] .cgt-meta dd{overflow:hidden;font-size:13px;white-space:nowrap;text-overflow:ellipsis}
html[device-mode="mobile"] .cgt-h{font-size:18px}
html[device-mode="mobile"] .cgt-kicker{font-size:11.5px}
html[device-mode="mobile"] .cgt-grid{grid-template-columns:minmax(0,1fr);gap:10px;margin-top:10px}
html[device-mode="mobile"] .ht-stage{aspect-ratio:auto;height:clamp(430px,calc(100svh - 300px),520px)}
html[device-mode="mobile"] .ht-table{inset:11% 12% 15%}
html[device-mode="mobile"] .ht-trim{inset:12px}
html[device-mode="mobile"] .ht-felt{inset:15px}
html[device-mode="mobile"] .ht-line{inset:11% 14%}
html[device-mode="mobile"] .ht-brand{bottom:17%;font-size:11px;letter-spacing:.4em}
html[device-mode="mobile"] .ht-pot{height:28px;font-size:12px}
html[device-mode="mobile"] .ht-pot b{font-size:14.5px}
html[device-mode="mobile"] .cg-call{padding-left:8px}
html[device-mode="mobile"] .ht-street{font-size:12.5px}
html[device-mode="mobile"] .cg-result{max-width:220px;padding:6px 10px;font-size:12px}
html[device-mode="mobile"] .ht-seat{width:96px}
html[device-mode="mobile"] .s0{--x:50%;--y:90%}
html[device-mode="mobile"] .s1{--x:14%;--y:68%}
html[device-mode="mobile"] .s2{--x:14%;--y:30%}
html[device-mode="mobile"] .s3{--x:50%;--y:9%}
html[device-mode="mobile"] .s4{--x:86%;--y:30%}
html[device-mode="mobile"] .s5{--x:86%;--y:68%}
html[device-mode="mobile"] .ht-ava{width:46px;height:46px;font-size:18px}
html[device-mode="mobile"] .ht-ring{inset:-6px;width:calc(100% + 12px);height:calc(100% + 12px)}
html[device-mode="mobile"] .ht-plate{min-width:86px;max-width:96px;margin-top:-8px;padding:4px 8px 5px;border-radius:8px}
html[device-mode="mobile"] .ht-nm{font-size:11.5px}
html[device-mode="mobile"] .ht-st{font-size:12.5px}
html[device-mode="mobile"] .ht-tag{bottom:-11px;height:20px;padding:0 8px;font-size:11px;line-height:20px}
html[device-mode="mobile"] .ht-cards{bottom:calc(100% - 20px)}
html[device-mode="mobile"] .cg-ring .ht-cards .pc{--w:20px}
html[device-mode="mobile"] .cg-ring .ht-cards .pc+.pc{margin-left:-8px}
html[device-mode="mobile"] .cg-ring .ht-cards .hw{--w:26px}
html[device-mode="mobile"] .ht-seat.is-me{width:120px}
html[device-mode="mobile"] .ht-bet-in{gap:4px;height:22px;padding:0 8px 0 3px;font-size:11.5px}
html[device-mode="mobile"] .ht-bet-in .ht-chip{width:15px;height:15px}
html[device-mode="mobile"] .b0{--x:50%;--y:69%}
html[device-mode="mobile"] .b1{--x:30%;--y:63%}
html[device-mode="mobile"] .b2{--x:30%;--y:34%}
html[device-mode="mobile"] .b3{--x:50%;--y:25%}
html[device-mode="mobile"] .b4{--x:70%;--y:34%}
html[device-mode="mobile"] .b5{--x:70%;--y:63%}
html[device-mode="mobile"] .d0{--x:67%;--y:80%}
html[device-mode="mobile"] .d1{--x:27%;--y:75%}
html[device-mode="mobile"] .d2{--x:27%;--y:23%}
html[device-mode="mobile"] .d3{--x:33%;--y:15%}
html[device-mode="mobile"] .d4{--x:73%;--y:23%}
html[device-mode="mobile"] .d5{--x:73%;--y:75%}
html[device-mode="mobile"] .ht-dealer{width:24px;height:24px;font-size:11px}
html[device-mode="mobile"] .ht-banner{top:27%;width:214px;min-width:0;padding:10px 12px}
html[device-mode="mobile"] .ht-banner b{font-size:18px}
html[device-mode="mobile"] .ht-banner em{font-size:16px}
html[device-mode="mobile"] .ht-act,html[device-mode="mobile"] .ht-act.cg-act-hw,html[device-mode="mobile"] .ht-act.cg-act-yt,html[device-mode="mobile"] .ht-act:has(.ht-alt:not([hidden])){grid-template-columns:minmax(0,1fr);gap:8px;margin-top:10px;padding:10px 12px 12px}
html[device-mode="mobile"] .ht-me{flex-direction:row;flex-wrap:wrap;align-items:baseline;gap:4px 8px}
html[device-mode="mobile"] .ht-me b{min-width:0;font-size:14.5px}
html[device-mode="mobile"] .ht-turn{margin-left:auto;font-size:12px}
html[device-mode="mobile"] .ht-alt{flex-direction:column;align-items:stretch;gap:8px}
html[device-mode="mobile"] .ht-alt p{font-size:13px;text-align:center}
html[device-mode="mobile"] .ht-alt .cg-btn{width:100%}
html[device-mode="mobile"] .ht-mini{min-height:34px}
html[device-mode="mobile"] .cg-hand{min-height:70px;padding:18px 0 2px;gap:6px}
html[device-mode="mobile"] .cg-hand .pc{--w:48px}
html[device-mode="mobile"] .cg-hand .hw{--w:62px}
html[device-mode="mobile"] .cg-hand-seven .pc{--w:40px}
html[device-mode="mobile"] .cg-hand-seven{gap:2px}
html[device-mode="mobile"] .cg-bets{grid-template-columns:repeat(4,minmax(0,1fr))}
html[device-mode="mobile"] .cg-bet{min-height:54px;font-size:15px}
html[device-mode="mobile"] .cg-drawbar{justify-content:stretch}
html[device-mode="mobile"] .cg-drawbar .cg-btn{flex:1 1 120px}
html[device-mode="mobile"] .cgt-in{position:static}
html[device-mode="mobile"] .cgt-panel{height:360px;flex:none}
html[device-mode="mobile"] .cgt-panel[hidden]{display:none}
/* 맞고 · 고스톱(모바일): 상대 띠를 위아래로 쌓고 바닥 패를 줄인다 */
html[device-mode="mobile"] .gs{--fw:clamp(34px,8.4cqw,52px);--cw:clamp(19px,5.1cqw,26px);gap:6px;padding:8px}
html[device-mode="mobile"] .gs-opps{flex-direction:column;gap:6px}
html[device-mode="mobile"] .gs-opps>.gs-strip{flex:none}
html[device-mode="mobile"] .gs-strip{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"prof sc" "cap cap";gap:6px 8px;padding:6px 8px 8px}
html[device-mode="mobile"] .gs-ava{width:28px;height:28px;font-size:13px}
html[device-mode="mobile"] .gs-nm{font-size:13px}
html[device-mode="mobile"] .gs-score b{font-size:20px}
html[device-mode="mobile"] .gs-sets{max-width:70px}
html[device-mode="mobile"] .gs-counts li{padding:1px 5px;font-size:11px}
html[device-mode="mobile"] .gs-floor{gap:3px}
html[device-mode="mobile"] .gs-ask-act>*{min-height:48px}
html[device-mode="mobile"] .gs-x{min-height:40px}
html[device-mode="mobile"] .cg-hand-hw{--cols:min(var(--n,10),5);--hw:min(76px,calc((100cqw - (var(--cols) - 1) * 6px) / var(--cols)));gap:12px 6px}
html[device-mode="mobile"] .cg-dummy{font-size:13px}
html[device-mode="mobile"] .ht-stage[data-game="matgo"],html[device-mode="mobile"] .ht-stage[data-game="gostop"]{height:clamp(520px,calc(100svh - 220px),640px)}
html[device-mode="mobile"] .ht-stage[data-game="gostop"]{height:clamp(600px,calc(100svh - 160px),700px)}
/* 윷놀이(모바일): 윷판을 위에 크게, 패널은 아래 두 줄 */
html[device-mode="mobile"] .ht-stage[data-game="yut"]{height:auto;min-height:0}
html[device-mode="mobile"] .ht-stage[data-game="yut"] .cg-board{position:relative;inset:auto;container-type:inline-size}
html[device-mode="mobile"] .yt{--bd:calc(100cqw - 24px);position:relative;inset:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:auto;gap:8px;height:auto;padding:10px 12px 12px}
html[device-mode="mobile"] .yt-col{display:contents}
html[device-mode="mobile"] .yt-mid{order:0;grid-column:1 / -1}
html[device-mode="mobile"] .yt-pn[data-slot="bl"]{order:1}
html[device-mode="mobile"] .yt-pn[data-slot="tl"]{order:2}
html[device-mode="mobile"] .yt-pn[data-slot="tr"]{order:3}
html[device-mode="mobile"] .yt-pn[data-slot="br"]{order:4}
html[device-mode="mobile"] .yt-pn{gap:6px;padding:8px 8px 8px 11px}
html[device-mode="mobile"] .yt-ava{display:none}
html[device-mode="mobile"] .yt-pm{gap:6px}
html[device-mode="mobile"] .yt-big b{font-size:20px}
html[device-mode="mobile"] .yt-big{min-width:30px}
html[device-mode="mobile"] .yt-pi small{white-space:normal}
html[device-mode="mobile"] .yt-res{position:relative;left:auto;bottom:auto;grid-column:1 / -1;order:5;width:auto;transform:none}
html[device-mode="mobile"] .yt-ctl{grid-template-columns:minmax(0,1fr);gap:8px}
html[device-mode="mobile"] .yt-dock,html[device-mode="mobile"] .yt-results{justify-content:stretch}
html[device-mode="mobile"] .yt-throwbtn{flex:1 1 auto;justify-content:center}
html[device-mode="mobile"] .yt-chip{flex:1 1 auto}
html[device-mode="mobile"] .yt-newbtn{min-height:40px}
/* 휴대폰 테이블 화면: 원본 "맨 위로" 둥근 단추(#quick)가 내 패 · 단추 줄 가운데를 가려서(누르기를 가로챈다) 테이블을 볼 때만 숨긴다 */
html[device-mode="mobile"] body:has(#cgTable:not([hidden])) #quick{display:none}
