/* 참가자 폰 화면 */
html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
body { display: flex; flex-direction: column; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.top { display: flex; align-items: center; gap: 8px; padding: calc(env(safe-area-inset-top) + 8px) 14px 8px; background: rgba(0,0,0,.25); border-bottom: 1px solid var(--line); font-size: 14px; }
.top .team { display: flex; align-items: center; gap: 6px; font-weight: 800; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .team i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.top .score { color: var(--accent); font-weight: 700; }
.top .clock { font-weight: 900; background: var(--accent); color: var(--on-accent); border-radius: 99px; padding: 2px 10px; font-variant-numeric: tabular-nums; }
.top .snd { background: none; border: 0; font-size: 18px; padding: 0 2px; }
.conn { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--accent2); color: var(--on-accent); text-align: center; font-weight: 700; padding: 8px calc(env(safe-area-inset-bottom) + 8px); font-size: 14px; }
.wrap { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 14px; }
.card { background: var(--noise), var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 22px 18px; margin: auto 0; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 4px 0 rgba(0, 0, 0, .22), 0 12px 26px rgba(0, 0, 0, .22); }
.card.center { align-items: center; text-align: center; }
.card h1 { font-size: 24px; margin: 0; }
.card h2 { font-size: 20px; margin: 0; }
.card p { margin: 0; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 13px; }
.logo { font-size: 48px; }
.btn { border: 0; border-radius: 14px; padding: 14px 18px; font-weight: 800; font-size: 17px; background: var(--panel2); }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.link { background: none; border: 0; color: var(--muted); text-decoration: underline; font-size: 13px; margin-top: 8px; }
.code-input { font-size: 32px; text-align: center; letter-spacing: .3em; text-transform: uppercase; width: 100%; font-weight: 800; }
.name-row { display: flex; gap: 8px; }
.name-input { flex: 1; min-width: 0; font-size: 18px; }
.team-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.team-btn { display: flex; align-items: center; gap: 8px; background: var(--bg2); border: 2px solid var(--c); border-radius: 14px; padding: 12px; font-weight: 800; font-size: 16px; text-align: left; }
.team-btn i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); flex: none; }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--accent); animation: spin 1s linear infinite; }
.toast { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%); background: #000c; color: #fff; padding: 10px 16px; border-radius: 12px; z-index: 60; font-weight: 700; }

.team-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 900; }
.team-badge i { width: 14px; height: 14px; border-radius: 50%; }
.big-rank { font-size: 20px; color: var(--muted); }
.big-rank b { font-size: 64px; color: var(--accent); line-height: 1; }
.big-rank small { font-size: 18px; margin-left: 6px; }
.mini-board { width: 100%; margin-top: 6px; }

.intro .g-icon, .g-icon { font-size: 72px; line-height: 1; }
/* 결과 화면의 내 말 (표정): 1위는 통통 튀고, 꼴찌는 살짝 처짐 */
.res-pawn { width: 84px; margin: 0 auto -4px; animation: pop .5s both; }
.res-pawn svg { display: block; width: 100%; height: auto; }
.res-pawn.happy { animation: pop .5s both, resHop .9s .5s ease-in-out infinite; }
.res-pawn.sad { animation: pop .5s both, resDroop 2.4s .5s ease-in-out infinite; }
@keyframes resHop { 0%, 100% { transform: none; } 50% { transform: translateY(-12px); } }
@keyframes resDroop { 0%, 100% { transform: none; } 50% { transform: rotate(-6deg) translateY(2px); } }
@media (prefers-reduced-motion: reduce) { .res-pawn, .res-pawn.happy, .res-pawn.sad { animation: none; } }
.g-gicon { width: 84px; height: 84px; margin: 0 auto; background: var(--paper); border: 3px solid var(--wood); border-radius: 18px; padding: 12px; box-sizing: border-box; transform: rotate(-3deg); }
.g-gicon svg { display: block; width: 100%; height: 100%; }
.g-icon.drum { animation: shake .3s infinite; }
.howto { text-align: left; margin: 4px 0; padding-left: 20px; display: grid; gap: 6px; font-size: 16px; font-weight: 600; }
.ready { background: var(--bg2); border-radius: 12px; padding: 10px 12px; color: var(--accent); font-weight: 700; font-size: 14px; }
.cdwrap { flex: 1; justify-content: center; }
.cd { font-size: 140px; font-weight: 900; color: var(--accent); line-height: 1; }
.cd.pop { animation: pop .5s; }

.result .res-rank { font-size: 56px; display: flex; align-items: baseline; gap: 8px; }
.result .res-rank b { font-size: 64px; color: var(--accent); }
.result .res-rank small { font-size: 18px; color: var(--muted); }
.res-val { color: var(--muted); font-weight: 700; }
.res-pts { font-size: 34px; font-weight: 900; background: var(--accent2); color: var(--on-accent); border-radius: 99px; padding: 4px 22px; }
.result.win { border-color: var(--accent); box-shadow: 0 0 40px rgba(224, 122, 79, .35); }

.rotate-tip { display: none; }
@media (orientation: landscape) and (max-height: 500px) {
  .rotate-tip { display: grid; place-items: center; align-content: center; gap: 8px; position: fixed; inset: 0; background: var(--bg); z-index: 80; font-weight: 800; font-size: 20px; text-align: center; }
  .rotate-tip .ph { font-size: 56px; animation: pulse 1s infinite; }
  .rotate-tip small { font-weight: 500; color: var(--muted); font-size: 13px; }
}

/* ---------- 플레이 공통 ---------- */
body[data-screen="play"] .wrap { padding: 8px 10px calc(env(safe-area-inset-bottom) + 8px); }
.playwrap { flex: 1; display: flex; flex-direction: column; min-height: 0; gap: 6px; }
.phead { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 15px; }
.myv { color: var(--accent); font-size: 20px; font-variant-numeric: tabular-nums; }
.tbar { height: 6px; background: var(--panel2); border-radius: 99px; overflow: hidden; }
.tbar-fill { height: 100%; width: 100%; background: var(--accent); transition: width .1s linear; }
.tbar.hurry .tbar-fill { background: var(--red); }
.garea { flex: 1; position: relative; min-height: 0; display: flex; flex-direction: column; gap: 10px; touch-action: none; }
.over { position: absolute; inset: 0; z-index: 20; background: rgba(16, 40, 28, .82); display: grid; place-items: center; align-content: center; text-align: center; font-size: 64px; font-weight: 900; color: var(--accent); border-radius: 16px; animation: pop .4s; }
.over small { font-size: 18px; color: var(--text); }
.g-float { position: absolute; left: 50%; top: 40%; transform: translate(-50%, 0); font-weight: 900; font-size: 22px; color: #fff; pointer-events: none; animation: floatUp .7s forwards; z-index: 10; }
.g-float.ok { color: var(--green); }
.g-float.no { color: var(--red); }
.g-scoreline { text-align: center; font-weight: 700; color: var(--muted); font-size: 15px; }
.g-sub { text-align: center; color: var(--muted); font-weight: 700; min-height: 1.2em; }
.g-prompt { text-align: center; font-size: 40px; font-weight: 900; min-height: 30%; display: grid; place-items: center; }
.g-choices { display: grid; gap: 10px; flex: 1; }
.g-choices.cols-1 { grid-template-columns: 1fr; }
.g-choices.cols-2 { grid-template-columns: 1fr 1fr; }
.g-choices.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.g-btn { background: var(--panel2); border: 2px solid var(--line); border-radius: 16px; font-size: 26px; font-weight: 900; padding: 10px; min-height: 64px; touch-action: manipulation; }
.g-btn:active { transform: scale(.97); }
.g-btn.ok { background: var(--green); color: #102; }
.g-btn.no { background: var(--red); animation: shake .3s; }
.g-feedback { text-align: center; font-weight: 900; font-size: 18px; min-height: 1.3em; }
.g-feedback.ok { color: var(--green); }
.g-feedback.no { color: var(--red); }
.g-big-btn { margin: 0 auto; width: 70%; aspect-ratio: 1; border-radius: 50%; border: 0; background: var(--green); color: #102; font-size: 40px; font-weight: 900; box-shadow: 0 10px 0 #2b8a46; }
.g-big-btn.stop { background: var(--red); box-shadow: 0 10px 0 #a82f2f; color: #fff; }
.g-big-btn:active { transform: translateY(6px); box-shadow: 0 4px 0 #0005; }
.g-canvas { flex: 1; width: 100%; min-height: 0; border-radius: 16px; background: var(--bg2); }
.g-canvas.felt { background: #183b29; }

/* 폭풍 탭 / 셰이크 셰이크 */
.g-pad, .g-shake { flex: 1; border-radius: 22px; background: radial-gradient(circle at 50% 30%, #3a4a66, #232c40 70%); border: 2px solid #46557a; display: grid; place-items: center; align-content: center; gap: 4px; position: relative; overflow: hidden; }
.g-shake { background: radial-gradient(circle at 50% 35%, #2b6243, var(--felt2) 75%); border-color: var(--line); }
.g-pad.hit { animation: zap .14s; }
.g-shake.hit { animation: pulse .12s; }
@keyframes zap { 0% { background: #f6ecd6; } 100% { background: radial-gradient(circle at 50% 30%, #3a4a66, #232c40 70%); } }
.g-pad-num { font-size: 96px; font-weight: 900; color: var(--accent); line-height: 1; font-variant-numeric: tabular-nums; text-align: center; }
.g-pad-num.small { font-size: 34px; }
.g-pad-hint { color: var(--muted); font-weight: 700; }
.g-storm-cloud { width: 120px; height: 120px; pointer-events: none; }
.g-storm-cloud svg, .g-shaker svg { display: block; width: 100%; height: 100%; }
.g-shaker { width: 130px; height: 130px; animation: shakeY .45s ease-in-out infinite; }
@keyframes shakeY { 0%, 100% { transform: translateY(-8px) rotate(-6deg); } 50% { transform: translateY(8px) rotate(6deg); } }

/* 뿅뿅 잡기 */
.g-mole-board { flex: 1; display: grid; align-content: center; }
.g-mole { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 14px; background: var(--paper); border: 3px solid var(--wood); border-radius: 20px; box-shadow: 0 6px 0 rgba(0,0,0,.3); }
.g-hole { aspect-ratio: 1; border-radius: 50%; background: radial-gradient(ellipse at 50% 62%, #2a1d12 46%, var(--wood) 48%, #6e4426 64%, transparent 66%); display: grid; place-items: end center; position: relative; overflow: hidden; }
.g-pop { width: 60%; height: 78%; transform: translateY(105%); transition: transform .1s; }
.g-pop svg { display: block; width: 100%; height: 100%; }
.g-hole[data-s="mole"] .g-pop, .g-hole[data-s="bomb"] .g-pop { transform: translateY(8%); }
.g-hole[data-s="hit"] .g-pop { transform: translateY(8%) scale(.7) rotate(20deg); filter: grayscale(1); }
.g-hole[data-s="boom"] { background: radial-gradient(circle, var(--red) 60%, transparent 66%); }

/* 가위바위보 지령 */
.g-rps { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.g-rps-hand { width: 110px; height: 110px; background: var(--paper); border: 3px solid var(--wood); border-radius: 14px; padding: 10px; box-sizing: border-box; transform: rotate(-4deg); }
.g-rps-hand svg, .g-rps-art svg { display: block; width: 100%; height: 100%; }
.g-rps-cmd { font-size: 40px; font-weight: 900; font-family: var(--font-display); }
.ga-rps .g-btn { background: var(--paper); color: var(--ink); border-color: var(--wood); }
.g-rps-card { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.g-rps-art { width: 64px; height: 64px; }
.g-rps-card small { font-size: 16px; font-weight: 800; }

/* 스프린트 */
.g-run-track { position: relative; height: 64px; background: repeating-linear-gradient(90deg, transparent 0 22px, rgba(246,236,214,.25) 22px 24px), #2b6243; border: 2px solid var(--wood); border-radius: 12px; overflow: hidden; }
.g-run-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(224,122,79,.25); }
.g-run-man { position: absolute; left: 0; top: 50%; width: 34px; height: 44px; transform: translateY(-50%); transition: left .1s; }
.g-run-man svg { display: block; width: 100%; height: 100%; }
.g-run-flag { position: absolute; right: 0; top: 0; bottom: 0; width: 16px; background: repeating-conic-gradient(#3b2a1a 0 25%, #f6ecd6 0 50%) 0 0 / 8px 8px; }
.g-run-btns { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.g-foot { border: 0; border-radius: 22px; background: var(--panel2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.g-foot-art { width: 72px; height: 72px; }
.g-foot-art svg { display: block; width: 100%; height: 100%; }
.g-foot:first-child .g-foot-art { transform: scaleX(-1); }
.g-foot small { font-size: 18px; font-weight: 800; color: var(--muted); }
.g-foot.hit { animation: footHit .18s; }
@keyframes footHit { from { background: var(--accent); } to { background: var(--panel2); } }

/* 멜로디 계단 */
.g-stairs { flex: 1; position: relative; border-radius: 12px; }
.g-step { position: absolute; width: 22%; height: 15%; border-radius: 8px; border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 900; font-size: 20px; color: #fff8ea; opacity: .55; transition: bottom .12s, left .12s; box-shadow: 0 5px 0 rgba(0,0,0,.3); }
.g-step.now { opacity: 1; outline: 3px solid var(--paper); }
.g-step-pawn { position: absolute; left: 50%; bottom: 100%; width: 34px; height: 44px; transform: translateX(-50%); }
.g-step-pawn svg { display: block; width: 100%; height: 100%; }
.g-steps-keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; height: 30%; }
.g-key { border: 2px solid var(--ink); border-radius: 14px; background: var(--c); color: #fff8ea; font-size: 24px; font-weight: 900; box-shadow: 0 6px 0 rgba(0,0,0,.35); }
.g-key.hit { animation: keyHit .15s; }
@keyframes keyHit { from { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0,0,0,.35); } to { transform: none; } }

/* 번개 반응 */
.g-react { flex: 1; border-radius: 22px; display: grid; place-items: center; align-content: center; gap: 8px; transition: background .05s; }
.g-react.wait { background: #2c3550; }
.g-react.go { background: var(--paper); color: var(--ink); }
.g-react.go .g-sub { color: var(--ink-muted); }
.g-react.foul { background: var(--pink); }
.g-react.done { background: var(--panel2); }
.g-react-big { font-size: 46px; font-weight: 900; font-family: var(--font-display); }
.g-react .g-sub { color: #fffc; }

/* 색깔 함정 */
.g-balloon-head { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 900; font-size: 22px; background: var(--paper); color: var(--ink); border-radius: 14px; padding: 10px; }
.g-balloon-head .dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--ink); }
.g-balloon-field { flex: 1; position: relative; overflow: hidden; border-radius: 16px; background: radial-gradient(ellipse at 50% 40%, #25573c, #183b29); border: 2px solid var(--wood); }
.g-chip { position: absolute; bottom: -80px; width: 66px; height: 66px; border-radius: 50%; animation: rise linear forwards; border: 3px solid var(--ink); box-shadow: inset 0 0 0 7px rgba(255,255,255,.0), inset 0 0 0 9px rgba(246,236,214,.85), 0 4px 0 rgba(0,0,0,.35); }
.g-chip::after { content: ""; position: absolute; inset: 18px; border-radius: 50%; border: 2px dashed rgba(246,236,214,.8); }
.g-chip.trap { border: 0; box-shadow: 0 4px 0 rgba(0,0,0,.35); }
.g-chip.trap::after { display: none; }
.g-chip.trap svg { display: block; width: 100%; height: 100%; }
.g-chip.popped { transform: scale(1.5); opacity: 0; transition: .15s; }
@keyframes rise { to { bottom: 110%; } }

/* 기억의 칸 */
.g-memgrid { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; align-content: center; }
.g-mem { aspect-ratio: 1; border: 2px solid var(--wood); border-radius: 12px; background: var(--paper); transition: background .1s; }
.g-mem.flash { background: var(--accent); box-shadow: 0 0 20px rgba(224, 122, 79, .7); }
.g-mem.on { background: var(--green); }
.g-mem.wrong { background: var(--red); }
.g-mem.hint { outline: 3px dashed var(--accent); }

/* 초성 한판 / 상식 한판 */
.g-chosung { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.g-chosung span { width: 64px; height: 72px; display: grid; place-items: center; background: var(--paper); color: var(--ink); border: 3px solid var(--wood); border-radius: 12px; font-size: 42px; box-shadow: 0 5px 0 rgba(0,0,0,.3); }
.g-chosung span:nth-child(odd) { transform: rotate(-3deg); }
.g-chosung span:nth-child(even) { transform: rotate(2deg); }
.g-quiz-q { font-size: clamp(18px, 3.3vh, 24px); line-height: 1.35; padding: 16px; background: var(--paper); color: var(--ink); border: 3px solid var(--wood); border-radius: 16px; box-shadow: 0 5px 0 rgba(0,0,0,.3); }
.ga-chosung .g-btn { font-size: 22px; }
.ga-quiz .g-btn { font-size: 20px; }
.g-icon svg, .logo svg { width: 4.5rem; height: auto; display: block; margin: 0 auto; }

/* ---------- 새 게임 ---------- */
/* 주사위 멈추기 */
.g-dicepad { flex: 1; display: grid; place-items: center; align-content: center; gap: 12px; border-radius: 22px; background: radial-gradient(circle at 50% 40%, #2b6243, var(--felt2) 75%); border: 2px solid var(--line); position: relative; overflow: hidden; }
.g-die { width: 180px; height: 180px; transition: transform .15s, opacity .15s; filter: drop-shadow(0 8px 0 rgba(0,0,0,.3)); }
.g-die svg { display: block; width: 100%; height: 100%; }
.g-die.rolling { animation: wobble .22s infinite; }
.g-die.locked { opacity: .55; }
.g-die.stopped { transform: scale(1.12); }
.g-dicepad .g-float { top: 8%; font-size: 34px; color: var(--accent2); }
@keyframes wobble { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }

/* 21 만들기 */
.g-21-sum { text-align: center; font-size: 48px; color: var(--accent); font-family: var(--font-display); line-height: 1; }
.g-21-sum.bust { color: var(--red); }
.g-21-pay { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-top: 8px; }
.g-21-pay span { display: flex; flex-direction: column; align-items: center; padding: 3px 0; border: 1.5px solid var(--line); border-radius: 8px; font-size: 13px; color: var(--muted); line-height: 1.2; }
.g-21-pay b { font-size: 15px; color: var(--text); }
.g-21-pay span.on { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.g-21-pay span.on b { color: var(--on-accent); }
.g-cards { flex: 1; display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 8px; }
.g-card21 { width: 70px; height: 98px; box-sizing: border-box; background: var(--paper); color: var(--ink); border: 3px solid var(--wood); border-top: 14px solid var(--s); border-radius: 10px; display: grid; place-items: center; font-size: 36px; font-weight: 900; box-shadow: 0 5px 0 rgba(0,0,0,.3); animation: dealIn .2s; }
@keyframes dealIn { from { transform: translateY(-30px) rotate(-10deg); opacity: 0; } }
.g-21-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.g-21-btns .g-btn { min-height: 84px; }
.g-21-stop { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* 말 컬링 */
.g-curl { touch-action: none; border: 3px solid var(--wood); }
.ga-curling .g-float { top: 30%; font-size: 30px; color: var(--ink); }
.ga-curling .g-float.ok { color: var(--felt); }
.ga-curling .g-float.no { color: var(--red); }

/* 짝 맞추기 */
.g-pairs { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; align-content: center; }
.g-pcard { aspect-ratio: 3 / 4; border: 0; padding: 0; background: none; perspective: 600px; }
.g-pcard-in { position: relative; display: block; width: 100%; height: 100%; transition: transform .25s; transform-style: preserve-3d; }
.g-pcard.open .g-pcard-in, .g-pcard.done .g-pcard-in { transform: rotateY(180deg); }
.g-pcard .face { position: absolute; inset: 0; border-radius: 10px; -webkit-backface-visibility: hidden; backface-visibility: hidden; display: grid; place-items: center; box-sizing: border-box; }
.g-pcard .back { background: repeating-linear-gradient(45deg, #2b6243 0 6px, #245539 6px 12px); border: 3px solid var(--paper2); box-shadow: 0 4px 0 rgba(0,0,0,.3); }
.g-pcard .front { background: var(--paper); border: 3px solid var(--wood); transform: rotateY(180deg); padding: 16%; }
.g-pcard .front svg { display: block; width: 100%; height: 100%; }
.g-pcard.done .front { background: #e3efd8; border-color: var(--green); }

/* 기울기 미로 · 길 따라 그리기 */
.g-maze, .g-trace { touch-action: none; border: 3px solid var(--wood); }

/* 말판님 가라사대 */
.g-says-card { background: var(--paper); border: 3px solid var(--wood); border-radius: 18px; padding: 14px 12px 18px; text-align: center; min-height: 96px; display: grid; align-content: center; gap: 8px; color: #3b2a1a; }
.g-says-band { justify-self: center; background: #d9a21b; color: #3b2a1a; font-weight: 900; font-size: 14px; padding: 3px 14px; border-radius: 999px; border: 2px solid #3b2a1a; }
.g-says-text { font-weight: 900; font-size: 34px; line-height: 1.2; }
.g-says-card.says-in { animation: saysIn .18s; }
.g-says-card.shake { animation: shake .3s; }
@keyframes saysIn { from { transform: scale(.92); opacity: .4; } to { transform: scale(1); opacity: 1; } }
.g-says-pad { flex: 1; min-height: 56px; display: grid; place-items: center; border-radius: 22px; background: radial-gradient(circle at 50% 40%, #2b6243, var(--felt2) 75%); border: 2px solid var(--line); touch-action: none; position: relative; overflow: hidden; user-select: none; -webkit-user-select: none; }
.g-says-pad .g-float { top: 15%; font-size: 34px; }

/* 낚시 한판 */
.g-fishpad { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.g-water { flex: 1; position: relative; overflow: hidden; border-radius: 22px; background: #183b29; border: 2px solid var(--line); }
.g-waves { position: absolute; left: 0; right: 0; top: 30%; bottom: 8%; border-radius: 40% 40% 30% 30%; background: repeating-linear-gradient(180deg, #0f4a52 0 18px, #14606a 18px 22px); opacity: .95; }
.g-bobber { position: absolute; left: 50%; top: 48%; width: 34px; height: 64px; margin-left: -17px; transform: translateY(0); }
.g-bob-ball { position: absolute; left: 0; bottom: 0; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(180deg, #c8553d 0 50%, #f6ecd6 50% 100%); border: 3px solid #3b2a1a; box-sizing: border-box; }
.g-bob-stick { position: absolute; left: 14px; top: 0; width: 6px; height: 34px; background: #f6ecd6; border: 2px solid #3b2a1a; border-radius: 3px; box-sizing: border-box; }
.g-bobber.bob { animation: fishBob 1.6s ease-in-out infinite; }
.g-bobber.nib { animation: fishNib .25s; }
.g-bobber.bob.nib { animation: fishNib .25s; }
.g-bobber.sunk { transform: translateY(46px); transition: transform .12s ease-in; }
@keyframes fishBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@keyframes fishNib { 0%, 100% { transform: translateY(0); } 30% { transform: translateY(9px); } 60% { transform: translateY(-3px); } }
.g-splash { position: absolute; left: 50%; top: 56%; width: 70px; height: 30px; margin-left: -35px; border-radius: 50%; border: 3px solid #f6ecd6; opacity: 0; box-sizing: border-box; }
.g-splash.go { animation: fishSplash .5s; }
@keyframes fishSplash { from { transform: scale(.4); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
.g-fishjump { position: absolute; left: 50%; top: 50%; width: 70px; height: 42px; margin-left: -35px; opacity: 0; pointer-events: none; }
.g-fishjump svg { display: block; width: 100%; height: 100%; }
.g-fishjump.jump { animation: fishJump .8s ease-out; }
@keyframes fishJump { 0% { transform: translateY(20px) rotate(-30deg); opacity: 1; } 45% { transform: translateY(-110px) rotate(10deg); opacity: 1; } 100% { transform: translateY(10px) rotate(60deg); opacity: 0; } }

/* 공 튀기기 */
.g-bounce-cv { touch-action: none; border: 3px solid var(--wood); user-select: none; -webkit-user-select: none; }

/* 게이지 명중 */
.g-gauge-area { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; touch-action: none; user-select: none; -webkit-user-select: none; }
.g-gauge-mid { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.g-gauge-bar { position: relative; height: 56px; margin: 0 8px; background: #f6ecd6; border: 4px solid #8a5a33; border-radius: 12px; }
.g-gauge-zone { position: absolute; top: 0; bottom: 0; background: #6a8d2f; }
.g-gauge-gold { position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: #d9a21b; }
.g-gauge-needle { position: absolute; top: -14px; bottom: -8px; width: 3px; margin-left: -1.5px; background: #3b2a1a; }
.g-gauge-tip { position: absolute; top: -8px; left: -7px; width: 0; height: 0; border-left: 8.5px solid transparent; border-right: 8.5px solid transparent; border-top: 12px solid #3b2a1a; }
.g-gauge-btn { min-height: 76px; font-size: 26px; touch-action: none; }

/* 칩 분류 */
.g-sortboard { position: relative; flex: 1; min-height: 240px; margin: 4px 0; touch-action: none; user-select: none; -webkit-user-select: none; }
.g-sortcup { position: absolute; width: 84px; height: 72px; background: var(--cc, #8a5a33); border: 3px solid #3b2a1a; clip-path: polygon(0 0, 100% 0, 86% 100%, 14% 100%); touch-action: none; z-index: 2; }
.g-sortcup-rim { position: absolute; left: 0; right: 0; top: 0; height: 12px; background: rgba(255,255,255,.35); }
.g-sortcup.up { left: 50%; top: 0; margin-left: -42px; }
.g-sortcup.down { left: 50%; bottom: 0; margin-left: -42px; }
.g-sortcup.left { left: 0; top: 50%; margin-top: -36px; }
.g-sortcup.right { right: 0; top: 50%; margin-top: -36px; }
.g-sortcup.shuf { animation: sortShuf .25s; }
.g-sortcup.hit { animation: sortHit .2s; }
.g-sortchip { position: absolute; left: 50%; top: 50%; width: 112px; height: 112px; margin: -56px 0 0 -56px; border-radius: 50%; background: var(--cc, #c8553d); border: 4px solid #3b2a1a; display: flex; align-items: center; justify-content: center; touch-action: none; z-index: 3; }
.g-sortchip.fly { transition: transform .15s ease-in; }
.g-sortchip.shake { animation: sortShake .4s; }
.g-sortchip-in { width: 74px; height: 74px; border-radius: 50%; border: 3px dashed rgba(246,236,214,.85); pointer-events: none; }
@keyframes sortShuf { 0% { transform: scale(1); } 50% { transform: scale(.7) rotate(8deg); opacity: .5; } 100% { transform: scale(1); } }
@keyframes sortHit { 50% { transform: scale(1.18); } }
@keyframes sortShake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-12px); } 40% { transform: translateX(12px); } 60% { transform: translateX(-8px); } 80% { transform: translateX(8px); } }

/* 야바위 컵 */
.g-cuprow { position: relative; flex: 1; min-height: 180px; margin: 4px 0; }
.g-cup { position: absolute; top: 50%; width: 80px; height: 110px; transform: translateX(-50%); margin-top: -55px; transition-property: left; transition-timing-function: ease-in-out; touch-action: none; }
.g-cupbody { position: absolute; inset: 0; background: #8a5a33; border: 3px solid #3b2a1a; clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%); transition: transform .25s ease; z-index: 2; }
.g-cupbody::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 14px; background: rgba(246,236,214,.28); }
.g-cup.up .g-cupbody { transform: translateY(-58px); }
.g-cupball { position: absolute; left: 50%; bottom: 4px; width: 32px; height: 32px; margin-left: -16px; border-radius: 50%; background: #c8553d; border: 3px solid #3b2a1a; z-index: 1; }

/* 눈대중 */
.g-count-wrap { position: relative; width: min(100%, 300px, 38svh); aspect-ratio: 1; flex: none; margin: 4px auto; background: #f6ecd6; border: 3px solid #8a5a33; border-radius: 12px; overflow: hidden; }
.g-count-board { position: absolute; inset: 0; }
.g-count-dot { position: absolute; width: 22px; height: 28px; margin: -14px 0 0 -11px; }
.g-count-dot svg { width: 100%; height: 100%; display: block; }
.g-count-cover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 900; color: #3b2a1a; background: repeating-linear-gradient(45deg, #f6ecd6 0 12px, #efe0c0 12px 24px); }
.g-count-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; min-height: 0; }
.g-count-choices .g-btn { min-height: 52px; padding: 6px; background: #f6ecd6; color: #3b2a1a; border-color: #8a5a33; }
.g-count-choices .g-btn.ok { background: var(--green); }
.g-count-choices .g-btn.no { background: var(--red); color: #fff; }

/* 하이 로우 */
.g-hilo-cards { flex: 1; min-height: 0; display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 16px; margin: 4px 0; position: relative; }
.g-hilo-card { width: clamp(90px, 22svh, 150px); height: clamp(114px, 28svh, 190px); font-size: clamp(48px, 12svh, 84px); border-radius: 14px; border: 4px solid #3b2a1a; background: #f6ecd6; color: #3b2a1a; display: flex; align-items: center; justify-content: center; font-weight: 900; }
.g-hilo-next { width: clamp(70px, 16svh, 100px); height: clamp(90px, 20svh, 126px); }
.g-hilo-next.back { background: repeating-linear-gradient(45deg, #2b6243 0 8px, #183b29 8px 16px); color: transparent; }
.g-hilo-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.g-hilo-btn { min-height: 64px; }

/* OX 스피드 / 텔레파시 */
.g-ox-q { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; background: #f6ecd6; color: #3b2a1a; border: 4px solid #8a5a33; border-radius: 16px; padding: 16px; font-size: 22px; font-weight: 800; line-height: 1.4; word-break: keep-all; margin: 6px 0; }
.g-ox-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.g-ox-btn { min-height: 120px; display: flex; align-items: center; justify-content: center; background: var(--paper); border-color: var(--wood); }
.g-ox-btn svg { width: 64px; height: 64px; }
.g-ox-btn.ok { background: var(--green); }
.g-ox-btn.no { background: var(--red); }
.g-ox-btn.hint { background: var(--green); box-shadow: 0 0 0 4px #fff; }
.g-mind-card { background: #f6ecd6; color: #3b2a1a; border: 4px solid #8a5a33; border-radius: 16px; padding: 18px 16px 14px; margin: 6px 0; text-align: center; }
.g-mind-ask { font-size: 22px; font-weight: 900; margin-bottom: 12px; }
.g-mind-bar { height: 12px; border-radius: 6px; background: rgba(59, 42, 26, .18); overflow: hidden; }
.g-mind-fill { height: 100%; width: 100%; background: #c8553d; }
.g-mind-btns { flex: 1; display: grid; grid-template-rows: 1fr 1fr; gap: 12px; }
.g-mind-btn { font-size: 26px; min-height: 90px; }
.g-mind-btn.sel { background: var(--accent, #e07a4f); color: #fff; border-color: #fff; }

/* 쟁반 나르기 / 기울여 받기 */
.g-tray-wrap, .g-catch-field { flex: 1; min-height: 0; touch-action: none; user-select: none; -webkit-user-select: none; }
.g-tray-wrap { display: flex; align-items: center; justify-content: center; container-type: size; }
.g-tray { position: relative; width: min(100%, 52svh); height: min(100%, 52svh); width: min(100cqw, 100cqh); height: min(100cqw, 100cqh); flex: none; border-radius: 50%; background: #f6ecd6; border: 8px solid #8a5a33; box-sizing: border-box; }
.g-tray-goal { position: absolute; left: 15%; top: 15%; width: 70%; height: 70%; border-radius: 50%; border: 3px dashed #d9a21b; box-sizing: border-box; }
.g-tray-cup { position: absolute; width: 18%; height: 18%; border-radius: 50%; transform: translate(-50%, -50%); border: 3px solid #3b2a1a; box-sizing: border-box; box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .35), 0 3px 0 rgba(0, 0, 0, .25); left: 50%; top: 50%; }
.g-tray-cup.in { box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .35), 0 0 0 4px #d9a21b; }
.g-tray-arrow { position: absolute; left: 50%; top: 50%; width: 30%; height: 12%; display: none; align-items: center; justify-content: flex-end; font-size: 28px; font-weight: 900; color: var(--red); transform: translate(-50%, -50%); pointer-events: none; }
.g-tray-arrow.show { display: flex; }
.g-catch-field { position: relative; overflow: hidden; border-radius: 16px; background: #183b29; border: 3px solid var(--wood); }
.g-catch-field.hit { animation: catchHit .35s; }
@keyframes catchHit { 0% { background: #a33b2b; } 100% { background: #183b29; } }
.g-catch-item { position: absolute; width: 9%; aspect-ratio: 1; max-width: 40px; border-radius: 50%; transform: translate(-50%, -50%); border: 3px solid #3b2a1a; box-sizing: border-box; top: -10%; }
.g-catch-item.bomb { background: #3b2a1a; border-color: #fff8; }
.g-catch-item.bomb::after { content: ''; position: absolute; left: 60%; top: -45%; width: 4px; height: 55%; background: #d9a21b; transform: rotate(25deg); border-radius: 2px; }
.g-catch-basket { position: absolute; top: 90%; width: 26%; height: 8%; transform: translate(-50%, -30%); background: #8a5a33; clip-path: polygon(0 0, 100% 0, 85% 100%, 15% 100%); border-top: 4px solid #3b2a1a; }

/* 핸들 운전 / 하늘 조준 / 노 젓기 */
.g-drive-field, .g-aim-wrap { position: relative; flex: 1; min-height: 0; display: flex; touch-action: none; user-select: none; -webkit-user-select: none; }
.g-drive-field .g-canvas { border: 3px solid var(--wood); touch-action: none; }
.g-drive-warn { position: absolute; left: 50%; top: 10%; transform: translateX(-50%); background: var(--red); color: #fff; font-weight: 900; padding: 6px 14px; border-radius: 12px; display: none; pointer-events: none; }
.g-drive-warn.show { display: block; }
.g-drive-strip { text-align: center; font-weight: 800; color: var(--muted); min-height: 1.2em; }
.g-drive-strip.fb { background: var(--panel2); border-radius: 12px; padding: 10px; color: inherit; }
.g-aim-wrap { align-items: center; justify-content: center; container-type: size; }
.g-aim-field { position: relative; width: min(100%, 52svh); height: min(100%, 52svh); width: min(100cqw, 100cqh); height: min(100cqw, 100cqh); flex: none; background: #183b29; border: 3px solid var(--wood); border-radius: 16px; box-sizing: border-box; overflow: hidden; }
.g-aim-field.hit { animation: catchHit .35s; }
.g-aim-target { position: absolute; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 3px solid #3b2a1a; box-sizing: border-box; background: radial-gradient(circle, #d9a21b 0 22%, #e07a4f 22% 55%, #f6ecd6 55% 100%); }
.g-aim-target::after { content: ''; position: absolute; inset: -9px; border-radius: 50%; background: conic-gradient(#fff var(--p, 0deg), transparent 0); -webkit-mask: radial-gradient(circle, transparent 0 calc(100% - 7px), #000 calc(100% - 6px)); mask: radial-gradient(circle, transparent 0 calc(100% - 7px), #000 calc(100% - 6px)); }
.g-aim-target.lock { border-color: #fff; }
.g-aim-reticle { position: absolute; width: 11%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 3px solid #3b2a1a; background: rgba(246, 236, 214, .35); box-sizing: border-box; pointer-events: none; left: 50%; top: 50%; }
.g-aim-reticle::before, .g-aim-reticle::after { content: ''; position: absolute; background: #3b2a1a; }
.g-aim-reticle::before { left: 50%; top: -35%; width: 3px; height: 170%; transform: translateX(-50%); }
.g-aim-reticle::after { top: 50%; left: -35%; height: 3px; width: 170%; transform: translateY(-50%); }
.g-row-water { flex: 1; min-height: 0; position: relative; border-radius: 16px; border: 3px solid var(--wood); overflow: hidden; background: #2f6f8f repeating-linear-gradient(100deg, transparent 0 28px, rgba(255, 255, 255, .18) 28px 32px); background-size: 40px 100%; transition: background-position .25s; display: flex; align-items: center; justify-content: center; }
.g-row-boat { width: min(70%, 260px); }
.g-row-boat svg { width: 100%; height: auto; display: block; }
.g-row-oar { transform-origin: 60px 30px; }
.g-row-water.stroke .g-row-boat { animation: rowGo .35s; }
.g-row-water.stroke .g-row-oar { animation: rowOar .35s; }
.g-row-btns { display: flex; gap: 10px; }
.g-row-btns[hidden] { display: none; }
.g-row-btn { flex: 1; min-height: 76px; touch-action: manipulation; }
/* 무궁화 꽃이 피었습니다: 위 술래 + 말풍선, 아래 길(10m 눈금, 1m 줄), 상태 띠 */
.g-freeze-stage { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 10px 0; position: relative; overflow: hidden; border-radius: 16px; background: #183b29; border: 3px solid var(--wood); touch-action: none; user-select: none; -webkit-user-select: none; transition: border-color .15s; }
.g-freeze-stage[data-phase="stop"] { border-color: var(--red); }
.g-freeze-stage.caught { animation: freezeCaught .5s; }
.g-freeze-bubble { position: relative; flex: none; min-width: 66%; max-width: 100%; box-sizing: border-box; padding: 4px 14px; border-radius: 14px; background: var(--paper); color: var(--ink); border: 3px solid var(--wood); font-weight: 900; font-size: clamp(17px, 2.8svh, 24px); line-height: 1.4; min-height: calc(1.4em + 14px); text-align: center; white-space: nowrap; letter-spacing: .02em; }
.g-freeze-bubble::after { content: ''; position: absolute; left: 50%; bottom: -9px; width: 12px; height: 12px; background: var(--paper); border-right: 3px solid var(--wood); border-bottom: 3px solid var(--wood); transform: translateX(-50%) rotate(45deg); }
.g-freeze-bubble.off { visibility: hidden; }
.g-freeze-tagger { flex: none; height: clamp(60px, 12svh, 104px); aspect-ratio: 48 / 57; margin-top: 4px; transition: filter .15s; }
.g-freeze-tagger svg { display: block; width: 100%; height: 100%; }
.g-freeze-tagger.turn svg { animation: freezeTurn .24s; }
.g-freeze-face { opacity: 0; }
.g-freeze-stage[data-phase="stop"] .g-freeze-face { opacity: 1; }
.g-freeze-stage[data-phase="stop"] .g-freeze-back { opacity: 0; }
.g-freeze-stage[data-phase="stop"] .g-freeze-body { stroke: var(--red); stroke-width: 3; }
.g-freeze-stage[data-phase="stop"] .g-freeze-tagger { filter: drop-shadow(0 0 8px rgba(224, 93, 79, .9)); }
.g-freeze-lane { flex: 1; min-height: 0; align-self: stretch; margin: 0 16%; position: relative; overflow: hidden; border-radius: 12px 12px 0 0; border: 3px solid #3a7354; border-bottom: 0; background-color: #245539; background-image: linear-gradient(to top, rgba(246, 236, 214, .07) 0 2px, transparent 2px); background-repeat: repeat; }
.g-freeze-tick { position: absolute; left: 0; right: 0; bottom: 0; height: 0; border-top: 3px solid rgba(246, 236, 214, .5); }
.g-freeze-tick.start { border-top-color: #d9a21b; }
.g-freeze-tick span { position: absolute; right: 6px; bottom: 3px; font-size: 13px; font-weight: 800; color: var(--muted); }
.g-freeze-me { position: absolute; left: 50%; bottom: 0; width: clamp(32px, 5.6svh, 48px); aspect-ratio: 40 / 52; transform: translate(-50%, 0); z-index: 2; }
.g-freeze-me svg { display: block; width: 100%; height: 100%; }
.g-freeze-me.hop svg { animation: freezeHop .16s; }
.g-freeze-me.stun svg { animation: freezeStun .25s infinite; opacity: .7; }
.g-freeze-band { flex: none; text-align: center; font-weight: 900; font-size: clamp(19px, 2.8svh, 24px); padding: 10px; border-radius: 14px; background: var(--panel2); color: var(--text); border: 2px solid var(--line); transition: background .12s, color .12s; }
.g-freeze-band[data-s="go"] { background: var(--green); color: #102; border-color: #5fae5a; }
.g-freeze-band[data-s="stop"] { background: var(--red); color: #fff; border-color: #a82f2f; }
.g-freeze-band[data-s="caught"] { background: #a33b2b; color: #fff; border-color: #7a2a1f; animation: shake .3s; }
@keyframes freezeCaught { 0% { background: #a33b2b; } 100% { background: #183b29; } }
@keyframes freezeTurn { 50% { transform: scaleX(.12); } }
@keyframes freezeHop { 50% { transform: translateY(-22%); } }
@keyframes freezeStun { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-10deg); } 75% { transform: rotate(10deg); } }
/* 음료 따르기: 병·물줄기·잔은 SVG(아래 맞춤), 목표선 두 줄과 사이 영역 */
.g-pour-stage { flex: 1; min-height: 0; position: relative; overflow: hidden; border-radius: 16px; background: #183b29; border: 3px solid var(--wood); touch-action: none; user-select: none; -webkit-user-select: none; }
.g-pour-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.g-pour-stage.spill { animation: catchHit .5s; }
.g-pour-no { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); z-index: 2; white-space: nowrap; background: var(--paper); color: var(--ink); border: 2px solid var(--wood); border-radius: 99px; padding: 2px 12px; font-weight: 900; font-size: 15px; pointer-events: none; }
.g-pour-band { fill: rgba(217, 162, 27, .22); transition: fill .15s; }
.g-pour-glass.in .g-pour-band { fill: rgba(143, 209, 138, .38); }
.g-pour-line { fill: none; stroke: #f2c14e; stroke-width: 3; stroke-dasharray: 9 6; }
.g-pour-glass.in .g-pour-line { stroke: var(--green); }
.g-pour-mark { fill: #f2c14e; stroke: #3b2a1a; stroke-width: 2; stroke-linejoin: round; }
.g-pour-glass.in .g-pour-mark { fill: var(--green); }
.g-pour-glass.new { animation: pourIn .3s ease-out; }
.g-pour-drip { display: none; }
.g-pour-stage.spill .g-pour-drip { display: inline; stroke-dasharray: 240; animation: pourDrip .5s ease-in both; }
.g-pour-stage.spill .g-pour-puddle { stroke-dasharray: none; transform-box: fill-box; transform-origin: center; animation: pourPuddle .5s ease-out both; }
.g-pour-msg { text-align: center; font-weight: 900; font-size: 22px; min-height: 1.3em; }
.g-pour-msg.ok { color: var(--green); }
.g-pour-msg.no { color: var(--red); }
.g-pour-msg.pop { animation: pop .3s; }
@keyframes pourIn { from { transform: translateX(160px); opacity: 0; } }
@keyframes pourDrip { from { stroke-dashoffset: 240; } to { stroke-dashoffset: 0; } }
@keyframes pourPuddle { from { transform: scaleX(.2); opacity: 0; } }
@keyframes rowGo { 0% { transform: translateX(0); } 40% { transform: translateX(14px); } 100% { transform: translateX(0); } }
@keyframes rowOar { 0% { transform: rotate(0); } 50% { transform: rotate(28deg); } 100% { transform: rotate(0); } }

/* 코인 점프 */
.ga-jump { user-select: none; -webkit-user-select: none; }
.g-jump-field { position: relative; flex: 1; min-height: 0; touch-action: none; }
.g-jump-cv { position: absolute; inset: 0; height: 100%; background: #183b29; border: 3px solid var(--wood); touch-action: none; }
.g-jump-field.hit { animation: jumpHit .28s; }
@keyframes jumpHit { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }
.g-jump-score.bump { animation: jumpBump .2s; }
@keyframes jumpBump { 50% { transform: scale(1.12); } }
.ga-jump .g-float { font-size: 28px; text-shadow: 0 2px 0 #3b2a1a, 0 0 6px #3b2a1a; }
.ga-jump .g-float.no { color: #ff7b6b; }
.ga-jump .g-float.gold { color: #f7d154; font-size: 32px; }

/* 풍선 펌프 */
.ga-pump, .ga-cave { user-select: none; -webkit-user-select: none; }
.ga-pump .g-float, .ga-cave .g-float { font-size: 34px; text-shadow: 0 2px 0 #3b2a1a, 0 0 6px #3b2a1a; }
.ga-cave .g-float { left: 85%; top: 34%; color: #9fe8c8; }
.ga-cave .g-float.bank { left: 50%; top: 30%; font-size: 48px; color: #f7d154; }
.g-pump-score.bump, .g-cave-score.bump { animation: pumpBump .22s; }
@keyframes pumpBump { 50% { transform: scale(1.14); color: var(--accent2); } }
.g-pump-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; border: 3px solid var(--wood); border-radius: 16px; background: radial-gradient(circle at 50% 40%, #2b6243 0, #1f4a33 55%, #183b29 100%); touch-action: none; }
.g-pump-stage.boom { animation: pumpBoom .35s; }
@keyframes pumpBoom { 0% { background: #f6ecd6; } 30% { transform: translateX(-5px); } 60% { transform: translateX(4px); } 100% { transform: none; } }
.g-pump-msg { position: absolute; left: 8px; right: 8px; top: 8px; z-index: 3; font-size: 17px; color: var(--text); text-shadow: 0 2px 0 rgba(0,0,0,.45); pointer-events: none; word-break: keep-all; }
.g-pump-msg.no { color: #ff8a7c; }
.g-pump-fly { position: absolute; inset: 0; }
.g-pump-fly.away { animation: pumpAway .6s ease-in forwards; }
@keyframes pumpAway { 0% { transform: none; } 15% { transform: translateY(4%); } 100% { transform: translateY(-112%) rotate(-6deg); opacity: .25; } }
.g-pump-balloon { --s: .3; position: absolute; left: 50%; bottom: 22%; height: 72%; aspect-ratio: 100 / 116; max-width: 94%; transform: translateX(-50%) scale(var(--s)); transform-origin: 50% 100%; transition: transform .16s cubic-bezier(.3, 1.7, .5, 1); }
.g-pump-balloon.reset { transition: none; }
.g-pump-puff, .g-pump-body { position: absolute; inset: 0; transform-origin: 50% 100%; }
.g-pump-body { color: var(--bc, #c8553d); }
.g-pump-body svg { display: block; width: 100%; height: 100%; overflow: visible; }
.g-pump-puff.puff { animation: pumpPuff .16s; }
@keyframes pumpPuff { 40% { transform: scale(1.05, .95); } }
.g-pump-puff.in { animation: pumpIn .34s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pumpIn { from { transform: scale(0); opacity: 0; } }
/* 많이 불수록 떨림 (누른 횟수로만) */
.g-pump-body[data-t="1"] { animation: pumpTr1 .34s infinite; }
.g-pump-body[data-t="2"] { animation: pumpTr2 .2s infinite; }
.g-pump-body[data-t="3"] { animation: pumpTr3 .11s infinite; }
@keyframes pumpTr1 { 0%, 100% { transform: rotate(-.8deg); } 50% { transform: rotate(.8deg); } }
@keyframes pumpTr2 { 0%, 100% { transform: rotate(-1.4deg) translateX(-.6%); } 50% { transform: rotate(1.4deg) translateX(.6%); } }
@keyframes pumpTr3 { 0%, 100% { transform: rotate(-2deg) translateX(-1%); } 25% { transform: rotate(1deg) translateX(.8%) scale(1.01); } 50% { transform: rotate(2deg) translateX(1%); } 75% { transform: rotate(-1deg) translateX(-.8%) scale(.99); } }
.g-pump-string { position: absolute; left: 50%; top: 78%; bottom: -6px; width: 24px; margin-left: -12px; }
.g-pump-string svg { display: block; width: 100%; height: 100%; }
.g-pump-fly.popped .g-pump-puff { visibility: hidden; }
.g-pump-fly.popped .g-pump-string { animation: pumpDrop .5s ease-in forwards; }
@keyframes pumpDrop { to { transform: translateY(45%); opacity: 0; } }
.g-pump-burst { position: absolute; inset: 0; visibility: hidden; pointer-events: none; }
.g-pump-fly.popped .g-pump-burst { visibility: visible; }
.g-pump-bang { position: absolute; left: 10%; top: 5%; width: 80%; aspect-ratio: 1; opacity: 0; }
.g-pump-bang svg { display: block; width: 100%; height: 100%; }
.g-pump-fly.popped .g-pump-bang { animation: pumpBang .32s ease-out forwards; }
@keyframes pumpBang { 0% { transform: scale(.35) rotate(-12deg); opacity: 1; } 55% { transform: scale(1.05); opacity: 1; } 100% { transform: scale(1.15) rotate(6deg); opacity: 0; } }
.g-pump-shard { position: absolute; left: 42%; top: 40%; width: 16%; height: 10%; background: var(--bc); border: 2px solid var(--ink); border-radius: 45% 12% 50% 18%; opacity: 0; }
.g-pump-fly.popped .g-pump-shard { animation: pumpShard .6s cubic-bezier(.15, .7, .4, 1) forwards; }
@keyframes pumpShard { 0% { transform: none; opacity: 1; } 75% { opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(.7); opacity: 0; } }
.g-pump-now { text-align: center; font-family: var(--font-display); font-size: 26px; line-height: 1.15; color: var(--paper); }
.g-pump-now.bump { animation: pumpBump .16s; }
.g-btn.g-pump-tie { min-height: 62px; background: var(--paper); color: var(--ink); border-color: var(--wood); box-shadow: 0 5px 0 var(--wood); margin-bottom: 4px; }
.g-btn.g-pump-btn { flex: none; height: clamp(120px, 27svh, 240px); display: flex; align-items: center; justify-content: center; gap: 16px; background: var(--accent); color: var(--on-accent); border: 3px solid #b8603b; box-shadow: 0 8px 0 #a8532f; font-family: var(--font-display); font-size: 44px; margin-bottom: 8px; touch-action: none; }
.g-pump-ico { height: 58%; aspect-ratio: 30 / 46; }
.g-pump-ico svg { display: block; width: 100%; height: 100%; overflow: visible; }
.g-btn.g-pump-btn.push { animation: pumpPush .12s; }
.g-pump-btn.push .g-pump-h { animation: pumpHandle .12s; }
@keyframes pumpPush { 40% { transform: translateY(6px); box-shadow: 0 2px 0 #a8532f; } }
@keyframes pumpHandle { 40% { transform: translateY(7px); } }
.g-btn.g-pump-tie.off, .g-btn.g-pump-btn.off { opacity: .4; box-shadow: none; transform: translateY(4px); }

/* 보물 동굴 */
.g-cave-head { display: flex; justify-content: space-between; align-items: center; padding: 0 4px; font-weight: 800; min-height: 26px; }
.g-cave-no { color: var(--muted); font-size: 16px; }
.g-cave-bag { display: inline-flex; align-items: center; gap: 6px; color: var(--accent2); font-family: var(--font-display); font-size: 22px; }
.g-cave-bag i { display: block; width: 24px; height: 24px; }
.g-cave-bag svg { display: block; width: 100%; height: 100%; }
.g-cave-bag.bump { animation: pumpBump .22s; }
.g-cave-bag.lost { color: var(--red); animation: shake .4s; }
.g-cave-haz { display: flex; justify-content: center; gap: 10px; }
.g-cave-hz { width: clamp(46px, 7.4svh, 62px); aspect-ratio: 1; padding: 5px; border-radius: 12px; background: #10281c; border: 3px solid #2b6243; }
.g-cave-hz svg { display: block; width: 100%; height: 100%; filter: grayscale(1) brightness(.75); opacity: .35; }
.g-cave-hz.seen { background: var(--paper); border-color: #f0a33a; box-shadow: 0 0 0 3px rgba(240, 163, 58, .35), 0 0 14px rgba(240, 163, 58, .55); }
.g-cave-hz.seen svg { filter: none; opacity: 1; }
.g-cave-hz.blink { animation: caveBlink .45s 2; }
@keyframes caveBlink { 50% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(240, 163, 58, .6), 0 0 24px rgba(240, 163, 58, .9); } }
.g-cave-hz.boom { background: #f3b3a8; border-color: var(--red); box-shadow: 0 0 0 3px rgba(224, 93, 79, .45), 0 0 18px rgba(224, 93, 79, .8); animation: shake .4s; }
.g-cave-hz.boom svg { filter: none; opacity: 1; }
.g-cave-stage { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; border: 3px solid var(--wood); border-radius: 46% 46% 16px 16px / 16% 16% 16px 16px; background: radial-gradient(ellipse at 50% 80%, #2b6243 0, #183b29 55%, #0e2318 100%); }
.g-cave-main { position: relative; flex: 1; min-height: 0; }
.g-cave-stage.enter .g-cave-main { animation: caveEnter .35s ease-out; }
@keyframes caveEnter { from { opacity: 0; transform: scale(.9); } }
.g-cave-stage.exit .g-cave-main, .g-cave-stage.exit .g-cave-trail { animation: caveExit .55s ease-in forwards; }
@keyframes caveExit { to { opacity: 0; transform: translateY(24px) scale(.92); } }
.g-cave-card { position: absolute; left: 50%; top: 52%; height: min(88%, 250px); aspect-ratio: 5 / 7; transform: translate(-50%, -50%); perspective: 700px; }
.g-cave-wob, .g-cave-inner { position: absolute; inset: 0; }
.g-cave-inner { transform-style: preserve-3d; transition: transform .3s ease; }
.g-cave-card.open .g-cave-inner { transform: rotateY(180deg); }
.g-cave-card.instant .g-cave-inner { transition: none; }
.g-cave-back, .g-cave-face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 4px solid var(--ink); border-radius: 14px; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 6px 0 rgba(0, 0, 0, .35); }
.g-cave-back { background: repeating-linear-gradient(135deg, #8a5a33 0 9px, #7a4d2b 9px 18px); box-shadow: inset 0 0 0 5px #8a5a33, inset 0 0 0 7px rgba(246, 236, 214, .55), 0 6px 0 rgba(0, 0, 0, .35); }
.g-cave-back svg { width: 50%; height: auto; opacity: .55; }
.g-cave-face { transform: rotateY(180deg); background: var(--paper); color: var(--ink); }
.g-cave-face svg { width: 66%; height: auto; }
.g-cave-face b { font-family: var(--font-display); font-size: clamp(30px, 6svh, 50px); line-height: 1; margin-top: -4px; }
.g-cave-face.trap { background: #fbe9cf; }
.g-cave-face.trap svg { width: 76%; }
.g-cave-card.warn .g-cave-face { box-shadow: inset 0 0 0 5px #f0a33a, 0 0 22px rgba(240, 163, 58, .7), 0 6px 0 rgba(0, 0, 0, .35); }
.g-cave-card.warn .g-cave-wob { animation: caveWarn .4s; }
@keyframes caveWarn { 25% { transform: rotate(-4deg); } 50% { transform: rotate(3deg); } 75% { transform: rotate(-2deg); } }
.g-cave-card.gem .g-cave-wob { animation: caveGem .3s; }
@keyframes caveGem { 50% { transform: scale(1.07); } }
.g-cave-card.fall .g-cave-face { background: #f3b3a8; box-shadow: inset 0 0 0 5px var(--red), 0 0 26px rgba(224, 93, 79, .85), 0 6px 0 rgba(0, 0, 0, .35); }
.g-cave-card.fall .g-cave-wob { animation: shake .45s; }
.g-cave-trail { flex: none; height: 54px; display: flex; justify-content: center; align-items: flex-start; gap: 4px; padding: 0 12px; }
.g-cave-slot { position: relative; flex: 0 1 34px; min-width: 10px; height: 44px; }
.g-cave-mini { position: absolute; left: 0; top: 0; width: 31px; height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 6px; box-shadow: 0 3px 0 rgba(0, 0, 0, .3); font-family: var(--font-display); font-size: 14px; line-height: 1; animation: caveMini .25s ease-out; }
.g-cave-mini svg { width: 22px; height: 22px; flex: none; }
.g-cave-mini.warn { background: #fbe9cf; border-color: #c97a1c; }
.g-cave-mini.warn svg { width: 25px; height: 25px; }
@keyframes caveMini { from { transform: translateY(-34px) scale(1.6); opacity: 0; } }
.g-cave-fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.g-cave-dust { position: absolute; inset: 0; opacity: 0; background: radial-gradient(circle at 50% 30%, rgba(122, 102, 80, .75), rgba(42, 29, 18, .85)); }
.g-cave-stage.fall .g-cave-dust { animation: caveDust 1s forwards; }
@keyframes caveDust { 0% { opacity: 0; } 30% { opacity: .85; } 100% { opacity: .55; } }
.g-cave-rock { position: absolute; top: -10%; background: #7a6650; border: 2px solid var(--ink); border-radius: 38% 55% 44% 60%; opacity: 0; }
.g-cave-rock.b { background: #4f6d7a; border-radius: 55% 35% 60% 42%; }
.g-cave-stage.fall .g-cave-rock { animation: caveRock .65s cubic-bezier(.35, 0, .75, .55) both; }
@keyframes caveRock { 0% { top: -10%; opacity: 1; transform: rotate(0); } 100% { top: 106%; opacity: 1; transform: rotate(250deg); } }
.g-cave-quake { animation: caveQuake .5s; }
@keyframes caveQuake { 0%, 100% { transform: none; } 12% { transform: translate(-7px, 3px); } 25% { transform: translate(6px, -4px); } 38% { transform: translate(-5px, -2px); } 52% { transform: translate(5px, 3px); } 68% { transform: translate(-3px, 1px); } 84% { transform: translate(2px, -1px); } }
.g-cave-msg { font-size: 17px; word-break: keep-all; }
.g-cave-btns { display: grid; grid-template-columns: 3fr 2fr; gap: 10px; margin-bottom: 6px; }
.g-btn.g-cave-go, .g-btn.g-cave-out { min-height: 84px; padding: 6px; word-break: keep-all; line-height: 1.15; }
.g-btn.g-cave-go { background: var(--accent); color: var(--on-accent); border-color: #b8603b; box-shadow: 0 6px 0 #a8532f; }
.g-btn.g-cave-out { background: var(--paper); color: var(--ink); border-color: var(--wood); box-shadow: 0 6px 0 var(--wood); }
.g-cave-btns .g-btn.off { opacity: .4; box-shadow: none; transform: translateY(4px); }
@media (max-height: 600px) {
  .g-btn.g-pump-btn { height: 24svh; font-size: 36px; }
  .g-btn.g-pump-tie { min-height: 50px; }
  .g-btn.g-cave-go, .g-btn.g-cave-out { min-height: 62px; font-size: 22px; }
  .g-cave-hz { width: 42px; padding: 4px; }
}
/* 홈런 한 방 */
.ga-homerun, .ga-net { user-select: none; -webkit-user-select: none; }
.g-homerun-field { position: relative; flex: 1; min-height: 0; touch-action: none; }
.g-homerun-cv { position: absolute; inset: 0; height: 100%; background: #1d4631; border: 3px solid var(--wood); touch-action: none; }
.g-homerun-count { position: absolute; left: 12px; top: 11px; padding: 3px 11px; border-radius: 99px; background: rgba(16, 41, 28, .82); border: 2px solid var(--wood); color: var(--paper); font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; pointer-events: none; }
.g-homerun-kind { position: absolute; left: 50%; top: 0; transform: translate(-50%, -100%) scale(.8); padding: 2px 10px; border-radius: 99px; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); font-weight: 800; font-size: 13px; white-space: nowrap; opacity: 0; transition: opacity .15s, transform .15s; pointer-events: none; }
.g-homerun-kind.show { opacity: 1; transform: translate(-50%, -100%) scale(1); }
.g-homerun-result { position: absolute; left: 0; right: 0; top: 40%; text-align: center; font-family: var(--font-display); font-size: 40px; font-weight: 900; line-height: 1.1; color: var(--paper); text-shadow: 0 3px 0 #3b2a1a, 0 0 10px #3b2a1a; opacity: 0; pointer-events: none; z-index: 5; }
.g-homerun-result.show { animation: hrPop .95s forwards; }
.g-homerun-result.hr { color: #f7d154; font-size: 54px; }
.g-homerun-result.hit { color: var(--green); }
.g-homerun-result.miss { color: #ff8a7a; font-size: 34px; }
@keyframes hrPop { 0% { opacity: 0; transform: scale(.55); } 14% { opacity: 1; transform: scale(1.12); } 24% { transform: scale(1); } 78% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px); } }
.ga-homerun .g-float { top: calc(40% + 66px); font-size: 26px; color: #f7d154; text-shadow: 0 2px 0 #3b2a1a, 0 0 6px #3b2a1a; }
.g-homerun-score.bump, .g-net-score.bump { animation: t4Bump .22s; }
@keyframes t4Bump { 50% { transform: scale(1.14); } }
.g-homerun-sub.end { color: var(--accent2); font-size: 18px; }
/* 그물 던지기 */
.g-net-wrap { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; container-type: size; touch-action: none; }
.g-net-board { position: relative; width: min(100%, 46svh); height: min(100%, 46svh); width: min(100cqw, 100cqh - 50px); height: min(100cqw, 100cqh - 50px); flex: none; box-sizing: border-box; border-radius: 22px; border: 6px solid var(--wood); background: #183b29; overflow: hidden; box-shadow: inset 0 0 0 2px #3b2a1a, 0 4px 0 rgba(0, 0, 0, .25); }
.g-net-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.g-net-board.hit { animation: netHit .3s; }
@keyframes netHit { 35% { transform: scale(.985); } }
.g-net-gauge { position: relative; flex: none; width: min(100%, 46svh); width: min(100cqw, 100cqh - 50px); height: 36px; box-sizing: border-box; border-radius: 99px; overflow: hidden; background: #10291c; border: 2px solid var(--wood); }
.g-net-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: #5b8a6c; }
.g-net-gauge.ready .g-net-fill { background: linear-gradient(#f2c76a, #d9a21b); }
.g-net-label { position: relative; height: 100%; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 16px; color: var(--paper); text-shadow: 0 1px 0 #3b2a1a; }
.g-net-gauge.ready .g-net-label { color: var(--ink); text-shadow: none; }
.g-net-gauge.no { animation: netNo .25s; }
@keyframes netNo { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.ga-net .g-float { top: 14%; font-size: 40px; font-family: var(--font-display); color: #f7d154; text-shadow: 0 2px 0 #3b2a1a, 0 0 8px #3b2a1a; }
/* 말 경주 응원 */
.ga-derby { gap: 8px; user-select: none; -webkit-user-select: none; }
.g-derby-score.bump { animation: derbyBump .35s; }
@keyframes derbyBump { 50% { transform: scale(1.2); color: #f7d154; } }
.g-derby-head { display: grid; gap: 4px; padding: 6px 10px; background: var(--paper); color: var(--ink); border: 3px solid var(--wood); border-radius: 14px; box-shadow: 0 4px 0 rgba(0,0,0,.3); }
.g-derby-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 26px; min-width: 0; }
.g-derby-race { flex: none; background: var(--ink); color: var(--paper); border-radius: 99px; padding: 2px 10px; font-weight: 900; font-size: 14px; white-space: nowrap; }
.g-derby-stage { min-width: 0; font-family: var(--font-display); font-size: 22px; line-height: 1.15; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-derby-stage[data-s="hurry"] { color: #c0392b; }
.g-derby-stage[data-s="run"] { color: #2b6243; }
.g-derby-stage[data-s="show"], .g-derby-stage[data-s="end"] { color: #b5520f; }
.g-derby-left { flex: none; font-weight: 800; font-size: 15px; white-space: nowrap; }
.g-derby-tray { display: flex; gap: 3px; min-width: 0; }
.g-derby-dot { width: 15px; height: 15px; flex: none; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--ink); background: radial-gradient(circle, var(--accent) 0 30%, var(--paper) 32% 50%, var(--accent) 52%); transition: opacity .15s, transform .15s; }
.g-derby-dot.used { opacity: .18; transform: scale(.7); }
.g-derby-tray.nochip { animation: shake .3s; }
.g-derby-board { --ph: min(58px, 10.5cqh); --pw: calc(var(--ph) * 40 / 52); flex: 1; min-height: 0; container-type: size; position: relative; display: grid; grid-template-rows: repeat(6, 1fr); background: #183b29; border: 3px solid var(--wood); border-radius: 14px; overflow: hidden; touch-action: none; }
.g-derby-lane { position: relative; display: grid; grid-template-columns: 104px 1fr; min-height: 0; }
.g-derby-gate { display: flex; align-items: center; justify-content: space-between; gap: 2px; padding: 0 6px 0 8px; background: var(--paper); color: var(--ink); border-right: 3px solid var(--wood); border-top: 2px solid rgba(138,90,51,.3); transition: background .15s; }
.g-derby-track { position: relative; min-width: 0; background: #183b29; border-top: 2px dashed rgba(246,236,214,.18); }
.g-derby-lane:first-child .g-derby-gate, .g-derby-lane:first-child .g-derby-track { border-top: 0; }
.g-derby-lane:nth-child(even) .g-derby-track { background: #1f4a33; }
.g-derby-track::before { content: ''; position: absolute; top: 0; bottom: 0; left: calc(var(--pw) + 9px); border-left: 2px dashed rgba(246,236,214,.3); }
.g-derby-finish { position: absolute; top: 0; bottom: 0; right: 18px; width: 10px; background: repeating-conic-gradient(var(--ink) 0 25%, var(--paper) 0 50%) 0 0 / 10px 10px; }
.g-derby-odds { font-family: var(--font-display); font-size: 24px; line-height: 1; white-space: nowrap; }
.g-derby-pile { display: flex; align-items: center; gap: 2px; }
.g-derby-stack { position: relative; width: 18px; height: 34px; flex: none; }
.g-derby-stack:empty::after { content: ''; position: absolute; left: 0; bottom: 0; width: 18px; height: 7px; box-sizing: border-box; border: 1.5px dashed rgba(59,42,26,.4); border-radius: 4px / 3px; }
.g-derby-chip { position: absolute; left: 0; width: 18px; height: 7px; box-sizing: border-box; border: 1.5px solid var(--ink); border-radius: 4px / 3px; background: repeating-linear-gradient(90deg, var(--accent) 0 4px, var(--paper) 4px 6px); animation: derbyDrop .2s ease-out; }
@keyframes derbyDrop { from { transform: translateY(-16px); opacity: 0; } }
.g-derby-n { min-width: 1.2em; font-size: 16px; font-weight: 900; text-align: center; font-variant-numeric: tabular-nums; }
.g-derby-pawn { position: absolute; left: 6px; top: 0; bottom: 0; margin: auto 0; width: var(--pw); height: var(--ph); z-index: 2; will-change: transform; pointer-events: none; }
.g-derby-pawn svg { display: block; width: 100%; height: 100%; transform-origin: 50% 92%; }
/* 내가 건 말: 레인 강조 */
.g-derby-lane.mine .g-derby-gate { background: var(--accent2); }
.g-derby-lane.mine .g-derby-track { background: #2b6243; box-shadow: inset 0 0 0 2px rgba(242,184,128,.75); }
.g-derby-lane.bet .g-derby-gate { animation: derbyBet .22s; }
@keyframes derbyBet { from { background: #fffaf0; } }
/* 경주 중: 통통 뛰기 (레인마다 박자를 조금씩 다르게) */
.g-derby-board[data-stage="run"] .g-derby-pawn svg { animation: derbyHop .24s ease-in-out infinite alternate; }
.g-derby-lane:nth-child(2) .g-derby-pawn svg { animation-delay: -.08s; }
.g-derby-lane:nth-child(3) .g-derby-pawn svg { animation-delay: -.17s; }
.g-derby-lane:nth-child(4) .g-derby-pawn svg { animation-delay: -.05s; }
.g-derby-lane:nth-child(5) .g-derby-pawn svg { animation-delay: -.13s; }
.g-derby-lane:nth-child(6) .g-derby-pawn svg { animation-delay: -.21s; }
@keyframes derbyHop { from { transform: translateY(0) rotate(-6deg); } to { transform: translateY(-12%) rotate(6deg); } }
/* 결과: 이긴 말 반짝, 진 말 흐리게, 내가 잃은 칩 회색 */
.g-derby-board[data-stage="show"] .g-derby-lane:not(.win) .g-derby-pawn, .g-derby-board[data-stage="end"] .g-derby-lane:not(.win) .g-derby-pawn { opacity: .5; }
.g-derby-lane.win .g-derby-gate { background: #f7d154; }
.g-derby-lane.win .g-derby-track { background: radial-gradient(ellipse at 88% 50%, rgba(247,209,84,.6), rgba(247,209,84,.12) 70%), #2b6243; animation: derbyGlow .6s ease-in-out infinite alternate; }
.g-derby-lane.win .g-derby-pawn svg { animation: derbyWin .4s ease-in-out infinite alternate; filter: drop-shadow(0 0 6px #f7d154); }
@keyframes derbyWin { from { transform: translateY(0) scale(1); } to { transform: translateY(-14%) scale(1.08); } }
@keyframes derbyGlow { from { box-shadow: inset 0 0 0 2px rgba(247,209,84,.5); } to { box-shadow: inset 0 0 0 4px #f7d154; } }
.g-derby-gain { display: none; position: absolute; left: calc(var(--pw) + 16px); top: 50%; z-index: 3; transform: translateY(-50%); background: var(--ink); color: #f7d154; border: 2px solid #f7d154; border-radius: 10px; padding: 2px 9px; font-family: var(--font-display); font-size: 20px; line-height: 1.2; white-space: nowrap; }
.g-derby-lane.won .g-derby-gain { display: block; animation: derbyGain .45s ease-out; }
@keyframes derbyGain { 0% { transform: translateY(-50%) scale(.3); opacity: 0; } 60% { transform: translateY(-50%) scale(1.15); opacity: 1; } 100% { transform: translateY(-50%) scale(1); } }
.g-derby-lane.lost .g-derby-pile { opacity: .3; filter: grayscale(1); }
.g-derby-reset { min-height: 52px; font-size: 22px; background: var(--paper); color: var(--ink); border-color: var(--wood); }
.g-derby-reset.off { opacity: .4; }
.ga-derby .g-float { top: 38%; z-index: 5; font-family: var(--font-display); font-size: 44px; font-weight: 400; color: var(--paper); text-shadow: 0 3px 0 var(--ink), 0 0 10px var(--ink); }
.ga-derby .g-float.gold { color: #f7d154; font-size: 52px; }
@supports not (height: 1cqh) { .g-derby-board { --ph: 44px; } }
@media (max-height: 700px) {
  .ga-derby { gap: 6px; }
  .g-derby-head { padding: 4px 8px; gap: 2px; }
  .g-derby-stage { font-size: 19px; }
  .g-derby-odds { font-size: 20px; }
  .g-derby-lane { grid-template-columns: 96px 1fr; }
}

/* 키가 작은 폰(예: 375×548): 고르기 게임의 버튼 높이를 줄여 아래 정답/오답 표시가 잘리지 않게 */
@media (max-height: 600px) {
  .g-btn { min-height: 46px; font-size: 22px; padding: 6px; }
  .g-choices { gap: 8px; }
  .g-quiz-q { padding: 10px 12px; }
}

/* ==== 2차 묶음 A 스타일 시작 ==== */
/* 다트 꽂기 */
.ga-dart { gap: 6px; user-select: none; -webkit-user-select: none; }
.g-dart-score.bump { animation: dartBump .22s; }
@keyframes dartBump { 50% { transform: scale(1.14); } }
.g-dart-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 2px 12px; box-sizing: border-box; background: var(--paper); color: var(--ink); border: 3px solid var(--wood); border-radius: 14px; box-shadow: 0 3px 0 rgba(0, 0, 0, .25); }
.g-dart-no { font-family: var(--font-display); font-size: 20px; white-space: nowrap; }
.g-dart-pips { display: flex; gap: 4px; }
.g-dart-pip { width: 13px; height: 28px; opacity: .22; filter: grayscale(1); transition: opacity .12s, transform .12s; }
.g-dart-pip svg { display: block; width: 100%; height: 100%; }
.g-dart-pip.on { opacity: 1; filter: none; transform: translateY(-2px); }
.g-dart-field { position: relative; flex: 1; min-height: 0; touch-action: none; }
.g-dart-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; box-sizing: border-box; border-radius: 16px; background: #183b29; border: 3px solid var(--wood); touch-action: none; }
.g-dart-field.hit { animation: dartHit .3s; }
@keyframes dartHit { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-2px); } }
.g-dart-sub.no { color: #ff8a7a; }
.ga-dart .g-float { font-family: var(--font-display); font-weight: 400; font-size: 30px; color: var(--paper); text-shadow: 0 2px 0 #3b2a1a, 0 0 6px #3b2a1a; }
.ga-dart .g-float.no { color: #ff7b6b; }
.ga-dart .g-float.gold { color: #f7d154; font-size: 38px; }
@media (max-height: 700px) {
  .g-dart-head { min-height: 34px; }
  .g-dart-pip { height: 24px; width: 11px; }
}
/* 공통 그림 찾기 */
.ga-spot { gap: 8px; user-select: none; -webkit-user-select: none; }
.g-spot-score.bump { animation: dartBump .22s; }
.g-spot-cards { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; touch-action: none; }
.g-spot-slot { flex: 1; min-height: 0; container-type: size; display: grid; place-items: center; }
.g-spot-card { position: relative; width: min(100%, 38svh); height: min(100%, 38svh); width: min(100cqw, 100cqh); height: min(100cqw, 100cqh); box-sizing: border-box; border-radius: 50%; background: radial-gradient(circle at 38% 32%, #fffaf0, var(--paper) 55%, var(--paper2)); border: 6px solid var(--wood); box-shadow: inset 0 0 0 2px #3b2a1a, 0 5px 0 rgba(0, 0, 0, .3); touch-action: none; transition: filter .15s; }
.g-spot-card::after { content: ''; position: absolute; inset: 5%; border-radius: 50%; border: 2px dashed rgba(138, 90, 51, .28); pointer-events: none; }
.g-spot-card.in { animation: spotIn .32s ease-out; }
@keyframes spotIn { from { transform: scale(.82) rotate(-10deg); opacity: .2; } }
.g-spot-card.locked { filter: grayscale(.7) brightness(.78); }
.g-spot-sym { position: absolute; z-index: 1; transform: rotate(var(--r)); pointer-events: none; }
.g-spot-sym svg { display: block; width: 100%; height: 100%; }
.g-spot-sym.hit { z-index: 2; animation: spotHit .45s ease-out forwards; }
.g-spot-sym.hit::before { content: ''; position: absolute; inset: -12%; border-radius: 50%; border: 4px solid #f7d154; background: rgba(247, 209, 84, .28); box-shadow: 0 0 14px #f7d154; }
.g-spot-sym.dim { opacity: .35; transition: opacity .2s; }
.g-spot-sym.no { animation: spotNo .4s; }
@keyframes spotHit { 45% { transform: rotate(var(--r)) scale(1.32); } 100% { transform: rotate(var(--r)) scale(1.18); } }
@keyframes spotNo { 0%, 100% { transform: rotate(var(--r)); filter: none; } 20% { transform: rotate(var(--r)) translateX(-9%); filter: drop-shadow(0 0 6px #e05d4f); } 50% { transform: rotate(var(--r)) translateX(8%); filter: drop-shadow(0 0 6px #e05d4f); } 80% { transform: rotate(var(--r)) translateX(-4%); } }
.g-spot-sub.no { color: #ff8a7a; }
.ga-spot .g-float { top: 44%; z-index: 5; font-family: var(--font-display); font-weight: 400; font-size: 44px; color: #f7d154; text-shadow: 0 3px 0 #3b2a1a, 0 0 8px #3b2a1a; }
/* 엑스레이 상자 */
.ga-xray { gap: 6px; user-select: none; -webkit-user-select: none; }
.g-xray-score.bump { animation: dartBump .22s; }
.g-xray-stage { position: relative; flex: 1; min-height: 0; touch-action: none; }
.g-xray-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; box-sizing: border-box; border-radius: 16px; background: #183b29; border: 3px solid var(--wood); touch-action: none; }
.g-xray-stage.boom { animation: xrayBoom .35s; }
@keyframes xrayBoom { 20% { transform: translate(-6px, 3px); } 40% { transform: translate(5px, -3px); } 60% { transform: translate(-3px, 2px); } 80% { transform: translate(2px, 0); } }
.g-xray-lab { position: absolute; z-index: 2; top: 62%; transform: translateX(-50%); max-width: 38%; overflow: hidden; text-overflow: ellipsis; padding: 3px 9px; border-radius: 99px; font-weight: 800; font-size: 13px; line-height: 1.3; white-space: nowrap; pointer-events: none; }
.g-xray-lab.open { left: 20%; background: #f7d154; color: var(--ink); box-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
.g-xray-lab.wait { left: 81%; background: rgba(16, 41, 28, .85); color: var(--muted); border: 1px solid var(--line); }
.g-xray-legend { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.g-xray-key { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 40px; padding: 2px; box-sizing: border-box; background: var(--paper); color: var(--ink); border: 2px solid var(--wood); border-radius: 12px; font-family: var(--font-display); font-size: 20px; line-height: 1; }
.g-xray-key i { width: 28px; height: 28px; flex: none; }
.g-xray-key svg { display: block; width: 100%; height: 100%; }
.g-xray-key.k1 b { color: #1f7a6f; }
.g-xray-key.k2 b { color: #c0392b; }
.ga-xray .g-float { z-index: 3; font-family: var(--font-display); font-weight: 400; font-size: 36px; color: var(--paper); text-shadow: 0 2px 0 #3b2a1a, 0 0 6px #3b2a1a; }
.ga-xray .g-float.ok { color: #f7d154; }
.ga-xray .g-float.gold { color: #9fe8c8; font-size: 44px; }
.ga-xray .g-float.no { color: #ff7b6b; font-size: 42px; }
@media (max-height: 700px) {
  .g-xray-key { min-height: 34px; font-size: 18px; }
  .g-xray-key i { width: 24px; height: 24px; }
}
/* ==== 2차 묶음 A 스타일 끝 ==== */

/* ==== 2차 묶음 B 스타일 시작 ==== */
/* 반으로 자르기 */
.ga-slice, .ga-stretch, .ga-tidy { user-select: none; -webkit-user-select: none; }
.g-slice-score.bump { animation: gSliceBump .22s; }
@keyframes gSliceBump { 50% { transform: scale(1.14); color: var(--accent2); } }
.g-slice-wrap { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; container-type: size; touch-action: none; }
.g-slice-board { position: relative; width: min(100%, 52svh); height: min(100%, 52svh); width: min(100cqw, 100cqh - 40px); height: min(100cqw, 100cqh - 40px); flex: none; box-sizing: border-box; border-radius: 22px; border: 6px solid var(--wood); background: #183b29; overflow: hidden; box-shadow: inset 0 0 0 2px #3b2a1a, 0 4px 0 rgba(0, 0, 0, .25); touch-action: none; }
.g-slice-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.g-slice-ratio { position: absolute; left: 0; right: 0; top: 3%; display: flex; flex-direction: column; align-items: center; gap: 0; pointer-events: none; z-index: 4; opacity: 0; font-family: var(--font-display); color: var(--paper); text-shadow: 0 3px 0 #3b2a1a, 0 0 10px #3b2a1a; line-height: 1.05; }
.g-slice-ratio b { font-weight: 400; font-size: 46px; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.g-slice-ratio span { font-size: 26px; }
.g-slice-ratio.show { animation: gSliceRatio .95s forwards; }
.g-slice-ratio.gold { color: #f7d154; }
.g-slice-ratio.ok { color: #9fe8c8; }
.g-slice-ratio.no { color: #ff8a7a; }
.g-slice-hist { flex: none; display: flex; justify-content: center; gap: 6px; min-height: 30px; flex-wrap: nowrap; overflow: hidden; }
.g-slice-chip { flex: none; padding: 3px 9px; border-radius: 99px; background: var(--paper); color: var(--ink); border: 2px solid var(--wood); font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; line-height: 1.4; }
.g-slice-chip:first-child { animation: gSliceChip .3s ease-out; }
.g-slice-chip.gold { background: #f7d154; }
.g-slice-chip.ok { background: #bfe8cf; }
.g-slice-chip.meh { background: #f3e2ad; }
.g-slice-chip.no { background: #f3b3a8; opacity: .85; }
@keyframes gSliceChip { from { transform: scale(.4); opacity: 0; } }
@keyframes gSliceRatio { 0% { opacity: 0; transform: scale(.6); } 14% { opacity: 1; transform: scale(1.12); } 24% { transform: scale(1); } 85% { opacity: 1; } 100% { opacity: 0; } }
/* 모양 맞추기 */
.g-stretch-score.bump { animation: gSliceBump .22s; }
.g-stretch-wrap { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; container-type: size; touch-action: none; }
.g-stretch-board { position: relative; width: min(100%, 52svh); height: min(100%, 52svh); width: min(100cqw, 100cqh - 50px); height: min(100cqw, 100cqh - 50px); flex: none; box-sizing: border-box; border-radius: 22px; border: 6px solid var(--wood); background: #183b29; overflow: hidden; box-shadow: inset 0 0 0 2px #3b2a1a, 0 4px 0 rgba(0, 0, 0, .25); touch-action: none; }
.g-stretch-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.g-stretch-pct { position: absolute; left: 0; right: 0; top: 4%; text-align: center; pointer-events: none; z-index: 4; opacity: 0; font-family: var(--font-display); font-size: 52px; line-height: 1; color: var(--paper); text-shadow: 0 3px 0 #3b2a1a, 0 0 10px #3b2a1a; font-variant-numeric: tabular-nums; }
.g-stretch-pct.show { animation: gStretchPct 1.1s forwards; }
.g-stretch-pct.gold { color: #f7d154; }
.g-stretch-pct.ok { color: #9fe8c8; }
.g-stretch-pct.no { color: #ff8a7a; }
@keyframes gStretchPct { 0% { opacity: 0; transform: scale(.55); } 14% { opacity: 1; transform: scale(1.15); } 24% { transform: scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-8px); } }
.g-stretch-gauge { position: relative; flex: none; width: min(100%, 52svh); width: min(100cqw, 100cqh - 50px); height: 36px; box-sizing: border-box; border-radius: 99px; overflow: hidden; background: #10291c; border: 2px solid var(--wood); }
.g-stretch-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(#f2c76a, #d9a21b); }
.g-stretch-gauge.hurry .g-stretch-fill { background: linear-gradient(#f08a6c, #c8553d); }
.g-stretch-label { position: relative; height: 100%; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 16px; color: var(--paper); text-shadow: 0 1px 0 #3b2a1a, 0 0 4px #3b2a1a; }
/* 방 정리 */
.g-tidy-score.bump { animation: gSliceBump .22s; }
.g-tidy-head { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 34px; }
.g-tidy-no { flex: none; padding: 2px 10px; border-radius: 99px; background: var(--paper); color: var(--ink); border: 2px solid var(--wood); font-weight: 900; font-size: 14px; white-space: nowrap; }
.g-tidy-status { min-width: 0; font-family: var(--font-display); font-size: 24px; line-height: 1.2; color: var(--paper); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-tidy-wrap { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; container-type: size; touch-action: none; }
.g-tidy-room { position: relative; box-sizing: content-box; width: min(100% - 8px, 44svh); width: min(100cqw - 8px, (100cqh - 8px) / 1.3); aspect-ratio: 1 / 1.3; flex: none; border-radius: 16px; border: 4px solid var(--wood); background: linear-gradient(#2b6243, #1f4a33 70%); overflow: hidden; box-shadow: inset 0 0 0 2px #3b2a1a, 0 4px 0 rgba(0, 0, 0, .25); touch-action: none; }
.g-tidy-shelf, .g-tidy-lines { position: absolute; inset: 0; pointer-events: none; }
.g-tidy-shelf svg, .g-tidy-lines svg { display: block; width: 100%; height: 100%; }
.g-tidy-lines { z-index: 4; }
.g-tidy-lines path { fill: none; stroke: #f7d154; stroke-width: 3px; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: .85; }
.g-tidy-timer { position: absolute; left: 0; right: 0; top: 0; height: 6px; background: rgba(0, 0, 0, .35); z-index: 60; pointer-events: none; }
.g-tidy-bar { display: block; height: 100%; width: 100%; background: #f7d154; }
.g-tidy-room.arrange .g-tidy-bar { background: var(--accent); }
.g-tidy-item { position: absolute; z-index: 5; transform: translate(-50%, -50%) rotate(var(--rot, 0deg)); transition: left .12s ease-out, top .12s ease-out, transform .12s; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .35)); touch-action: none; }
.g-tidy-item svg { display: block; width: 100%; height: 100%; pointer-events: none; }
.g-tidy-room.fly .g-tidy-item { transition: left .45s cubic-bezier(.3, 1.25, .6, 1), top .45s cubic-bezier(.3, 1.35, .6, 1), transform .45s; }
.g-tidy-item.lift { transition: none; transform: translate(-50%, -50%) scale(1.18); filter: drop-shadow(0 9px 4px rgba(0, 0, 0, .4)); }
.g-tidy-item.pop { animation: gTidyPop .3s backwards; }
@keyframes gTidyPop { from { transform: translate(-50%, -50%) scale(.3); opacity: 0; } }
.g-tidy-room.show .g-tidy-item { z-index: 5 !important; }
.g-tidy-ghost { position: absolute; z-index: 3; transform: translate(-50%, -50%); opacity: .45; border-radius: 10px; outline: 2px dashed #f7d154; outline-offset: 1px; pointer-events: none; animation: gTidyGhost .35s; }
.g-tidy-ghost svg { display: block; width: 100%; height: 100%; }
@keyframes gTidyGhost { from { opacity: 0; transform: translate(-50%, -50%) scale(1.4); } }
.g-tidy-pts { position: absolute; z-index: 50; transform: translate(-50%, -125%); font-family: var(--font-display); font-size: 22px; line-height: 1; color: #9fe8c8; text-shadow: 0 2px 0 #3b2a1a, 0 0 6px #3b2a1a; pointer-events: none; white-space: nowrap; animation: gTidyPts .35s ease-out; }
.g-tidy-pts.gold { color: #f7d154; }
.g-tidy-pts.no { color: #ff8a7a; }
@keyframes gTidyPts { from { opacity: 0; transform: translate(-50%, -60%) scale(.5); } }
.g-btn.g-tidy-done { flex: none; min-height: 60px; background: var(--accent); color: var(--on-accent); border: 3px solid #b8603b; box-shadow: 0 6px 0 #a8532f; font-family: var(--font-display); font-weight: 400; font-size: 28px; margin-bottom: 6px; }
.g-btn.g-tidy-done.off { opacity: .4; box-shadow: none; transform: translateY(4px); }
@media (max-height: 700px) {
  .g-tidy-status { font-size: 20px; }
  .g-btn.g-tidy-done { min-height: 50px; font-size: 24px; }
}
/* ==== 2차 묶음 B 스타일 끝 ==== */

/* ==== 2차 묶음 C 스타일 시작 ==== */
/* 고개 내밀기 */
.ga-peek { gap: 8px; user-select: none; -webkit-user-select: none; }
.g-peek-score { font-family: var(--font-display); font-size: 26px; font-weight: 400; color: var(--paper); font-variant-numeric: tabular-nums; }
.g-peek-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; border: 3px solid var(--wood); border-radius: 16px; background: #183b29; touch-action: none; }
.g-peek-stage.bonk { animation: peekBonk .2s; }
.g-peek-stage.hit { animation: peekHit .4s; }
@keyframes peekBonk { 30% { transform: translateY(4px); } 60% { transform: translateY(-2px); } }
@keyframes peekHit { 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
.g-canvas.g-peek-cv { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; background: none; }
.g-peek-mult { position: absolute; left: 10px; top: 8px; z-index: 3; display: grid; justify-items: start; gap: 2px; pointer-events: none; }
.g-peek-mult b { font-family: var(--font-display); font-weight: 400; font-size: 36px; line-height: 1; color: var(--paper); text-shadow: 0 2px 0 var(--ink), 0 0 6px var(--ink); }
.g-peek-mult i { display: block; width: 62px; height: 8px; border-radius: 4px; background: rgba(0, 0, 0, .4); border: 1.5px solid var(--ink); overflow: hidden; }
.g-peek-mult s { display: block; height: 100%; width: 0; background: var(--paper); text-decoration: none; }
.g-peek-mult[data-m="2"] b { color: #f7d154; }
.g-peek-mult[data-m="2"] s { background: #f7d154; }
.g-peek-mult[data-m="3"] b { color: #ff8a5c; font-size: 42px; }
.g-peek-mult[data-m="3"] s { background: #ff8a5c; }
.g-peek-mult.up b { animation: peekUp .35s; }
@keyframes peekUp { 40% { transform: scale(1.35) rotate(-6deg); } }
.g-peek-msg { position: absolute; left: 0; right: 0; top: 12%; z-index: 3; text-align: center; font-family: var(--font-display); font-size: 30px; color: #f7d154; text-shadow: 0 2px 0 var(--ink), 0 0 8px var(--ink); pointer-events: none; }
.ga-peek .g-float { top: 26%; font-family: var(--font-display); font-weight: 400; font-size: 44px; text-shadow: 0 2px 0 var(--ink), 0 0 8px var(--ink); }
.ga-peek .g-float.no { color: #ff7b6b; }
.ga-peek .g-float.gold { left: 74%; top: 6%; color: #f7d154; font-size: 34px; }
.g-peek-sub { font-size: 15px; word-break: keep-all; }
/* 포커 한 판 */
.ga-poker { gap: 8px; user-select: none; -webkit-user-select: none; }
.g-poker-score { font-family: var(--font-display); font-weight: 400; font-size: 26px; color: var(--paper); font-variant-numeric: tabular-nums; }
.g-poker-score.bump { animation: pokerBump .3s; }
@keyframes pokerBump { 50% { transform: scale(1.15); color: #f7d154; } }
.g-poker-board { background: var(--paper); color: var(--ink); border: 3px solid var(--wood); border-radius: 14px; padding: 5px 10px 6px; box-shadow: 0 4px 0 rgba(0, 0, 0, .3); }
.g-poker-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 3px; }
.g-poker-no { background: var(--ink); color: var(--paper); border-radius: 99px; padding: 1px 10px; font-weight: 900; font-size: 14px; white-space: nowrap; }
.g-poker-ante { font-size: 13px; font-weight: 800; color: var(--ink-muted); white-space: nowrap; }
.g-poker-pay { display: grid; grid-template-rows: repeat(4, auto); grid-auto-flow: column; column-gap: 14px; row-gap: 1px; }
.g-poker-row { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; padding: 0 4px; border-radius: 6px; font-size: 14px; font-weight: 700; line-height: 1.45; white-space: nowrap; }
.g-poker-row b { font-family: var(--font-display); font-weight: 400; font-size: 16px; color: #b5520f; }
.g-poker-row.hit { background: #f7d154; animation: pokerRow .6s; }
@keyframes pokerRow { 0%, 40% { transform: scale(1.06); } }
.g-poker-table { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; background: radial-gradient(ellipse at 50% 40%, #2b6243, #1f4a33 70%, #183b29); border: 3px solid var(--wood); border-radius: 18px; box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .18); }
.g-poker-table { justify-content: space-evenly; }
.g-poker-chips { display: flex; justify-content: center; align-items: flex-end; gap: 5px; height: 84px; padding-top: 8px; pointer-events: none; }
.g-poker-col { display: flex; flex-direction: column-reverse; }
.g-poker-col i { display: block; width: 34px; height: 9px; margin-top: -3px; box-sizing: border-box; border: 2px solid var(--ink); border-radius: 50%; background: repeating-linear-gradient(90deg, var(--accent) 0 6px, var(--paper) 6px 9px); }
.g-poker-col:nth-child(even) i { background: repeating-linear-gradient(90deg, #2a9d8f 0 6px, var(--paper) 6px 9px); }
.g-poker-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 14px 8px 30px; touch-action: none; }
.g-poker-card { position: relative; aspect-ratio: 5 / 7.2; perspective: 600px; touch-action: none; cursor: pointer; }
.g-poker-flip { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .18s ease-in-out, translate .12s ease-out; }
.g-poker-card.down .g-poker-flip { transform: rotateY(180deg); }
.g-poker-card.instant .g-poker-flip { transition: none; }
.g-poker-card.held .g-poker-flip { translate: 0 -12px; }
.g-poker-face, .g-poker-back { position: absolute; inset: 0; box-sizing: border-box; border: 2px solid var(--ink); border-radius: 8px; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 3px 0 rgba(0, 0, 0, .35); }
.g-poker-face { background: #fffaf0; color: var(--ink); overflow: hidden; }
.g-poker-face.red { color: #c8553d; }
.g-poker-back { transform: rotateY(180deg); background: repeating-linear-gradient(45deg, #c8553d 0 5px, #a8432f 5px 10px); box-shadow: inset 0 0 0 3px #fffaf0, 0 3px 0 rgba(0, 0, 0, .35); }
.g-poker-rk { position: absolute; left: 4px; top: 3px; font-family: var(--font-display); font-weight: 400; font-size: clamp(17px, 5.4vw, 26px); line-height: 1; letter-spacing: -1px; }
.g-poker-s1 { position: absolute; left: 4px; top: calc(3px + clamp(17px, 5.4vw, 26px)); width: 28%; aspect-ratio: 1; }
.g-poker-s2 { position: absolute; right: 8%; bottom: 7%; width: 54%; aspect-ratio: 1; }
.g-poker-face svg { display: block; width: 100%; height: 100%; }
.g-poker-hold { display: none; position: absolute; left: 50%; bottom: -25px; transform: translateX(-50%); background: #f7d154; color: var(--ink); border: 2px solid var(--ink); border-radius: 8px; padding: 0 6px; font-size: 13px; font-weight: 900; line-height: 1.4; white-space: nowrap; }
.g-poker-card.held .g-poker-hold { display: block; animation: pop .2s; }
.g-poker-card.held .g-poker-face { box-shadow: 0 0 0 3px #f7d154, 0 6px 0 rgba(0, 0, 0, .35); }
.g-poker-table.done .g-poker-card:not(.win) { opacity: .45; }
.g-poker-card.win .g-poker-face { box-shadow: 0 0 0 3px #f7d154, 0 0 14px #f7d154; }
.g-poker-res { min-height: 74px; display: grid; align-content: start; justify-items: center; padding: 0 8px 10px; pointer-events: none; }
.g-poker-hand { font-family: var(--font-display); font-size: 34px; line-height: 1.15; color: var(--paper); text-shadow: 0 2px 0 var(--ink); text-align: center; word-break: keep-all; }
.g-poker-hand:not(:empty) { animation: pop .35s; }
.g-poker-hand.good { color: #f7d154; }
.g-poker-hand.big { color: #ffb36b; font-size: 40px; }
.g-poker-hand.none, .g-poker-hand.no { color: var(--muted); font-size: 28px; }
.g-poker-gain { font-family: var(--font-display); font-size: 22px; color: #f7d154; text-shadow: 0 2px 0 var(--ink); }
.g-btn.g-poker-draw { flex: none; min-height: 76px; background: var(--accent); color: var(--on-accent); border: 3px solid #b8603b; box-shadow: 0 6px 0 #a8532f; font-family: var(--font-display); font-weight: 400; font-size: 32px; margin-bottom: 6px; touch-action: none; }
.g-btn.g-poker-draw.off { opacity: .45; box-shadow: none; transform: translateY(4px); }
.g-btn.g-poker-draw.wait { animation: shake .3s; }
.g-poker-sub { font-size: 14px; word-break: keep-all; }
@media (max-height: 700px) {
  .g-poker-chips { height: 52px; padding-top: 4px; }
  .g-poker-col i { width: 26px; height: 7px; margin-top: -3px; }
  .g-poker-row { font-size: 13px; line-height: 1.3; }
  .g-poker-cards { padding: 12px 6px 28px; }
  .g-poker-res { min-height: 60px; }
  .g-poker-hand { font-size: 28px; }
  .g-btn.g-poker-draw { min-height: 60px; font-size: 26px; }
}
/* 소수파가 이긴다 */
.ga-few { user-select: none; -webkit-user-select: none; }
.ga-few.g-few-fin { justify-content: center; padding-bottom: 12%; }
.g-few-card { background: var(--paper); color: var(--ink); border: 4px solid var(--wood); border-radius: 16px; padding: 14px 16px 12px; text-align: center; box-shadow: 0 5px 0 rgba(0, 0, 0, .3); }
.g-few-card.next { animation: pop .3s; }
.g-few-ask { font-size: 16px; font-weight: 800; color: var(--ink-muted); }
.g-few-ask.end { font-family: var(--font-display); font-size: 28px; font-weight: 400; color: var(--ink); padding: 18px 0; }
.g-few-topic { font-family: var(--font-display); font-size: 30px; line-height: 1.2; margin: 6px 0 12px; word-break: keep-all; }
.g-few-bar { height: 12px; border-radius: 6px; background: rgba(59, 42, 26, .18); overflow: hidden; }
.g-few-fill { height: 100%; width: 100%; background: #c8553d; transition: width .1s linear; }
.g-few-card.done .g-few-fill { background: rgba(59, 42, 26, .35); }
.g-few-say { min-height: 1.4em; margin-top: 6px; font-weight: 900; font-size: 17px; color: #2b6243; }
.g-few-say.late { color: #c0392b; }
.g-few-btns { flex: 1; min-height: 0; display: grid; grid-template-rows: repeat(3, 1fr); gap: 12px; }
.g-btn.g-few-btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 76px; padding: 8px 14px 8px 60px; background: var(--panel2); font-size: 24px; line-height: 1.2; word-break: keep-all; touch-action: none; transition: opacity .15s; }
.g-few-btn b { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); font-family: var(--font-display); font-weight: 400; font-size: 20px; }
.g-btn.g-few-btn.sel { background: var(--accent); color: var(--on-accent); border-color: #fff; }
.g-btn.g-few-btn.off { opacity: .35; }
@media (max-height: 700px) {
  .g-few-topic { font-size: 25px; margin: 4px 0 8px; }
  .g-btn.g-few-btn { min-height: 56px; font-size: 21px; }
  .g-few-btns { gap: 8px; }
}
/* ==== 2차 묶음 C 스타일 끝 ==== */

/* ==== 2차 묶음 D 스타일 시작 ==== */
/* 멀리뛰기: 위 기록 줄, 옆에서 본 경기장(canvas) + 글자 겹침, 아래 [점프]와 발 버튼 */
.ga-longjump { gap: 8px; user-select: none; -webkit-user-select: none; }
.g-lj-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 2px; }
.g-lj-score { text-align: left; font-family: var(--font-display); font-weight: 400; font-size: 20px; color: var(--paper); white-space: nowrap; }
.g-lj-score.bump { animation: jumpBump .22s; }
.g-lj-recs { display: flex; gap: 6px; }
.g-lj-rec { display: flex; align-items: center; gap: 5px; min-width: 62px; padding: 3px 8px 3px 4px; border-radius: 99px; background: var(--panel2); border: 2px solid var(--line); font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.g-lj-rec b { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--felt2); color: var(--muted); font-size: 11px; }
.g-lj-rec.best { background: var(--paper); color: var(--ink); border-color: var(--wood); }
.g-lj-rec.best b { background: var(--accent); color: var(--on-accent); }
.g-lj-rec.foul { color: #ff8a7c; border-color: #a33b2b; }
.g-lj-rec.none { color: var(--muted); }
.g-lj-field { position: relative; flex: 1; min-height: 120px; touch-action: none; }
.g-lj-field.hit { animation: jumpHit .28s; }
.g-lj-cv { position: absolute; inset: 0; height: 100%; border: 3px solid var(--wood); touch-action: none; }
.g-lj-msg { position: absolute; left: 8px; right: 8px; top: 9%; text-align: center; font-weight: 900; font-size: clamp(17px, 2.6svh, 22px); color: var(--paper); text-shadow: 0 2px 0 #3b2a1a, 0 0 6px #3b2a1a; pointer-events: none; word-break: keep-all; }
.g-lj-msg.big { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 4.6svh, 40px); }
.g-lj-msg.go { color: #f7d154; }
.g-lj-msg.ok { color: #9fe8a0; }
.g-lj-msg.no { color: #ff8a7c; }
.g-lj-msg.pop { animation: pop .3s; }
.g-lj-sub { position: absolute; left: 8px; right: 8px; top: calc(9% + clamp(34px, 5.4svh, 48px)); text-align: center; font-weight: 800; font-size: 15px; color: var(--paper); text-shadow: 0 2px 0 #3b2a1a; pointer-events: none; }
.g-lj-speed { position: absolute; left: 10px; bottom: 9px; right: 38%; display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 900; color: var(--paper); text-shadow: 0 1px 0 #3b2a1a; pointer-events: none; }
.g-lj-bar { flex: 1; height: 10px; border-radius: 99px; background: rgba(16, 40, 28, .7); border: 2px solid #3b2a1a; overflow: hidden; }
.g-lj-bar i { display: block; height: 100%; width: 0; background: #f2b880; }
.g-lj-speed b { opacity: .35; }
.g-lj-speed.max .g-lj-bar i { background: #8fd18a; }
.g-lj-speed.max b { opacity: 1; color: #9fe8a0; }
.g-btn.g-lj-jump { flex: none; min-height: 64px; background: var(--accent); color: var(--on-accent); border: 3px solid #b8603b; box-shadow: 0 5px 0 #a8532f; font-family: var(--font-display); font-weight: 400; font-size: 30px; margin-bottom: 4px; touch-action: none; }
.g-btn.g-lj-jump.angle { background: #f7d154; border-color: #c9a227; box-shadow: 0 5px 0 #a8871f; }
.g-btn.g-lj-jump.off { opacity: .45; box-shadow: none; transform: translateY(4px); }
.g-lj-feet { flex: none; height: clamp(96px, 22svh, 200px); display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.g-lj-foot { touch-action: none; }
.g-lj-foot .g-foot-art { width: clamp(44px, 8svh, 68px); height: clamp(44px, 8svh, 68px); }
.g-lj-foot.g-foot:first-child .g-foot-art { transform: scaleX(-1); }
/* 모션 지령: 큰 지령 카드(지령 글자 + 폰 자세 그림 + 유지 막대). 그림은 SVG 라 화면 크기가 바뀌어도 그대로 */
.ga-move { user-select: none; -webkit-user-select: none; }
.g-move-score { font-family: var(--font-display); font-weight: 400; font-size: 20px; color: var(--paper); }
.g-move-score.bump { animation: jumpBump .22s; }
.g-move-card { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 12px 10px; border-radius: 18px; background: #183b29; border: 3px solid var(--wood); overflow: hidden; touch-action: none; transition: border-color .12s; }
.g-move-card.hold { border-color: #f7d154; }
.g-move-card.ok { animation: moveOk .35s; }
.g-move-card.no { animation: shake .3s; }
.g-move-no { flex: none; font-size: 14px; font-weight: 800; color: var(--muted); }
.g-move-cmd { flex: none; font-family: var(--font-display); font-size: clamp(30px, 5.4svh, 46px); line-height: 1.1; color: var(--paper); text-align: center; word-break: keep-all; }
.g-move-cmd.pop { animation: pop .3s; }
.g-move-desc { flex: none; min-height: 1.3em; font-size: 15px; font-weight: 700; color: var(--accent2); text-align: center; word-break: keep-all; }
.g-move-art { flex: 1; min-height: 60px; width: 100%; display: flex; align-items: center; justify-content: center; }
.g-move-art svg { display: block; height: 100%; max-height: 400px; width: auto; max-width: 100%; }
.g-move-hold { flex: none; width: 72%; height: 14px; border-radius: 99px; background: rgba(0, 0, 0, .3); border: 2px solid #3b2a1a; overflow: hidden; }
.g-move-hold i { display: block; height: 100%; width: 0; background: #f7d154; }
.g-move-how { flex: none; font-size: 20px; font-weight: 900; color: #f7d154; min-height: 0; }
.g-move-how:empty { display: none; }
.g-move-now { flex: none; font-size: 14px; font-weight: 800; color: var(--muted); min-height: 1.2em; }
.g-move-card[data-mode="finger"] .g-move-hold, .g-move-card[data-mode="finger"] .g-move-now { display: none; }
.g-move-card.pause .g-move-cmd { color: var(--green); }
.ga-move .g-float { top: 30%; font-size: 34px; text-shadow: 0 2px 0 #3b2a1a; }
.ga-move .g-float.no { font-size: 22px; }
@keyframes moveOk { 0% { background: #2b8a46; } 100% { background: #183b29; } }
/* 탁구 랠리: 원근 탁구대(canvas) + 글자 겹침 */
.ga-rally { user-select: none; -webkit-user-select: none; }
.g-rally-score { font-family: var(--font-display); font-weight: 400; font-size: 20px; color: var(--paper); }
.g-rally-score.bump { animation: jumpBump .22s; }
.g-rally-field { position: relative; flex: 1; min-height: 0; touch-action: none; }
.g-rally-cv { position: absolute; inset: 0; height: 100%; border: 3px solid var(--wood); touch-action: none; }
.g-rally-msg { position: absolute; left: 8px; right: 8px; top: 3%; text-align: center; font-family: var(--font-display); font-size: clamp(26px, 4.4svh, 38px); color: var(--paper); text-shadow: 0 2px 0 #3b2a1a, 0 0 8px #3b2a1a; pointer-events: none; }
.g-rally-msg.ok { color: #9fe8a0; }
.g-rally-msg.no { color: #ff8a7c; }
.g-rally-msg.pop { animation: pop .3s; }
.g-rally-kind { position: absolute; left: 50%; top: 22%; transform: translateX(-50%); padding: 3px 12px; border-radius: 99px; background: var(--red); color: #fff; font-weight: 900; font-size: 15px; white-space: nowrap; pointer-events: none; opacity: 0; }
.g-rally-kind.show { animation: rallyKind 1s forwards; }
.g-rally-streak { position: absolute; right: 10px; bottom: 10px; padding: 2px 10px; border-radius: 99px; background: var(--paper); color: var(--ink); border: 2px solid var(--wood); font-weight: 900; font-size: 14px; pointer-events: none; }
.g-rally-streak:empty { display: none; }
@keyframes rallyKind { 0% { opacity: 0; transform: translateX(-50%) scale(.6); } 15% { opacity: 1; transform: translateX(-50%) scale(1.1); } 30%, 70% { opacity: 1; transform: translateX(-50%) scale(1); } 100% { opacity: 0; transform: translateX(-50%) scale(1); } }
/* ==== 2차 묶음 D 스타일 끝 ==== */
