/* 파티잼 참석자 휴대폰 화면·진행자 휴대폰(리모컨) — 손가락으로 누르기 좋게 크게 */
body.join { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--paper); overscroll-behavior: none; -webkit-tap-highlight-color: transparent; }
.jbar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; padding-top: max(10px, env(safe-area-inset-top)); border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 5; }
.jlogo svg { width: 30px; height: 30px; display: block; }
.jt { flex: 1; min-width: 0; font: 400 19px/1.2 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jme { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 12px 4px 6px; font-size: 14px; cursor: pointer; max-width: 55vw; }
.jme i { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.jme i[hidden] { display: none; }
.jme b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jme span { color: var(--mute); white-space: nowrap; }
.jme em { font-style: normal; font-weight: 800; color: var(--ink); }
.jmain { flex: 1; display: flex; flex-direction: column; padding: 18px 16px; padding-bottom: max(22px, env(safe-area-inset-bottom)); width: 100%; max-width: 560px; margin: 0 auto; }
.jmain h1 { font: 400 28px/1.25 var(--display); }
.jmain .sub { color: var(--ink2); }
.jmain .wait { margin: auto; color: var(--mute); }
.jconn { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 12px; font-weight: 700; text-align: center; z-index: 20; }
.btn.wide { width: 100%; min-height: 58px; font-size: 19px; }
.btn.ghost { background: transparent; border-color: var(--line); }

.card { display: grid; gap: 14px; margin: auto 0; }
.card input.big { width: 100%; min-height: 66px; border: 2px solid var(--line); border-radius: 16px; background: #fff; padding: 0 18px; font: 800 26px/1 var(--body); text-align: center; letter-spacing: .04em; }
.card input.big:focus { outline: none; border-color: var(--ink); }
.card .lab { font-weight: 800; color: var(--ink2); }
.tpick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tbtn { min-height: 62px; border: 3px solid var(--c); background: #fff; border-radius: 16px; font: 800 18px/1.2 var(--body); cursor: pointer; }
.tbtn.on { background: var(--c); color: #fff; }

.idle { margin: auto 0; display: grid; justify-items: center; text-align: center; gap: 14px; }
.idle .pulse { width: 96px; height: 96px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 0 rgba(242, 80, 47, .4); animation: ring 2.2s infinite; }
.idle .pulse svg { width: 54px; height: 54px; }
@keyframes ring { 70% { box-shadow: 0 0 0 26px rgba(242, 80, 47, 0); } 100% { box-shadow: 0 0 0 0 rgba(242, 80, 47, 0); } }
.idle .myteam { background: var(--c); color: #fff; font-weight: 800; padding: 6px 18px; border-radius: 999px; }

/* 문제 */
.qa { display: flex; flex-direction: column; gap: 14px; flex: 1; }
.qtop { display: flex; justify-content: space-between; align-items: center; font-weight: 800; color: var(--mute); }
.qtop b { font: 400 26px/1 var(--display); color: var(--ink); min-width: 2.5em; text-align: right; }
.qt { font: 800 21px/1.45 var(--body); }
.opts { flex: 1; display: grid; gap: 10px; grid-auto-rows: minmax(76px, 1fr); }
.opt { border: 0; background: var(--c); color: #fff; border-radius: 18px; padding: 12px 16px; display: flex; align-items: center; gap: 14px; text-align: left; font: 800 20px/1.3 var(--body); cursor: pointer; transition: opacity .2s, transform .15s; box-shadow: 0 4px 0 rgba(0, 0, 0, .18); }
.opt:active { transform: translateY(3px); box-shadow: none; }
.opt i { font: 400 26px/1 var(--display); font-style: normal; opacity: .7; }
.opt[style*="f7b928"] { color: var(--ink); }
.opt.picked { box-shadow: 0 0 0 4px var(--ink); }
.opt.dim { opacity: .28; }
.opt[disabled] { cursor: default; }
.ox .opts { grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(180px, 1fr); }
.ox .opt { justify-content: center; }
.ox .opt b { font: 400 96px/1 var(--display); }
.qmsg { text-align: center; font-weight: 800; color: var(--ink2); min-height: 1.5em; }

/* 결과 */
.res { margin: auto 0; display: grid; gap: 14px; text-align: center; }
.res .big { font: 400 52px/1.1 var(--display); }
.res.ok .big { color: var(--teal); }
.res.no .big { color: var(--tomato); }
.res .gain { font: 400 36px/1 var(--display); color: var(--mustard); text-shadow: 0 2px 0 var(--ink); animation: up .6s ease; }
@keyframes up { from { transform: translateY(20px); opacity: 0; } }
.res .ans { font-size: 18px; }
.res .ans b { font-weight: 800; }
.res .sc { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.res .sc span { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; }
.res .sc b { font: 400 22px/1 var(--display); }
.res.vote .vr { position: relative; overflow: hidden; background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; justify-content: space-between; gap: 10px; text-align: left; font-weight: 800; }
.res.vote .vr.me { border-color: var(--ink); }
.res.vote .vr > * { position: relative; z-index: 1; }
.res.vote .vr i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--c); opacity: .22; z-index: 0; }
.res.vote .vr b { font: 400 22px/1 var(--display); }
.res.board ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; counter-reset: r; }
.res.board li { counter-increment: r; display: grid; grid-template-columns: 2em 1fr auto; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; text-align: left; }
.res.board li::before { content: counter(r); font: 400 20px/1 var(--display); color: var(--tomato); text-align: center; }
.res.board li.me { border: 2px solid var(--ink); }

/* 빨리 누르기 */
.bzz { margin: auto 0; display: grid; justify-items: center; gap: 18px; text-align: center; }
.buzzer { width: min(74vw, 320px); aspect-ratio: 1; border-radius: 50%; border: 0; background: radial-gradient(circle at 35% 30%, #ff7a5c, var(--tomato) 55%, #b8361b); color: #fff; font: 400 44px/1 var(--display); box-shadow: 0 12px 0 #8e2a14, 0 20px 40px rgba(0, 0, 0, .25); cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.buzzer.down, .buzzer:active { transform: translateY(10px); box-shadow: 0 2px 0 #8e2a14; }
.bzz .ord { font: 400 110px/1 var(--display); color: var(--tomato); animation: up .4s ease; }

/* 진행자 휴대폰(리모컨) */
.remote .rv { display: grid; gap: 12px; }
.remote .rt { font-weight: 800; color: var(--mute); }
.remote .rbig { font: 400 30px/1.25 var(--display); }
.remote .rans { background: var(--ink); color: var(--paper); border-radius: 14px; padding: 12px 14px; font-weight: 800; font-size: 20px; }
.remote .rans small { display: block; color: var(--mustard); font-size: 13px; }
.remote .rhint, .remote .rsay, .remote .rnote { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.remote .rhint small, .remote .rsay small { display: block; color: var(--mute); font-weight: 800; font-size: 13px; }
.remote .rkeys { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.remote .rkeys .btn { min-height: 64px; font-size: 19px; }
.remote .rkeys .btn.span2 { grid-column: 1 / -1; }
.remote .rteams { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.remote .rteams button { border: 0; border-left: 8px solid var(--c); background: #fff; border-radius: 12px; padding: 10px 12px; text-align: left; font-weight: 800; cursor: pointer; display: flex; justify-content: space-between; box-shadow: 0 1px 0 var(--line); }
.remote .rteams button b { font: 400 20px/1 var(--display); }
.remote .rgo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.remote .rgo .btn { white-space: nowrap; }
.remote h2 { font: 400 18px/1.2 var(--display); color: var(--ink2); margin-top: 6px; }
