/* PLAYORA 밸런스 게임 화면 */

/* ---------------------------------------------------------------- 첫 화면 */
.home { display: grid; gap: var(--s4); padding: var(--s4); max-width: 1180px; margin: 0 auto; }
.pk.land .home { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--s5) var(--s6); padding: var(--s5); align-items: center; min-height: 100%; }
.pk.tiny .home { padding: var(--s3) var(--s4); gap: var(--s4); }
.hero { min-width: 0; }
.hero-lead { margin: 0 0 var(--s3); font: 700 19px/1.35 var(--f-body); color: var(--ink); letter-spacing: -0.01em; }
.hero-note { margin: var(--s3) 0 0; font-size: 13px; color: var(--ink-3); font-weight: 500; }
.mini { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s3); }
.mc { position: relative; min-width: 0; min-height: 96px; display: flex; flex-direction: column; gap: 8px; padding: 10px 14px 14px; border: 2.5px solid var(--ink); border-radius: var(--r3); box-shadow: 0 5px 0 var(--ink); color: var(--ink); text-align: left; white-space: normal; transition: translate .08s, box-shadow .08s; }
.mc.a { background: var(--ca); transform: rotate(-1.3deg); padding-right: 30px; }
.mc.b { background: var(--cb); transform: rotate(1.1deg); padding-left: 32px; }
.mc:active { translate: 0 3px; box-shadow: 0 2px 0 var(--ink); }
.mc span { font-weight: 700; font-size: 16px; line-height: 1.32; word-break: keep-all; overflow-wrap: anywhere; }
.ab { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--ink); background: var(--card); color: var(--ink); font: 400 20px/1 var(--f-disp); font-style: normal; display: inline-flex; align-items: center; justify-content: center; }
.mc .ab { width: 28px; height: 28px; font-size: 16px; }
.vs { position: absolute; left: 50%; top: 50%; z-index: 3; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 400 19px/1 var(--f-disp); font-style: normal; display: flex; align-items: center; justify-content: center; transform: rotate(-8deg); box-shadow: 0 0 0 4px var(--paper); pointer-events: none; }
.mini .vs { width: 40px; height: 40px; margin: -20px 0 0 -20px; font-size: 15px; }
.modes { display: flex; flex-direction: column; min-width: 0; border-top: 2.5px solid var(--ink); }
.mode { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--s3); padding: 8px 6px 8px 2px; border: 0; border-bottom: 2px solid var(--ink); background: transparent; color: var(--ink); text-align: left; }
.mode:hover { background: rgba(31, 36, 64, 0.05); }
.mode:active { background: rgba(31, 36, 64, 0.1); }
.mode b { grid-column: 1; font: 400 20px/1.25 var(--f-disp); letter-spacing: 0.01em; overflow: hidden; text-overflow: ellipsis; }
.mode span { grid-column: 1; font-size: 13px; line-height: 1.4; font-weight: 500; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; }
.mode em { grid-column: 2; grid-row: 1 / span 2; font-style: normal; font-size: 12px; font-weight: 700; padding: 3px 9px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--card); white-space: nowrap; }
.mode.sub { border-bottom: 0; }
.mode.sub b { font: 700 15px/1.35 var(--f-body); letter-spacing: 0; }
.pk.tiny .mode { padding: 4px 6px 4px 2px; }
.pk.tiny .mode b { font-size: 17px; }
.pk.tiny .mode span { font-size: 12px; line-height: 1.3; }
.pk.tiny .hero-lead { font-size: 16px; margin-bottom: var(--s2); }
.pk.tiny .hero-note { display: none; }
.pk.tiny .mc { min-height: 84px; }
.pk.tiny .mc span { font-size: 14px; }
.pk.land:not(.short) .hero-lead { font-size: 23px; }
.pk.land:not(.short) .mc { min-height: 150px; padding-top: 14px; padding-bottom: 18px; }
.pk.land:not(.short) .mc.a { padding-left: 18px; }
.pk.land:not(.short) .mc.b { padding-right: 18px; }
.pk.land:not(.short) .mc span { font-size: 19px; }
.pk.land:not(.short) .mode { padding: 11px 8px 11px 2px; }
.pk.wide.land:not(.short) .hero-lead { font-size: 30px; }
.pk.wide.land:not(.short) .mc { min-height: 230px; padding-top: 18px; padding-bottom: 22px; gap: 14px; }
.pk.wide.land:not(.short) .mc.a { padding-left: 22px; padding-right: 44px; }
.pk.wide.land:not(.short) .mc.b { padding-left: 46px; padding-right: 22px; }
.pk.wide.land:not(.short) .mc span { font-size: 26px; }
.pk.wide.land:not(.short) .mc .ab { width: 38px; height: 38px; font-size: 22px; }
.pk.wide.land:not(.short) .mini { gap: var(--s5); }
.pk.wide.land:not(.short) .mini .vs { width: 56px; height: 56px; margin: -28px 0 0 -28px; font-size: 20px; }
.pk.wide.land:not(.short) .mode { padding: 15px 10px 15px 2px; }
.pk.wide.land:not(.short) .mode b { font-size: 26px; }
.pk.wide.land:not(.short) .mode span { font-size: 15px; }
.pk.wide.land:not(.short) .mode em { font-size: 13px; }
.pk.wide.land:not(.short) .eyebrow { font-size: 15px; }
.pk.wide.land:not(.short) .hero-note { font-size: 15px; }

/* ---------------------------------------------------------------- 질문 화면 */
.q-top { flex: none; display: flex; align-items: center; gap: var(--s2); min-height: 42px; padding: 4px 6px 0 var(--s3); }
.q-prog { font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.q-tools { margin-left: auto; display: flex; gap: 0; flex: none; }
.q-lead { flex: none; margin: 0; padding: 2px var(--s4) 0; min-height: 1.35em; font: 700 17px/1.35 var(--f-body); color: var(--ink); letter-spacing: -0.01em; }
.duel { flex: 1; min-height: 0; position: relative; display: grid; gap: var(--s3); padding: var(--s3) var(--s4) var(--s4); }
.pk.land .duel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s4); }
.pk.port .duel { grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
.qc { position: relative; min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 4px; padding: var(--s3) var(--s4); border: 2.5px solid var(--ink); border-radius: var(--r3); box-shadow: 0 5px 0 var(--ink); color: var(--ink); text-align: left; white-space: normal; overflow: hidden; transition: translate .08s, box-shadow .08s, opacity .2s, filter .2s; }
.qc.a { background: var(--ca); }
.qc.b { background: var(--cb); }
.pk.land .qc.a { transform: rotate(-0.7deg); padding-right: 46px; }
.pk.land .qc.b { transform: rotate(0.7deg); padding-left: 46px; }
.pk.port .qc.a { padding-bottom: 30px; }
.pk.port .qc.b { padding-top: 30px; }
.qc:active:not(.done) { translate: 0 3px; box-shadow: 0 2px 0 var(--ink); }
.qc.done { cursor: default; }
.qc.on { z-index: 2; }
.qc.off, .qc.lose { opacity: 0.5; filter: saturate(0.55); }
.qt-box { flex: 1; min-height: 0; min-width: 0; display: flex; align-items: center; overflow: hidden; }
.qt { display: block; width: 100%; font-weight: 700; line-height: 1.28; letter-spacing: -0.015em; word-break: keep-all; }
.res { flex: none; display: flex; align-items: baseline; gap: var(--s2); min-width: 0; padding-bottom: 6px; }
.res b { flex: none; font: 400 30px/1 var(--f-disp); }
.res b small { font: 700 14px/1 var(--f-body); margin-left: 2px; }
.res .who { min-width: 0; font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res .who.big { font-size: 16px; font-weight: 700; color: var(--ink); }
.qc .bar { position: absolute; left: 0; bottom: 0; height: 8px; background: var(--ink); border-radius: 0 6px 0 0; animation: grow .6s var(--ease); transform-origin: left center; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.stamp { position: absolute; right: 12px; top: 10px; width: 62px; height: 62px; border-radius: 50%; border: 3px solid var(--acc-2); background: rgba(255, 252, 246, 0.85); color: var(--acc-3); font: 400 18px/1 var(--f-disp); font-style: normal; display: flex; align-items: center; justify-content: center; transform: rotate(-14deg); animation: stamp .28s var(--ease); pointer-events: none; }
@keyframes stamp { from { transform: rotate(-14deg) scale(1.7); opacity: 0; } to { transform: rotate(-14deg) scale(1); opacity: 1; } }
.turn-pop { position: absolute; left: 50%; top: 50%; z-index: 5; transform: translate(-50%, -50%); padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 16px; font-weight: 600; white-space: nowrap; pointer-events: none; animation: turnpop 1.1s var(--ease) forwards; }
.turn-pop b { font-weight: 700; color: var(--ca); }
@keyframes turnpop { 0% { opacity: 0; transform: translate(-50%, -30%) scale(0.92); } 14% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 76% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -64%) scale(1); } }
.q-foot { flex: none; display: flex; align-items: center; gap: var(--s2); min-height: 54px; padding: 0 var(--s3) calc(var(--s3) + env(safe-area-inset-bottom, 0px)) var(--s4); }
.who-now { flex: 1; min-width: 0; font-size: 15px; font-weight: 500; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who-now b { font-weight: 700; color: var(--ink); font-size: 17px; }
.who-now small { margin-left: 8px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.q-foot .bt { flex: none; }
.verdict { flex: none; height: 36px; padding: 0 12px; border: 2.5px solid var(--acc-3); border-radius: 8px; background: var(--card); color: var(--acc-3); font: 400 19px/1 var(--f-disp); display: inline-flex; align-items: center; white-space: nowrap; transform: rotate(-3deg); }
.verdict.k-split { border-color: var(--ink); color: var(--ink); transform: none; }
.vtext { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.hands { flex: 1; min-width: 0; }
.hands p { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.hands p b { font: 400 16px/1 var(--f-disp); }
.hands p small { margin-left: 6px; font-size: 12px; font-weight: 500; color: var(--ink-3); white-space: nowrap; }
.cnts { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
.cnts button { height: 38px; padding: 0; border: 2px solid var(--ink); border-radius: 10px; background: var(--card); color: var(--ink); font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.cnts button:active { background: var(--ink); color: var(--paper); }
.pk.tiny .q-top { min-height: 38px; }
.pk.tiny .q-lead { font-size: 15px; }
.pk.tiny .duel { padding: var(--s2) var(--s4) var(--s3); }
.pk.tiny .qc { padding: var(--s2) var(--s3) var(--s2) 50px; }
.pk.tiny .qc.a { padding-right: 42px; }
.pk.tiny .qc .ab { position: absolute; left: 10px; top: 9px; width: 28px; height: 28px; font-size: 16px; }
.pk.tiny .stamp { width: 48px; height: 48px; font-size: 14px; right: 8px; top: 6px; }
.pk.tiny .res b { font-size: 24px; }
.pk.tiny .q-foot { min-height: 46px; padding-bottom: var(--s2); }
.pk.tiny .cnts button { height: 32px; font-size: 14px; }
.pk.tiny .hands p { margin-bottom: 4px; font-size: 13px; }
.pk.land:not(.short) .q-lead { font-size: 21px; padding-top: 4px; }
.pk.land:not(.short) .qc { padding-top: var(--s4); padding-bottom: var(--s4); }
.pk.land:not(.short) .qc.a { padding-left: var(--s5); padding-right: 54px; }
.pk.land:not(.short) .qc.b { padding-left: 54px; padding-right: var(--s5); }
.pk.land:not(.short) .ab { width: 40px; height: 40px; font-size: 24px; }
.pk.land:not(.short) .duel { padding: var(--s4) var(--s5) var(--s5); gap: var(--s5); }
.pk.land:not(.short) .vs { width: 64px; height: 64px; margin: -32px 0 0 -32px; font-size: 23px; }
.pk.land:not(.short) .stamp { width: 84px; height: 84px; font-size: 24px; right: 18px; top: 16px; border-width: 4px; }
.pk.land:not(.short) .res b { font-size: 40px; }
.pk.land:not(.short) .res .who { font-size: 15px; }
.pk.land:not(.short) .q-foot { min-height: 64px; padding-left: var(--s5); padding-right: var(--s5); }
.pk.wide.land:not(.short) .q-lead { font-size: 28px; padding: 8px var(--s6) 0; }
.pk.wide.land:not(.short) .q-top { padding-left: var(--s6); padding-right: var(--s5); min-height: 52px; }
.pk.wide.land:not(.short) .duel { padding: var(--s5) var(--s6) var(--s6); gap: var(--s6); }
.pk.wide.land:not(.short) .q-foot { padding-left: var(--s6); padding-right: var(--s6); min-height: 76px; }
.pk.wide.land:not(.short) .who-now { font-size: 18px; }
.pk.wide.land:not(.short) .who-now b { font-size: 22px; }
.pk.wide.land:not(.short) .verdict { height: 46px; font-size: 26px; }
.pk.wide.land:not(.short) .vtext { font-size: 20px; }
.pk.wide.land:not(.short) .q-foot .bt.pri { height: 50px; font-size: 17px; padding: 0 var(--s5); }
.pk.wide.land:not(.short) .tag { height: 30px; font-size: 14px; }
.pk.wide.land:not(.short) .q-prog { font-size: 15px; }

/* ---------------------------------------------------------------- 결과 · 기록 */
.rows { list-style: none; margin: var(--s3) 0 0; padding: 0; border-top: 2.5px solid var(--ink); }
.rw { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 6px var(--s2); align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; line-height: 1.35; }
.rw .ra, .rw .rb { min-width: 0; padding: 6px 10px; border: 2px solid transparent; border-radius: 10px; font-weight: 500; color: var(--ink-2); word-break: keep-all; overflow-wrap: anywhere; }
.rw .ra { text-align: right; }
.rw small { display: block; margin-top: 2px; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.rw .sc { min-width: 56px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.rw .sc b { font: 700 19px/1.1 var(--f-body); color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rw .sc em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--ink-3); white-space: nowrap; }
.rw.k-tight .sc em, .rw.same .sc em { color: var(--acc-3); }
.rw.p0 .ra { background: var(--ca); border-color: var(--ink); color: var(--ink); font-weight: 700; }
.rw.p1 .rb { background: var(--cb); border-color: var(--ink); color: var(--ink); font-weight: 700; }
.rw.p0 small, .rw.p1 small { color: var(--ink-2); }
.rw .meter { grid-column: 1 / -1; }
.pct { display: flex; align-items: center; gap: var(--s4); margin: var(--s2) 0 var(--s3); min-width: 0; }
.pct > b { flex: none; font: 400 clamp(56px, 13vw, 100px)/1 var(--f-disp); color: var(--acc-2); white-space: nowrap; }
.pct > b small { font-size: 0.45em; }
.pct > div { min-width: 0; }
.pct .rh { margin-bottom: 2px; }
.pct p { margin: 0; font-size: 14px; color: var(--ink-2); }
.prog { list-style: none; margin: var(--s3) 0 var(--s5); padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 9px var(--s5); }
.prog li { display: grid; grid-template-columns: 84px minmax(0, 1fr) 56px; align-items: center; gap: var(--s2); font-size: 14px; font-weight: 600; white-space: nowrap; }
.prog .meter { background: var(--card); }
.prog .meter > i { background: var(--ink); border-right: 0; }
.prog b { text-align: right; font-size: 13px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.hist { list-style: none; margin: var(--s2) 0 0; padding: 0; border-top: 2.5px solid var(--ink); }
.hrow { width: 100%; display: flex; align-items: baseline; gap: var(--s3); padding: 12px 4px; border: 0; border-bottom: 1px solid var(--line-2); background: transparent; color: var(--ink); text-align: left; }
.hrow:hover { background: rgba(31, 36, 64, 0.05); }
.hrow b { min-width: 0; font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; }
.hrow span { flex: none; margin-left: auto; font-size: 13px; color: var(--ink-3); }

/* ---------------------------------------------------------------- 내 질문 만들기 */
.my-list { list-style: none; margin: var(--s3) 0; padding: 0; display: flex; flex-direction: column; gap: var(--s2); }
.my-list li { display: grid; grid-template-columns: 24px minmax(0, 1fr) 38px; gap: 4px; align-items: center; }
.my-list .no { font: 700 14px/1 var(--f-body); color: var(--ink-3); text-align: center; }
.pair { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
.pk.port .pair { grid-template-columns: minmax(0, 1fr); }
.pair .fld:first-child { background: var(--ca); }
.pair .fld:last-child { background: var(--cb); }
.pair .fld::placeholder { color: var(--ink-3); font-weight: 700; }
.my-add { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s3); }
.note { margin: 0; }
