/* 맞대결 */
.stage--duel { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.app[data-game="duel"] .mini-body { inset: 0; gap: 0; }
.app[data-game="duel"] .stage--mini .num { display: none; }
.duel { position: absolute; inset: 0; display: grid; grid-template-rows: 1fr auto 1fr; }
.duel[data-dir="h"] { grid-template-rows: none; grid-template-columns: 1fr auto 1fr; }
.duel[data-dir="h"] .duel__half--a { order: 0; } .duel[data-dir="h"] .duel__mid { order: 1; } .duel[data-dir="h"] .duel__half--b { order: 2; } /* 0번이 왼쪽, 신호는 가운데 */
.duel[data-dir="v"] .duel__half--b { transform: rotate(180deg); }       /* 마주 앉은 사람이 읽게 뒤집어요 */
.duel__half { position: relative; min-width: 0; min-height: 0; display: grid; }
.duel__in { display: grid; grid-template-rows: auto auto 1fr; justify-items: center; gap: 8px; padding: 10px 16px 34px; min-height: 0; }
.duel[data-dir="h"] .duel__in { padding: 26px 20px; }
.duel__pips { display: flex; gap: 8px; }
.duel__pips i { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(var(--stage-ink), 0.3); }
.duel__pips i.is-on { background: var(--sprout); box-shadow: none; }
.duel__msg { margin: 0; min-height: 28px; font: 400 22px/28px var(--font-display); text-align: center; }
.duel__msg.is-win { color: var(--sprout); } .duel__msg.is-warn { color: var(--p1); }
.duel__msg.is-big { font-size: 34px; line-height: 40px; }
/* 누름판: 반쪽 전체가 아니라 가운데만. 폰을 쥔 손바닥이 닿아도 눌리지 않게 가장자리는 비워요 */
.duel__pad { align-self: stretch; justify-self: center; width: min(74%, 300px); min-height: 72px; display: grid; place-items: center; border-radius: 28px; background: var(--stage-raised); box-shadow: inset 0 0 0 2px rgba(var(--stage-ink), 0.12), 0 4px 0 rgba(var(--stage-ink), 0.12); cursor: pointer; touch-action: none; }
.duel__pad span { font: 400 26px/1 var(--font-display); color: var(--on-stage-muted); pointer-events: none; }
.duel__pad.is-down { transform: translateY(3px); box-shadow: inset 0 0 0 2px rgba(var(--stage-ink), 0.3); }
.duel__mid { position: relative; display: grid; place-items: center; height: 108px; }
.duel__mid::before { content: ''; position: absolute; left: 14px; right: 14px; top: 50%; border-top: 2px dashed rgba(var(--stage-ink), 0.16); }
.duel[data-dir="h"] .duel__mid { height: auto; width: 150px; }
.duel[data-dir="h"] .duel__mid::before { left: 50%; right: auto; top: 14px; bottom: 14px; border-top: 0; border-left: 2px dashed rgba(var(--stage-ink), 0.16); }
/* 신호: 진짜 = 꽉 찬 큰 동그라미, 가짜 = X가 들어간 빈 네모 (색을 못 가려도 모양으로 알아요) */
.duel__sig { position: relative; display: block; width: 26px; height: 26px; border-radius: 50%; background: var(--stage); box-shadow: inset 0 0 0 3px rgba(var(--stage-ink), 0.25); }
.duel__sig.is-go { width: 96px; height: 96px; background: var(--sprout); box-shadow: none; }
.duel__sig.is-decoy { width: 88px; height: 88px; border-radius: 12px; background: var(--stage); box-shadow: inset 0 0 0 7px var(--p1); }
.duel__sig.is-decoy::before, .duel__sig.is-decoy::after { content: ''; position: absolute; left: 50%; top: 50%; width: 74px; height: 7px; margin: -3.5px 0 0 -37px; border-radius: 4px; background: var(--p1); transform: rotate(45deg); }
.duel__sig.is-decoy::after { transform: rotate(-45deg); }
.duel-demo { display: flex; gap: 26px; align-items: flex-end; }
.duel-demo__k { display: grid; justify-items: center; gap: 8px; }
.duel-demo__k em { font: 700 13px/1 var(--font-sans); font-style: normal; color: var(--on-stage-muted); }
.duel-demo .duel__sig.is-go { width: 64px; height: 64px; }
.duel-demo .duel__sig.is-decoy { width: 60px; height: 60px; box-shadow: inset 0 0 0 5px var(--p1); }
.duel-demo .duel__sig.is-decoy::before, .duel-demo .duel__sig.is-decoy::after { width: 50px; height: 5px; margin: -2.5px 0 0 -25px; }
@media (max-height: 700px) { .duel__mid { height: 96px; } .duel__sig.is-go { width: 84px; height: 84px; } .duel__sig.is-decoy { width: 78px; height: 78px; } .duel__sig.is-decoy::before, .duel__sig.is-decoy::after { width: 64px; margin-left: -32px; } }
@media (min-width: 960px) and (min-height: 620px) { .duel__msg { font-size: 26px; line-height: 32px; min-height: 32px; } .duel__pad span { font: 400 56px/1 var(--font-pixel); } .duel[data-dir="h"] .duel__mid { width: 200px; } .duel__sig.is-go { width: 128px; height: 128px; } .duel__sig.is-decoy { width: 116px; height: 116px; } .duel__sig.is-decoy::before, .duel__sig.is-decoy::after { width: 98px; margin-left: -49px; } .app[data-game="duel"] .foot-body { max-width: 420px; } }
