/* 🎴 에크크 고스톱 — 게임 스타일 (NEON SIGN v137 style.css 에서 고스톱이 쓰는 것만 골라 옴)
   앱 뼈대(처음 화면·위쪽 줄·마이크)는 app.css */
:root {
  color-scheme: dark;
  --bg: #1C2238;
  --bg2: #232A47;
  --glass: rgba(30, 37, 66, .58);
  --glass2: rgba(46, 54, 92, .62);
  --glass3: rgba(255, 255, 255, .07);
  --rim: rgba(255, 255, 255, .14);
  --rim2: rgba(255, 255, 255, .28);
  --ink: #F5F6FF;
  --ink2: #B8BEDC;
  --ink3: #7F87AD;
  --line: rgba(255, 255, 255, .10);
  --pk: #FF4FA3;
  --cy: #4FE3FF;
  --peach: #F6C6A6;
  --vi: #B9A8FF;
  --ok: #5BF0A8;
  --bad: #FF6B8A;
  --dusk: linear-gradient(180deg, #5A5F98 0%, #B69AB8 55%, #F5C7A6 100%);
  --neon: linear-gradient(90deg, #4FE3FF, #B9A8FF 50%, #FF4FA3);
  --shadow: 0 18px 40px rgba(6, 8, 24, .35);
  --r: 22px;
  --f-logo: "Unbounded", "IBM Plex Sans KR", system-ui, sans-serif;
  --f-body: "IBM Plex Sans KR", "M PLUS 1p", -apple-system, "Apple SD Gothic Neo", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
html, body { margin: 0; height: 100%; }
button, .chip { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
/* 방 안에서는 화면 전체를 고정 (아이폰 튕김·갤럭시 주소창 때문에 들썩이지 않게) */
html.in-room, body.in-room { overflow: hidden; overscroll-behavior: none; }
body.in-room { position: fixed; inset: 0; width: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 15px; overscroll-behavior: none; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font-family: inherit; color: inherit; font-size: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { cursor: default; opacity: .38; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 1.5px solid #fff; outline-offset: 2px; }
.hidden { display: none !important; }

/* 배경 장면 */
.scene { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: #1C2238; }

.screen { position: relative; z-index: 1; min-height: 100dvh; max-width: 520px; margin: 0 auto; }

.glass { background: var(--glass); -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3); border: 1px solid var(--rim); border-radius: var(--r); box-shadow: var(--shadow); }
.chip { background: rgba(20, 24, 48, .45); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--rim); border-radius: 999px; padding: 7px 13px; font-size: 12.5px; appearance: none; -webkit-appearance: none; color: var(--ink); }
.chip option { color: #111; }
.btn { width: 100%; border-radius: 999px; padding: 15px 16px; font-size: 15.5px; font-weight: 600; letter-spacing: .2px; transition: transform .1s, background .2s; }
.btn:active { transform: scale(.98); }
.btn-holo { background: #fff; color: #161B33; box-shadow: 0 0 0 4px rgba(255, 255, 255, .12), 0 10px 30px rgba(255, 79, 163, .25); }
.btn-glass { background: var(--glass3); border: 1px solid var(--rim2); width: auto; padding: 0 18px; color: var(--ink); }
.btn-soft { background: var(--glass3); border: 1px solid var(--rim); color: var(--ink); }
.btn.slim { padding: 11px 14px; font-size: 13.5px; }

/* ───────── 로비 ───────── */
#lobby { padding: calc(14px + var(--safe-t)) max(16px, env(safe-area-inset-right, 0px)) calc(28px + var(--safe-b)) max(16px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 14px; }
.hero { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 55svh; padding-top: 3svh; }
.logo { margin: 0; font-family: var(--f-logo); font-weight: 300; font-size: 34px; letter-spacing: 10px; line-height: 1; display: flex; gap: 14px; padding-left: 10px; color: #fff; text-shadow: 0 0 18px rgba(255, 255, 255, .35); }
.logo span + span { color: #FFE3F1; text-shadow: 0 0 6px #FF4FA3, 0 0 18px rgba(255, 79, 163, .8), 0 0 40px rgba(255, 79, 163, .45); animation: flick 7s infinite; }
@keyframes flick { 0%, 91%, 100% { opacity: 1; } 92% { opacity: .4; } 93% { opacity: 1; } 95% { opacity: .6; } 96% { opacity: 1; } }
.tagline { margin: 12px 0 0; color: rgba(255, 255, 255, .86); font-size: 14px; letter-spacing: .3px; text-wrap: balance; text-shadow: 0 1px 10px rgba(20, 20, 50, .5); }

.join-card { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.invite { text-align: center; border-radius: 16px; padding: 10px; border: 1px solid var(--rim2); background: var(--glass3); }
.invite small { color: var(--ink2); }
.invite b { display: block; font-family: var(--f-mono); font-size: 28px; letter-spacing: 8px; color: #fff; text-shadow: 0 0 14px rgba(79, 227, 255, .6); }
.or { text-align: center; color: var(--ink3); font-size: 11.5px; display: flex; align-items: center; gap: 10px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; min-width: 0; border: 1px solid var(--rim); border-radius: 999px; padding: 13px; font-family: var(--f-mono); font-size: 18px; text-transform: uppercase; letter-spacing: 5px; text-align: center; background: rgba(10, 12, 30, .3); color: #fff; outline: none; }
.code-row input::placeholder { color: var(--ink3); letter-spacing: 3px; }
.code-row input:focus { border-color: rgba(255, 255, 255, .6); }

/* ───────── 방 ───────── */
#room { height: var(--app-h, 100%); display: flex; flex-direction: column; overflow: hidden; }
.code-chip { display: flex; align-items: baseline; gap: 6px; padding: 0; color: #fff; }
.code-chip span { font-family: var(--f-mono); font-size: 16px; letter-spacing: 4px; }
.code-chip small { font-size: 10px; color: var(--ink3); }
.net-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink3); }
.net-dot.on { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.net-dot.wait { background: var(--peach); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .3; } }

/* 무대 */
.stage { margin: 0 max(12px, env(safe-area-inset-right, 0px)) 0 max(12px, env(safe-area-inset-left, 0px)); background: var(--glass); -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3); border: 1px solid var(--rim); border-radius: var(--r); box-shadow: var(--shadow); padding: 6px; flex: none; }
.stage.collapsed { position: absolute; left: -9999px; width: 360px; }
/* 음악 칸: 내 파일이면 레코드판, 유튜브 링크면 유튜브 화면 */

.now { display: flex; align-items: center; gap: 8px; padding: 7px 2px 0; }
input[type=range] { -webkit-appearance: none; appearance: none; flex: 1; min-width: 0; height: 26px; background: transparent; margin: 0; }
input[type=range]::-webkit-slider-runnable-track { height: 3px; border-radius: 99px; background: linear-gradient(90deg, #fff var(--p, 0%), rgba(255, 255, 255, .18) var(--p, 0%)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7.5px; border-radius: 50%; background: transparent; border: 2.5px solid #fff; box-shadow: 0 0 10px rgba(255, 255, 255, .55); }
input[type=range]:disabled { opacity: .4; }
input[type=range]::-moz-range-track { height: 3px; border-radius: 99px; background: rgba(255, 255, 255, .18); }
input[type=range]::-moz-range-progress { height: 3px; border-radius: 99px; background: #fff; }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: transparent; border: 2.5px solid #fff; }
@keyframes eq { 50% { height: 100%; } }

/* 사람들 */
.people { display: flex; gap: 8px; overflow-x: auto; min-height: 82px; padding: 10px max(12px, env(safe-area-inset-right, 0px)) 6px max(12px, env(safe-area-inset-left, 0px)); scrollbar-width: none; flex: none; }
.people::-webkit-scrollbar { display: none; }
/* 말할 때: 물웅덩이에 이는 파문처럼 하얀 링이 퍼진다 */
.role { position: absolute; top: -7px; left: 50%; transform: translateX(-50%); font-family: var(--f-mono); font-size: 8px; letter-spacing: 1.5px; padding: 2px 7px; border-radius: 99px; z-index: 2; white-space: nowrap; }
.role.host { background: #fff; color: #161B33; box-shadow: 0 0 12px rgba(255, 255, 255, .55); }

/* 채팅 */
.msg { display: flex; gap: 6px; align-items: flex-end; max-width: 86%; }
.msg.mine { align-self: flex-end; flex-direction: row-reverse; }

/* 하단 */
.bottom { display: flex; align-items: center; gap: 8px; padding: 10px max(10px, env(safe-area-inset-right, 0px)) calc(10px + var(--safe-b)) max(10px, env(safe-area-inset-left, 0px)); background: rgba(16, 20, 40, .55); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-top: 1px solid var(--line); }
.mic-btn { width: 50px; height: 50px; border-radius: 50%; border: 3px solid #fff; color: #fff; box-shadow: 0 0 18px rgba(255, 255, 255, .35); flex: none; font-size: 18px; position: relative; }
.mic-btn.off { border: 1.5px solid var(--rim2); box-shadow: none; color: var(--ink3); }
/* 꺼졌을 때: 마이크 아이콘에 빗금 */
.mic-btn.none { border: 1.5px dashed var(--rim2); color: var(--ink3); box-shadow: none; }

/* 시트 */
@keyframes fade { from { opacity: 0; } }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; max-width: 520px; margin: 0 auto; z-index: 21; background: rgba(28, 34, 60, .94); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); border-top: 1px solid var(--rim2); border-radius: 28px 28px 0 0; max-height: 88dvh; overflow-y: auto; padding: 6px max(16px, env(safe-area-inset-right, 0px)) calc(22px + var(--safe-b)) max(16px, env(safe-area-inset-left, 0px)); box-shadow: 0 -20px 50px rgba(0, 0, 0, .4); animation: up .3s cubic-bezier(.2, .9, .3, 1.05); color: var(--ink); }
@keyframes up { from { transform: translateY(100%); } }

.toast { position: fixed; left: 50%; top: calc(62px + var(--safe-t)); transform: translateX(-50%); background: #fff; color: #161B33; padding: 10px 18px; border-radius: 99px; font-size: 13px; z-index: 30; max-width: 88vw; text-align: center; animation: fade .2s; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }

.gone { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 24px; background: rgba(14, 17, 34, .75); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); text-align: center; }
.gone .glass { padding: 26px 20px; max-width: 340px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.gone img { width: 80px; opacity: .85; }
.gone b { font-size: 17px; }
.gone p { margin: 0; color: var(--ink2); font-size: 13px; line-height: 1.55; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (min-width: 560px) { #room { border-left: 1px solid var(--line); border-right: 1px solid var(--line); } }

/* 메시지 */
.toast.clickable { cursor: pointer; }
.mic-btn { width: 46px; height: 46px; }
.bottom { padding-top: 8px; }

/* ═════════ 윷놀이 ═════════ */
.y-load { height: 100%; display: grid; place-items: center; font-size: 34px; opacity: .5; }

/* 대기실 */
.y-hero { display: flex; align-items: baseline; gap: 8px; }
.y-hero b { font-family: var(--f-logo); font-size: 15px; letter-spacing: .5px; }
.y-hero small { color: var(--ink3); font-size: 11px; flex: 1; }
.y-chip { padding: 4px 10px; border-radius: 99px; font-size: 12px; border: 1px solid var(--rim); background: transparent; color: var(--ink2); }
.y-chip.on { background: #fff; color: #1C2238; border-color: #fff; box-shadow: 0 0 12px rgba(255,255,255,.4); font-weight: 600; }
.y-chip:disabled:not(.on) { opacity: .45; }
.y-note { font-size: 10.5px; color: var(--ink3); line-height: 1.4; }
.y-note.c { text-align: center; padding: 6px; }

/* 키보드가 열렸을 때: 시트를 키보드 위로, 보이는 높이 안에 */
.sheet { bottom: var(--kb, 0px); transition: bottom .18s ease-out; }

.mic-btn { display: grid; place-items: center; padding: 0; }

/* 팔로우·차단 */
.chip.on { background: #fff; color: #1C2238; border-color: #fff; }

/* 마이크 버튼: 말하면 테두리가 목소리 크기만큼 빛남 */
.mic-btn { --lv: 0; }
/* 청중의 마이크 버튼 = 손들기 */
.mic-btn.hand::before { content: "✋"; font-size: 20px; filter: grayscale(.6); }
.mic-btn.hand { border-color: var(--rim2); box-shadow: none; }
/* 창(시트): 아이폰에서도 손가락 따라 부드럽게 스크롤 + 아래로 끌어 닫기 */
.sheet { -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-y; will-change: transform; }
.sheet input[type=range] { touch-action: pan-y; }

/* ── 🎤 노래방 ── */
.k-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 10px; }
.k-empty b { font-size: 20px; }
.k-empty small { color: var(--ink2); font-size: 12.5px; }
.k-row { display: flex; gap: 8px; width: 100%; max-width: 360px; margin: 6px 0; }
.k-row .btn { flex: 1; width: auto; }
.k-top { display: flex; align-items: center; gap: 10px; }
.k-ttl { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.k-ttl b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-ttl small { font-size: 12px; color: var(--ink3); }
.k-ttl small.on { color: #ff8fc7; }
.k-pp { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rim2); background: rgba(255, 255, 255, .1); color: #fff; font-size: 16px; }
.k-pp.on { background: #fff; color: #1b1f3a; }
.k-lyr { flex: 1; min-height: 110px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px 10px 16px; border-radius: 18px; background: radial-gradient(120% 90% at 50% 100%, rgba(255, 79, 163, .2), transparent 60%), linear-gradient(180deg, #1a1f40, #0f1229); border: 1px solid var(--rim); text-align: center; overflow: hidden; }
.k-lyr p { margin: 0; max-width: 100%; }
.k-l0, .k-l2 { font-size: 13px; color: var(--ink3); min-height: 18px; }
.k-l1 { --k: 0; font-size: clamp(18px, 5.4vw, 24px); font-weight: 700; line-height: 1.35; background: linear-gradient(90deg, #ff6fb5 calc(var(--k) * 100%), #fff calc(var(--k) * 100%)); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.k-l1.in { animation: kIn .3s ease-out; }
@keyframes kIn { from { transform: translateY(8px); opacity: .3; } to { transform: none; opacity: 1; } }
.k-none { color: var(--ink3); font-size: 13px; }
.k-bar { position: absolute; left: 12px; right: 12px; bottom: 7px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.k-bar b { display: block; height: 100%; width: 0; background: #ff4fa3; }
.k-ctl { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.k-ctl .chip.on { background: rgba(255, 79, 163, .3); border-color: #ff4fa3; color: #fff; }
.k-key { display: flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border-radius: 99px; border: 1px solid var(--rim); }
.k-key small, .k-vol small { font-size: 11.5px; color: var(--ink2); }
.k-key button, .k-off button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--rim); background: rgba(255, 255, 255, .08); color: #fff; font-size: 15px; }
.k-key b { min-width: 24px; text-align: center; font-size: 14px; }
.k-vol { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.k-vol .vol { flex: 1; min-width: 0; }
.k-ctl .btn.slim { width: auto; flex: none; padding: 0 14px; }
.k-ctl3 { justify-content: space-between; }
.k-off { display: flex; align-items: center; gap: 4px; font-size: 12px; }
.k-off button { width: auto; padding: 0 8px; border-radius: 15px; font-size: 11px; }
.k-ctl .chip, .k-ctl .btn { white-space: nowrap; }
.k-ctl3 .chip { padding: 6px 10px; font-size: 12px; }
.k-ctl3 { gap: 4px; }
.k-off { gap: 2px; }
.k-off b { font-size: 11.5px; min-width: 34px; text-align: center; }
/* 🪩 조명: 화면 위에 '빛만' 더해짐 (누르는 건 그대로 됨) */
#room { position: relative; z-index: 2; }
.k-ctl3 { overflow-x: auto; scrollbar-width: none; justify-content: flex-start; }
.k-ctl3::-webkit-scrollbar { display: none; }
.k-ctl3 > * { flex: none; }
.k-lyr .k-off { position: absolute; right: 10px; bottom: 14px; opacity: .75; }
.k-lyr .k-off button { height: 24px; font-size: 10.5px; padding: 0 6px; }
.k-lyr .k-off b { font-size: 10.5px; min-width: 28px; }
/* 노래방 + 조명 켜짐: 창 유리를 조금 더 투명하게 → 빛이 더 잘 비침 */
body.k-lit .stage { background: rgba(18, 22, 46, .58); }
.k-lv { gap: 8px; }
.k-lv .vol { flex: 1; min-width: 0; }
.k-lv b { flex: none; min-width: 78px; text-align: right; font-size: 12.5px; }
.k-lv .vol:disabled { opacity: .55; }

/* ── 📖 설명서 ── */
.g-search { display: flex; gap: 8px; position: sticky; top: -6px; z-index: 2; padding: 4px 0 10px; background: rgba(28, 34, 60, .96); }
.g-search .chip { flex: none; }
.g-list { display: flex; flex-direction: column; gap: 8px; padding-bottom: 6px; }
.g-item { border-radius: 16px; border: 1px solid var(--rim); background: rgba(255, 255, 255, .04); overflow: hidden; }
.g-head { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 0; background: none; color: var(--ink); text-align: left; }
.g-ic { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; background: linear-gradient(135deg, rgba(255, 79, 163, .25), rgba(120, 110, 255, .25)); }
.g-tt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.g-tt b { font-size: 15px; font-weight: 600; }
.g-tt small { font-size: 12px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-cv { flex: none; font-style: normal; font-size: 20px; color: var(--ink3); transition: transform .2s; }
.g-item.open .g-cv { transform: rotate(90deg); }
.g-body { display: none; padding: 0 14px 14px 62px; }
.g-item.open .g-body { display: block; }
.g-body ul { margin: 0; padding: 0 0 0 16px; display: flex; flex-direction: column; gap: 8px; }
.g-body li { font-size: 13.5px; line-height: 1.6; color: var(--ink); }
.g-body li::marker { color: #ff6fb5; }
.g-go { margin-top: 10px; width: auto; padding: 0 14px; }

/* 짤: 꾹 누르기가 아이폰 '이미지 저장' 메뉴·글자 선택에 먹히지 않게 */
.chip.warn { border-color: rgba(255, 170, 60, .7); color: #ffd28a; }
/* 마이크 꾹: 테두리 차오름 */
#micBtn { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
#micBtn.lp { animation: micLp .8s linear both; }
@keyframes micLp { from { box-shadow: 0 0 0 0 rgba(255, 255, 255, .5); } to { box-shadow: 0 0 0 7px rgba(185, 168, 255, .7); } }
/* 아이폰 14 등: 주소창·툴바 때문에 보이는 높이가 작아도 아래 입력줄이 잘리지 않게 → 위 창(무대)이 먼저 줄어듦 */
#room > .bottom { flex: none; }
#room > .stage { flex: 0 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
/* 📝 붙여넣은 가사: 전체 스크롤 */
.k-plain { width: 100%; max-height: 46vh; min-height: 180px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 16px 14px 28px; text-align: center; }
.k-plain p { font-size: 19px; font-weight: 700; line-height: 1.6; color: #fff; min-height: 1em; text-shadow: 0 0 12px rgba(255, 79, 163, .35); word-break: keep-all; overflow-wrap: anywhere; }
.k-big { position: absolute; right: 8px; top: 8px; width: 34px; height: 34px; border-radius: 12px; border: 1px solid var(--rim); background: rgba(10, 12, 30, .7); color: #fff; font-size: 17px; z-index: 2; }
/* 🎤 노래방 효과 */
.k-ctl:not(.k-ctl3):not(.k-lv) { flex-wrap: wrap; row-gap: 6px; justify-content: center; }
.k-ctl:not(.k-ctl3):not(.k-lv) .chip { padding: 6px 9px; font-size: 12.5px; }
.k-ctl:not(.k-ctl3):not(.k-lv) { gap: 5px; }
.k-ctl .btn.slim { padding: 0 10px; min-width: 0; flex: 0 1 auto; }
.k-ctl .vol { min-width: 0; }
/* 🎤🎤 듀엣 */
.k-duet-btn { background: linear-gradient(135deg, #ff4fa3, #8a5cff) !important; color: #fff !important; box-shadow: 0 0 14px rgba(255, 79, 163, .5); }
/* 📲 홈 화면에 추가 카드 */
#sheet .btn + .btn { margin-top: 8px; }

/* ═════ 🌙 다크 테마 (자동: 폰이 다크 모드일 때 / 직접 고르기: 처음 화면 🌗 버튼) ═════ */
html[data-theme="dark"] {
  --bg: #0A0D1A; --bg2: #11152A;
  --glass: rgba(12, 15, 32, .74); --glass2: rgba(20, 24, 46, .78); --glass3: rgba(255, 255, 255, .05);
  --rim: rgba(255, 255, 255, .11); --rim2: rgba(255, 255, 255, .22);
  --ink2: #A9AFCC; --ink3: #6E7699; --line: rgba(255, 255, 255, .08);
  --dusk: linear-gradient(180deg, #0A0F24 0%, #1B1F3D 55%, #2B2348 100%);
  --shadow: 0 18px 40px rgba(0, 0, 0, .55);
}
html[data-theme="dark"] .scene { background: #05070F; }
html[data-theme="dark"] .sheet { background: #10142A; }
html[data-theme="dark"] .bottom { background: rgba(8, 10, 22, .7); }

/* ═════ 🎲 윷판 광장 (판 여러 개) ═════ */
.yt-plaza { display: flex; flex-direction: column; gap: 14px; padding: 4px 2px 12px; }
.yt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; column-gap: 8px; justify-items: center; padding-top: 8px; }
.yt-tile { display: flex; flex-direction: column; align-items: center; gap: 5px; background: none; border: 0; color: var(--ink, #fff); font: inherit; cursor: pointer; padding: 0; min-width: 0; max-width: 100%; }
.yt-tile b { font-size: 13px; font-weight: 600; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yt-tile small { font-size: 11.5px; color: var(--ink2, #B8BEDC); margin-top: -3px; }
.yt-ico { position: relative; width: 108px; height: 108px; border-radius: 28px; background: linear-gradient(145deg, #3a2f5e, #251f44); border: 1px solid rgba(255,255,255,.16); box-shadow: 0 8px 18px rgba(0,0,0,.3); display: grid; place-items: center; transition: transform .12s; }
.yt-tile:active .yt-ico { transform: scale(.95); }
.yt-ico.live { border-color: rgba(255,79,163,.75); box-shadow: 0 0 0 3px rgba(255,79,163,.18), 0 8px 18px rgba(0,0,0,.3); }
.yt-ico.mine { border-color: #4FE3FF; box-shadow: 0 0 0 3px rgba(79,227,255,.22), 0 8px 18px rgba(0,0,0,.3); }
.yt-ico.new { background: rgba(255,255,255,.04); border: 1.5px dashed rgba(255,255,255,.35); box-shadow: none; font-size: 38px; color: var(--ink2, #B8BEDC); }
.yt-ico svg .ln { fill: none; stroke: rgba(255,255,255,.35); stroke-width: 1.5; }
.yt-ico svg .pt { fill: rgba(255,255,255,.55); }
.yt-av { position: absolute; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #251f44; overflow: hidden; display: grid; place-items: center; font-size: 13px; background: #E9E4FF; }
.yt-av img, .yt-av svg { width: 100%; height: 100%; object-fit: cover; }
.yt-pill { position: absolute; top: -8px; right: -10px; padding: 3px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.yt-pill.live { background: #FF4FA3; color: #fff; }
.yt-pill.rec { background: #B6F36A; color: #1c2410; }
.yt-pill.mine { background: #4FE3FF; color: #08202a; }
.yt-strip { display: flex; align-items: center; gap: 8px; height: 48px; padding: 2px 2px 6px; overflow-x: auto; scrollbar-width: none; }
.yt-strip[hidden] { display: none; }
.yt-home, .yt-mini { position: relative; flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(255,255,255,.22); background: linear-gradient(145deg, #3a2f5e, #251f44); color: #fff; display: grid; place-items: center; padding: 0; cursor: pointer; font-size: 15px; }
.yt-home { background: rgba(255,255,255,.05); }
.yt-mini svg { width: 22px; height: 22px; } .yt-mini svg rect { fill: none; stroke: rgba(255,255,255,.45); stroke-width: 3; } .yt-mini svg path { stroke: rgba(255,255,255,.3); stroke-width: 2.5; fill: none; }
.yt-mini.on { border-color: #4FE3FF; box-shadow: 0 0 0 2px rgba(79,227,255,.3); }
.yt-mini.live { border-color: rgba(255,79,163,.75); }
.yt-mini i { position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px; border-radius: 99px; font-size: 9.5px; font-style: normal; font-weight: 700; display: grid; place-items: center; background: #B6F36A; color: #1c2410; padding: 0 3px; }
.yt-mini.live i { background: #FF4FA3; color: #fff; }
.yt-cur { font-size: 12.5px; color: var(--ink2, #B8BEDC); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-left: 2px; }

/* ═════ 🎮 블랙잭 · 에어하키 (3D) ═════ */
.yt-ico.g-bj { background: linear-gradient(145deg, #1f6b4a, #0d3a28); }
.yt-ico.g-hk { background: linear-gradient(145deg, #1b2148, #0b0e22); }
.yt-ico svg .felt { fill: #1e8a5c; stroke: #e8c25a; stroke-width: 1.5; }
.yt-ico svg .cd { fill: #fff; } .yt-ico svg .bk { fill: #c2185b; stroke: #fff; stroke-width: 1; }
.yt-ico svg .tx { font: 700 8px Georgia, serif; fill: #141a2e; } .yt-ico svg .tx.r { fill: #d01f45; } .yt-ico svg .mid { stroke: rgba(255,79,163,.7); stroke-width: 1.4; fill: none; }
.yt-ico svg .gp { fill: #ff4fa3; } .yt-ico svg .gb { fill: #3fb6ff; }
.yt-mini svg .ln { fill: none; stroke: rgba(255,255,255,.45); stroke-width: 3; } .yt-mini svg .cd { fill: #fff; }
.g-strip:not([hidden]) ~ .g-view { margin-top: 0; }
/* ❔ 블랙잭 하는 법 */
.tc { width: 32px; height: 45px; border-radius: 5px; background: #fbfaf6; color: #14141c; box-shadow: 0 3px 8px rgba(0,0,0,.4); margin-right: -6px; display: flex; flex-direction: column; justify-content: space-between; padding: 3px 4px; box-sizing: border-box; animation: tcIn .45s calc(var(--i) * .35s) cubic-bezier(.2,.9,.3,1.2) both; }
.tc b { font: 700 13px Georgia, serif; line-height: 1; } .tc em { font-style: normal; font-size: 15px; align-self: flex-end; line-height: 1; }
.tc.back { background: repeating-linear-gradient(45deg, #c2185b 0 4px, #e0457a 4px 8px); border: 2px solid #fff; }
@keyframes tcIn { from { opacity: 0; transform: translate(80px, -40px) rotate(25deg); } }

/* 🐰 에크크 3D 말 */
@keyframes ekBounce { 0%, 100% { transform: translateY(0) scale(1, 1); } 40% { transform: translateY(-10%) scale(.96, 1.05); } 55% { transform: translateY(0) scale(1.06, .93); } }
/* 약올리기: 잡은 사람 프사 옆에서 에크크가 메롱 */
@keyframes ekDance2 { from { transform: rotate(-12deg) translateY(0); } to { transform: rotate(12deg) translateY(-10%); } }

/* v84: 잡힌 쪽 — 메롱 에크크는 프사 옆이 아니라 화면 아래쪽에 크게 (쏘던 에크크들은 빠짐) */
@keyframes ekOut { to { transform: translateX(-50%) translateY(80%) scale(.6); opacity: 0; } }
/* 잡은 쪽: 가운데 크게 '명중!' + 아래 만세 에크크 */
@keyframes hwBurst { 0% { opacity: 1; transform: translate(-50%, -50%) rotate(var(--a)) translateY(0) scale(.4); } 100% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--a)) translateY(-34vw) scale(1.2); } }

/* 🎵 미니 플레이어 (어느 탭에서든) */
@keyframes miniIn { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ═══ 🎴 에크크 고스톱 ═══ */
#gs { height: 100%; position: relative; display: flex; flex-direction: column; }
#gs > .g-view { flex: 1; min-height: 0; position: relative; } /* 위 게임방 줄만큼 빼고 꽉 차게 (아래가 잘리지 않게) */
.gs-wrap { position: relative; height: 100%; display: flex; flex-direction: column; }
.gs-body { flex: 1; min-height: 0; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-y; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; overflow-x: hidden; padding: 2px 2px 8px; position: relative; }
.gs-fx { position: absolute; inset: 0; pointer-events: none; z-index: 6; overflow: hidden; }
/* 카드: 둥근 파스텔 화투 */
.hc { --w: 40px; position: relative; display: inline-block; width: var(--w); height: calc(var(--w) * 1.6); border-radius: calc(var(--w) * .08); overflow: hidden; flex: none; vertical-align: top; box-shadow: 0 2px 0 rgba(140,20,10,.45), 0 4px 8px rgba(0,0,0,.35); color: #1d1a1f; background: #ee2a12; }
.hc.sm { --w: 38px; } .hc.xs { --w: 22px; } .hc.lg { --w: 58px; }
.hc-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hc-m { position: absolute; right: 9%; top: 6%; font-style: normal; font-weight: 800; font-size: calc(var(--w) * .16); color: rgba(224,64,90,.75); line-height: 1; } /* 전통 화투엔 숫자가 없어서 아주 작게만 */
.hc-ek { position: absolute; pointer-events: none; filter: drop-shadow(0 1px 1.5px rgba(0,0,0,.35)); }
.hc-go { position: absolute; left: 8%; bottom: 6%; font-size: calc(var(--w) * .18); background: #ff4f7d; color: #fff; border-radius: 4px; padding: 0 .2em; font-weight: 900; font-style: normal; }
.hc-2 { position: absolute; left: 8%; bottom: 6%; font-size: calc(var(--w) * .22); background: #f2b51c; color: #5a2a00; border-radius: 50%; width: 1.3em; height: 1.3em; display: grid; place-items: center; font-weight: 900; box-shadow: 0 0 0 1px #fff; }
.hc.xs .hc-m, .hc.xs .hc-go { display: none; }
.hc.back { display: inline-block; }
.hc.back i { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-style: normal; font-size: calc(var(--w) * .4); }
/* 상대 */
.gs-top { display: flex; gap: 6px; }
.gs-opp { flex: 1; min-width: 0; display: flex; gap: 6px; align-items: center; padding: 5px 6px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid var(--line); transition: box-shadow .2s, border-color .2s; }
.gs-opp.turn, .gs-mine.turn { border-color: #FFD60A; box-shadow: 0 0 0 1px #FFD60A, 0 0 14px rgba(255,214,10,.35); }
.gs-opp.off { opacity: .55; }
.gs-av { position: relative; width: 46px; height: 54px; flex: none; display: grid; place-items: end center; }
.gs-av img { width: 100%; filter: drop-shadow(0 2px 3px rgba(0,0,0,.4)); transform-origin: 50% 100%; }
.gs-opp.turn .gs-av img, .gs-mine.turn .gs-av img { animation: ekBounce .9s ease-in-out infinite; }
.gs-gob { position: absolute; right: -4px; top: -2px; font-style: normal; font-size: 10px; font-weight: 800; background: #FF453A; color: #fff; border-radius: 8px; padding: 1px 5px; }
.gs-oi { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.gs-oi > b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-sum { display: flex; gap: 3px; flex-wrap: wrap; font-size: 10.5px; align-items: center; }
.gs-sum span { padding: 0 4px; border-radius: 6px; background: rgba(255,255,255,.08); }
.gs-sum .g { color: #FFD60A; } .gs-sum .y { color: #7FD3FF; } .gs-sum .t { color: #FF8FA6; } .gs-sum .p { color: #B9F3A6; }
.gs-sum em { font-style: normal; font-weight: 800; color: #fff; margin-left: auto; }
/* 판 */
.gs-deck { position: relative; flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.gs-deck b { font-size: 11px; color: #e7ffe9; }
.gs-deck .hc { box-shadow: 2px 2px 0 #8a1f43, 4px 4px 0 #6d1834, 0 6px 10px rgba(0,0,0,.4), inset 0 0 0 2px rgba(255,255,255,.7); }
.gs-grp { display: flex; }
.gs-grp .hc + .hc { margin-left: -16px; }
.gs-grp.hit { filter: drop-shadow(0 0 5px #FFD60A); animation: gsHit 1s ease-in-out infinite; }
.gs-grp.ppeok { position: relative; } .gs-grp.ppeok::after { content: "뻑"; position: absolute; right: -6px; top: -8px; font-size: 10px; font-weight: 800; background: #FF453A; color: #fff; border-radius: 8px; padding: 0 4px; }
@keyframes gsHit { 50% { transform: translateY(-3px); } }
.gs-empty { font-size: 12px; color: rgba(255,255,255,.55); }
/* 내 자리 */
.gs-mine { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.gs-mycap { flex: 1; min-width: 0; display: flex; gap: 8px; overflow-x: auto; align-items: flex-end; scrollbar-width: none; }
.gs-mycap::-webkit-scrollbar { display: none; }
.gs-cg { display: flex; align-items: flex-end; position: relative; padding-right: 2px; flex: none; }
.gs-cg .hc + .hc { margin-left: -11px; }
.gs-cg b { position: absolute; right: -6px; bottom: -4px; font-size: 10px; background: #1c1c1e; border-radius: 7px; padding: 0 4px; box-shadow: 0 0 0 1px rgba(255,255,255,.3); }
.gs-cg.c-g b { color: #FFD60A; } .gs-cg.c-y b { color: #7FD3FF; } .gs-cg.c-t b { color: #FF8FA6; } .gs-cg.c-p b { color: #B9F3A6; }
.gs-myscore { flex: none; text-align: center; line-height: 1; }
.gs-myscore b { font-size: 24px; font-weight: 900; display: block; } .gs-myscore small { font-size: 10px; color: var(--ink2); }
.gs-turnbar { display: flex; align-items: center; gap: 8px; font-size: 12.5px; min-height: 20px; padding: 0 4px; }
.gs-turnbar b { color: #FFD60A; } .gs-turnbar span { color: var(--ink2); }
.gs-turnbar em { margin-left: auto; font-style: normal; font-weight: 800; min-width: 26px; text-align: center; border-radius: 10px; background: rgba(255,214,10,.15); color: #FFD60A; }
.gs-hc { padding: 0; background: none; border-radius: 8px; transition: transform .15s; }
.gs-hc .hc { --w: min(13vw, 52px); }
.gs-hc.can:active { transform: scale(.96); }
.gs-hc.hit .hc { box-shadow: 0 0 0 2px #FFD60A, 0 0 12px rgba(255,214,10,.7), 0 3px 6px rgba(0,0,0,.35); }
.gs-hc.sel { transform: translateY(-10px); }
.gs-hc.sel .hc { box-shadow: 0 0 0 3px #fff, 0 0 16px #fff, 0 6px 12px rgba(0,0,0,.4); }
.gs-hc:not(.can) { opacity: .92; }
.gs-watchnote { text-align: center; font-size: 13px; color: var(--ink2); padding: 10px; }
.gs-bossrow { flex: 0 0 auto; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.gs-addbot, .gs-waitb { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 64px; padding: 8px 8px; border-radius: 14px; font-size: 18px; color: var(--ink); background: rgba(255,255,255,.08); border: 1px dashed rgba(255,255,255,.3); position: relative; }
.gs-addbot small, .gs-waitb small { font-size: 10.5px; color: var(--ink2); white-space: nowrap; }
.gs-waitb { font-size: 12px; border-style: solid; }
.gs-waitb button { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; background: #3a3f5c; color: #fff; font-size: 10px; padding: 0; }
.gs-quit { align-self: flex-end; font-size: 11.5px; color: var(--ink3); background: none; padding: 4px 8px; }
/* 대기실 */
.gs-lobby { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 8px 4px; }
.gs-seats { display: flex; gap: 10px; }
.gs-seat { position: relative; width: 96px; padding: 8px 6px; border-radius: 16px; border: 1.5px dashed var(--rim); display: flex; flex-direction: column; align-items: center; gap: 4px; opacity: .55; }
.gs-seat.on { border-style: solid; border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.06); opacity: 1; }
.gs-seat img { width: 64px; filter: drop-shadow(0 3px 4px rgba(0,0,0,.4)); }
.gs-seat.on img { animation: ekBounce 1.1s ease-in-out infinite; transform-origin: 50% 100%; }
.gs-seat b { font-size: 12.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-seat small { font-size: 11px; color: #FFD60A; }
.gs-rm { position: absolute; right: 4px; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.12); font-size: 11px; }
.gs-note { font-size: 12px; color: var(--ink2); text-align: center; line-height: 1.5; }
.gs-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.gs-wait { font-size: 12.5px; color: var(--ink2); }
/* 고/스톱 창 */
.gs-gomodal { position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; background: rgba(8, 10, 24, .55); }
.gs-gocard { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 18px 16px; border-radius: 22px; background: rgba(28,28,30,.96); box-shadow: 0 16px 40px rgba(0,0,0,.5); animation: miniIn .25s cubic-bezier(.2,1.5,.4,1); }
.gs-gocard img { width: 96px; animation: ekBounce .7s ease-in-out infinite; transform-origin: 50% 100%; }
.gs-gocard b { font-size: 26px; font-weight: 900; } .gs-gocard small { font-size: 12px; color: var(--ink2); text-align: center; max-width: 220px; }
.gs-gobtns { display: flex; gap: 10px; margin-top: 6px; }
.gs-go, .gs-stop { min-width: 96px; min-height: 52px; border-radius: 16px; font-size: 20px; font-weight: 900; color: #fff; }
.gs-go { background: linear-gradient(135deg, #FF4F7D, #FF9F0A); box-shadow: 0 6px 16px rgba(255,79,125,.45); }
.gs-stop { background: linear-gradient(135deg, #0A84FF, #5E5CE6); box-shadow: 0 6px 16px rgba(10,132,255,.45); }
/* 결과 */
.gs-res { position: absolute; inset: 0; z-index: 7; display: grid; place-items: center; background: rgba(8, 10, 24, .6); }
.gs-rescard { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 16px; border-radius: 22px; background: rgba(28,28,30,.96); min-width: 230px; max-width: 92%; box-shadow: 0 16px 40px rgba(0,0,0,.5); animation: miniIn .3s cubic-bezier(.2,1.5,.4,1); }
.gs-rescard img { width: 104px; animation: ekBounce .6s ease-in-out infinite; transform-origin: 50% 100%; }
.gs-rescard .big { font-size: 20px; font-weight: 900; text-align: center; }
.gs-parts { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.gs-parts span { font-size: 11.5px; padding: 2px 7px; border-radius: 8px; background: rgba(255,255,255,.1); }
.gs-parts .go { background: rgba(255,69,58,.25); color: #ff9f9a; }
.gs-pays { width: 100%; display: flex; flex-direction: column; gap: 3px; }
.gs-pay { display: flex; align-items: center; gap: 6px; font-size: 13px; padding: 4px 8px; border-radius: 10px; background: rgba(255,255,255,.06); }
.gs-pay i { font-style: normal; font-size: 10.5px; background: #FF453A; color: #fff; border-radius: 6px; padding: 0 5px; }
.gs-pay b { margin-left: auto; color: #ff8f8a; }
.gs-rescard .tot { font-size: 28px; color: #FFD60A; }
.gs-rescard .nx { font-size: 11px; color: var(--ink3); }
/* 낸 패·뒤집은 패 잠깐 크게 */
@keyframes gsFlip { 0% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -60%) scale(.9); } }
/* 🐰 에크크 외치기 */
.gs-ann { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 4px; animation: gsAnn 1.7s cubic-bezier(.2,1.4,.4,1) forwards; z-index: 9; }
.gs-ann img { width: 120px; filter: drop-shadow(0 8px 14px rgba(0,0,0,.5)); animation: ekDance2 .2s ease-in-out infinite alternate; }
.gs-bub { position: relative; padding: 10px 16px; border-radius: 20px; background: #fff; color: #1c1c1e; display: flex; flex-direction: column; align-items: center; box-shadow: 0 8px 20px rgba(0,0,0,.4); }
.gs-bub::before { content: ""; position: absolute; left: -9px; top: 50%; margin-top: -8px; border: 8px solid transparent; border-right-color: #fff; border-left: 0; }
.gs-bub b { font-size: 30px; font-weight: 900; white-space: nowrap; color: #FF2D55; }
.gs-bub small { font-size: 11px; color: #555; }
.gs-ann.k-go .gs-bub b { color: #FF9F0A; } .gs-ann.k-stop .gs-bub b { color: #0A84FF; } .gs-ann.k-ppeok .gs-bub b { color: #8a5cff; } .gs-ann.k-sweep .gs-bub b, .gs-ann.k-ttadak .gs-bub b { color: #30D158; }
.gs-ann i { position: absolute; left: 30%; top: 50%; font-style: normal; font-size: 22px; animation: hwBurst 1s ease-out forwards; }
@keyframes gsAnn { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.3); } 14% { opacity: 1; transform: translate(-50%, -50%) scale(1.12); } 24% { transform: translate(-50%, -50%) scale(1); } 82% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -62%) scale(.95); } }
@media (prefers-reduced-motion: reduce) { .gs-ann, .gs-grp.hit { animation-duration: .01s; } }
.gs-turnbar b { white-space: nowrap; flex: none; } .gs-turnbar span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* 투명도는 바깥에서만 (안쪽 3D 유지) */
@keyframes gsTtak { 0% { opacity: 0; transform: translate(-50%, -60%) scale(.3); } 40% { opacity: 1; transform: translate(-50%, -100%) scale(calc(var(--s) * 1.2)) rotate(-6deg); } 100% { opacity: 1; transform: translate(-50%, -100%) scale(var(--s)); } }
@keyframes gsShake { 0%, 100% { transform: none; } 20% { transform: translate(4px, -3px) rotate(.6deg); } 40% { transform: translate(-4px, 3px) rotate(-.6deg); } 60% { transform: translate(3px, 2px); } 80% { transform: translate(-2px, -2px); } }
/* 🧶 판 담요 6가지 */
.gs-mat-0 { background: radial-gradient(120% 120% at 50% 40%, #2c6e4a, #1a4a32 60%, #123624); }
.gs-mat-1 { background: repeating-linear-gradient(0deg, rgba(0,0,0,.08) 0 2px, transparent 2px 6px), repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 5px), radial-gradient(120% 120% at 50% 40%, #6b6a3a, #4d4c27 65%, #3a391c); }
.gs-mat-1::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 6px; background: repeating-linear-gradient(90deg, #c9b37a 0 10px, transparent 10px 14px); opacity: .45; border-radius: 3px; pointer-events: none; }
.gs-mat-2 { background: radial-gradient(circle at 20% 25%, #ffd1e6 0 7px, #ff6fae 7px 13px, transparent 14px), radial-gradient(circle at 75% 70%, #ffe7a3 0 6px, #ff8a5c 6px 12px, transparent 13px), radial-gradient(circle at 60% 20%, #fff 0 4px, #ff4f8b 4px 9px, transparent 10px), radial-gradient(circle at 30% 80%, #fff 0 4px, #c94cff 4px 9px, transparent 10px), linear-gradient(135deg, #b0124e, #7a0c39); background-size: 120px 110px, 130px 120px, 90px 100px, 110px 90px, auto; }
.gs-mat-3 { background: repeating-linear-gradient(0deg, rgba(20,30,90,.55) 0 14px, transparent 14px 28px), repeating-linear-gradient(90deg, rgba(20,30,90,.55) 0 14px, transparent 14px 28px), repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 2px, transparent 2px 5px), #b4213a; }
.gs-mat-4 { background: radial-gradient(ellipse 40px 18px at 20% 30%, rgba(255,255,255,.9), transparent 70%), radial-gradient(ellipse 54px 22px at 70% 25%, rgba(255,255,255,.85), transparent 70%), radial-gradient(ellipse 46px 20px at 45% 80%, rgba(255,255,255,.8), transparent 70%), radial-gradient(ellipse 36px 16px at 88% 75%, rgba(255,255,255,.8), transparent 70%), linear-gradient(180deg, #7cc4ff, #4a9ae8); }
.gs-mat-5 { background: radial-gradient(1.5px 1.5px at 10% 20%, #fff, transparent), radial-gradient(1.5px 1.5px at 30% 70%, #fff, transparent), radial-gradient(2px 2px at 55% 30%, #ffe9a3, transparent), radial-gradient(1.5px 1.5px at 80% 60%, #fff, transparent), radial-gradient(2px 2px at 90% 15%, #fff, transparent), radial-gradient(1.5px 1.5px at 45% 90%, #cfe3ff, transparent), radial-gradient(circle at 85% 80%, rgba(255,240,180,.25) 0 14px, transparent 30px), linear-gradient(180deg, #141a45, #0a0d26); background-size: 140px 90px, 120px 110px, 160px 100px, 130px 90px, 150px 120px, 110px 100px, auto, auto; }
.gs-mat-4 .gs-deck b, .gs-mat-2 .gs-deck b { text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.gs-matsw { position: absolute; right: 6px; top: 6px; width: 28px; height: 28px; border-radius: 50%; background: rgba(0,0,0,.35); font-size: 15px; z-index: 2; }
.gs-mats { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.gs-mats > span { font-size: 12px; color: var(--ink2); width: 100%; text-align: center; }
.gs-matb { display: flex; flex-direction: column; align-items: center; gap: 2px; background: none; padding: 2px; border-radius: 12px; }
.gs-matb i { display: block; position: relative; overflow: hidden; width: 38px; height: 28px; border-radius: 9px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.gs-matb small { font-size: 9.5px; color: var(--ink2); }
.gs-matb.on i { box-shadow: 0 0 0 2.5px #fff, 0 0 10px rgba(255,255,255,.6); }
.gs-matb.on small { color: #fff; font-weight: 700; }
.gs-matb:disabled { opacity: .85; }
/* 카드 위 세로 게이지 (꾹 누르는 동안) */
.gs-hc { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.gs-hc.charge { transform: translateY(-14px) scale(1.06); }
.gs-hc.charge .hc { box-shadow: 0 0 0 3px #FFD60A, 0 0 18px rgba(255,214,10,.8), 0 8px 14px rgba(0,0,0,.4); }
.gs-gaugev { position: absolute; transform: translate(-50%, -100%); width: 20px; height: 84px; border-radius: 10px; background: rgba(0,0,0,.55); box-shadow: 0 0 0 2px #fff, 0 6px 14px rgba(0,0,0,.5); z-index: 9; }
.gs-gaugev i { position: absolute; left: 3px; right: 3px; bottom: 3px; height: 0; max-height: calc(100% - 6px); border-radius: 7px; background: #30D158; }
.gs-gaugev s { position: absolute; left: -4px; right: -4px; bottom: 80%; height: 2px; background: #FFD60A; box-shadow: 0 0 6px #FFD60A; }
.gs-gaugev b { position: absolute; left: 50%; top: -24px; transform: translateX(-50%); font-size: 14px; font-weight: 900; color: #fff; white-space: nowrap; opacity: .6; }
.gs-gaugev.hot { box-shadow: 0 0 0 2px #FFD60A, 0 0 16px rgba(255,69,58,.8); }
.gs-gaugev.hot b { color: #FFD60A; opacity: 1; animation: gsHit .3s ease-in-out infinite; }

/* ═══ 🎴 고스톱 1인칭 장면 (v100): 담요를 비스듬히 내려다보고, 내 패는 왼쪽 아래 손에 부채꼴로 ═══ */
.gs-body.ingame { padding: 0; overflow-x: hidden; overflow-y: auto; container-type: size; }
.gs-scene { position: relative; flex: 1 0 auto; min-height: 300px; border-radius: 18px; overflow: hidden; box-shadow: inset 0 0 60px rgba(0,0,0,.55); }
.gs-mat-0 { background: radial-gradient(130% 90% at 50% 45%, rgba(255,255,255,.07), transparent 60%), repeating-linear-gradient(35deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px), repeating-linear-gradient(-35deg, rgba(0,0,0,.08) 0 1px, transparent 1px 3px), linear-gradient(180deg, #1a2550, #24326a 55%, #1c2858); }
.gs-mat-6 { background: radial-gradient(120% 120% at 50% 40%, #2c6e4a, #1a4a32 60%, #123624); }
/* 상대 (먼 쪽) */
.gs-scene .gs-top { position: absolute; left: 6px; right: 6px; top: 6px; z-index: 3; display: flex; gap: 6px; }
.gs-scene .gs-opp { background: rgba(10,14,34,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-color: rgba(255,255,255,.14); padding: 4px 6px; position: relative; }
.gs-scene .gs-av { width: 38px; height: 44px; }
.gs-ofan { position: relative; width: 44px; height: 34px; flex: none; }
.gs-ofan i { position: absolute; left: 50%; bottom: 0; width: 15px; height: 24px; margin-left: -7.5px; border-radius: 2px; background: repeating-linear-gradient(45deg, #c8102e 0 3px, #a80b22 3px 6px); box-shadow: 0 0 0 1px rgba(255,255,255,.5), 0 1px 2px rgba(0,0,0,.4); transform-origin: 50% 160%; transform: rotate(var(--a)); }
.gs-ofan small { position: absolute; right: -2px; bottom: -3px; font-size: 10px; font-weight: 800; background: #1c1c1e; border-radius: 7px; padding: 0 4px; z-index: 2; }
/* 판 (원근) */
.gs-scene { --top: 62px; } .gs-scene.p3 { --top: 86px; }
.gs-board { position: absolute; left: 0; right: 0; top: var(--top); height: calc(46% - var(--top) + 54px); perspective: 1200px; perspective-origin: 50% 0%; z-index: 1; }
.gs-plane { position: absolute; left: 6%; right: 6%; top: 6%; bottom: 4%; transform: rotateX(22deg); transform-origin: 50% 100%; }
.gs-scene .gs-deck { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-6deg); display: block; }
.gs-scene .gs-deck .hc { box-shadow: 1px 1px 0 #7a0a1b, 2px 2px 0 #fbf5e6, 3px 3px 0 #7a0a1b, 4px 4px 0 #fbf5e6, 5px 5px 0 #7a0a1b, 0 10px 14px rgba(0,0,0,.55); }
.gs-scene .gs-deck b { position: absolute; right: -10px; top: -8px; font-size: 10.5px; color: #fff; background: #1c1c1e; border-radius: 8px; padding: 0 5px; box-shadow: 0 0 0 1px rgba(255,255,255,.3); }
.gs-scene .gs-grp { position: absolute; display: block; width: 44px; height: 70px; transform: translate(-50%, -50%) rotate(var(--r)); }
.gs-tc { position: absolute; left: 0; top: 0; transform: translate(calc(var(--k) * 9px), calc(var(--k) * 5px)) rotate(calc(var(--k) * 7deg)); }
.gs-tc .hc { --w: 44px; box-shadow: 0 1px 0 rgba(0,0,0,.4), 0 6px 9px rgba(0,0,0,.45); }
.gs-scene .gs-grp.hit { filter: drop-shadow(0 0 6px #FFD60A) drop-shadow(0 0 2px #FFD60A); animation: none; }
.gs-scene .gs-grp.hit .gs-tc:first-child .hc { animation: gsHitB 1s ease-in-out infinite; }
@keyframes gsHitB { 50% { transform: translateY(-4px); } }
.gs-scene .gs-grp.ppeok::after { right: -16px; top: -10px; z-index: 3; }
.gs-scene .gs-empty { position: absolute; left: 50%; top: 80%; transform: translateX(-50%); white-space: nowrap; }
.gs-board.shake { animation: gsShake .28s linear; }
.gs-scene .gs-matsw { position: absolute; right: auto; left: 118px; top: calc(46% + 84px); bottom: auto; z-index: 3; }
/* 차례 안내 */
.gs-scene .gs-turnbar { position: absolute; left: 50%; top: calc(46% + 50px); transform: translateX(-50%); z-index: 4; padding: 4px 12px; border-radius: 99px; background: rgba(10,14,34,.7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); white-space: nowrap; max-width: 94%; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.gs-scene .gs-turnbar:empty { display: none; }
.gs-scene .gs-turnbar.me { box-shadow: 0 0 0 1.5px #FFD60A, 0 0 14px rgba(255,214,10,.45); }
.gs-scene .gs-turnbar em { margin-left: 6px; }
/* 내가 먹은 패: 오른쪽 아래 담요 위 */
.gs-scene .gs-mine { position: absolute; right: 6px; bottom: 8px; width: 34%; z-index: 2; display: flex; flex-direction: column-reverse; align-items: stretch; gap: 4px; padding: 6px; background: rgba(10,14,34,.35); border-color: rgba(255,255,255,.12); }
.gs-scene .gs-mycap { flex-direction: column; align-items: flex-start; gap: 3px; overflow: visible; min-height: 28px; }
.gs-scene .gs-cg .hc + .hc { margin-left: -12px; }
.gs-scene .gs-myscore { display: flex; align-items: flex-end; gap: 4px; position: relative; }
.gs-scene .gs-myscore img { width: 34px; margin: -10px 0 -2px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.4)); }
.gs-scene .gs-mine.turn .gs-myscore img { animation: ekBounce .9s ease-in-out infinite; transform-origin: 50% 100%; }
.gs-scene .gs-myscore b { font-size: 22px; } .gs-scene .gs-myscore .gs-gob { position: static; margin-left: auto; align-self: center; }
/* 내 손패: 왼쪽 아래 부채꼴 + 에크크 손 */
.gs-fan { position: absolute; left: 0; bottom: 0; width: 66%; height: 44%; z-index: 4; pointer-events: none; }
.gs-fanin { position: absolute; left: 50%; bottom: 34px; width: 0; height: 0; transform: rotate(8deg); }
.gs-fan .gs-hc { position: absolute; left: -29px; bottom: 0; width: 58px; height: 93px; padding: 0; border-radius: 6px; background: none; transform-origin: 50% 200%; transform: rotate(var(--a)); transition: transform .16s ease; pointer-events: auto; touch-action: none; }
.gs-fan .gs-hc .hc { --w: 58px; box-shadow: -2px 2px 6px rgba(0,0,0,.45); }
.gs-fan .gs-hc.sel { transform: rotate(var(--a)) translateY(-22px); }
.gs-fan .gs-hc.charge { transform: rotate(var(--a)) translateY(-26px) scale(1.04); }
.gs-fan .gs-hc.can:active { transform: rotate(var(--a)) translateY(-6px); }
.gs-fan .gs-hc:not(.can) { opacity: 1; }
.gs-fan:not(.my) .gs-hc .hc { filter: brightness(.88); }
.gs-paw { position: absolute; left: calc(50% - 54px); bottom: -14px; width: 104px; height: 54px; border-radius: 50% 50% 46% 46%; background: radial-gradient(circle at 42% 28%, #ffd0e3, #f7a1c4 60%, #ec82ae); box-shadow: inset 0 -5px 9px rgba(190,50,110,.3), 0 -2px 10px rgba(0,0,0,.35); z-index: 40; pointer-events: none; transform: rotate(8deg); }
.gs-thumb { position: absolute; left: calc(50% - 70px); bottom: 26px; width: 24px; height: 34px; border-radius: 48% 48% 44% 44%; background: radial-gradient(circle at 40% 28%, #ffd6e7, #f39bc0 72%); box-shadow: 0 2px 4px rgba(0,0,0,.3); z-index: 41; transform: rotate(-38deg); pointer-events: none; }
.gs-thumb::after { content: ""; position: absolute; left: 6px; top: 4px; width: 11px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.55); }
.gs-scene .gs-watchnote { position: absolute; left: 0; right: 0; bottom: 18px; }
.gs-scene .gs-quit { position: absolute; left: 6px; top: calc(46% + 86px); z-index: 3; background: rgba(10,14,34,.5); border-radius: 99px; color: var(--ink2); }
.gs-scene .gs-bossrow { flex-direction: row; }
.gs-scene .gs-addbot, .gs-scene .gs-waitb { background: rgba(10,14,34,.55); min-width: 56px; padding: 5px 6px; font-size: 14px; }

.gs-scene .gs-cg .hc { --w: 20px; }
.gs-scene .gs-cg .hc + .hc { margin-left: -13px; }
.gs-scene.p3 .gs-ofan { width: 34px; } .gs-scene.p3 .gs-ofan i { width: 12px; height: 19px; margin-left: -6px; }
/* 게임 칸이 낮을 때(폰·사람 줄 펼침): 카드를 줄여서 한 화면에 다 보이게 */
@container (max-height: 470px) {
  .gs-fan .gs-hc { width: 48px; height: 77px; left: -24px; } .gs-fan .gs-hc .hc { --w: 48px; }
  .gs-fanin { bottom: 26px; } .gs-paw { width: 88px; height: 46px; left: calc(50% - 46px); } .gs-thumb { width: 20px; height: 28px; bottom: 20px; left: calc(50% - 60px); }
  .gs-tc .hc { --w: 36px; } .gs-scene .gs-grp { width: 36px; height: 58px; }
  .gs-scene .gs-av { width: 32px; height: 36px; } .gs-scene .gs-opp { padding: 2px 5px; } .gs-scene { --top: 52px; } .gs-scene.p3 { --top: 74px; }
  .gs-scene .gs-mine { padding: 4px; } .gs-scene .gs-myscore b { font-size: 18px; } .gs-scene .gs-cg .hc { --w: 17px; }
}
@container (max-height: 370px) {
  .gs-fan .gs-hc { width: 40px; height: 64px; left: -20px; } .gs-fan .gs-hc .hc { --w: 40px; }
  .gs-fanin { bottom: 20px; } .gs-tc .hc { --w: 30px; } .gs-scene .gs-grp { width: 30px; height: 48px; }
  .gs-scene .gs-sum { display: none; } .gs-scene .gs-turnbar { font-size: 11px; padding: 2px 10px; }
}
/* 고스톱 대기실: 낮은 화면에서도 버튼까지 한눈에 */
.gs-lobby { gap: 8px; padding: 6px 4px 14px; }
.gs-seat { padding: 5px 4px; } .gs-seat img { width: 46px; }
.gs-btns { width: 100%; }
.gs-btns .btn { width: auto; flex: 1 1 40%; min-width: 120px; padding-top: 10px; padding-bottom: 10px; }
.gs-btns .btn.slim, .gs-btns .gs-wait { flex-basis: 100%; }

/* ═══ 🎢 v102 던지기: 롤러코스터 → 스냅 급강하 → 딱 / 쉼 / 손으로 슥 뒤집어 툭 ═══ */
.gs-hc.thrown { visibility: hidden; }
.gs-fly { position: absolute; left: 0; top: 0; width: 58px; height: 93px; offset-rotate: 0deg; offset-anchor: 50% 50%; z-index: 7; pointer-events: none; animation: gsFly var(--d) linear forwards; will-change: offset-distance, transform; }
.gs-fly .hc { --w: 58px; box-shadow: 0 14px 22px rgba(0,0,0,.5); }
@keyframes gsFly {
  0% { offset-distance: 0%; transform: perspective(700px) scale(var(--s0)) rotateX(0) rotate(0); animation-timing-function: cubic-bezier(.25,.85,.4,1); }
  40% { offset-distance: 44%; transform: perspective(700px) scale(var(--s1)) rotateX(-38deg) rotate(-14deg); }       /* 오르막 */
  54% { offset-distance: 53%; transform: perspective(700px) scale(calc(var(--s1) * 1.04)) rotateX(-52deg) rotate(-22deg); animation-timing-function: cubic-bezier(.8,0,1,.55); } /* 꼭대기에서 살짝 멈칫 */
  100% { offset-distance: 100%; transform: perspective(700px) scale(var(--s2)) rotateX(30deg) rotate(var(--rz)); }
}
.gs-fly.land .hc { animation: gsSquash .26s ease-out; }
@keyframes gsSquash { 0% { transform: scale(1.14, .82); } 55% { transform: scale(.97, 1.04); } 100% { transform: none; } }
/* 뒤집기: 더미에서 집어 들고 → 슥 → 툭 */
.gs-flipw { position: absolute; width: 0; height: 0; z-index: 7; pointer-events: none; opacity: 0; animation: gsOp2 var(--F) linear var(--del) forwards; }
@keyframes gsOp2 { 0% { opacity: 0; } 6%, 100% { opacity: 1; } }
.gs-flipc { position: absolute; left: -29px; top: -46px; width: 58px; height: 93px; transform-style: preserve-3d; animation: gsFlipT var(--F) linear var(--del) both; }
.gs-ff { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.gs-ff .hc { --w: 58px; box-shadow: 0 12px 18px rgba(0,0,0,.45); }
.gs-ff.fr { transform: rotateY(180deg); }
@keyframes gsFlipT {
  0% { transform: perspective(700px) scale(var(--sd)) rotateX(30deg) rotateY(0) rotate(-6deg); animation-timing-function: cubic-bezier(.3,.8,.4,1); }
  24% { transform: perspective(700px) translate(10px, -46px) scale(1.2) rotateX(0) rotateY(0) rotate(-10deg); animation-timing-function: cubic-bezier(.5,0,.3,1); }   /* 집어 들기 */
  50% { transform: perspective(700px) translate(16px, -60px) scale(1.28) rotateX(0) rotateY(180deg) rotate(8deg); }   /* 슥 뒤집기 */
  62% { transform: perspective(700px) translate(18px, -62px) scale(1.26) rotateX(-6deg) rotateY(180deg) rotate(10deg); animation-timing-function: cubic-bezier(.6,0,1,.6); }
  100% { transform: perspective(700px) translate(var(--dx), var(--dy)) scale(var(--s2)) rotateX(30deg) rotateY(180deg) rotate(var(--rz)); }
}
.gs-flipw.land .gs-flipc { animation: none; transform: perspective(700px) translate(var(--dx), var(--dy)) scale(var(--s2)) rotateX(30deg) rotateY(180deg) rotate(var(--rz)); }
.gs-fpaw { position: absolute; left: -16px; bottom: -14px; width: 46px; height: 32px; border-radius: 50%; background: radial-gradient(circle at 42% 28%, #ffd0e3, #f19bbf 65%); box-shadow: 0 3px 6px rgba(0,0,0,.3); transform: translateZ(2px); animation: gsPaw var(--F) linear var(--del) both; }
@keyframes gsPaw { 0%, 60% { opacity: 1; transform: translateZ(2px); } 72%, 100% { opacity: 0; transform: translate(-30px, 26px) translateZ(2px); } }
/* 착지 */
.gs-imp { position: absolute; width: 0; height: 0; z-index: 8; pointer-events: none; }
.gs-iring { position: absolute; left: -30px; top: -30px; width: 60px; height: 60px; border-radius: 50%; border: 4px solid rgba(255,255,255,.9); transform: scaleY(.62); animation: gsIring .5s ease-out forwards; }
.gs-imp.lv3 .gs-iring { border-color: #FFD60A; border-width: 6px; box-shadow: 0 0 16px #FFD60A; }
.gs-imp.lv0 .gs-iring { border-width: 2px; }
.gs-iring.r2 { animation-delay: .08s; border-color: #fff !important; border-width: 3px !important; }
@keyframes gsIring { 0% { opacity: 1; transform: scaleY(.62) scale(.3); } 100% { opacity: 0; transform: scaleY(.62) scale(var(--rs)); } }
.gs-ibits i { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: #fff6c2; box-shadow: 0 0 6px #FFD60A; animation: gsBit .5s ease-out forwards; }
.gs-imp.lv0 .gs-ibits i { background: rgba(255,255,255,.7); box-shadow: none; width: 4px; height: 4px; }
@keyframes gsBit { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scaleY(.62); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(var(--d) * -1)) scale(.4); } }
.gs-imp em { position: absolute; left: 0; top: -54px; transform: translateX(-50%) scale(var(--s)); font-style: normal; font-size: 28px; font-weight: 900; color: #FFD60A; -webkit-text-stroke: 2px #8a2a00; paint-order: stroke fill; white-space: nowrap; animation: gsItxt .7s cubic-bezier(.2,1.6,.4,1) forwards; }
.gs-imp.lv0 em, .gs-imp.lv1 em { color: #fff; -webkit-text-stroke: 2px #2b2f5c; }
@keyframes gsItxt { 0% { opacity: 0; transform: translateX(-50%) scale(calc(var(--s) * .4)); } 25% { opacity: 1; transform: translateX(-50%) scale(calc(var(--s) * 1.25)) rotate(-7deg); } 70% { opacity: 1; transform: translateX(-50%) scale(var(--s)) rotate(-5deg); } 100% { opacity: 0; transform: translateX(-50%) translateY(-10px) scale(var(--s)) rotate(-5deg); } }
.gs-flash { position: absolute; inset: 0; z-index: 9; pointer-events: none; background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.55), rgba(255,255,255,0) 65%); animation: gsFlash .26s ease-out forwards; }
@keyframes gsFlash { from { opacity: 1; } to { opacity: 0; } }
.gs-scene.shake { animation: gsShakeV .34s linear !important; }
@keyframes gsShakeV { 0%, 100% { transform: none; } 15% { transform: translate(calc(var(--sh) * -1), var(--sh)); } 35% { transform: translate(var(--sh), calc(var(--sh) * -.7)); } 55% { transform: translate(calc(var(--sh) * -.5), calc(var(--sh) * .4)); } 75% { transform: translate(calc(var(--sh) * .3), calc(var(--sh) * -.2)); } }
@media (prefers-reduced-motion: reduce) { .gs-scene.shake { animation: none; } }

/* ═══ v103: 고르고 → 맞출 패 톡 · 버리기 · 속도 ═══ */
.gs-scene .gs-grp.aimg { filter: drop-shadow(0 0 7px #4FE3FF) drop-shadow(0 0 2px #4FE3FF); z-index: 2; }
.gs-scene .gs-grp.aimg .gs-tc { cursor: pointer; transform: translate(calc(var(--k) * 30px), calc(var(--k) * 4px)) rotate(calc(var(--k) * 6deg)); transition: transform .18s; }
.gs-scene .gs-grp.aimg .gs-tc .hc { animation: gsAimB 0.9s ease-in-out infinite; }
.gs-scene .gs-grp.aimg .gs-tc.charge .hc { animation: none; box-shadow: 0 0 0 3px #FFD60A, 0 0 16px rgba(255,214,10,.8); }
@keyframes gsAimB { 50% { transform: translateY(-5px); box-shadow: 0 0 0 2px #4FE3FF, 0 8px 12px rgba(0,0,0,.45); } }
.gs-board.dump { cursor: pointer; }
.gs-board.dump::after { content: ""; position: absolute; inset: 8% 6% 4%; border: 2px dashed rgba(255,255,255,.35); border-radius: 22px; animation: gsDumpP 1.2s ease-in-out infinite; pointer-events: none; }
.gs-board.dump.charge::after { border-color: #FFD60A; }
@keyframes gsDumpP { 50% { border-color: rgba(255,255,255,.7); } }
.gs-scene .gs-spdsw { position: absolute; left: 84px; top: calc(46% + 84px); width: 28px; height: 28px; border-radius: 50%; background: rgba(0,0,0,.35); font-size: 13px; z-index: 3; }
.gs-spds { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.gs-spds > span { font-size: 12px; color: var(--ink2); }
.gs-spds .y-chip:disabled { opacity: .8; }
.gs-imp.lvd .gs-iring { border-color: rgba(190,170,140,.75); border-width: 3px; }
.gs-imp.lvd .gs-ibits i { background: rgba(200,185,160,.8); box-shadow: none; width: 5px; height: 5px; border-radius: 40%; }
.gs-imp.lvd em { color: #e8dcc8; -webkit-text-stroke: 2px #4a3a2a; }
/* 🌀 내 옆 에크크 (게이지 따라 돌고 뛰다가 내리침) */
.gs-thrower { position: absolute; right: 14px; top: calc(46% + 70px); width: 80px; height: 92px; z-index: 5; pointer-events: none; --pw: 0; }
.gs-thj { position: absolute; left: 0; right: 0; bottom: 6px; height: 92px; transform-origin: 88% 100%; display: block; }
.gs-thi { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 3px 4px rgba(0,0,0,.4)); }
.gs-thsh { position: absolute; left: 18%; right: 18%; bottom: 0; height: 10px; border-radius: 50%; background: rgba(0,0,0,.35); filter: blur(2px); }
.gs-thrower:not(.ch):not(.slam) .gs-thj { animation: ekBounce 1.6s ease-in-out infinite; }
.gs-thrower.ch .gs-thsh { transform: scale(calc(1 + var(--pw) * .8)); }
/* 💢 변신 단계: 화남 → 불꽃 → 폭주 */
.gs-thrower.ch .gs-thi { filter: drop-shadow(0 0 calc(var(--pw) * 10px) rgba(255, 60, 20, calc(var(--pw) * 1.2))) saturate(calc(1 + var(--pw))) hue-rotate(calc(var(--pw) * -18deg)); }
.gs-thrower.hot .gs-thi { filter: drop-shadow(0 0 10px #FFD60A) drop-shadow(0 0 22px #ff3b00) saturate(2) brightness(1.08); }
.gs-aura { position: absolute; left: 50%; bottom: 0; width: 150px; height: 150px; margin-left: -75px; border-radius: 50%; opacity: 0; pointer-events: none; transform-origin: 50% 70%; background: conic-gradient(from 0deg, transparent, rgba(255,80,0,.75), transparent 20%, rgba(255,210,0,.7), transparent 40%, rgba(255,40,40,.75), transparent 60%, rgba(255,160,0,.7), transparent 80%); -webkit-mask: radial-gradient(circle, transparent 28%, #000 32%, #000 58%, transparent 70%); mask: radial-gradient(circle, transparent 28%, #000 32%, #000 58%, transparent 70%); filter: blur(2px); }
.gs-aura.a2 { width: 190px; height: 190px; margin-left: -95px; animation-direction: reverse !important; filter: blur(5px); }
.gs-thrower.rage .gs-aura { opacity: calc((var(--pw) - .4) * 1.6); transform: scale(calc(.6 + var(--pw) * .8)) translateY(-20px); animation: gsAuraR .5s linear infinite; }
.gs-thrower.hot .gs-aura { animation-duration: .22s; }
@keyframes gsAuraR { to { rotate: 360deg; } }
.gs-angr { position: absolute; font-size: 18px; opacity: 0; pointer-events: none; }
.gs-angr { right: -2px; top: 6px; } .gs-angr.b2 { left: 2px; top: 18px; font-size: 14px; } .gs-angr.b3 { right: 18px; top: -10px; font-size: 22px; }
.gs-thrower.rage .gs-angr { animation: gsAngr .42s ease-in-out infinite alternate; }
.gs-thrower.rage .gs-angr.b2 { animation-delay: .15s; } .gs-thrower.hot .gs-angr.b3 { animation-delay: .07s; }
.gs-thrower:not(.hot) .gs-angr.b3 { display: none; }
@keyframes gsAngr { from { opacity: .3; transform: scale(.7) rotate(-10deg); } to { opacity: 1; transform: scale(1.25) rotate(8deg); } }
.gs-bolt { position: absolute; font-style: normal; font-size: 20px; opacity: 0; pointer-events: none; filter: drop-shadow(0 0 6px #FFD60A); }
.gs-bolt { left: -14px; top: 20px; } .gs-bolt.b2 { right: -16px; top: 40px; } .gs-bolt.b3 { left: 30%; bottom: -6px; font-size: 24px; }
.gs-thrower.hot .gs-bolt { animation: gsBolt .16s steps(2) infinite; }
.gs-thrower.hot .gs-bolt.b2 { animation-delay: .08s; } .gs-thrower.hot .gs-bolt.b3 { animation: gsFire .3s ease-in-out infinite alternate; }
@keyframes gsBolt { 0% { opacity: 1; transform: scale(1.2) rotate(-12deg); } 100% { opacity: .2; transform: scale(.8) rotate(10deg); } }
@keyframes gsFire { from { opacity: .7; transform: scale(.9) translateY(0); } to { opacity: 1; transform: scale(1.3) translateY(-6px); } }
/* 화면 전체: 붉게 달아오름 + 꽉 차면 부르르 */
.gs-scene.ragex::after { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; background: radial-gradient(ellipse at 78% 78%, rgba(255,90,0,calc(var(--pw) * .28)), transparent 45%), radial-gradient(120% 100% at 50% 50%, transparent 55%, rgba(200,0,30,calc((var(--pw) - .3) * .7))); animation: gsRageP .3s ease-in-out infinite alternate; }
@keyframes gsRageP { to { opacity: .75; } }
.gs-scene.quake { animation: gsQuake .09s linear infinite; }
@keyframes gsQuake { 0% { transform: translate(1.5px, -1px); } 50% { transform: translate(-1.5px, 1px); } 100% { transform: translate(1px, 1.5px); } }
/* 떼는 순간: 크게 점프 → 돌며 쾅 */
.gs-thrower.slam .gs-thj { animation: gsEkSlamA .7s cubic-bezier(.3,.7,.4,1) both; }
@keyframes gsEkSlamA {
  0% { transform: translateY(0) scale(calc(1.2 + var(--pw) * .9), calc(.75 + var(--pw) * .6)); }
  36% { transform: translate(calc(var(--pw) * -40px), calc(var(--jh) * -1)) scale(calc(1.2 + var(--pw) * .9)) rotateY(calc(var(--sp) * .8)) rotate(-14deg); }
  58% { transform: translate(calc(var(--pw) * -30px), calc(var(--jh) * -.3)) scale(calc(1.25 + var(--pw) * .9)) rotateY(var(--sp)) rotate(18deg); animation-timing-function: cubic-bezier(.7,0,1,.5); }
  70% { transform: translateY(0) scale(calc(1.45 + var(--pw) * .7), calc(.7 + var(--pw) * .2)) rotateY(var(--sp)) rotate(4deg); }
  85% { transform: translateY(-6px) scale(.95, 1.08) rotateY(var(--sp)); }
  100% { transform: translateY(0) scale(1) rotateY(var(--sp)); }
}
.gs-thrower.slam::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 80px; height: 22px; margin-left: -40px; border-radius: 50%; border: 3px solid rgba(255,255,255,.85); opacity: 0; animation: gsEkRing .7s ease-out both; }
.gs-thrower.rageo::after { border-color: #ff5a1f; border-width: 5px; box-shadow: 0 0 18px #ff3b00; }
@keyframes gsEkRing { 0%, 66% { opacity: 0; transform: scale(.4); } 70% { opacity: 1; } 100% { opacity: 0; transform: scale(calc(1.6 + var(--pw) * 2)); } }
.gs-thrower.rageo .gs-thi { filter: drop-shadow(0 0 14px #ff3b00) saturate(1.8); }
.gs-scene .gs-mycap { flex-direction: row; flex-wrap: wrap; align-items: flex-end; }
.gs-scene .gs-mine { max-height: calc(54% - 176px); overflow: hidden; }
@container (max-height: 470px) { .gs-thrower { width: 60px; height: 70px; top: calc(46% + 62px); } .gs-thj { height: 70px; } .gs-scene .gs-mine { max-height: calc(54% - 140px); } }
@media (prefers-reduced-motion: reduce) { .gs-thrower .gs-thj { animation: none !important; } }
/* 🎮 효과음 볼륨 */
.gs-scene .gs-volsw { position: absolute; left: 152px; top: calc(46% + 84px); width: 28px; height: 28px; border-radius: 50%; background: rgba(0,0,0,.35); font-size: 13px; z-index: 6; }
/* 🤝 팀플 */
.gs-mates { font-size: 10.5px; color: #9fe8ff !important; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-mate { margin-top: 2px; font-size: 11px; padding: 3px 8px; border-radius: 99px; background: rgba(79,227,255,.18); color: #bff3ff; border: 1px solid rgba(79,227,255,.45); white-space: nowrap; }
.gs-note.team { color: #9fe8ff; font-size: 11.5px; }
.gs-matec { font-style: normal; font-size: 10px; margin-left: 4px; padding: 0 5px; border-radius: 8px; background: rgba(79,227,255,.2); color: #bff3ff; }
.gs-myteam { display: flex; flex-wrap: wrap; gap: 3px; font-size: 10.5px; color: #9fe8ff; }
.gs-myteam span { padding: 0 5px; border-radius: 6px; background: rgba(79,227,255,.15); }
.gs-myteam span.off { opacity: .45; }
.gs-matebtns { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 6px; }
.gs-scene .gs-watchnote { z-index: 6; }

/* ⛶ 고스톱 크게 보기 (게임 중 기본) */
body.gs-full { overflow: hidden; }
body.gs-full #gs { position: fixed; z-index: 800; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 520px; height: auto; padding: calc(env(safe-area-inset-top) + 6px) 6px calc(env(safe-area-inset-bottom) + 6px); box-sizing: border-box; background: #0b0f22; }
body.gs-full #gs .gs-scene { border-radius: 20px; }
.gs-scene .gs-fullsw, .gs-scene .gs-micsw { position: absolute; top: calc(46% + 84px); width: 28px; height: 28px; border-radius: 50%; background: rgba(0,0,0,.35); font-size: 13px; z-index: 6; }
.gs-scene .gs-fullsw { left: 186px; } .gs-scene .gs-micsw { left: 220px; }
.gs-scene .gs-micsw.on { background: rgba(48,209,88,.35); box-shadow: 0 0 0 1px #30D158; }
/* 큰 판: 깔린 패·손패·에크크 크게 */
@container (min-height: 560px) {
  .gs-tc .hc { --w: 56px; } .gs-scene .gs-grp { width: 56px; height: 90px; }
  .gs-fan .gs-hc { width: 64px; height: 102px; left: -32px; } .gs-fan .gs-hc .hc { --w: 64px; }
  .gs-fanin { bottom: 40px; } .gs-fan { width: 70%; } .gs-scene .gs-mine { width: 30%; } .gs-paw { width: 124px; height: 62px; left: calc(50% - 64px); } .gs-thumb { width: 28px; height: 40px; bottom: 30px; left: calc(50% - 84px); }
  .gs-thrower { width: 100px; height: 116px; } .gs-thj { height: 116px; }
  .gs-scene .gs-cg .hc { --w: 24px; } .gs-scene .gs-mine { max-height: calc(54% - 200px); }
  .gs-scene .gs-av { width: 44px; height: 52px; }
  .gs-scene .gs-turnbar { font-size: 13px; padding: 5px 14px; }
}
@container (min-height: 700px) {
  .gs-tc .hc { --w: 64px; } .gs-scene .gs-grp { width: 64px; height: 102px; }
  .gs-fan .gs-hc { width: 70px; height: 112px; left: -35px; } .gs-fan .gs-hc .hc { --w: 70px; } .gs-fanin { bottom: 54px; }
}
/* 🧶 게임 시작: 둘둘 말린 담요가 위에서 아래로 촤르륵 펴짐 → 패가 착착 깔림 */
.gs-roll { display: none; }
.gs-scene.unroll { animation: gsUnrollBg 1s cubic-bezier(.45,.05,.3,1) both; }
@keyframes gsUnrollBg { from { clip-path: inset(0 0 100% 0 round 18px); } to { clip-path: inset(0 0 0 0 round 18px); } }
.gs-scene.unroll .gs-roll { display: block; position: absolute; left: -2%; right: -2%; height: 46px; top: 0; z-index: 20; pointer-events: none; border-radius: 23px; background: inherit; background-size: 100% 46px; box-shadow: inset 0 14px 14px rgba(255,255,255,.18), inset 0 -16px 16px rgba(0,0,0,.55), 0 10px 18px rgba(0,0,0,.55); animation: gsRollDown 1s cubic-bezier(.45,.05,.3,1) both; }
.gs-scene.unroll .gs-roll::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: repeating-linear-gradient(0deg, rgba(255,255,255,.08) 0 3px, rgba(0,0,0,.18) 3px 7px); }
@keyframes gsRollDown { 0% { top: -10px; transform: scaleY(1.25); } 90% { opacity: 1; } 100% { top: calc(100% - 30px); transform: scaleY(.7); opacity: 0; } }
.gs-scene.unroll .gs-tc, .gs-scene.unroll .gs-deck, .gs-scene.unroll .gs-fan .gs-hc { animation: gsDealIn .35s cubic-bezier(.3,1.5,.5,1) both; }
.gs-scene.unroll .gs-deck { animation-delay: .95s; }
.gs-scene.unroll .gs-grp:nth-child(2) .gs-tc { animation-delay: 1.02s; } .gs-scene.unroll .gs-grp:nth-child(3) .gs-tc { animation-delay: 1.08s; } .gs-scene.unroll .gs-grp:nth-child(4) .gs-tc { animation-delay: 1.14s; }
.gs-scene.unroll .gs-grp:nth-child(5) .gs-tc { animation-delay: 1.2s; } .gs-scene.unroll .gs-grp:nth-child(6) .gs-tc { animation-delay: 1.26s; } .gs-scene.unroll .gs-grp:nth-child(n+7) .gs-tc { animation-delay: 1.32s; }
.gs-scene.unroll .gs-fan .gs-hc { animation-name: gsHandIn; animation-delay: 1.1s; }
@keyframes gsDealIn { from { opacity: 0; transform: translateY(-30px) scale(1.4) rotate(-12deg); } }
@keyframes gsHandIn { from { opacity: 0; transform: rotate(0deg) translateY(60px); } }

/* 🧶 담요 채도 낮추기: 화투장이 더 잘 보이게 (담요 그림 위에만 깔리는 막) */
.gs-matfx { position: absolute; inset: 0; z-index: 0; pointer-events: none; -webkit-backdrop-filter: saturate(.42) brightness(.82) contrast(.9); backdrop-filter: saturate(.42) brightness(.82) contrast(.9); background: rgba(20, 22, 30, .12); }
.gs-matb i { filter: saturate(.42) brightness(.85); }

/* ✕ 그만하기: 오른쪽 위에 툭 튀어나온 빨간 알약 */
.gs-scene .gs-quit { position: absolute; left: auto; right: 8px; top: 8px; z-index: 9; display: inline-flex; align-items: center; gap: 5px; padding: 7px 13px 7px 8px; border-radius: 99px; font-size: 13px; font-weight: 800; color: #fff; background: linear-gradient(180deg, #ff6b7d, #e2304a); box-shadow: 0 4px 0 #9e1830, 0 8px 16px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.45); transform: translateY(-2px); transition: transform .12s, box-shadow .12s; }
.gs-scene .gs-quit i { font-style: normal; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.25); font-size: 12px; }
.gs-scene .gs-quit:active { transform: translateY(2px); box-shadow: 0 1px 0 #9e1830, 0 3px 8px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.45); }
.gs-scene .gs-quit.arm { background: linear-gradient(180deg, #ffd60a, #ff9f0a); color: #3a1a00; box-shadow: 0 4px 0 #b36b00, 0 8px 16px rgba(0,0,0,.45); animation: gsQuitShake .35s ease-in-out infinite; }
@keyframes gsQuitShake { 0%, 100% { transform: translateY(-2px) rotate(0); } 25% { transform: translateY(-2px) rotate(-3deg); } 75% { transform: translateY(-2px) rotate(3deg); } }
.gs-scene.boss .gs-top { right: 112px; }

.hc-ek.hc-hero { position: absolute; right: auto; filter: drop-shadow(0 1px 1.5px rgba(0,0,0,.35)); }

/* 🪙 쌍피 표시: 입체 금화 */
.hc-2 { position: absolute; left: 8%; bottom: 6%; width: calc(var(--w) * .34); height: calc(var(--w) * .34); border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: calc(var(--w) * .22); color: #7a4a00;
  background: radial-gradient(circle at 35% 30%, #fff6c4 0 18%, #ffd447 38%, #e8a514 70%, #b97a06 100%);
  box-shadow: 0 calc(var(--w) * .03) 0 #8a5a00, 0 calc(var(--w) * .05) calc(var(--w) * .06) rgba(0,0,0,.45), inset 0 0 0 calc(var(--w) * .02) #fff1b0, inset 0 calc(var(--w) * -.03) calc(var(--w) * .04) rgba(150,90,0,.6);
  text-shadow: 0 1px 0 #fff3b8, 0 -1px 0 rgba(120,70,0,.5); }
.hc.xs .hc-2 { display: none; }
/* 🎁 보너스 패 (귀엽게) */
.hc.bonus { background: linear-gradient(160deg, #ffd1e8 0%, #ffe9a8 45%, #c9f0ff 100%); box-shadow: inset 0 0 0 calc(var(--w) * .08) #ff5fa2, inset 0 0 0 calc(var(--w) * .1) #fff, 0 2px 0 rgba(140,20,80,.45), 0 4px 10px rgba(255,95,162,.5); }
.hc-bsp { position: absolute; inset: 0; background: radial-gradient(circle at 20% 22%, #fff 0 4%, transparent 5%), radial-gradient(circle at 78% 30%, #fff 0 3%, transparent 4%), radial-gradient(circle at 30% 70%, #fff 0 2.5%, transparent 3.5%), radial-gradient(circle at 80% 76%, #fff 0 3.5%, transparent 4.5%); animation: hcTw 1.6s ease-in-out infinite alternate; }
@keyframes hcTw { to { opacity: .35; } }
.hc-bek2 { position: absolute; left: 50%; top: 12%; width: 82%; transform: translateX(-50%); filter: drop-shadow(0 2px 2px rgba(0,0,0,.25)); }
.hc-coin { position: absolute; left: 50%; bottom: 13%; transform: translateX(-50%); width: calc(var(--w) * .58); height: calc(var(--w) * .58); border-radius: 50%; display: grid; place-items: center; line-height: .9;
  background: radial-gradient(circle at 35% 30%, #fff8cf 0 16%, #ffd447 40%, #eaa514 72%, #b97a06 100%); box-shadow: 0 calc(var(--w) * .045) 0 #8a5a00, 0 calc(var(--w) * .07) calc(var(--w) * .08) rgba(0,0,0,.35), inset 0 0 0 calc(var(--w) * .03) #fff1b0; }
.hc-coin em { font-style: normal; font-weight: 900; font-size: calc(var(--w) * .34); color: #8a4f00; text-shadow: 0 1px 0 #fff3b8, 0 -1px 0 rgba(120,70,0,.5); }
.hc-coin small { font-size: calc(var(--w) * .12); font-weight: 900; color: #8a4f00; }
.hc.bonus.b3 .hc-coin { background: radial-gradient(circle at 35% 30%, #ffe6f3 0 16%, #ff9cc8 40%, #ff5fa2 72%, #c2337a 100%); box-shadow: 0 calc(var(--w) * .045) 0 #8a1f53, 0 calc(var(--w) * .07) calc(var(--w) * .08) rgba(0,0,0,.35), inset 0 0 0 calc(var(--w) * .03) #ffd6ea; }
.hc.bonus.b3 .hc-coin em, .hc.bonus.b3 .hc-coin small { color: #fff; text-shadow: 0 1px 0 #c2337a; }
.hc-btag { position: absolute; left: 50%; bottom: 3.5%; transform: translateX(-50%); font-size: calc(var(--w) * .12); font-weight: 900; letter-spacing: .05em; color: #fff; background: #ff5fa2; border-radius: 99px; padding: 0 .5em; white-space: nowrap; }
.hc.xs.bonus .hc-btag, .hc.xs.bonus .hc-bek2 { display: none; } .hc.xs.bonus .hc-coin { bottom: 30%; }
.gs-bonusfx { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 9; pointer-events: none; animation: gsBonusA 1.3s cubic-bezier(.3,1.5,.5,1) forwards; }
.gs-bonusfx .hc { --w: 84px; }
.gs-bonusfx i { position: absolute; left: 50%; top: 50%; font-style: normal; font-size: 22px; animation: gsBonusS 1.1s ease-out forwards; }
.gs-bonusfx i:nth-of-type(1) { --x: -70px; --y: -60px; } .gs-bonusfx i:nth-of-type(2) { --x: 70px; --y: -50px; } .gs-bonusfx i:nth-of-type(3) { --x: -60px; --y: 60px; } .gs-bonusfx i:nth-of-type(4) { --x: 66px; --y: 64px; }
@keyframes gsBonusA { 0% { transform: translate(-50%, 40%) scale(.3) rotate(-20deg); opacity: 0; } 25% { transform: translate(-50%, -50%) scale(1.15) rotate(6deg); opacity: 1; } 70% { transform: translate(-50%, -50%) scale(1) rotate(0); opacity: 1; } 100% { transform: translate(60%, 120%) scale(.25); opacity: 0; } }
@keyframes gsBonusS { from { transform: translate(-50%, -50%) scale(.3); opacity: 1; } to { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1.2); opacity: 0; } }
/* 카드 조금 더 크게 */
.gs-tc .hc { --w: 48px; } .gs-scene .gs-grp { width: 48px; height: 77px; }
@container (min-height: 560px) { .gs-tc .hc { --w: 60px; } .gs-scene .gs-grp { width: 60px; height: 96px; } }
@container (min-height: 700px) { .gs-tc .hc { --w: 70px; } .gs-scene .gs-grp { width: 70px; height: 112px; } .gs-fan .gs-hc { width: 74px; height: 118px; left: -37px; } .gs-fan .gs-hc .hc { --w: 74px; } }
@container (max-height: 470px) { .gs-tc .hc { --w: 40px; } .gs-scene .gs-grp { width: 40px; height: 64px; } }
@container (max-height: 370px) { .gs-tc .hc { --w: 33px; } .gs-scene .gs-grp { width: 33px; height: 53px; } }
/* 🎴 화투장 종이 느낌 (살짝 입체): 위는 빛, 아래는 그늘 + 얇은 하이라이트 */
.hc:not(.back):not(.bonus)::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: linear-gradient(160deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 32%, rgba(0,0,0,0) 70%, rgba(0,0,0,.12) 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -1px 0 rgba(0,0,0,.2); }
.hc { box-shadow: 0 2px 0 #9e1608, 0 5px 10px rgba(0,0,0,.35); }
/* ✂️ 종이공예 화투 (skin 1): 도톰한 빨간 종이 + 오려 붙인 조각 + 종이 인형 같은 에크크 */
.skin-paper .hc:not(.bonus), .gs-skinb.sk1 .hc { border-radius: calc(var(--w) * .12); background: #d9242e; box-shadow: 0 1px 0 #b81d26, 0 2px 0 #a3171f, 0 3px 0 #b81d26, 0 4px 0 #8d131b, 0 6px 10px rgba(40,10,0,.45); }
.skin-paper .hc:not(.bonus)::after, .gs-skinb.sk1 .hc::after { background: linear-gradient(160deg, rgba(255,255,255,.18), rgba(255,255,255,0) 40%, rgba(60,10,0,.1)); }
.skin-paper .hc-ek, .gs-skinb.sk1 .hc-ek { filter: saturate(.85) brightness(1.04) drop-shadow(1.5px 0 0 #fff) drop-shadow(-1.5px 0 0 #fff) drop-shadow(0 1.5px 0 #fff) drop-shadow(0 -1.5px 0 #fff) drop-shadow(0 3px 2px rgba(60,20,0,.5)); }
.skin-paper .hc-svg, .gs-skinb.sk1 .hc-svg { filter: saturate(.92) contrast(1.02); }
.skin-paper .hc.back { background: #a81b27; }
.skin-paper .hc.back .hc-svg rect { fill: #a81b27; }
.skin-paper .hc.back::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: repeating-linear-gradient(35deg, rgba(255,255,255,.04) 0 1px, transparent 1px 3px), repeating-linear-gradient(-35deg, rgba(0,0,0,.05) 0 1px, transparent 1px 3px); }
.skin-paper .gs-mat-0, .skin-paper .gs-scene { }
.gs-skins { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.gs-skins > span { font-size: 12px; color: var(--ink2); width: 100%; text-align: center; }
.gs-skinb { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1.5px solid transparent; }
.gs-skinb.on { border-color: #fff; background: rgba(255,255,255,.14); }
.gs-skinb small { font-size: 11px; color: var(--ink2); } .gs-skinb.on small { color: #fff; font-weight: 700; }
.gs-skprev { display: flex; gap: 4px; } .gs-skprev .hc { --w: 34px; }
.gs-skinb:disabled { opacity: .85; }

/* 🧧 보너스: 복주머니 든 에크크가 크게 · 금화는 오른쪽 위 작게 */
.hc.bonus .hc-bek2 { top: 4%; width: 100%; }
.hc.bonus .hc-coin { left: auto; right: 6%; top: 6%; bottom: auto; transform: none; width: calc(var(--w) * .38); height: calc(var(--w) * .38); }
.hc.bonus .hc-coin em { font-size: calc(var(--w) * .22); } .hc.bonus .hc-coin small { display: none; }
/* 쌍피 숫자 표시·보너스 숫자 금화 숨김 (그림만으로) */
.hc .hc-2, .hc.bonus .hc-coin { display: none !important; }
.hc.bonus .hc-bek2 { top: 6%; width: 96%; left: 50%; transform: translateX(-50%); }
.gs-scene .gs-quit { touch-action: manipulation; }

/* 🔋 배터리 아끼기 (v129): 계속 도는 장식 애니를 줄이고, 움직이는 건 GPU 층으로만 */
.gs-seat.on img { animation-iteration-count: 3; }                       /* 대기실 에크크: 3번 통통 후 멈춤 */
.gs-thrower:not(.my):not(.ch):not(.slam) .gs-thj { animation: none; }   /* 옆 에크크: 내 차례일 때만 통통 */
.gs-thrower .gs-thj, .gs-av img, .gs-myscore img, .gs-seat img, .gs-gocard img, .gs-rescard img, .gs-ann img, .gs-tc .hc, .gs-fan .gs-hc, .gs-fly, .gs-flipc, .gs-aura { will-change: transform; }
.gs-scene .gs-grp.hit { filter: none; } .gs-scene .gs-grp.hit .gs-tc .hc { box-shadow: 0 0 0 2px #FFD60A, 0 0 10px rgba(255,214,10,.75); }
.gs-scene .gs-grp.aimg { filter: none; } .gs-scene .gs-grp.aimg .gs-tc .hc { box-shadow: 0 0 0 2px #4FE3FF, 0 0 10px rgba(79,227,255,.8); }
@keyframes gsAimB { 50% { transform: translateY(-5px); } }
.hc-bsp { animation-iteration-count: 4 !important; }
.gs-fan:not(.my) .gs-hc .hc { filter: none; opacity: .9; }
@media (prefers-reduced-motion: reduce) { .gs-scene *, .gs-scene *::before, .gs-scene *::after { animation-iteration-count: 1 !important; } }
.gs-gaugev i { height: calc(100% - 6px); transform: scaleY(0); transform-origin: 50% 100%; will-change: transform; }
.gs-aura, .gs-aura.a2 { filter: none !important; }
/* 맞출 패 반짝임 없앰 (v130) — 고른 뒤엔 같은 달 패가 살짝 벌어지는 것만 */
.gs-scene .gs-grp.hit, .gs-scene .gs-grp.aimg { filter: none !important; }
.gs-scene .gs-grp.hit .gs-tc .hc, .gs-scene .gs-grp.aimg .gs-tc .hc { animation: none !important; box-shadow: 0 1px 0 rgba(0,0,0,.4), 0 6px 9px rgba(0,0,0,.45) !important; }
.gs-grp.hit { animation: none !important; }
/* 👤 개인 / 🔇 팀플(MUTE 모드) */
.gs-modes { display: flex; gap: 8px; width: 100%; max-width: 380px; }
.gs-modeb { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 10px 8px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1.5px solid rgba(255,255,255,.15); color: var(--ink); font-size: 13.5px; font-weight: 700; }
.gs-modeb b { font-size: 10.5px; font-weight: 800; letter-spacing: .02em; padding: 1px 6px; border-radius: 99px; background: rgba(255,69,58,.2); color: #ff8a80; }
.gs-modeb.on { border-color: #fff; background: rgba(255,255,255,.16); }
.gs-modeb:disabled { opacity: .85; }
.gs-micoff { flex: none; color: #ff6b61; }
.gs-mutenote { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: #ffb3ad; max-width: 380px; line-height: 1.45; }
.gs-mutetag { font-size: 10.5px; font-weight: 800; color: #fff; background: #ff453a; border-radius: 99px; padding: 1px 7px; align-self: flex-start; }

/* v132 · 고스톱 대기실: 개인/팀 + MUTE 스위치(?) + 설정 한 판에 (화투 스타일 → 담요 → 속도 → 에크크) */
.gs-muterow { display: flex; gap: 8px; width: 100%; max-width: 380px; align-items: stretch; }
.gs-mutesw { flex: 1; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1.5px solid rgba(255,255,255,.14); color: var(--ink); font-size: 13px; }
.gs-mutesw b { font-weight: 800; letter-spacing: .02em; }
.gs-mutesw em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 800; color: var(--ink2); }
.gs-sw { width: 34px; height: 20px; border-radius: 99px; background: rgba(255,255,255,.18); position: relative; flex: none; transition: background .2s; }
.gs-sw > i { position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.gs-mutesw.on { border-color: #ff453a; background: rgba(255,69,58,.16); }
.gs-mutesw.on .gs-sw { background: #ff453a; } .gs-mutesw.on .gs-sw > i { transform: translateX(14px); }
.gs-mutesw.on em { color: #ff8a80; }
.gs-mutesw:disabled { opacity: .85; }
.gs-q { width: 42px; flex: none; border-radius: 14px; background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.18); color: #fff; font-size: 17px; font-weight: 900; }
.gs-q.on { background: #fff; color: #111; }
.gs-mutenote { align-items: flex-start; padding: 9px 11px; border-radius: 12px; background: rgba(255,69,58,.1); border: 1px solid rgba(255,69,58,.3); width: 100%; box-sizing: border-box; }
.gs-mutenote small { color: var(--ink2); }
.gs-opts { width: 100%; max-width: 420px; box-sizing: border-box; display: flex; flex-direction: column; gap: 7px; padding: 10px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.gs-opt { display: flex !important; flex-wrap: nowrap !important; align-items: center; gap: 8px; justify-content: flex-start !important; }
.gs-opt > span { flex: none; width: 74px !important; text-align: left !important; font-size: 12px; color: var(--ink2); white-space: nowrap; }
.gs-optv { flex: 1; min-width: 0; display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.gs-opts .gs-skinb { flex-direction: row; padding: 4px 8px; gap: 6px; }
.gs-opts .gs-skprev .hc { --w: 22px; }
.gs-opts .gs-matb i { width: 30px; height: 22px; border-radius: 7px; }
.gs-opts .gs-matb small { display: none; }
.gs-opts .gs-matb { padding: 1px; }
.gs-opts .gs-spds .y-chip { padding: 5px 9px; font-size: 12px; }
.gs-seat img { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.gs-eksheet { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.6); display: flex; align-items: flex-end; justify-content: center; }
.gs-ekcard { width: 100%; max-width: 440px; box-sizing: border-box; background: #1c1a24; border-radius: 22px 22px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; animation: gsEkUp .25s ease-out; }
@keyframes gsEkUp { from { transform: translateY(40px); opacity: 0; } }
.gs-ekgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gs-eko { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1.5px solid transparent; color: var(--ink2); font-size: 11px; }
.gs-eko img { width: 64px; height: 64px; object-fit: contain; }
.gs-eko.on { border-color: #ff8fc8; background: rgba(255,143,200,.14); color: #fff; font-weight: 700; }
.gs-ekcols { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .gs-ekcols span { font-size: 12px; color: var(--ink2); }
.gs-ekc { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255,255,255,.2); }
.gs-ekc.none { background: rgba(255,255,255,.08); color: var(--ink2); font-size: 12px; }
.gs-ekc.on { border-color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
.gs-opt > span { width: 62px !important; font-size: 11.5px; }
.gs-opts .gs-optv { flex-wrap: nowrap; gap: 4px; }
.gs-opts .gs-skinb { flex: 1; min-width: 0; flex-direction: column; padding: 4px 4px 3px; gap: 2px; }
.gs-opts .gs-skinb small { font-size: 10.5px; white-space: nowrap; }
.gs-opts .gs-skprev .hc { --w: 20px; }
.gs-opts .gs-matb { flex: 1; min-width: 0; }
.gs-opts .gs-matb i { width: 100%; max-width: 30px; height: 22px; }
.gs-opts .gs-spds .y-chip { flex: 1; padding: 5px 4px; font-size: 11.5px; white-space: nowrap; }
.gs-opt > span { white-space: normal; line-height: 1.25; word-break: keep-all; }
/* v133 · 내 자리 에크크 톡 = 고르기 */
.gs-seat.mine { position: relative; }
.gs-seat .gs-ekpick { cursor: pointer; transition: transform .15s; }
.gs-seat .gs-ekpick:active { transform: scale(.92); }
.gs-seat.mine::after { content: "✏️"; position: absolute; top: 6px; right: 6px; font-size: 12px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.16); pointer-events: none; }
/* v134 · 에크크 고르기 창: body 바로 밑 (안 잘리게) */
body > .gs-eksheet { z-index: 9000; align-items: flex-end; }
body > .gs-eksheet .gs-ekcard { max-height: calc(100dvh - 24px - env(safe-area-inset-top)); overflow-y: auto; -webkit-overflow-scrolling: touch; }
@media (max-height: 760px) { body > .gs-eksheet .gs-eko img { width: 52px; height: 52px; } body > .gs-eksheet .gs-ekgrid { gap: 6px; } }
/* v134 · 상대 패널: 이름·점수가 안 잘리게 (패 뭉치는 캐릭터 옆에 작게, 점수칩은 2줄 2칸) */
.gs-scene .gs-opp { gap: 4px; align-items: center; }
.gs-scene .gs-av { position: relative; }
.gs-scene .gs-ofan { position: absolute; width: 26px; height: 22px; margin-left: 22px; margin-top: 30px; pointer-events: none; }
.gs-scene .gs-opp { position: relative; }
.gs-scene .gs-ofan i { width: 10px !important; height: 15px !important; margin-left: -5px !important; }
.gs-scene .gs-ofan small { font-size: 9.5px; padding: 0 3px; }
.gs-scene .gs-oi > b { font-size: 12px; }
.gs-scene .gs-sum { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; font-size: 10px; }
.gs-scene .gs-sum span { text-align: center; padding: 0 2px; white-space: nowrap; }
.gs-scene .gs-sum em { grid-column: 1 / -1; margin-left: 0; text-align: left; font-size: 11px; }
.gs-scene .gs-ofan { margin: 0; left: 24px; bottom: 1px; top: auto; }
/* v135 · 🌀 변신하듯 천천히 도는 에크크 (빛기둥·떠오르는 고리·반짝이) → 떼면 번쩍 + 정면 보고 쾅 */
.gs-thrower { --hc: 255,170,220; }
.gs-thrower.rage { --hc: 255,150,60; }
.gs-thrower.hot { --hc: 255,60,40; }
.gs-beam, .gs-hring, .gs-spk, .gs-flash { position: absolute; pointer-events: none; opacity: 0; }
.gs-beam { left: 50%; bottom: 2px; width: 70px; height: 190px; margin-left: -35px; border-radius: 40px 40px 10px 10px; background: linear-gradient(0deg, rgba(var(--hc), .75), rgba(255,255,255,.35) 45%, rgba(var(--hc), 0)); filter: blur(6px); transform-origin: 50% 100%; z-index: -1; }
.gs-thrower.ch .gs-beam { opacity: calc(.6 + var(--pw) * .4); transform: scaleX(calc(.7 + var(--pw) * .8)); animation: gsBeam 1.4s ease-in-out infinite alternate; }
@keyframes gsBeam { to { filter: blur(9px) brightness(1.25); } }
.gs-hring { left: 50%; bottom: 0; width: 76px; height: 20px; margin-left: -38px; border-radius: 50%; border: 2.5px solid rgba(var(--hc), .95); box-shadow: 0 0 10px rgba(var(--hc), .9), inset 0 0 8px rgba(var(--hc), .7); }
.gs-thrower.ch .gs-hring { animation: gsHring 1.8s ease-out infinite; }
.gs-thrower.ch .gs-hring.r2 { animation-delay: .6s; } .gs-thrower.ch .gs-hring.r3 { animation-delay: 1.2s; }
@keyframes gsHring { 0% { opacity: 0; transform: translateY(0) scale(.6); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(-120px) scale(calc(1.1 + var(--pw) * .5)); } }
.gs-spk { left: 50%; bottom: 10px; font-style: normal; font-size: 13px; color: #fff; text-shadow: 0 0 6px rgba(var(--hc), 1), 0 0 12px rgba(var(--hc), .9); }
.gs-thrower.ch .gs-spk { animation: gsSpk 2s ease-out infinite; } .gs-spk.k2 { --sx: 40px; animation-delay: .33s !important; font-size: 10px; }
@keyframes gsSpk { 0% { opacity: 0; transform: translate(0, 0) scale(.4) rotate(0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--sx), -140px) scale(1.1) rotate(200deg); } }
.gs-thrower.rage .gs-aura { animation-duration: 1.4s; } .gs-thrower.hot .gs-aura { animation-duration: .8s; }
.gs-flash { left: 50%; top: 40%; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; background: radial-gradient(circle, #fff 0 30%, rgba(var(--hc), .8) 55%, rgba(var(--hc), 0) 72%); z-index: 6; }
.gs-thrower.henshin .gs-flash { animation: gsFlash .5s ease-out both; }
@keyframes gsFlash { 0% { opacity: 1; transform: scale(.3); } 100% { opacity: 0; transform: scale(calc(3 + var(--pw) * 3)); } }
.gs-thrower.ch .gs-thj { transition: transform .12s linear; }
@media (prefers-reduced-motion: reduce) { .gs-thrower .gs-hring, .gs-thrower .gs-spk, .gs-thrower .gs-beam { animation: none !important; } }
/* v136 · 🎴 에크크가 패를 머리 위로 들었다가 바닥에 바박! */
.gs-thcard { position: absolute; left: 50%; bottom: 40px; width: 34px; margin-left: -17px; opacity: 0; pointer-events: none; z-index: 7; transform-origin: 50% 100%; }
.gs-thcard .hc { --w: 34px; }
.gs-thcard.on { opacity: 1; transform: translateY(calc(-62px - var(--pw) * 52px)) rotate(-16deg); transition: transform .15s linear; filter: drop-shadow(0 0 calc(var(--pw) * 10px) rgba(var(--hc), .95)); }
.gs-thrower.hot .gs-thcard.on { animation: gsThShake .09s linear infinite; }
@keyframes gsThShake { 50% { margin-left: -15px; } }
.gs-thcard.on.down { transition: none; animation: gsThDown 1.25s cubic-bezier(.3,.6,.4,1) both; }
@keyframes gsThDown {
  0% { transform: translateY(calc(-62px - var(--pw) * 52px)) rotate(-16deg); }
  22% { transform: translate(8px, calc(-96px - var(--pw) * 52px)) rotate(-38deg) scale(1.08); }
  36% { transform: translate(-28px, -46px) rotate(36deg) scale(1.15); animation-timing-function: cubic-bezier(.8,0,1,.6); }
  41% { transform: translate(-44px, 34px) rotateX(62deg) rotate(80deg) scale(1.05); }
  47% { transform: translate(-44px, 28px) rotateX(55deg) rotate(80deg) scale(1); }
  54%, 82% { transform: translate(-44px, 34px) rotateX(62deg) rotate(80deg) scale(1); opacity: 1; }
  100% { transform: translate(-44px, 34px) rotateX(62deg) rotate(80deg) scale(1); opacity: 0; }
}
.gs-bak { position: absolute; left: -64px; bottom: -6px; z-index: 8; pointer-events: none; opacity: 0; font-size: calc(18px + var(--pw) * 14px); font-weight: 900; color: #fff; letter-spacing: -.02em; white-space: nowrap; -webkit-text-stroke: 1.2px rgba(0,0,0,.55); text-shadow: 0 0 10px rgba(var(--hc), 1), 0 3px 0 rgba(0,0,0,.35); }
.gs-bak::before { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; z-index: -1;
  box-shadow: -30px -6px 0 -2px rgba(255,255,255,.9), 30px -8px 0 -2px rgba(255,255,255,.9), -22px 14px 0 -3px rgba(var(--hc), .9), 24px 12px 0 -3px rgba(var(--hc), .9), 0 -22px 0 -3px rgba(255,255,255,.8); }
.gs-bak.on { animation: gsBak .9s ease-out .48s both; }
@keyframes gsBak { 0% { opacity: 0; transform: scale(.3) rotate(-8deg); } 18% { opacity: 1; transform: scale(1.25) rotate(-6deg); } 35% { transform: scale(1) rotate(-4deg); } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px) scale(1) rotate(-4deg); } }
/* v136 · 게임 화면 효과음 슬라이더 (항상 보임) */
.gs-volbar { position: absolute; left: 84px; top: calc(46% + 120px); z-index: 6; display: flex; align-items: center; gap: 6px; width: 150px; padding: 5px 10px; border-radius: 99px; background: rgba(0,0,0,.35); }
.gs-volbar input { flex: 1; min-width: 0; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 4px; background: linear-gradient(90deg, #fff var(--p, 66%), rgba(255,255,255,.25) var(--p, 66%)); }
.gs-volbar input::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.gs-volbar input::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 0; }
.gs-volbar b { width: 24px; text-align: right; font-size: 11px; font-variant-numeric: tabular-nums; color: rgba(255,255,255,.85); }
@container (max-height: 470px) { .gs-volbar { top: calc(46% + 110px); width: 120px; } }
/* v136 · 에크크가 들고 치는 패는 작게 (티만 나게) */
.gs-thcard { width: 20px; margin-left: -10px; }
.gs-thcard .hc { --w: 20px; }
@keyframes gsThShake { 50% { margin-left: -8px; } }
/* v137 · 게임 화면: 아래엔 효과음 바만 · 오른쪽 위 톱니(그만하기 위) → 효과음·음악 볼륨 */
.gs-scene .gs-volbar { left: 50%; transform: translateX(-50%); top: calc(46% + 84px); width: 170px; padding: 4px 12px 4px 6px; }
.gs-volsw { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: none; color: #fff; }
.gs-volsw svg .x { display: none; } .gs-volsw.off svg .x { display: inline; } .gs-volsw.off svg .w1, .gs-volsw.off svg .w2 { display: none; } .gs-volsw.off { color: #ff8a80; }
.gs-scene .gs-quit { top: 54px !important; }
.gs-gear { position: absolute; right: 8px; top: 8px; z-index: 10; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(10,14,34,.6); border: 1px solid rgba(255,255,255,.18); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: transform .3s; }
.gs-gear.on { transform: rotate(60deg); background: #fff; color: #111; }
.gs-gearpop { position: absolute; right: 8px; top: 54px; z-index: 11; width: min(280px, calc(100% - 16px)); box-sizing: border-box; display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 18px; background: rgba(22,22,34,.96); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.gs-gearpop[hidden] { display: none; }
.gs-gearpop label { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink2); }
.gs-gearpop label i { display: grid; place-items: center; color: #fff; }
.gs-gearpop label span { width: 42px; flex: none; }
.gs-gearpop input { flex: 1; min-width: 0; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 4px; background: linear-gradient(90deg, #fff var(--p, 66%), rgba(255,255,255,.22) var(--p, 66%)); }
.gs-gearpop input::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.gs-gearpop label b { width: 26px; text-align: right; font-size: 11.5px; color: #fff; font-variant-numeric: tabular-nums; }
.gs-gearbtns { display: flex; gap: 6px; } .gs-gearbtns button { flex: 1; padding: 8px; border-radius: 12px; background: rgba(255,255,255,.08); color: #fff; font-size: 12px; border: 1px solid rgba(255,255,255,.12); }
.gs-scene.boss .gs-top { right: 112px; }
.gs-scene:not(.boss) .gs-top { right: 56px; }
.gs-scene .gs-volbar .gs-volsw { position: static; left: auto; top: auto; width: 28px; height: 28px; background: none; font-size: inherit; }

/* v3 · 바닥 패 = 내 손패 = 날아가는 패: 모두 같은 크기 (--cw 하나로) · 에크크가 들고 치는 패는 그대로 작게 */
.gs-scene { --cw: 48px; }
@container (min-height: 560px) { .gs-scene { --cw: 60px; } }
@container (min-height: 700px) { .gs-scene { --cw: 70px; } }
@container (max-height: 470px) { .gs-scene { --cw: 40px; } }
@container (max-height: 370px) { .gs-scene { --cw: 33px; } }
.gs-scene .gs-tc .hc { --w: var(--cw); }
.gs-scene .gs-grp { width: var(--cw); height: calc(var(--cw) * 1.6); }
.gs-scene .gs-fan .gs-hc { width: var(--cw); height: calc(var(--cw) * 1.6); left: calc(var(--cw) / -2); }
.gs-scene .gs-fan .gs-hc .hc { --w: var(--cw); }
.gs-fx .gs-fly { width: var(--fcw, 58px); height: calc(var(--fcw, 58px) * 1.6); }
.gs-fx .gs-fly .hc, .gs-fx .gs-ff .hc { --w: var(--fcw, 58px); }
.gs-fx .gs-flipc { width: var(--fcw, 58px); height: calc(var(--fcw, 58px) * 1.6); left: calc(var(--fcw, 58px) / -2); top: calc(var(--fcw, 58px) * -.8); }
