/* 웨이팅: 대기등록 태블릿 · 호출 현황판 · 창구 도크 */

/* ---------- 대기등록 태블릿 ---------- */
body.kiosk { background: radial-gradient(circle at 50% -20%, #2c3f66 0, #10192e 60%); color: #fff; min-height: 100vh; min-height: 100dvh; overflow: hidden; user-select: none; -webkit-user-select: none; }
body.kiosk #boot { background: var(--bg); color: var(--text); min-height: 100vh; }
.k-wrap { height: 100vh; height: 100dvh; display: flex; flex-direction: column; padding: 20px 32px calc(16px + env(safe-area-inset-bottom)); gap: 16px; }
.k-head { display: flex; justify-content: space-between; align-items: center; }
.k-head .ttl { display: flex; align-items: center; gap: 14px; }
.k-head .ttl b { font-size: 1.6rem; letter-spacing: -.02em; }
.k-head .ttl small { display: block; color: #9fb0cf; font-size: .95rem; font-weight: 600; }
.k-head .clock { color: #c9d0de; font-size: 1.3rem; font-variant-numeric: tabular-nums; font-weight: 700; }
.k-body { flex: 1; display: flex; flex-direction: column; justify-content: safe center; gap: 22px; min-height: 0; overflow-y: auto; }
.k-title { text-align: center; font-size: 2.2rem; font-weight: 900; letter-spacing: -.02em; }
.k-sub { text-align: center; color: #c9d0de; font-size: 1.2rem; }
.k-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 700px) { .k-choices { grid-template-columns: 1fr; } }
.k-choice { border: 0; border-radius: 26px; padding: 34px 28px; min-height: 280px; text-align: left; font: inherit; color: #1b1300; cursor: pointer; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); transition: transform .1s; }
.k-choice:active { transform: scale(.98); }
.k-choice.pre { background: linear-gradient(160deg, #f3c14f, #d9a52b); }
.k-choice.onsite { background: linear-gradient(160deg, #ffffff, #e3e9f5); color: #10203d; }
.k-choice .name { font-size: 2.4rem; font-weight: 900; letter-spacing: -.03em; }
.k-choice .desc { font-size: 1.15rem; font-weight: 600; opacity: .8; }
.k-choice .stat { font-size: 1.35rem; font-weight: 800; background: rgba(0, 0, 0, .1); border-radius: 14px; padding: 12px 16px; }
.k-choice.off { background: #26324d; color: #c9d0de; box-shadow: none; }
.k-choice.off .stat { background: rgba(255, 255, 255, .08); color: #fff; }
.k-panel { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 26px; padding: 22px 26px; display: flex; flex-direction: column; gap: 14px; max-width: 760px; width: 100%; margin: 0 auto; }
.k-cam { position: relative; width: min(420px, 100%); aspect-ratio: 1; margin: 0 auto; border-radius: 22px; overflow: hidden; background: #000; }
.k-cam video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.k-cam .frame { position: absolute; inset: 16%; border: 4px solid rgba(255, 255, 255, .9); border-radius: 20px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .35); }
.k-cam .msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; color: #c9d0de; }
.k-btn { border: 0; border-radius: 18px; min-height: 76px; font: inherit; font-size: 1.45rem; font-weight: 800; cursor: pointer; padding: 0 26px; }
.k-btn.gold { background: var(--gold-2); color: #1b1300; }
.k-btn.white { background: #fff; color: #10203d; }
.k-btn.dark { background: rgba(255, 255, 255, .1); color: #fff; }
.k-btn:disabled { opacity: .45; }
.k-row { display: flex; gap: 14px; }
.k-row > * { flex: 1; }
.k-phone { font-size: 2.4rem; font-weight: 900; text-align: center; letter-spacing: .06em; background: rgba(0, 0, 0, .25); border-radius: 18px; padding: 10px; min-height: 70px; font-variant-numeric: tabular-nums; }
.k-phone.empty { color: #7d8db0; font-size: 1.6rem; letter-spacing: 0; font-weight: 700; }
.k-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.k-pad button { border: 0; border-radius: 16px; min-height: 60px; font: inherit; font-size: 2rem; font-weight: 800; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.k-pad button:active { background: rgba(255, 255, 255, .25); }
.k-step { display: flex; align-items: center; justify-content: center; gap: 26px; }
.k-step button { width: 84px; height: 84px; border-radius: 50%; border: 0; font-size: 2.4rem; font-weight: 900; background: #fff; color: #10203d; cursor: pointer; }
.k-step output { font-size: 3.6rem; font-weight: 900; min-width: 120px; text-align: center; }
.k-consent { display: flex; gap: 14px; align-items: flex-start; background: rgba(0, 0, 0, .2); border-radius: 16px; padding: 16px; font-size: 1.02rem; color: #dfe5f1; cursor: pointer; flex-direction: row; font-weight: 500; }
.k-consent input { width: 30px; height: 30px; flex-shrink: 0; margin: 0; }
.k-info { background: rgba(0, 0, 0, .22); border-radius: 18px; padding: 20px; font-size: 1.4rem; display: flex; flex-direction: column; gap: 6px; text-align: center; }
.k-info b { font-size: 2rem; }
.k-ticket { text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.k-ticket .lbl { font-size: 1.4rem; color: #c9d0de; font-weight: 700; }
.k-ticket .no { font-size: 7.5rem; font-weight: 900; line-height: 1; color: var(--gold-2); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.k-ticket .eta { font-size: 1.8rem; font-weight: 800; }
.k-ticket .tip { color: #c9d0de; font-size: 1.15rem; }
.k-big-msg { text-align: center; display: flex; flex-direction: column; gap: 18px; align-items: center; }
.k-big-msg .ic { font-size: 5rem; }
.k-big-msg h2 { font-size: 2.6rem; font-weight: 900; letter-spacing: -.02em; }
.k-big-msg p { font-size: 1.35rem; color: #c9d0de; }
.k-foot { text-align: center; color: #7d8db0; font-size: .95rem; }

/* ---------- 호출 현황판 (16:9 TV) ---------- */
body.board { background: #070d1a; color: #fff; height: 100vh; overflow: hidden; }
body.board #boot { background: var(--bg); color: var(--text); min-height: 100vh; }
.bd { height: 100vh; display: flex; flex-direction: column; background: #070d1a; overflow: hidden; }
.bd-top { display: flex; height: 69vh; min-height: 0; flex-shrink: 0; }
.bd.no-notice .bd-top { height: 76vh; }
.bd-video { position: relative; height: 100%; width: min(calc(69vh * 16 / 9), 74vw); flex-shrink: 0; background: #000; overflow: hidden; }
.bd.no-notice .bd-video { width: min(calc(76vh * 16 / 9), 74vw); }
.bd-video video, .bd-yt, .bd-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; background: #000; }
.bd-yt iframe { pointer-events: none; }
.bd-idle { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 2vh; background: radial-gradient(circle at 50% 30%, #1d2c4d, #070d1a 70%); }
.bd-idle .brand-mark { width: 12vh; height: 12vh; font-size: 6vh; border-radius: 3vh; }
.bd-idle b { font-size: 4.4vh; }
.bd-call { position: absolute; inset: 9% 11%; z-index: 5; background: rgba(8, 12, 26, .93); border: .6vh solid var(--gold-2); border-radius: 3vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4vh; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .35), 0 2vh 6vh rgba(0, 0, 0, .6); text-align: center; }
.bd-call .ch { font-size: 5vh; font-weight: 900; color: #ffd978; letter-spacing: .05em; }
.bd-call .cn { font-size: 24vh; font-weight: 900; line-height: .95; color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 .6vh 3vh rgba(217, 165, 43, .5); }
.bd-call .cw { font-size: 7vh; font-weight: 900; }
.bd-call .cp { font-size: 3.4vh; color: #c9d0de; font-weight: 700; }
.bd-call.pop { animation: bpop .5s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes bpop { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.bd-side { flex: 1; display: grid; grid-template-rows: auto auto 1fr; background: #0e1830; border-left: .3vh solid #1d2a48; min-width: 0; overflow: hidden; }
.bd-side section { padding: 1.5vh 1.6vw; border-bottom: .3vh solid #1d2a48; min-width: 0; }
.bd-side h3 { font-size: 2.2vh; color: #9fb0cf; font-weight: 800; margin-bottom: .6vh; }
.bd-now { text-align: center; }
.bd-clock { font-size: 7vh; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.bd-date { font-size: 2.4vh; color: #c9d0de; font-weight: 700; margin-top: .3vh; }
.bd-weather { margin-top: .6vh; display: flex; align-items: center; justify-content: center; gap: 1vw; }
.bd-weather .ic { font-size: 4.4vh; }
.bd-weather .t { font-size: 4.2vh; font-weight: 900; }
.bd-weather .d { font-size: 1.8vh; color: #c9d0de; text-align: left; line-height: 1.35; }
.bd-wait .row { display: flex; justify-content: space-between; align-items: baseline; gap: 1vw; padding: .2vh 0; }
.bd-wait .lbl { font-size: 2.6vh; font-weight: 800; }
.bd-wait .val { font-size: 2.6vh; color: #c9d0de; font-weight: 700; white-space: nowrap; }
.bd-wait .val b { font-size: 3.6vh; color: var(--gold-2); }
.bd-wait .val small { font-size: 2.1vh; }
.bd-wait .val.off { font-size: 2.3vh; color: #7d8db0; }
.bd-recent { overflow: hidden; }
.bd-recent .rc { display: flex; align-items: baseline; gap: .8vw; font-size: 2.5vh; padding: .6vh 1vw; border-radius: 1.2vh; margin-bottom: .6vh; background: #16223f; font-weight: 700; white-space: nowrap; }
.bd-recent .rc b { font-size: 3.2vh; min-width: 5vw; font-variant-numeric: tabular-nums; }
.bd-recent .rc span { color: #7d8db0; }
.bd-recent .rc em { font-style: normal; color: #dfe5f1; }
.bd-recent .rc.first { background: #3a2f0e; box-shadow: inset .5vh 0 0 var(--gold-2); }
.bd-recent .rc.none { color: #56688f; background: none; font-size: 2.4vh; }
.bd-notice { flex-shrink: 0; display: flex; align-items: center; gap: 1.4vw; height: 7vh; background: linear-gradient(90deg, #b8860b, #d9a52b); color: #1b1300; padding: 0 1.6vw; overflow: hidden; }
.bd-notice .tag { background: #1b1300; color: #ffd978; font-weight: 900; font-size: 2.4vh; padding: .5vh 1vw; border-radius: 99px; flex-shrink: 0; }
.bd-notice .txt { flex: 1; overflow: hidden; white-space: nowrap; min-width: 0; }
.bd-notice #noticeTxt { display: inline-block; font-size: 3.4vh; font-weight: 900; }
.bd-notice #noticeTxt.fade { animation: nfade .6s ease; }
.bd-notice #noticeTxt.scroll { padding-left: 100%; animation: nscroll var(--dur, 12s) linear 1; }
@keyframes nfade { from { opacity: 0; transform: translateY(1.2vh); } to { opacity: 1; transform: none; } }
@keyframes nscroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.bd-wins { flex: 1; min-height: 0; display: grid; gap: .4vw; background: #070d1a; padding: .8vh .4vw .6vh; }
.bd-wins .grp { display: grid; grid-template-rows: auto minmax(0, 1fr); border-radius: 1.4vh; overflow: hidden; background: #0e1830; min-width: 0; }
.bd-wins .gh { text-align: center; font-size: 2.8vh; font-weight: 900; padding: .5vh 0; }
.bd-wins .grp.pre .gh { background: var(--gold-2); color: #1b1300; }
.bd-wins .grp.onsite .gh { background: #5b8def; color: #fff; }
.bd-wins .grp.off .gh { background: #26324d; color: #9fb0cf; }
.bd-wins .gh small { font-size: 2.2vh; font-weight: 700; }
.bd-wins .gw { display: grid; min-height: 0; }
.bd-wins .win { display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; border-right: .2vh solid #1d2a48; min-width: 0; }
.bd-wins .win:last-child { border-right: 0; }
.bd-wins .wl { text-align: center; font-size: 2.1vh; color: #9fb0cf; font-weight: 800; padding: .3vh 0; background: #13203d; }
.bd-wins .wn { display: grid; place-items: center; font-size: 9vh; overflow: hidden; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.bd-wins .wn .dash { color: #2e3d60; font-size: 6vh; }
.bd-wins .grp.off .wn { opacity: .35; }
.bd-wins .win.flash .wn { animation: wflash .8s ease-in-out 8; }
@keyframes wflash { 0%, 100% { color: #fff; background: transparent; } 50% { color: #1b1300; background: var(--gold-2); } }
.bd-ctrl { position: fixed; right: 1vw; bottom: 1vh; z-index: 20; display: flex; gap: .5vw; opacity: 0; transition: opacity .3s; pointer-events: none; }
.bd-ctrl.show { opacity: 1; pointer-events: auto; }
.bd-ctrl .btn.ghost { color: #9fb0cf; }

/* ---------- 창구 도크 (체크인/현장결제 화면 안) ---------- */
.q-dock { background: #182440; border: 1px solid #2e3d60; border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 10px; color: #fff; }
.q-dock .q-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.q-dock select { width: auto; min-height: 38px; padding: 4px 10px; background: #0f1729; color: #fff; border-color: #2e3d60; font-weight: 700; }
.q-dock .q-stat { font-size: .9rem; color: #9fb0cf; }
.q-dock .q-stat b { color: var(--gold-2); font-size: 1.1rem; }
.q-cur { background: #0f1729; border-radius: 12px; padding: 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.q-cur .no { font-size: 2.2rem; font-weight: 900; color: var(--gold-2); line-height: 1; font-variant-numeric: tabular-nums; }
.q-cur .meta { font-size: .9rem; color: #c9d0de; }
.q-cur .meta b { color: #fff; font-size: 1.05rem; }
.q-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.q-btns .btn { min-height: 40px; }
.q-dock .btn { border: 0; }
.q-dock .btn.dk { background: #26365a; color: #fff; }
.q-dock .btn.next { background: var(--gold-2); color: #1b1300; font-weight: 800; min-height: 50px; font-size: 1.05rem; }
.q-off { font-size: .9rem; color: #9fb0cf; }
.q-list table { color: var(--text); }
.q-list .st-waiting { color: var(--muted); }
.q-list .st-called { color: var(--info); font-weight: 800; }
.q-list .st-held { color: var(--warn); font-weight: 800; }
.q-list .st-done { color: var(--ok); }
.q-list .st-cancelled { color: var(--bad); }
.scan-ind { font-size: .75rem; padding: 2px 8px; border-radius: 99px; background: #2a3a5f; color: #c9d0de; }
.k-panel.wide { max-width: 1060px; }
.k-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
.k-left { display: flex; flex-direction: column; gap: 14px; justify-content: space-between; }
.k-left .k-btn { font-size: 1.25rem; min-height: 68px; padding: 0 12px; }
.k-cols .k-pad { grid-auto-rows: 1fr; }
.k-step output { display: block; line-height: 1; }
@media (max-width: 820px) { .k-cols { grid-template-columns: 1fr; } }
