/* PLAYORA 라이어 게임 화면 */

/* ---------------------------------------------------------------- 첫 화면 */
.lhome { display: grid; gap: var(--s3); max-width: 1180px; margin: 0 auto; padding: var(--s4); }
.pk.land .lhome { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: var(--s6); padding: var(--s5); align-items: start; }
.lhero { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s3); align-items: center; padding-bottom: var(--s3); border-bottom: 2.5px solid var(--ink); }
.pk.land .lhero { grid-template-columns: minmax(0, 1fr); position: sticky; top: var(--s5); border-bottom: 0; padding-bottom: 0; }
.lhero-t { min-width: 0; }
.hero-lead { margin: 0 0 6px; font: 400 21px/1.25 var(--f-disp); color: var(--ink); letter-spacing: 0.01em; }
.hero-note { margin: 0; font-size: 13px; line-height: 1.55; font-weight: 500; color: var(--ink-2); }
.art { position: relative; order: 2; flex: none; width: 128px; height: 92px; }
.pk.land .art { order: 0; width: 100%; max-width: 360px; height: auto; aspect-ratio: 36 / 25; margin-bottom: var(--s4); }
.pc { position: absolute; width: 56%; height: 76%; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 0 0 0 12%; border: 2.5px solid var(--ink); border-radius: var(--r2); box-shadow: 0 4px 0 var(--ink); color: var(--ink); }
.pc.c1 { left: 3%; top: 18%; background: var(--cb); transform: rotate(-7deg); }
.pc.c2 { right: 3%; top: 4%; background: var(--ca); transform: rotate(6deg); }
.pc small { font-size: 12px; font-weight: 700; color: var(--ink-2); line-height: 1; }
.pc b { font: 700 19px/1.1 var(--f-body); }
.pc .lstamp { position: absolute; right: -8%; bottom: -12%; height: 24px; padding: 0 7px; font-size: 13px; border-width: 2px; }
.pk.land .pc small { font-size: 14px; }
.pk.land .pc b { font-size: clamp(30px, 4.2vw, 50px); }
.pk.land .pc .lstamp { height: 40px; padding: 0 12px; font-size: 22px; border-width: 3px; }
.pk.tiny .art { max-width: 200px; margin-bottom: var(--s2); }
.pk.tiny .pc b { font-size: 24px; }
.pk.tiny .pc small { font-size: 12px; }
.pk.tiny .pc .lstamp { height: 26px; font-size: 14px; border-width: 2px; padding: 0 8px; }
.pk.tiny .hero-lead { font-size: 18px; }
.pk.wide.land:not(.short) .hero-lead { font-size: 30px; }
.pk.wide.land:not(.short) .hero-note { font-size: 16px; }
.pk.land:not(.short) .hero-lead { font-size: 25px; }
.pk.land:not(.short) .hero-note { font-size: 14px; }
.pk.wide.land:not(.short) .lhome { padding: var(--s6) var(--s5); }
.lstamp { align-self: flex-start; display: inline-flex; align-items: center; justify-content: center; height: 34px; padding: 0 12px; border: 3px solid var(--acc-2); border-radius: 8px; background: rgba(255, 252, 246, 0.92); color: var(--acc-3); font: 400 18px/1 var(--f-disp); font-style: normal; white-space: nowrap; transform: rotate(-6deg); }
.lstamp.big { height: 48px; padding: 0 16px; font-size: 28px; border-width: 4px; }
.pickbtn { flex: 1 1 220px; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--s2); padding: 7px 8px 7px 14px; border: 2px solid var(--ink); border-radius: var(--r2); background: var(--card); box-shadow: 0 3px 0 var(--ink); color: var(--ink); text-align: left; }
.pickbtn:active { translate: 0 2px; box-shadow: 0 1px 0 var(--ink); }
.pickbtn b { grid-column: 1; font-size: 16px; font-weight: 700; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; }
.pickbtn span:not(.ic) { grid-column: 1; font-size: 12px; font-weight: 600; line-height: 1.3; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; }
.pickbtn .ic { grid-column: 2; grid-row: 1 / span 2; }
.pickbtn .ic svg { width: 20px; height: 20px; }

/* ---------------------------------------------------------------- 주제 고르기 · 내 묶음 */
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); gap: var(--s2); margin-bottom: var(--s5); }
.tgrid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tchip { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 12px; border: 2px solid var(--ink); border-radius: var(--r2); background: var(--card); color: var(--ink); text-align: left; }
.tchip b { max-width: 100%; font-size: 15px; font-weight: 700; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; }
.tchip span { max-width: 100%; font-size: 12px; font-weight: 600; line-height: 1.35; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; }
.tchip.kid { background: var(--cb); }
.tchip.kid span { color: var(--ink-2); }
.tchip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.tchip[aria-pressed="true"] span { color: var(--paper-3); }
.my-add { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin: var(--s3) 0 var(--s4); }
.words-in { min-height: 170px; margin: var(--s2) 0; }
.note { margin: var(--s2) 0 0; }

/* ---------------------------------------------------------------- 한 판 화면 공통 */
.stage { min-height: 100%; display: flex; flex-direction: column; gap: var(--s3); max-width: 860px; margin: 0 auto; padding: var(--s3) var(--s4) var(--s4); }
.pk.wide.land:not(.short) .stage { max-width: 980px; padding: var(--s5) var(--s4); gap: var(--s4); }
.r-top { margin: 0; display: flex; align-items: center; gap: var(--s2); min-height: 28px; }
.q-prog { font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.who { margin: 0; font: 700 clamp(21px, 4.6vw, 34px)/1.25 var(--f-body); letter-spacing: -0.02em; color: var(--ink); overflow-wrap: anywhere; }
.who b { color: var(--acc-3); }
.who.big { font-size: clamp(36px, 9vw, 64px); line-height: 1.1; }
.lead { margin: 0; font-size: 16px; line-height: 1.55; font-weight: 500; color: var(--ink-2); }
.lead b { color: var(--ink); font-weight: 700; }
.pk.wide.land:not(.short) .who { font-size: 42px; }
.pk.wide.land:not(.short) .lead { font-size: 19px; }
.pk.tiny .stage { gap: var(--s2); padding-top: var(--s2); padding-bottom: var(--s2); }
.pk.tiny .who { font-size: 20px; }

/* 제시어 카드: 누르고 있는 동안만 보임 */
.hold { flex: 1; min-height: 150px; position: relative; overflow: hidden; border: 2.5px solid var(--ink); border-radius: var(--r3); box-shadow: 0 6px 0 var(--ink); background: var(--card); cursor: pointer; touch-action: none; outline-offset: 4px; }
.cover { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: var(--s4); text-align: center; color: var(--paper); background-color: var(--ink); background-image: repeating-linear-gradient(135deg, rgba(244, 238, 227, 0.07) 0 14px, rgba(244, 238, 227, 0) 14px 28px); transition: transform .26s var(--ease); }
.cover b { font-size: 17px; font-weight: 700; }
.cover span:not(.eye) { font-size: 13px; font-weight: 500; color: var(--paper-3); }
.cover .eye { display: inline-flex; }
.cover .eye svg { width: 40px; height: 40px; }
.hold.show .cover { transform: translateY(-101%); }
.face { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: var(--s4) var(--s5); color: var(--ink); }
.face small { flex: none; font-size: 14px; font-weight: 700; color: var(--ink-3); }
.face p { flex: none; margin: 0; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.face p b { color: var(--ink); font-weight: 700; }
.word-box { flex: 1; min-height: 0; min-width: 0; display: flex; align-items: center; overflow: hidden; }
.word { display: block; width: 100%; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; word-break: keep-all; }
.pk.tiny .hold { min-height: 120px; }
.pk.tiny .cover .eye svg { width: 28px; height: 28px; }

/* 설명 시간 */
.clock { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 var(--s2); }
.clock b { min-width: 1.15em; font: 400 clamp(64px, 16vw, 120px)/1 var(--f-disp); color: var(--ink); font-variant-numeric: tabular-nums; }
.clock .unit { font-size: 18px; font-weight: 700; color: var(--ink-2); }
.cbar { flex: 1 1 100%; height: 14px; margin-top: 6px; border: 2.5px solid var(--ink); border-radius: 10px; background: var(--card); overflow: hidden; }
.cbar i { display: block; height: 100%; background: var(--ink); transform-origin: left center; transition: transform .1s linear; }
.clock.low b { color: var(--acc-2); }
.clock.low .cbar i { background: var(--acc); }
.clock.paused b { opacity: 0.4; }
.clock.up b { animation: shake .4s; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.pk.port:not(.short) .clock b { font-size: clamp(92px, 30vw, 150px); }
.pk.port:not(.short) .clock .unit { font-size: 22px; }
.pk.short .clock b { font-size: 76px; }
.pk.tiny .clock b { font-size: 54px; }
.pk.tiny .cbar { height: 10px; margin-top: 2px; }
.order { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.order li { height: 30px; padding: 0 10px; display: inline-flex; align-items: center; border: 2px solid var(--line-2); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.order li.now { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.order li.done { text-decoration: line-through; }

/* 투표 */
.names { display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: var(--s2); }
.nbtn { min-width: 0; height: 52px; padding: 0 10px; border: 2.5px solid var(--ink); border-radius: var(--r2); background: var(--card); box-shadow: 0 3px 0 var(--ink); color: var(--ink); font-weight: 700; font-size: 16px; overflow: hidden; text-overflow: ellipsis; }
.nbtn small { margin-left: 6px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.nbtn:active:not(:disabled) { translate: 0 2px; box-shadow: 0 1px 0 var(--ink); background: var(--ca); }
.nbtn:disabled { box-shadow: none; border-style: dashed; opacity: 0.6; }
.pk.tiny .nbtn { height: 42px; font-size: 15px; }
.tally { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tally li { display: grid; grid-template-columns: 96px minmax(0, 1fr) 46px; align-items: center; gap: var(--s2); font-size: 15px; font-weight: 600; }
.tally li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tally li b { text-align: right; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tally .meter { height: 14px; background: var(--card); }
.tally .meter > i { background: var(--ink-3); border-right: 0; }
.tally li.top .meter > i { background: var(--acc); }
.tally li.top span { color: var(--acc-3); font-weight: 700; }

/* 공개 */
.idcard { align-self: flex-start; min-width: min(100%, 300px); min-height: 120px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; padding: var(--s4) var(--s5); border: 2.5px solid var(--ink); border-radius: var(--r3); box-shadow: 0 6px 0 var(--ink); background-color: var(--ink); background-image: repeating-linear-gradient(135deg, rgba(244, 238, 227, 0.07) 0 14px, rgba(244, 238, 227, 0) 14px 28px); color: var(--paper); }
.idcard b { font: 700 clamp(26px, 6vw, 40px)/1.2 var(--f-body); letter-spacing: -0.02em; }
.idcard.open { background-image: none; color: var(--ink); animation: flipin .45s var(--ease); }
.idcard.open.liar { background-color: var(--ca); }
.idcard.open.cit { background-color: var(--cb); }
@keyframes flipin { from { transform: perspective(700px) rotateY(80deg); } to { transform: perspective(700px) rotateY(0); } }
.pk.tiny .idcard { min-height: 84px; padding: var(--s2) var(--s4); }
.words { display: flex; flex-wrap: wrap; gap: 6px; }
.words .chip { height: 40px; font-size: 15px; }

/* 결과 · 점수판 */
.banner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); padding: var(--s3) var(--s4); border: 2.5px solid var(--ink); border-radius: var(--r3); box-shadow: 0 5px 0 var(--ink); background: var(--card); }
.banner.k-citizen { background: var(--cb); }
.banner.k-guess, .banner.k-escape { background: var(--ca); }
.banner p { flex: 1 1 240px; min-width: 0; margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.banner p b { color: var(--ink); font-weight: 700; }
.verdict { flex: none; height: 42px; padding: 0 14px; display: inline-flex; align-items: center; border: 3px solid var(--acc-3); border-radius: 8px; background: var(--card); color: var(--acc-3); font: 400 23px/1 var(--f-disp); white-space: nowrap; transform: rotate(-3deg); }
.banner.k-citizen .verdict { border-color: var(--ink); color: var(--ink); }
.rh small { margin-left: 6px; font: 600 13px/1 var(--f-body); color: var(--ink-3); }
.board { list-style: none; margin: 0; padding: 0; border-top: 2.5px solid var(--ink); }
.board li { display: grid; grid-template-columns: 30px minmax(0, 1fr) 36px 62px; align-items: center; gap: var(--s2); padding: 8px 2px; border-bottom: 1px solid var(--line-2); }
.board .rk { font: 700 16px/1 var(--f-body); color: var(--ink-3); text-align: center; font-variant-numeric: tabular-nums; }
.board li:first-child .rk { color: var(--acc-3); }
.board .nm { min-width: 0; font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board .nm small { margin-left: 8px; font-size: 12px; font-weight: 700; color: var(--acc-3); }
.board em { font-style: normal; font-size: 14px; font-weight: 700; color: var(--good); text-align: right; white-space: nowrap; }
.board b { text-align: right; font: 700 20px/1 var(--f-body); white-space: nowrap; font-variant-numeric: tabular-nums; }
.board b small { margin-left: 2px; font: 700 12px/1 var(--f-body); color: var(--ink-2); }
